Documentation
Getting Started

Create and Integrate Chatbot

In this tutorial, we will show you how to create, train, and integrate the AskYourDatabase Chatbot into your web app.

Website chatbot has these main features:

Key Features

1. Website Integration

  • Embed chatbot into your website seamlessly. For more details about embedding chatbot, please refer to Embed Guide

2. AI Fine-tuning

  • Allow fine-tuning to improve the accuracy of the chatbot. For more details about fine-tuning, please refer to Training Guide

3. Customizable UI

  • Customize chatbot UI styles to match your brand. For more details about customizing styles, please refer to Custom Style Guide

4. Access Management

  • User level access control for security. For more details about access control, please refer to Access Control Guide

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