Bot's knowldege base Beta
By using the Bot Knowledge Base section together with the Knowledge Base Request (Beta) component, you can create your own knowledge base fully built on your content.
An OpenAI API key is required to configure and use this component.
All data can be uploaded manually via the builder. Information can be added as documents or as links to your documentation.
After uploading the data and configuring the component, users will be able to ask questions and receive answers based on your materials without leaving the chat with the bot.
1. Open Bot's knowldege base Beta section.
2. To upload the knowledge base as a file, select the File tab and upload a document from your computer.
If you plan to add information via links, select the Link tab and paste the required URL into the link field.
Click Send to confirm the upload.
The next file can be uploaded after processing is complete, which takes about three minutes. To make sure the file has been uploaded, refresh the page after this time.
Using the Delete button, you can remove unnecessary links or documents.
3. Once all knowledge base files or links are uploaded, go to the Bot Builder section.
4. Add a component that the user will see, such as a Message, and then a component for receiving input — Fork or User Input.
5. Next, add the Knowledge Base Request component.
6. Enter your OpenAI token in the Access Key field. If you do not have an OpenAI token yet, you can obtain one by following the instructions →
7. Enable Send user's latest messages and specify the number of recent messages so the bot can understand the context of the previous conversation.
8. In the User question field, specify the variable that stores the user’s input. For example, if the question is saved to the var variable, the field should contain {{var}}.
9. If needed, change the Answer variable name.
10. Add a message to display the answer. If the default variable is used, it should be displayed as {{base_answer}}.
If needed, you can open additional component settings by clicking the Knowledge Base Request component with the left mouse button.
In the Additional instructions field, you can provide company information, set the bot’s communication style, or define other behavior preferences.
Specify the Operator request screen. This screen will be shown if the model cannot handle the request and human assistance is required. It is recommended to add a Chat component and an Alert to notify the operator.
You can also configure success and error screens, select the ChatGPT model, set the variable name for the full response, and adjust other advanced settings.