Instructions & handoff
The settings under AI behavior turn a generic model into your assistant: instructions, handoff rules, session timeout, and what the bot says as a chat closes.
Custom instructions#
Instructions are your bot's system prompt — the standing brief it follows in every reply. Use them to set tone, scope and rules. You have up to 4000 characters.
You are the support assistant for Acme Store.
Be friendly and concise. Answer only from the
knowledge base. Reply in the customer's language.
If you don't know, say so and offer a human.- Describe the role and tone in one or two sentences.
- State what's in and out of scope.
- Tell it to rely on the knowledge base and not invent facts.
Keep it tight
Shorter, specific instructions beat long ones. Put facts in the knowledge base; keep instructions for behavior.Handoff rules#
Handoff rules describe when the bot should stop and pass the chat to a live operator. The AI watches the conversation and escalates when a rule matches. You have up to 1000 characters.
Hand off to a human when:
- the customer asks for a refund or chargeback
- they are angry or ask for a manager
- the question is about a legal or billing disputeWhen a handoff triggers, the conversation appears in the Inbox for your team to take over.
If you have no one on support duty, switch Hand off to an operator off. The bot then never escalates on its own — no handoff, no “call an operator” button in Telegram — and the rules field above disappears, because nothing would read it. Taking a chat over yourself from the Inbox keeps working either way.
Session timeout#
A session is one continuous stretch of a conversation. The timeout sets how long it stays open with no new messages before it closes; the next message starts a fresh session. The range is 5–1440 minutes (default 15).
- Shorter timeouts close idle chats quickly — cleaner sessions, but a returning customer starts over.
- Longer timeouts keep context across pauses — better continuity for slow back-and-forth.
Announce the closing#
New assistants start with this switch off. With it on, the bot says goodbye before it goes: once the timeout is up it asks “Did I answer your question?”, waits a few more minutes for a reply, and only then sends “This chat has been closed due to inactivity” and closes the session. When an operator closes a chat in the Inbox, the customer gets a short “This chat is closed”.
In a personal messenger that can read as the bot pestering someone who simply walked away. Switch Announce the closing off and these messages stop: the session still closes on its own schedule or by the operator's hand, it just closes silently. Nothing else changes — the timeout you set still applies, and your conversation quota is counted exactly the same way.
What it does not silence
It does not cover the customer's own goodbye. When a customer says they're all set, the bot still replies “Glad I could help!” — that is an answer to something they did, not an unprompted goodbye.