Example of Template in React AI AssistView Component

/
/
Template

This sample demonstrates the template functionality of the AI AssistView component.

More Details...

Loading....
Description

In this example, the AI AssistView component uses customizable templates for the banner, prompts, responses, and suggestions. We have used the bannerViewTemplate, promptItemTemplate, responseItemTemplate and promptSuggestionItemTemplate to define the structure and appearance of these elements.

By using the executePrompt method you can trigger the prompt request externally and generate the output based on the promptRequest data returned. If found, the response will be displayed and suggestions updated.