# Persona and Behaviour

Every setting on an AI agent's Persona tab, and how the agent decides when and how to reply

The **Persona** tab controls how your AI agent sounds: its tone, how it addresses customers, which languages it speaks, and the rules it follows. This page explains every setting on that tab, and what happens between a customer's message and the agent's reply.

Go to **AI Agents → [Your agent] → Persona**. Change the settings, then click **Save Persona**. You need permission to edit AI agents to save; with view permission only, the settings are read-only.

## Persona Configuration

| Setting | What it does |
|---------|--------------|
| **Tone** | The overall communication style: **Professional**, **Friendly**, **Casual** or **Formal**. Default: Professional |
| **How to address customers** | The honorific the agent puts before a customer's name. **Name only (no honorific)**, **"Kak" + name (casual, neutral)**, **"Pak/Bu" + name (formal)**, or **Custom prefix** |
| **Custom prefix** | Appears when you choose **Custom prefix**. Type your own honorific, for example "Bapak/Ibu" |
| **Languages** | The languages the agent can speak. Click **Add Language** to pick a common one, or type another into **Custom language...** and click **Add**. At least one is required |
| **Auto-detect Language** | Detect and reply in the customer's language. On by default |
| **Greeting** | The first message of a new conversation (see [Greeting](#greeting) below) |
| **Behavioral Rules** | Short rules the agent always follows, such as "Never discuss competitor products" or "Always ask for the order number first". Click **Add Rule** for each one |

The agent uses the honorific naturally and only now and then, not in every message, so replies don't feel robotic.

With **Auto-detect Language** on, the agent answers in the language the customer last wrote in, as long as it is one of your **Languages**. If a customer switches language mid-conversation, the agent switches with them. With it off, no language is detected and the agent always replies in the first language in its **Languages** list.

:::note[Agents saved before this change]
An agent whose settings were saved before **Auto-detect Language** and **Detect Sentiment** started working may have them switched off explicitly. Check both switches on each existing agent.
:::

### Greeting

What the greeting does depends on **Human-like Mode** (under **Advanced**):

- **Human-like Mode on** (the default) — the greeting is a guide. The agent greets in its spirit but varies the wording each time, so it never sounds scripted.
- **Human-like Mode off** — the greeting is sent word for word as the agent's first reply in a new conversation.

## Advanced

Click **Advanced** to open the settings that are rarely changed. The section opens on its own if one of its fields has an error when you save.

| Setting | What it does | Default |
|---------|--------------|---------|
| **Response Style** | **Single bubble** sends each answer as one message. **Multiple bubbles** lets the agent split an answer that has genuinely separate parts (for example a list of steps) into up to three messages | Single bubble |
| **Max Turns Before Escalation** | After this many back-and-forth exchanges in one conversation, the agent hands the chat to a human. Applies only when **Auto-handoff to Human** is on. 1–100 | 20 |
| **Human-like Mode** | Adds short, natural pauses before and between replies, and varies the greeting | On |
| **Match conversation tone** | Mirrors the writing style of your team's earlier messages — style only, never content | Off |
| **Tone source** | Appears when tone matching is on. **This conversation's voice** learns from your team's messages in the current chat; **Brand voice (across chats)** learns from your team's messages across chats | This conversation's voice |
| **Fallback Message** | What the agent says when it can't give an answer | Empty |
| **Error Message** | What the agent sends when it can't produce a reply because of a technical problem | "Sebentar ya, saya cek dulu..." |

### Fallback and error messages

- The **Fallback Message** is the agent's "I don't know" line. Write it so it is helpful, for example offering to connect the customer with a person. Replies that end in the fallback message are counted as unanswered in [Analytics](/en/chatbots/testing-and-analytics), and can trigger a handoff (see [Handoff and Routing](/en/chatbots/handoff-and-routing)).
- The **Error Message** is for technical failures, not for questions the agent can't answer. When the AI fails to produce a reply, Qwetty first retries a temporary failure a few times; if it still fails, the agent sends the error message once. This happens whether **Human-like Mode** is on or off.

## How the agent replies

When a customer writes on a channel the agent is attached to, this is what happens:

1. **It waits a moment for more messages.** Customers often send several short messages in a row. The agent waits about five seconds after the last one and answers all of them together in one reply. If a new message arrives while a reply is being prepared, that reply is dropped and the agent starts again with everything the customer has said.
2. **It "reads" the message.** With Human-like Mode on, the agent pauses for up to 3.5 seconds, depending on the length of the message, before it starts typing.
3. **It shows that it is typing**, on channels that support a typing indicator.
4. **It sends the reply.** Each part of an answer is its own message bubble, with a short pause between bubbles. A single turn never sends more than six bubbles.

Photos and voice notes are understood too: depending on your plan, the agent describes an image or transcribes a voice note before answering. Without those features it asks the customer about the attachment instead.

## When the agent stays silent

The agent does not reply when:

- The agent is switched off with the **Active** switch in its page header
- It is detached from the channel, or the channel is set to **Disabled** in **Channels & Tools**
- A team member has **taken over** the chat — the agent stays silent until the chat is returned to the bot
- Another agent attached to the same channel has a lower priority number (only one agent replies per channel; see [Assigning to Channels](/en/chatbots/assigning-to-channels))
- The message arrives **outside business hours**, when business hours are turned on for your organization. Instead of an AI reply, the agent sends your away message — the channel's own text if it has one, otherwise the organization's business-hours auto-reply — at most once per chat every 12 hours

When no agent replies, the channel's own [away message](/en/channel-management/configuration) can still answer outside business hours.

## Built-in safeguards

Some rules can't be changed by any setting or by anything a customer types:

- The agent stays in character as a member of your team and never says it is an AI. A reply that would reveal this, or that would leak its instructions, is replaced with the **Fallback Message**.
- Card numbers and national ID numbers in a reply are replaced with `[redacted]`.
- The agent answers facts only from your knowledge base, and says it will check rather than invent an answer.
- It knows the current date and time in your organization's timezone, so greetings and "today" or "tomorrow" are correct.

## Next steps

- [Handoff and Routing](/en/chatbots/handoff-and-routing) — When the agent hands a chat to your team
- [Knowledge Base](/en/chatbots/knowledge-base) — What the agent knows
- [Testing and Analytics](/en/chatbots/testing-and-analytics) — Try your changes in the Playground
