Blazor AI AssistView Example - Template Customization
This sample demonstrates the template functionality of the AI AssistView component.
Hello! Ask Questions, to better understand how your prompt interacts with AI AssistView!
- How do I set daily goals in my work day?
- Steps to publish a e-book with marketing strategy
In this example, the AI AssistView component uses customizable templates for the banner, prompts, responses, and suggestions. We have used the BannerTemplate, PromptItemTemplate, ResponseItemTemplate and PromptSuggestionItemTemplate to define the structure and appearance of these elements.
By using the ExecutePromptAsync method you can trigger the prompt request externally and generate the output based on the PromptRequested data returned. If found, the response will be displayed and suggestions updated.