# Creating a Bot

How to create and configure an AI chatbot in Qwetty

import Shot from "../../../../components/shot.astro";

Create an AI chatbot to automate responses on your channels.

<Shot name="agent-persona" alt="An AI agent's Persona tab" />

## Creating a chatbot

1. Go to **AI Agents** and click **Add AI Agent**
2. Enter the **AI Agent Name**
3. Optionally add a **Description**
4. Set the **Role Name** — the role the bot plays (e.g., "Sales Lead", "Technical Support")
5. Optionally use **Generate with AI** — describe your business and what the bot should do, and Qwetty generates its system prompt, Q&A knowledge, and persona in the background after creation
6. Click **Create AI Agent**

## Configuring the bot

Click a chatbot in the list to open its details page. It has the following tabs:

| Tab | Purpose |
|-----|---------|
| **Persona** | Tone, how to address customers, languages, greeting, behavioral rules, and advanced options such as response style and human-like mode (see [Persona and Behaviour](/en/chatbots/persona-and-behaviour)) |
| **Knowledge** | System prompt, Q&A pairs, and files and web pages (see [Knowledge Base](/en/chatbots/knowledge-base)) |
| **Handoff & Routing** | Escalation and handoff rules, intake screening, contact context, and AI follow-up (see [Handoff and Routing](/en/chatbots/handoff-and-routing)) |
| **Channels & Tools** | Channel attachments, built-in tools such as web browsing, and external tools (MCP servers) (see [Assigning to Channels](/en/chatbots/assigning-to-channels) and [Tools and MCP Servers](/en/chatbots/tools-and-mcp)) |
| **Analytics** | Total interactions, confidence, response time, resolution rate, sentiment over time, language distribution, and top unanswered questions (see [Testing and Analytics](/en/chatbots/testing-and-analytics)) |

The **Testing** button in the page header opens a **Playground** where you can chat with the bot and inspect its responses before deploying it.

If you used **Generate with AI**, the page shows "Setting up your AI agent..." until the system prompt, Q&A and persona are ready.

### Prompts

The bot's role comes from its **Role Name** and **Description**. Its **system prompt** lives in the **Knowledge** tab and is always part of the agent's instructions; the Q&A pairs, files and web pages there are knowledge the agent looks up for each message. Tone, languages, response style and rules that must always apply are set in the **Persona** tab.

## Enabling and disabling

Use the **Active** switch in the chatbot's page header (or **Enabled** in the edit dialog) to activate or deactivate the bot. A disabled bot will not respond to messages, even if attached to a channel.

## Next steps

- [Persona and Behaviour](/en/chatbots/persona-and-behaviour) — Shape how the bot sounds and replies
- [Knowledge Base](/en/chatbots/knowledge-base) — Add training data to your bot
- [Assigning to Channels](/en/chatbots/assigning-to-channels) — Deploy the bot on a channel
