Example of File Attachments in ASP.NET Core AI AssistView Control
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.
DEMO
SOURCE
In this example, the enableAttachments property is set to true to enable file attachments.
By, using the attachmentSettings configure the saveUrl and removeUrl to allow file uploads for the attached files.
Additionally, the bannerTemplate customizes the banner message, and toolbarSettings adds custom toolbar items like a right-aligned Refresh button.
The promptSuggestions provides AI prompt suggestions, and promptRequest handles prompt requests when triggered.