Skip to content

dhanu6799/SDR-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¨ AI SDR Agent with OpenAI Agents SDK

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.

πŸš€ Features

  • 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_email tool (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.

πŸ› οΈ Tech Stack

  • OpenAI LLMs – Text generation
  • OpenAI Agents SDK – Agent orchestration & handoffs
  • SendGrid API – Sending outbound emails
  • Python (async/await) – Concurrency for agent + tool execution

πŸ“‚ Project Structure

. β”œβ”€β”€ 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.

About

An instant business application: create Sales Representatives that craft and send professional emails .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors