Sales outreach agents
Sales manager agent compares cold emails from three writer agents and sends the best via SendGrid.
What it does
Three sales agents with different styles are wrapped as tools for a sales manager agent, which compares their drafts and hands off to an email manager that writes the subject, formats HTML and sends through SendGrid. Drafting agents can run on Gemini, DeepSeek or Grok through OpenAI-compatible endpoints, and an input guardrail with structured output blocks requests that contain a personal name.
What was built
- 01
Three writer agents run concurrently with asyncio to produce alternative cold emails.
- 02
Writer agents are exposed as tools to a sales manager agent, which picks the best draft.
- 03
Handoff to an email manager agent that adds a subject line, converts to HTML and sends via SendGrid.
- 04
Input guardrail agent with structured output trips when the request includes a personal name.
The pipeline, layer by layer
Four layers, one pipeline.
L1Orchestrator
- Sales manager agent
L2Drafting
- Three sales agents
- Gemini, DeepSeek, Grok
L3Safety
- Name input guardrail
L4Delivery
- Email manager handoff
- SendGrid email