This project explores how to build an AI-powered Sales Development Representative (SDR) using the OpenAI Agents SDK.
The agent can draft, personalize, and send marketing emails automatically β simulating the workflow of an SDR team.
- Sales Manager Agent: Orchestrates SDR agents and tool execution.
- SDR Persona Agents:
- Professional Sales Agent
- Engaging Sales Agent
- Busy Sales Agent
- Tool Integration: Custom
send_emailtool (via SendGrid API) to deliver messages. - Handoffs: Manager delegates β SDR generates draft β Email tool sends.
- Async Execution: Built with Python coroutines to handle multiple agents efficiently.
- Guardrails: Structured prompts ensure tone, personalization, and content quality.
- OpenAI LLMs β Text generation
- OpenAI Agents SDK β Agent orchestration & handoffs
- SendGrid API β Sending outbound emails
- Python (async/await) β Concurrency for agent + tool execution
. βββ 1_lab1.ipynb # Foundations lab
βββ 2_lab2.ipynb # SDR Agent implementation
βββ send_email.py # Custom email sending tool (SendGrid)
βββ traces/ # Agent execution traces
βββ README.md # Project documentation
π§βπ» Example Workflow
Sales Manager agent triggers.
Chooses a persona agent (Professional, Engaging, or Busy).
SDR agent drafts the email using OpenAI LLM.
Email draft is handed off to send_email tool.
Message lands in recipientβs inbox.
π‘ Learnings
Agents coordinate tasks via handoffs.
Tools extend agentsβ capabilities (e.g., sending emails).
Guardrails keep outputs on-brand.
Async functions improve execution speed.