
CREATE CHATBOT Syntax
Here is how to create a chatbot that integrates an AI Agent and can be connected to a chat interface.
database
In MindsDB, the CREATE DATABASE command is used to connect data integrations including databases and applications such as chat interfaces.
The database parameter stores the name of the chat interface connected to MindsDB with the CREATE DATABASE command, such as Slack or MS Teams.
agent
The agent parameter stores the name of the agent created in MindsDB with the CREATE AGENT command.
Alternatively, user can use the model parameter, instead of agent, to connect an LLM created in MindsDB with the CREATE MODEL command.
is_running
The is_running parameter defines whether the chatbot is going to be available right after its creation (true) or not (false).
If it is set to false, users can enable it with this command.
Here are some tips for using the Slack integration:
-
If you want to use Slack in the
CREATE CHATBOTsyntax, use this method of connecting Slack to MindsDB. - If you want to connect the chatbot to multiple Slack channels, open your Slack application and add the App/Bot to one or more channels:
- Go to the channel where you want to use the bot.
- Right-click on the channel and select View Channel Details.
- Select Integrations.
- Click on Add an App.
DROP CHATBOT Syntax
Here is how to delete a chatbot:
Example
Following the example from here, let’s create a chatbot utilizing the already created agent. Start by connecting a chat app to MindsDB:- Follow this instruction to connect Slack to MindsDB.
- Follow this instruction to connect MS Teams to MindsDB.
Follow this tutorial to build your own chatbot.