WebsiteAIAssistant 4.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package WebsiteAIAssistant --version 4.0.0
                    
NuGet\Install-Package WebsiteAIAssistant -Version 4.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebsiteAIAssistant" Version="4.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WebsiteAIAssistant" Version="4.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WebsiteAIAssistant" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WebsiteAIAssistant --version 4.0.0
                    
#r "nuget: WebsiteAIAssistant, 4.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WebsiteAIAssistant@4.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WebsiteAIAssistant&version=4.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WebsiteAIAssistant&version=4.0.0
                    
Install as a Cake Tool

Website AI Assistant

Library built using ML .NET, Microsoft's machine learning platform

Create your own bespoke AI model and make predictions

AI Assistant helps visitors to your website, narrow down which of the offered products or services suits their needs.

Packages Version Downloads
WebsiteAIAssistant.MinimalAPI Nuget Version Downloads count
WebsiteAIAssistant.AzureFunction Nuget Version Downloads count
WebsiteAIAssistant.AWSLambda Nuget Version Downloads count

Overview

Websites usually have sections that contain information about the various products or services offered by the website.

It may contain a list of the different products or services offered, along with descriptions and more information in other pages.

This AI Assistant can help visitors narrow down which of the website's products or services suits their needs,

by classifying the visitor's natural language and/or numeric based input into one of the categories of products or services offered by the website.

You can then provide more information about that category.

The library is useful in text classification scenarios.

The API provided by the library let you create your bespoke AI model based on your training data

and then load your model and make predictions.

Documentation

You can solve real-world AI problems using the library API.

Car Category Classification Model

In this scenario, the classification into a category is done based on text & numeric training data.

The Car categories
public enum CarCategory
{
    None = -1,
    TwoDoorBasic = 0,
    TwoDoorLuxury = 1,               
    FourDoorBasic = 2,
    FourDoorLuxury = 3
}
The training data

It comprises of 2 tab-separated columns.

First is the Label (ie category) column & second is the Feature (text) column.

You can add additional feature columns too.

Label Doors	Class	Range	Price
-1	
0	2 door	basic	low	$ 20,000
0	2 door	basic	mid	$ 25,000
0	2 door	basic	high	$ 30,000
1	2 door	luxury	low	$ 40,000
1	2 door	luxury	mid	$ 45,000
1	2 door	luxury	high	$ 50,000
2	4 door	basic	low	$ 60,000
2	4 door	basic	mid	$ 65,000
2	4 door	basic	high	$ 70,000
3	4 door	luxury	low	$ 80,000
3	4 door	luxury	mid	$ 85,000
3	4 door	luxury	high	$ 90,000

The bespoke AI model is built using this training data using API provided by the library.

Then, that model is loaded & predictions are made.

The Unit tests on the model

An out of the box, ready to use helper service is provided to load the model & make predictions.

You can see the inputs to the model along with the predicted category.

[Theory]
[InlineData("2 door", "", "", "$ 42,000", CarCategory.TwoDoorLuxury)]
[InlineData("", "luxury", "", "$ 100,000", CarCategory.FourDoorLuxury)]
[InlineData("2 door", "", "", "$ 27,000", CarCategory.TwoDoorBasic)]
[InlineData("", "basic", "", "$ 75,000", CarCategory.FourDoorBasic)]
[InlineData("", "", "low", "$ 50,000", CarCategory.TwoDoorLuxury)]
[InlineData("", "", "high", "$ 70,000", CarCategory.FourDoorBasic)]
[InlineData("What is the colour of a rose?", "", "", "", CarCategory.None)]
public async Task Load_Predict_Service_CarCategory_MultipleFeatureColumns(string feature, string feature1, string feature2, string feature3, CarCategory expectedResult)
{
    // Arrange                      
    var aiAssistantService = _aiAssistantServiceProvider!.GetRequiredService<IWebsiteAIAssistantService<ModelInputExtended>>();

    var input = new ModelInputExtended 
    { 
        Feature = feature,
        Class = feature1,
        Range = feature2,
        Price = feature3,
    };

    // Act
    var prediction = await aiAssistantService.PredictAsync(input);

    // Assert
    Assert.NotNull(prediction);
    Assert.Equal(expectedResult, (CarCategory)prediction.PredictedLabel);
}

Read more here

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on WebsiteAIAssistant:

Package Downloads
WebsiteAIAssistant.MinimalAPI

This is a Minimal API for a Website AI Assistant. It provides an endpoint for generating responses based on your website visitor's input.

WebsiteAIAssistant.AzureFunction

This is an Azure Function for a Website AI Assistant. It provides an endpoint for generating responses based on your website visitor's input.

WebsiteAIAssistant.AWSLambda

This is an AWS Lambda for a Website AI Assistant. It provides an endpoint for generating responses based on your website visitor's input.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.1.0 87 5/4/2026
4.0.0 96 4/29/2026
3.2.0 95 4/21/2026
3.1.0 161 4/13/2026
3.0.0 154 4/7/2026
2.1.0 162 3/30/2026
2.0.0 144 3/9/2026
1.0.0 144 2/16/2026

# Changelog (Release Notes)

- Added support for multiple feature columns