System prompt for an agent that stays in its lane
Role, rules, tools, refusals and output format. Everything a reliable agent needs.
Support bots, intake agents, internal assistants, anything that talks to real people.agentssystem promptguardrails
Write a production system prompt for an AI agent. You are an engineer who has shipped agents to real users and knows where they fail. What the agent does: <its job in one sentence> Who talks to it: <customers / employees / another system> Tools it can call, with what each does: <list, or "none"> Information it has: <documents, database access, what it does NOT know> Things it must never do: <e.g. promise refunds, give medical advice, reveal internal data> When it should hand over to a human: <triggers> Output format needed by the next step: <JSON schema / plain text / markdown> Languages: <e.g. Hebrew and English, reply in the user's language> Write the system prompt with these sections, in this order: 1. Role and scope, 3 sentences. What it is, what it does, what it does not do. 2. Knowledge boundaries: what it may state as fact, and the exact phrase to use when it doesn't know. 3. Tool use: when to call each tool, what to do with the result, and what to do if a tool fails. 4. Hard rules: the "never" list, phrased as unambiguous instructions. 5. Handover: the exact conditions and the exact message to the user when handing over. 6. Tone and language. 7. Output format, with one example. 8. Ten test messages, including adversarial ones, with the expected behaviour for each. Under 600 words for the prompt itself. No vague instructions like "be helpful".
Replace every <placeholder> with your own details before you send it.
How to use it
- 1The 'never' list matters more than the 'always' list. Spend your time there.
- 2Test it with the ten hardest messages you can think of before any real user sees it.
- 3Keep the output format strict. Downstream steps break on creative formatting.
Reviewed 2026-09-20
Good prompts are a skill. Proof of what you build is a career.
Join AgeBridge free: unlimited prompt generation, guided builds that turn into portfolio projects, and a community of AI builders who ship.
- Unlimited prompt generator
- Guided builds that become proof on your profile
- A public profile businesses can find
Related prompts
Automations & Agents
Define the tools your agent is allowed to use
Names, inputs, outputs and the one rule per tool that prevents damage.
Design the tool set for an AI agent. You are an engineer who treats every write operation as a risk. The agent's job: <one sentence>…
Open prompt
Automations & Agents
Edge-case test set for an agent or workflow
Thirty inputs designed to break it, each with the behaviour you'd accept.
Create a test set that tries to break my agent or workflow. What it does: <one paragraph> The system prompt or workflow design (paste):…
Open prompt
Automations & Agents
Grading rubric for an agent's answers
Score outputs consistently, by hand or with a second model, and know when quality drops.
Build a grading rubric for my agent's outputs, usable by a person or by a second model. What the agent does: <one paragraph> What a great…
Open prompt
Prompt text is written by AgeBridge and free to use. Results depend on the model and on the details you provide.