When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
DevExpress AI Chat for Blazor is an AI-enabled chat component that allows users to interact with multiple AI services. Our Blazor Chat component can be integrated with the following AI services:
- OpenAI
- Azure OpenAI
- Ollama
To add the DxAIChat component to your application, register the appropriate AI service at application startup.
Use the following properties to customize the chat appearance:
- ShowHeader: Displays a customizable chat header and a Clear Chat button.
- UseStreaming: Allows the AI client to send parts of a response once they become available. The AI Chat component will update the display message accordingly for a more responsive chat experience.
- AllowResizeInput: Allows users to resize the Blazor AI Chat input box. If this property is set to
false, the input box automatically resizes itself as a user types.
Note: DevExpress AI-powered extensions follow the "bring your own key" principle. DevExpress does not offer a REST API and does not ship any built-in LLMs/SLMs. You need an active Azure/Open AI subscription to obtain the REST API endpoint, key, and model deployment name. These variables must be specified at application startup to register AI clients and enable DevExpress AI-powered Extensions in your application.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
The DevExpress Blazor AI Chat component allows you to modify the appearance of message bubbles. Use the MessageTemplate property to display any UI render fragment within a chat message. This template changes how the message bubble is rendered, including paddings and inner content alignment.
The BlazorChatMessage template context parameter includes details about the message being processed.
In this demo, the Initialized event handler calls the LoadMessages method to load message history during chat initialization.
Our Blazor Chat component (DxAIChat) raises the MessageSent event when a user sends a message to the chat. Handle the event to process this action as needed. You can use the Content event argument to access user input and call the SendMessage method to send another message to the chat.
In this demo, users can attach files to messages (the DxAIChat.FileUploadEnabled option is active). To access attached files in a MessageSent event handler, use its Files argument property.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
Define the EmptyMessageAreaTemplate to customize content displayed in the empty message area.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
AI services use plain text as the default response format. To display rich formatted responses within our Blazor Chat component (DxAIChat), set the ResponseContentFormat property to Markdown and use a markdown processor to convert response content to HTML code.
In this demo, the MessageContentTemplate property is used to render HTML code for message bubble content.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
DevExpress Blazor AI Chat supports prompt suggestions – hints that guide users to possible actions. The component displays prompt suggestions (hint bubbles) when the chat area is empty.
Follow the steps below to enable and configure prompt suggestions:
- Populate the component's PromptSuggestions property with DxAIChatPromptSuggestion objects (hint bubbles).
- Specify bubble content using Title and Text properties.
- Use the PromptMessage property to specify the text to be displayed in the input field after a user clicks the corresponding suggestion.
In this demo, the Initialized event handler supplies prompt suggestion content during chat initialization.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
DevExpress Blazor AI Chat allows users to attach files to messages. Set the DxAIChat.FileUploadEnabled property to true to activate file upload functionality. You can use a nested DxAIChatFileUploadSettings component to validate file size/extension and limit the number of files. This demo uses the drop-down menu to specify allowed file types.
In this demo, the Initialized event handler calls the LoadMessages method to pre-populate the chat with messages and file attachments. File attachments are specified by AIChatUploadFileInfo objects.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
AI Tool Calling allows Large Language Models (LLMs) to interact with your database files, APIs, and application logic. Instead of guessing an answer, the AI model selects the appropriate function from your code, and generates parameters needed to execute it.
Use the IncludeFunctionCallInfo property to automatically append AI tool execution details to the chat response. This feature allows you to debug and monitor how the LLM interacts with your system in real-time:
- Optimize AI tool definitions: Refine metadata to make your tools easier for the LLM to understand.
- Audit security: Identify when AI attempts to access sensitive or restricted data.
- Build trust: Demonstrate to users that the response is based on actual data processing, not a hallucination.
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
The DevExpress Blazor AI Chat component allows users to attach additional context to chat messages. Context can include binary files (images, audio, PDFs, documents) and non-file artifacts such as database schemas, structured records, or logs. You can also supply external content retrieved from a Model Context Protocol (MCP) server as a resource. Resources help the AI model generate more accurate answers and reduce hallucinations.
Use the Resources collection to manage chat context programmatically.
|
|
|
|
|
|
|
|
|
|---|---|---|---|---|---|---|---|
| 1 | Alice | USA | 12/7/2025 | Monitor | 4 | $702.63 | Processing |
| 2 | Bob | Canada | 12/7/2025 | Monitor | 4 | $778.68 | On Hold |
| 3 | Charlie | Germany | 12/18/2025 | Webcam | 2 | $136.69 | On Hold |
| 4 | Diana | USA | 12/3/2025 | Docking Station | 7 | $892.55 | Processing |
| 5 | Evan | France | 12/17/2025 | USB Hub | 3 | $82.28 | Pending |
| 6 | Fiona | USA | 11/30/2025 | Headset | 7 | $624.08 | Pending |
| 7 | George | UK | 11/23/2025 | Webcam | 5 | $315.81 | Processing |
| 8 | Helen | Italy | 12/10/2025 | Headset | 5 | $401.96 | On Hold |
| 9 | Ivan | Italy | 12/8/2025 | Headset | 3 | $244.06 | Processing |
| 10 | Julia | Japan | 12/14/2025 | Webcam | 3 | $208.97 | Cancelled |
| 11 | Karl | France | 11/25/2025 | Graphic Tablet | 2 | $459.46 | Shipped |
| 12 | Laura | USA | 12/15/2025 | External SSD | 5 | $751.96 | On Hold |
| 13 | Martin | Canada | 12/6/2025 | USB Hub | 5 | $115.96 | Pending |
| 14 | Nina | Japan | 12/8/2025 | USB Hub | 4 | $99.33 | Processing |
| 15 | Oscar | France | 12/9/2025 | Docking Station | 6 | $800.71 | Delivered |
| 16 | Alice | Japan | 12/9/2025 | Laptop | 7 | $6,877.77 | Shipped |
| 17 | Bob | Japan | 11/29/2025 | Docking Station | 4 | $517.83 | Pending |
| 18 | Charlie | USA | 12/2/2025 | Headset | 1 | $81.37 | Delivered |
| 19 | Diana | Italy | 11/22/2025 | Laptop | 5 | $4,862.32 | Processing |
| 20 | Evan | Japan | 12/3/2025 | Graphic Tablet | 1 | $207.54 | Delivered |
When connected to your own AI model/service without rate limits, DevExpress AI-powered Extensions will perform seamlessly, without artificial delays.
The DevExpress AI Chat component can transform natural language input into application logic. This feature relies on AI Tools — specifically annotated methods that define their purpose, input parameters, and the target object against which they operate. Users can trigger UI updates or business workflows by entering requests in the chat.
This demo features the DevExpress AI tool calling layer that significantly extends Microsoft.Extensions.AI capabilities:
- Context-aware targets: Tools can operate on specific Blazor components, data services, and business objects. The API automatically resolves the correct target instance at runtime.
- Dynamic availability: Tools can be programmatically enabled, disabled, or removed based on current application state or user workflow.
- Visual feedback: The AI Chat component includes a built-in UI that visualizes tool selection and execution process.