Create and Integrate Chatbot
In this tutorial, we will show you how to create, train, and integrate the AskYourDatabase Chatbot into your web app.
Creating Chatbot
Navigate to chatbot dashboard
First, click "Dashboard" -> "Chatbot" or directly go to Chatbot Dashboard (opens in a new tab).
Click "Create" and then open the chatbot creation panel.
Configure your chatbot
In the left panel, there are two options that are important for the Chatbot to function well:
- Connection String:
You have to provide the right connection string; otherwise, you could not chat with the bot.
- Documentation:
This is crucial, especially when you want to achieve high SQL accuracy. You can think of this as the knowledge base for AI. For how to write good documentation, please refer here.
Debug your chatbot
In the right panel, you can chat with your database to test its behavior:
And you could try to improve the results by modifying the documentation.
Integrate Chatbot
Integrating the Chatbot is very easy; just click the "Integrate Chatbot" button:
You could see the detailed tutorial about how to integrate:
Monitor Chatbot
To view how well the chatbot interacts with your customers is crucial. We let you view all the message history of all your customers in the messages console: