Design Principles
Single Responsibility
Each agent should have one clear purpose:
A focused agent produces better responses, is easier to test and improve, has clearer escalation paths, and gives you more actionable analytics.
Clear Boundaries
Define what your agent can and cannot do:Graceful Degradation
Plan for what happens when the agent can’t help:Multi-Agent Architecture
When to Use Multiple Agents
Consider multiple agents when:- Different domains require different expertise
- Response styles should vary significantly
- Escalation paths differ between topics
- Permission requirements vary
Agent Routing Pattern
Use a main agent that delegates to specialists:Implementation
Configure agent-as-tool for routing:- Create specialist agents
- Create main agent with agent invocation tools
- Add routing instructions to main agent’s prompt:
Knowledge Configuration
Source Selection
Choose knowledge sources strategically:Source Prioritization
When agents have multiple sources, configure priority:- High priority: Core documentation, FAQs
- Medium priority: Detailed guides, tutorials
- Low priority: Blog posts, announcements
Regular Updates
Establish a knowledge maintenance schedule:Tool Configuration
Essential Tools
Most agents benefit from these tools:Tool Prompt Optimization
Write clear tool descriptions: Weak:Tool Limits
Set appropriate limits to prevent abuse:- HTTP Request: Rate limit external API calls
- Agent Invocation: Limit delegation depth
- Ticketing: Require minimum context before creation
Permission Strategy
User Segmentation
Match agents to user segments:Permission Inheritance
Structure permissions hierarchically:Default Permissions
Configure sensible defaults:- Anonymous: Access to public-facing agents only
- Authenticated: Access to appropriate tier agents
- Admin: Access to all agents for testing
Testing Strategy
Test Coverage
Cover these scenarios:Simulation Testing Workflow
Regression Testing
Before any production change:- Run full test suite
- Compare scores to baseline
- Investigate any regressions
- Only deploy if quality maintained
Quality Monitoring
Key Metrics
Thread Evaluator Usage
Enable Thread Evaluator for continuous monitoring:- Configure evaluation criteria
- Set dimension weights
- Review daily summaries
- Act on flagged conversations
Feedback Loop
Common Pitfalls
Deployment Checklist
Pre-Launch
- Prompt template finalized and reviewed
- Knowledge sources connected and synced
- Tools configured and tested
- Permissions set correctly
- Simulation tests passing
- Escalation path verified
Launch
- Enable for limited user group first
- Monitor initial conversations
- Check for unexpected issues
- Gather early feedback
Post-Launch
- Enable Thread Evaluator
- Set up alerting for low scores
- Schedule regular reviews
- Document learnings
Performance Tips
Response Quality
- Use specific examples in prompts
- Include format guidelines
- Define tone explicitly
- Test with real user questions
Response Speed
- Choose appropriate LLM model
- Use fast model for simple tasks
- Optimize knowledge source size
- Enable reranker for precision
Cost Efficiency
- Match model to complexity
- Limit token usage where possible
- Use caching for common queries
- Monitor usage patterns
Related
- Agents — Agent configuration reference
- Prompt Engineering — Prompt writing techniques
- Simulation Testing — Test your agents
- Thread Evaluator — Monitor conversation quality
- Router Agent — Automatic message routing to specialist agents
