Prompt · Agents
Draft a system prompt for an AI agent
Write a robust system prompt that defines an agent's role, tools, and guardrails.
Recommended context
The agent's job, the tools it can call, and what it must never do.
The prompt
Help me write a system prompt for an AI agent.
Job: {{job}}.
Tools available: {{tools}}.
Must never: {{constraints}}.
Produce a system prompt that covers: the agent's role and goal, how and when to use each tool, how to handle uncertainty and missing info, output format, and explicit guardrails. Make it precise and unambiguous. Then list 3 edge cases the prompt should be tested against.Variables to customize
- {{job}}
- What the agent should do
- {{tools}}
- Tools/functions it can call
- {{constraints}}
- Hard limits and refusals
Good follow-ups
- Write 5 test conversations that probe the guardrails.
- Tighten the prompt to reduce token usage without losing clarity.