Book a Free Consultation →
AI Agents · How-To Guide

How to Write a System Prompt for a Business AI Agent.

A good system prompt is an operating manual, not a personality. Structure it around scope, tools, output, and escalation.

By BotDevelopment Engineering Team Intermediate 8 min read Updated November 2026

Most business agent prompts fail because they describe a persona and hope behaviour follows. A production prompt is closer to a job description: what the agent is responsible for, what it may touch, what it must return, and when it must stop and ask.

What You’ll Walk Away With

A versioned system prompt with explicit role, scope, tool rules, output format, escalation conditions, and a small test set of cases.

Step-by-step

  1. State the role and the boundary

    Open with one or two sentences that name the job and the limit. For example: “You qualify inbound support requests and prepare a draft reply. You do not issue refunds or change account settings.” The boundary matters more than the persona.

    Tip: Write the boundary as a list of things the agent must not do, not as a vague instruction to be careful.

  2. Define the tools it may use

    List each tool, when it should be called, and what it returns. Tell the agent to use a lookup rather than guess. If a tool fails, specify whether to retry once, use a fallback, or escalate.

    Tip: Name tools exactly as they appear in your function definitions. Ambiguous names cause wrong calls.

  3. Specify the output contract

    Describe the exact shape of the response: fields, allowed values, and what to do when a field is unknown. A structured contract makes the agent testable and prevents free-form answers from leaking into downstream systems.

    Tip: Use a JSON schema if the output feeds another system. Include an explicit “unknown” option.

  4. Encode escalation rules

    Write down the conditions that require a human: legal or compliance language, angry customers, amounts above a threshold, missing data, or conflicting instructions. Tell the agent exactly who to hand off to and what context to include.

    Tip: Make escalation a success case, not a failure. The agent should be rewarded for recognising its limits.

  5. Add refusal and safety boundaries

    State what the agent must never do: invent policy, promise a delivery date, share another customer’s data, or give legal advice. Pair each refusal with a useful alternative, such as offering to connect the person to a specialist.

    Tip: Avoid long lists of prohibitions without alternatives. They make the agent unhelpful rather than safe.

  6. Include a few worked examples

    Add three to five short examples showing input, reasoning summary, and expected output, including one escalation and one missing-data case. Examples teach format and judgment better than another paragraph of instructions.

    Tip: Keep examples realistic and anonymised. Do not paste customer data into the prompt.

  7. Version and test before launch

    Store the prompt in version control and run it against your example set whenever it changes. Track which version produced which output. A prompt without a test set is an experiment, not a production asset.

    Tip: Keep a changelog of what changed and why. Prompt regressions are hard to spot without one.

Common questions

How long should a system prompt be?

Long enough to cover scope, tools, output, and escalation, and short enough that a new team member could read it in a few minutes. Most business prompts do not need to be thousands of words.

Should the prompt include company tone of voice?

Yes, briefly, but tone is secondary to scope and output. A friendly agent that invents policy is worse than a plain one that escalates correctly.

How often should we update the prompt?

Update it when the task, tools, or escalation rules change, and re-run the test set each time. Avoid tweaking it casually in production.

Keep Reading

More guides from the same library.

Ready to Automate Your Business?

Tell us about your operations. We will help identify practical automation opportunities and recommend the right approach for your business.

Book a Free Consultation →