Ultimate AI SDR
Learn how to create a sophisticated AI Sales Development Representative using multiple LLMs and Portkey’s prompt templates
Why This Cookbook?
In today’s fast-paced sales environment, personalization at scale is no longer a luxury—it’s a necessity. Traditional SDR workflows are time-consuming and often result in generic outreach that fails to resonate with prospects. This cookbook demonstrates how to leverage multiple AI models through Portkey’s prompt templates to create a sophisticated, multi-stage SDR system that:
- Generates highly personalized outreach emails
- Conducts real-time prospect research
- Ensures quality and compliance
- Scales efficiently while maintaining personalization
What We’re Building
We’re creating an AI SDR system that combines three specialized agents:
- Main Agent (Claude 3.5 Sonnet): Orchestrates the workflow, generates research queries, and crafts personalized emails
- Researcher (Perplexity Sonar): Conducts real-time web research about prospects
- Evaluator (OpenAI GPT-3.5 Turbo): Reviews and scores emails, ensuring quality and alignment with objectives
The Workflow
- Main Agent gathers requirements and generates research queries
- Researcher performs web searches and provides contextual summaries
- Main Agent crafts initial email using research insights
- Evaluator reviews the email against defined criteria
- Main Agent refines and delivers the final email
How It Works
1. Setting Up the Environment
First, initialize the Portkey client with caching enabled for better performance:
2. Defining Input Variables
Set up your context variables that will be used across all prompt templates:
3. Prompt Templates Overview
Main Agent Template (Claude 3.5 Sonnet)
Researcher Template (Perplexity Sonar)
Evaluator Template (OpenAI GPT-3.5)
4. Implementing the Workflow
Step 1: Requirement Gathering
Step 2: Research Phase
Step 3: Initial Email Generation
Step 4: Email Evaluation
Step 5: Final Email Refinement
Performance and Impact
Metrics
- Time Efficiency: ~45 seconds per personalized email (vs. 30+ minutes manually)
- Cost per Email: ~$0.12 total
- Claude 3.5 Sonnet: $0.06
- Perplexity Sonar: $0.04
- GPT-3.5: $0.02
- Quality Scores: 85-95% match with human-written emails
- Response Rates: 2.5x improvement over template-based emails
Scaling Capabilities
The system can handle:
- 1000+ emails per hour
- Multiple concurrent requests
- Different industry verticals
- Various prospect personas
Best Practices
-
Prompt Template Management
- Version control your templates
- Document changes and improvements
- A/B test different variations
-
Quality Control
- Set minimum quality thresholds
- Implement human review for critical accounts
- Monitor and log evaluation scores
-
Cost Optimization
- Cache research results for similar prospects
- Batch process similar industry segments
- Implement retry logic for failed requests
Conclusion
This AI SDR system showcases the power of Portkey’s prompt templates in creating sophisticated AI workflows. By combining multiple specialized AI models, we’ve created a system that:
- Delivers highly personalized outreach
- Maintains consistent quality
- Scales efficiently
- Provides measurable impact
The system demonstrates how Portkey’s platform can orchestrate complex AI workflows while maintaining simplicity in implementation and management.
Next Steps
- Set up your Portkey account
- Create your prompt templates
- Implement the workflow
- Monitor and optimize
For questions or support, join our Discord community or contact [email protected].
Was this page helpful?