Skip to main content
Design, deploy, and maintain high-quality AI agents. This guide covers architectural patterns, common pitfalls, and proven strategies for success.

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:
  1. Create specialist agents
  2. Create main agent with agent invocation tools
  3. 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:
  1. High priority: Core documentation, FAQs
  2. Medium priority: Detailed guides, tutorials
  3. 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:
Strong:

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:
  1. Run full test suite
  2. Compare scores to baseline
  3. Investigate any regressions
  4. Only deploy if quality maintained

Quality Monitoring

Key Metrics

Thread Evaluator Usage

Enable Thread Evaluator for continuous monitoring:
  1. Configure evaluation criteria
  2. Set dimension weights
  3. Review daily summaries
  4. 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