How to write instructions for an AI bot and set its behavior
How to write instructions (role, goal, limits, tone), message style, the delay before answering, spam protection and replies to photos, voice messages and files.
Updated:
Instructions are how you explain the job to the bot, as you would to a new employee. They are in the bot's "Settings", in the "Instructions" block. If you created the bot from a website link, Onswer already wrote a first version, and you can adjust it.
What good instructions contain
- Role. "You are a sales manager in a beauty salon."
- Goal. "Your task is to book the customer at a convenient time."
- Limits. "Do not invent facts. If unsure, ask or hand over to the administrator."
- Tone. "Talk calmly, in a friendly and professional way."
Write short, concrete sentences. Do not paste the price list into the instructions: there is the services and prices section for it, and long texts are better placed in the knowledge base.
To start you can pick a ready template: sales manager, technical support or clinic administrator.
Version history
Every earlier version of the instructions is saved automatically. The "Version history" button lets you restore any of them. The current one also goes into the history, so nothing is lost.
How the bot writes
- Message style. "Structured": paragraphs, bold for prices and times, lists. "Plain": one short paragraph without formatting. Settings show a preview of both.
- Emoji. Turn it on if you want the bot to occasionally add a smiley (no more than one per message).
- Delay before answering. The bot waits a set number of seconds in case the customer writes more. If a customer finishes a thought in several messages, the bot answers once to all of it.
- First touch. The bot answers the first message, and then the conversation can be handed to a salesperson.
Which messages the bot understands
The "Format support in channels" block turns on replies to audio, images, documents and files. Turn off what the bot need not answer.
Spam protection
You can limit how many messages one person may send in a period. For example: 3 messages in 60 minutes. After that the bot stops answering that person, or sends the "Message at limit" text if you set one.
Checking
After every change, test the bot in the test chat.
Did not find the answer?
Write to support: we usually answer within a working day. Write on WhatsApp · [email protected]