Blazor AI AssistView Example - File Attachment Support

AI AssistView / File Attachments

This sample demonstrates how users can attach files while interacting with the AI AssistView. The component enables file uploads to enhance the context of conversations and responses.

Loading Syncfusion Blazor Server Demos…

  • How do I set daily goals in my work day?
  • Steps to publish a e-book with marketing strategy

In this example, the file attachments are configured using the AttachmentSettings property. The Enable option within AttachmentSettings is set to true to allow file attachments. The SaveUrl and RemoveUrl are specified to handle file uploads for the attached files. Additionally, the BannerTemplate customizes the banner message, and AssistViewToolbar adds custom toolbar items, such as a right-aligned Refresh button. The PromptSuggestions provides AI prompt suggestions, and PromptRequested handles prompt requests when triggered.

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