Example of Template in Javascript AI AssistView Control

/
/
Template

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

More Details...

Description

In this example, the AI AssistView control 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.