AI Solutions

    Chatbot Prompt Design: How to Write Instructions That Keep Your Bot On-Brand

    Learn how to design chatbot prompts: structure, tone, rules, handover, and testing, so your AI assistant is accurate, helpful, and consistent with your brand.

    8SolveAI Team4 min read

    A chatbot's behaviour depends heavily on its instructions, often called the system prompt. A vague prompt gives vague, inconsistent answers. A well-designed one produces a chatbot that is helpful, accurate, and sounds like your brand.

    This guide covers practical chatbot prompt design: what to include, how to structure it, and how to test it. It applies to customer support, sales, and internal assistants. For the bigger picture, see our guide to AI customer support chatbots.

    What is a system prompt?

    It is a set of instructions that the chatbot reads before every conversation. It tells the model who it is, what it should do, how it should speak, and what it must not do. The user does not see it, but it shapes every reply.

    A structure that works

    A clear structure makes prompts easier to write and maintain. Consider these sections:

    1. Role and goal

    State who the assistant is and what it is for.

    You are the virtual assistant for [Company]. Your goal is to help customers with questions about our products, orders, and policies.

    2. Scope

    Say what is in and out of scope.

    Only answer questions about [Company]'s products, orders, delivery, and returns. For anything else, politely say you cannot help with that and offer to connect the customer with our team.

    3. Tone and style

    Describe the voice so replies feel on-brand.

    Be friendly, clear, and concise. Use plain language, short sentences, and no jargon. Address the customer by name when known.

    4. Knowledge rules

    Tell the bot where its answers must come from.

    Answer only using the information provided in the knowledge base. If the answer is not there, say you are not sure and offer to connect the customer with a team member. Never invent prices, dates, or policies.

    This works best with a retrieval setup. We explain it in our RAG chatbot guide.

    5. Handover rules

    Define clearly when to pass to a human.

    Hand over to a person if the customer asks for one, is upset, mentions a complaint, a refund dispute, a legal issue, or if you are unsure after two attempts.

    6. Safety and privacy

    Do not ask for passwords or full card numbers. Do not give legal, medical, or financial advice. If someone describes an emergency, tell them to contact the appropriate emergency service.

    7. Format

    Keep replies under 80 words unless the customer asks for detail. Use bullet points for steps. End by asking if there is anything else you can help with.

    Principles for better prompts

    • Be specific. "Be helpful" is vague. "Answer in three sentences or fewer and offer a next step" is clear.
    • Say what to do, not just what to avoid. Give the bot a positive instruction as well.
    • Use examples. A few sample questions with ideal answers show the model the target.
    • Keep it organised. Short sections beat one long paragraph.
    • Prioritise rules. Put the most important rules clearly, such as safety and handover.
    • Avoid contradictions. Conflicting instructions confuse the model.

    Examples help a lot

    Include two or three examples of good responses, including a tricky one:

    Customer: "Where is my order?" Ideal answer: "I can help with that! Could you share your order number? I'll check the status for you."

    Customer: "This is ridiculous, I want to speak to someone." Ideal answer: "I'm sorry for the frustration. I'll connect you with a team member right away."

    Test your prompt

    Prompts need testing like any other part of the product:

    1. Collect real questions from your tickets, including awkward ones.
    2. Test edge cases. Off-topic questions, angry customers, attempts to make the bot ignore its rules, and requests in different languages.
    3. Check accuracy. Compare answers with your source content.
    4. Review tone. Does it sound like your brand?
    5. Check handover. Does it escalate when it should?
    6. Keep a test set and re-run it whenever you change the prompt or model.

    Maintain it over time

    • Version your prompts so you know what changed and when.
    • Review real conversations each month.
    • Update when products, policies, or tone change.
    • Assign an owner responsible for quality.

    Common mistakes

    • Writing one huge, unstructured prompt
    • Not telling the bot what to do when it does not know
    • Skipping handover rules
    • Never reviewing real conversations
    • Letting the prompt grow with patches until it contradicts itself

    Prompts are only part of the system

    A good prompt helps, but reliability also depends on good source content, retrieval, guardrails, testing, and monitoring. If you use prompts inside automations, our n8n tutorial shows a practical example.

    Build it with us

    We design chatbots with well-tested instructions, grounded knowledge, and smooth human handover. See our chatbot development service, or book a free consultation.

    Have a project in mind?

    Tell us what you want to build and we will suggest the simplest path to get there.

    Keep reading

    All articles