🛠️ How-to tutorials

Writing a system prompt for a business bot: tone, rules and guardrails

Updated 2026-09-19 · 4 min read · By the Convo360 team

In short

A good system prompt for a business bot has five parts: who it is and its role, its tone, a clear do/don't list, language rules, and a handoff rule for when to bring in a human. Keep it specific and concrete rather than generic — 'never discuss pricing below the listed rate' works better than 'be professional'. Test every rule with a real edge-case question before publishing.

Key takeaways
  • Structure a system prompt in five sections: role, tone, do/don't list, language rules, and a handoff rule.
  • Specific instructions ('never quote a discount above 10%') work far better than vague ones ('be helpful').
  • Always include an explicit rule for when the bot should hand off to a human, not leave it to guess.
  • State the languages the bot should respond in, and whether it should match the customer's language automatically.
  • Test the prompt against deliberately tricky questions, not just easy ones, before publishing.

Prerequisites and the five-part structure that works

You need an AI agent already created (choose OpenAI, Claude or Gemini as its brain; see our model comparison if you haven't decided). It also helps to write down, in plain language, the three or four things this specific bot must never do, before you start drafting formal prompt sections, since those are usually the rules that matter most.

A system prompt is the set of instructions an AI agent reads before every conversation. Vague prompts produce vague, inconsistent bots. A structure that consistently works well:

  1. Role: who the bot is and what it's for, in one or two sentences.
  2. Tone: how it should sound: formal, warm, brief, chatty.
  3. Do/don't list: specific, concrete rules about what it can and cannot say or do.
  4. Language rules: which languages to use, and how to handle Hinglish or regional-language messages.
  5. Handoff rule: exactly when to bring in a human instead of answering itself.

Role and tone, and do/don't lists where guardrails live

Instead of 'You are a helpful assistant', write something like: 'You are the WhatsApp assistant for Sunrise Dental Clinic, Andheri. You help patients book appointments, answer questions about services and clinic timings, and never give medical advice.'

For tone, name a reference point: 'Warm and reassuring, like a friendly front-desk receptionist, not overly formal, but always respectful. Keep replies under 3 sentences unless explaining something detailed.'

The do/don't list is the section that prevents embarrassing or risky replies. Be concrete:

Language rules and the handoff rule

State languages explicitly: 'Respond in the same language the customer writes in: Hindi, English or Hinglish. If a customer writes in another Indian language you're less confident in, reply in simple English and ask if they'd prefer that language.'

And always include a clear handoff rule: 'If a customer asks something outside clinic services, seems frustrated, or explicitly asks for a person, respond: "Let me connect you with our team" and flag the conversation for live-chat handoff.' Convo360's live-chat inbox pauses the bot automatically the moment a human team member replies, so this handoff is seamless.

A full worked example: clinic system prompt

'You are the WhatsApp assistant for Sunrise Dental Clinic, Andheri, Mumbai. You help patients book, reschedule or cancel appointments, and answer questions about services, timings and location. Tone: warm and reassuring, like a friendly front-desk receptionist. Keep replies under 3 sentences unless explaining a process.

Do: confirm date and time back to the patient; offer the clinic's phone number for emergencies. Don't: give medical advice, diagnose symptoms, discuss pricing beyond the listed consultation fee, or ask for OTPs or payment details.

Respond in the language the patient writes in (Hindi, English or Hinglish). If they seem frustrated, confused, or ask for a person directly, say "Let me connect you with our front desk team" and hand off.'

Exact click path: setting and testing it on Convo360

  1. Open your AI agent settings and paste the structured prompt into the system prompt field.
  2. Attach a knowledge base if the bot should answer from documents, and reference it in the prompt: 'Use the knowledge base for pricing and service details.'
  3. Set an appropriate temperature: lower for a precise, guardrail-heavy bot, higher for a more conversational one.
  4. Use Preview / Try-it to test tricky edge cases: an angry customer, an off-topic question, a request for medical advice, and refine the prompt based on what breaks.

Troubleshooting common issues

IssueFix
Bot ignores a rule occasionallyMake the rule more specific and move it earlier in the prompt; vague or buried rules get followed less consistently.
Bot won't hand off even when askedAdd an explicit trigger phrase list ('talk to a person', 'human', 'agent') to the handoff rule.
Bot answers in the wrong languageMake the language rule more explicit about matching the customer's own message language.
Replies are too long or too shortState a concrete length guide in the tone section, e.g. 'under 3 sentences unless explaining a process'.
Bot discusses pricing it shouldn'tMove pricing rules into the knowledge base and instruct the prompt to defer to it rather than guessing.

What to test before publishing

Run at least five deliberately tricky questions through Preview / Try-it before publishing: an angry or frustrated message, a question completely outside the bot's scope, a direct request for something on the 'don't' list (like medical advice or a discount), a message in a language you're unsure about, and an explicit 'let me talk to a person' request. If any of these produce a response that breaks a rule, tighten that specific section of the prompt and retest. This five-minute check catches most embarrassing failures before a real customer ever sees them.

Step by step

  1. Write the role sectionDescribe who the bot is and what it's for in one or two specific sentences.
  2. Define the toneName a concrete reference point and a reply-length guide.
  3. Write the do/don't listList specific, concrete rules rather than vague guidance.
  4. Add language rulesState which languages to use and how to match the customer's language.
  5. Add the handoff ruleSpecify exactly when the bot should bring in a human, with trigger phrases.
  6. Paste it into the agent settingsAdd the full prompt to your AI agent's system prompt field.
  7. Test edge casesUse Preview / Try-it with tricky, off-script questions before publishing.

Example conversation

My tooth has been hurting for 3 days, what medicine should I take?
I'm not able to advise on medication, but I'd recommend booking a consultation so Dr. Sharma can take a proper look — I have slots available tomorrow morning. Would that work for you?

Write your system prompt free for 14 days

Start free in minutes — no code, no credit card. Bring your own AI keys and pay no per-message markup.

Frequently asked questions

How long should a system prompt be?

Long enough to cover role, tone, do/don't rules, language handling and a handoff rule clearly — usually a few short paragraphs. Longer isn't always better; clarity matters more than length.

Can I change the system prompt after the bot is live?

Yes, at any time. Changes take effect on new conversations going forward — test with Preview before publishing an update to avoid surprising active conversations.

Should the system prompt mention pricing directly?

Only if you're comfortable with it changing rarely, or better, instruct the bot to pull pricing from a connected knowledge base document that you can update independently.

How do I stop the bot from giving medical or legal advice?

State it explicitly as a 'don't' rule in the system prompt, and reinforce it by instructing the bot to always suggest a professional consultation instead of answering directly.

What's the handoff rule and why does it matter?

It's an explicit instruction telling the bot exactly when to stop answering and connect the customer to a human, such as when they seem frustrated or ask for a person — without it, bots tend to keep trying to answer everything themselves.

Do I need a different system prompt for chat and voice agents?

Usually yes, at least in tone — a voice prompt should account for shorter, more natural spoken sentences and explicit acknowledgement phrases, while a chat prompt can use lists and slightly longer replies.

Related reading

Available across India — see WhatsApp & AI calling automation by state and city.