Blazor AI AssistView Example - Streaming Response

AI AssistView / Streaming Response

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

Loading Syncfusion Blazor Server Demos…

  • What are the main features of the AI AssistView component?
  • What is Markdown and how is it used?

In this example, the AI AssistView component dynamically updates responses in a streaming manner using the UpdateResponseAsync method, while the ScrollToBottomAsync method ensures automatic scrolling. The BannerTemplate customizes the banner content, and AssistViewToolbar adds custom toolbar items like a right-aligned Refresh button. The PromptSuggestions provides AI prompt suggestions, and PromptRequested handles prompt requests when triggered.

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

Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE