Lab build

Sales outreach agents

Sales manager agent compares cold emails from three writer agents and sends the best via SendGrid.

Role
Builder, end to end
Group
Agents and MCP
Services
AI & LLM systems

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

  1. 01

    Three writer agents run concurrently with asyncio to produce alternative cold emails.

  2. 02

    Writer agents are exposed as tools to a sales manager agent, which picks the best draft.

  3. 03

    Handoff to an email manager agent that adds a subject line, converts to HTML and sends via SendGrid.

  4. 04

    Input guardrail agent with structured output trips when the request includes a personal name.

The pipeline, layer by layer

Four layers, one pipeline.

  1. L1Orchestrator

    • Sales manager agent
  2. L2Drafting

    • Three sales agents
    • Gemini, DeepSeek, Grok
  3. L3Safety

    • Name input guardrail
  4. L4Delivery

    • Email manager handoff
    • SendGrid email

Stack

  • OpenAI Agents SDK
  • asyncio
  • SendGrid
  • Pydantic
  • Gemini
  • DeepSeek
  • Grok

Next lab build · 36 / 46

Career alter-ego chatbot

Chatbot that answers as a person from their LinkedIn PDF, logging leads and unanswered questions.

Previous: CrewAI stock picker

Need a system like this in production? Tell us about it.