
What are agent instructions?
Instructions are the decision-making layer of your agent. Where the global prompt defines how your agent behaves, instructions define when it does things. When a user message comes in, the agent reads its instructions and picks the most appropriate way to handle it. Instructions are written in plain language, not code.| Layer | What it controls | When it applies |
|---|---|---|
| Global prompt | Personality, tone, guardrails | Every agentic turn, always |
| Instructions | Routing, tool selection | When deciding what to do next |
| Playbook | Goal-specific behavior | When a specific playbook is active |
Writing agent instructions
Instructions work best when they’re clear about which tool handles which type of request. Think of it like a brief for a team — each member needs to know what they own. Every playbook, workflow, and tool has a name and an LLM description. You can layer supporting context on top in the agent instructions, or playbook instructions.- Name — what it is. Short and literal.
- LLM description — what it does and when the AI agent should use it. This is the primary signal the agent reads when deciding whether to call a tool or route into a playbook.
- Instructions — any additional context, routing reminders, phrasing rules, or ordering that apply on top of the description.
| Good | Bad | |
|---|---|---|
| Name | Order Status | Handle order related things |
| LLM description | Looks up the status of an existing order by order ID or email. Use when the customer asks about an existing order, a delivery, or tracking info. | Helps customers with orders |
| Instructions | Route to Order Status for any order-related question. If the customer then wants to return or exchange the item, hand off to the Returns workflow. | N/A |

Simple agent insturctions example
Adding a start message
If you want to define an agentic start message in your agent, you can add it to agent instructions.
Testing instructions
See if your agent routed correctly
Check logs the logs section and state viewer to see if your agent is routing correctly
