You may have trained your conversational AI solution using file content from your business or grounded your language model using data from websites or academic papers.
You may wish to provide users with additional comfort around the answer your conversational AI solution provides and let them know which sources are responsible for arriving at responses generated by the language model
The shouldAllowReferences
property in UI Kit automatically annotates chatbot responses with any sources that were used to generate chatbot responses.
In this reference guide, you will learn how to use the shouldAllowReferences
property in UI Kit to do this.
The feedback control can be added to the end of each response by including the shouldAllowLeaveFeedback="true"
attribute to your chatbot JavaScript (also known as UI Kit).
You can see an example of this here:
<script id="ZammoBotUIKitScript" charset="utf-8"
src="<https://cdn.zammo.ai/zammo-bot-ui-kit/zammo-bot-ui-kit-latest.min.js>"
cssUrl="<https://cdn.zammo.ai/zammo-bot-ui-kit/zammo-bot-ui-kit-latest.min.css>"
zammoApiBaseUrl="<https://app.zammo.ai>"
simulatorToken="{your-simulator-token}"
webChatId="00000000-0000-0000-0000-000000000000"
**shouldAllowReferences="true"**>
</script>
You can see how references are rendered in the screenshot below: