How do I write effective AI agent instructions?
Last updated: November 5, 2026
Effective AI agent instructions give the agent a clear role, workflow, rules, and fallback paths. Well-structured instructions make agent behavior more predictable across messaging and calls.
Before you start
Decide the agent’s purpose, audience, and main workflow.
List the intents the agent should handle.
Identify when the agent should use knowledge, tools, or escalation.
Steps
Open the AI agent you want to configure.
Go to the instructions section.
Set the beginning message in its dedicated field if the agent uses calls.
Define the agent’s identity, tone, and communication style.
Write one or two sentences describing the agent’s objective.
Add a numbered primary workflow.
Add intent handling sections for common scenarios.
Add tool and knowledge usage guidance.
Add rules and guardrails.
Add fallback and escalation logic.
Add call ending rules when the agent handles calls.
Save and test the agent in preview.
Tips
Use clear headings and numbered lists.
Keep each instruction focused on one action.
Use explicit language such as “always,” “never,” and “only when” for guardrails.
Define what the agent should do when it is confused, interrupted, or missing information.
Test frequently and simplify instructions if behavior becomes inconsistent.
Troubleshooting
The agent skips steps: Rewrite the workflow as a numbered sequence.
The agent hallucinates: Add guardrails that tell it not to invent information.
The agent ignores tools: Add a tool usage section with trigger conditions.
The agent gives inconsistent answers: Remove conflicting instructions and clarify priority order.