
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 uses skills. When a message comes in, the agent reads its instructions and picks the most appropriate skill to handle it. Instructions are written in plain language, not code.| Layer | What it controls | When it applies |
|---|---|---|
| Global prompt | Personality, tone, guardrails | Every turn, always |
| Instructions | Routing, skill selection | When deciding what to do next |
| Playbook | Goal-specific behavior | When a specific skill is active |
Writing agent instructions
Instructions work best when they’re clear about which skill handles which type of request. Think of it like a brief for a team — each member (skill) needs to know what they own.Naming skills & writing LLM descriptions
Each playbook and workflow (skills) have three things the agent uses when routing: a name, an LLM description, and its routing logic in the agent instructions. They serve different purposes.- Name — what the skill is. Keep it short and literal.
- LLM description — what it does. One sentence, outcome-focused.
- Instructions — when to use it. This is what goes in the instructions field.
| Good | Bad | |
|---|---|---|
| Name | Order Status | Handle order related things |
| LLM description | Looks up the status of an existing order by order ID or email | Helps customers with orders |
| Instructions | Route to the Order Status playbook when the user asks about their existing orders. | 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
