Example of Streaming Response in ASP.NET MVC AI AssistView Control

This sample demonstrates the streaming response update in the AI AssistView control.

DEMO
SOURCE

In this example, the AI AssistView control dynamically updates responses in a streaming manner using the addPromptResponse method, while the scrollToBottom method ensures automatic scrolling. The BannerTemplate allows customization of the banner content, and ToolbarSettings enables custom toolbar items, including a right-aligned Refresh button. Additionally, PromptSuggestions offers AI-generated prompt suggestions, while PromptRequest processes prompt requests when triggered.

This implementation provides an interactive AI chat experience with real-time streaming updates, enhanced by Markdown-to-HTML conversion using the Marked plugin.

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab