What Are Agent Instructions?
Agent instructions are like a job description for your AI agent. They tell the agent:- What your business does and what you offer
- How to talk to customers and what tone to use
- What information to provide and how to find it
- How to handle different situations and when to escalate
- What your brand personality is and how to represent it
Why Instructions Matter
Good instructions make your agents:- More helpful - They understand what users need
- More accurate - They provide correct information
- More consistent - They behave the same way every time
- More professional - They represent your brand well
Instruction Writing Framework
The STAR Framework
Use this framework to write comprehensive instructions: S - Situation: What is your business and what do you do? T - Task: What should your agent help with? A - Action: How should your agent behave and respond? R - Result: What outcomes should your agent achieve?Instruction Components
Your instructions should include:- Agent Identity - Who the agent is and what role they play
- Business Context - What your company does and offers
- Responsibilities - What the agent should help with
- Behavior Guidelines - How the agent should behave
- Company Information - Important details about your business
- Escalation Procedures - When and how to escalate issues
Writing Effective Instructions
Step 1: Define Your Agent’s Identity
Start by clearly defining who your agent is:- Use a friendly, approachable name
- Clearly define the agent’s role
- Include your company name
- Make it personal and human-like
Step 2: Describe Your Business
Provide context about what your company does:- Be specific about what you do
- Include your target market
- Mention key products or services
- Keep it concise but informative
Step 3: Define Responsibilities
Clearly state what your agent should help with:- List 3-5 main responsibilities
- Be specific about what to help with
- Focus on common user needs
- Include both information and assistance
Step 4: Set Behavior Guidelines
Tell your agent how to behave and communicate:- Set the tone and style
- Include communication guidelines
- Specify how to handle uncertainty
- Emphasize helpfulness and accuracy
Step 5: Provide Company Information
Include important details about your business:- Include essential business details
- Provide contact information for escalation
- Mention business hours if relevant
- Include location if it matters for your business
Step 6: Define Escalation Procedures
Tell your agent when and how to escalate issues:- Define when to escalate
- Provide specific contact information
- Explain the escalation process
- Set expectations for response time
Complete Instruction Examples
E-commerce Support Agent
SaaS Application Agent
Service Business Agent
Instruction Writing Tips
Do’s
Be specific and detailed:- Include specific examples
- Provide clear guidelines
- Give concrete instructions
- Use specific language
- Explain what your company does
- Mention your products or services
- Include relevant business information
- Provide contact details
- Define what the agent should help with
- Specify how to handle different situations
- Include escalation procedures
- Set behavior guidelines
- Match your company’s tone
- Include your brand personality
- Use language that reflects your values
- Maintain consistency with your brand
Don’ts
Avoid being too generic:- Don’t use generic templates without customization
- Don’t leave out important business context
- Don’t use vague or unclear language
- Don’t skip important details
- Keep instructions focused and concise
- Avoid unnecessary repetition
- Use clear, direct language
- Focus on the most important information
- Include contact information
- Mention business hours
- Provide escalation procedures
- Include relevant business context
Testing Your Instructions
Test with Sample Questions
After writing instructions, test them with questions like:- “Hello, can you help me?”
- “What does your company do?”
- “How can I contact support?”
- “What are your business hours?”
Verify Agent Behavior
Check that your agent:- Responds appropriately to different types of questions
- Uses the right tone and style
- Provides accurate information about your business
- Handles edge cases appropriately
Iterate and Improve
Based on testing:- Refine instructions for better clarity
- Add missing information that users need
- Adjust tone and style to match your brand
- Improve escalation procedures if needed
Common Instruction Mistakes
Too Generic
Problem: Instructions are too generic and don’t provide enough context Solution: Add specific business information and contextToo Vague
Problem: Instructions are unclear about what the agent should do Solution: Be more specific about responsibilities and behaviorMissing Context
Problem: Agent doesn’t understand the business context Solution: Include more information about your company and servicesNo Escalation Plan
Problem: Agent doesn’t know when or how to escalate issues Solution: Add clear escalation procedures and contact informationNext Steps
Now that you can write effective agent instructions, you’re ready to:- Create your first agent - Build an AI assistant with your instructions
- Assign knowledge - Give your agent access to your information
- Test in the playground - Verify your agent works correctly
- Create integrations - Deploy your agent to your website
Getting Help
If you need assistance with agent instructions:- Check the troubleshooting guide for common issues
- Review instruction examples for inspiration
- Test your instructions with sample questions
- Contact support for additional help