SAAD-DEV

saad-dev.com / work / inbound_lead_responder

Email agent · human handover

inbound_lead_responder

Six-node email agent. Classifies, extracts, routes on a rules table, drafts a proposal — then hands it to the right team. Nothing goes back to the lead without a person.

$ lead-agent --watch inbox
  1. [classify] inbound → NEW_LEAD 0.7s
  2. [extract] lead fields · 9 keys
  3. [route] rules table → enterprise
  4. [draft] proposal_acme.docx 1.9s
  5. ✓ handover sent · 4 claude calls

What it does

An email agent that reads inbound messages, sorts real leads from spam and support, extracts the lead's details, routes it to the right team using an editable rules table, and drafts a proposal document — then hands it to that team in an internal email, so a person decides what goes back to the lead.

How it works

  • A six-node LangGraph graph: it classifies the email, extracts the lead, routes it, drafts the proposal and hands it over.
  • Routing follows a keyword rules table the team can edit; Claude only breaks ties.
  • Proposals are generated as Word documents with python-docx.
  • At most four Claude calls per lead email.
  • Every run has a node-by-node trace, so you can see why a lead went where it did.

By the numbers

  • 6 nodes
  • ≤4 Claude calls per lead
  • 0 emails sent to the lead automatically

Stack

  • Python
  • LangGraph
  • Anthropic Claude
  • PostgreSQL
  • SQLAlchemy
  • python-docx
  • Streamlit
  • Docker

Questions

Can I run inbound_lead_responder myself?

Yes. It is open source at https://github.com/s-wasim/inbound_lead_responder, and the README walks through running it locally.

Can Saad Waseem build something like inbound_lead_responder for my team?

Yes. He builds production AI agents and automations like this one, remotely from Lahore for teams in the US and EU, at $40/hr for build work. Book 20 minutes from the CV, or email saad@saad-dev.com.