Documentation
Create and Integrate Chatbot

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).

alt text

alt text

Click "Create" and then open the chatbot creation panel.

Configure your chatbot

alt text

In the left panel, there are two options that are important for the Chatbot to function well:

  1. Connection String:

You have to provide the right connection string; otherwise, you could not chat with the bot.

  1. 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:

alt text

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:

alt text

You could see the detailed tutorial about how to integrate:

alt text

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:

alt text