Customizing DatafariUI - Chatbox configuration
Valid from Datafari 6.2 (UI v2 1.1.2)
Datafari's chatbot takes the form of a small menu in the bottom right-hand corner of the search page:
When it's open and a conversation is initiated, the dialog window expands and looks like this:
The widget's display configuration is in the ui-config.json file:
"right": [
...
{
"type": "DatafariRAG",
"title": "Ask your content",
"show": true,
"chatMemory": true,
"width": "medium"
}
],
...
type
: is the type name of the chatbot widget. Do not modify this value.title
: is the localized key name of the property containing the real title value. Do not change this value. If you want to modify the title displayed, change the value in the localized translation file: “www/locales/xx/translation.json, where “xx“ is the language code.show
: true to display the chatbot, false to not to.chatMemory
: set to true if you want to display the history of your conversation (like presented in the screenshot above). If false, only one question and the answer will be displayed. The previous question and answer is cleaned.width
: there are 3 values:large: the window takes up the entire width of the page.
medium: the window takes up half the page width.
small: the window takes up about a quarter of the page width.