Multi-agent pipeline · Python · FastAPI · Streamlit
A fully automated system that takes inbound sales leads and decides — without any human — whether they're worth a sales rep's time.
When a sales lead fills out a demo form, the system automatically enriches their data, scores them, asks follow-up questions, and either routes them to a rep or filters them out — with zero human involvement.
The first gate. It checks that the email address is real and not from a disposable domain, normalizes capitalization on names and company names, and saves a clean record to the database. If the email has already been processed, it catches that too — no duplicates.
Fills in the blanks. Takes the email domain and looks up the company — industry, employee count, revenue range, and location. Known companies are matched from a database. Unknown companies get synthetic but realistic data generated automatically.
Points are awarded based on how closely the lead matches the ideal customer profile. Clear cutoffs determine what happens next.
| Criteria | Points | Why it matters |
|---|---|---|
| 50–500 employees | +25 | Sweet spot — not too small, not enterprise |
| Target industry | +20 | SaaS, FinTech, HealthTech, etc. |
| Director+ title | +20 | Has decision-making authority |
| US-based | +10 | Primary target market |
| Budget indicated | +25 | Strongest buying signal on the form |
For leads that scored 60 or higher, this agent sends a follow-up email asking four BANT questions — Budget, Authority, Need, and Timeline. The lead's reply is then parsed by an LLM (or rule-based fallback) to extract structured answers and adjust the final score.
Only SQL-tier leads reach this agent. It round-robins assignment across the sales team, generates a unique booking link with a Calendly-style URL, fires a Slack alert with the full lead summary, and logs everything to HubSpot or Salesforce. All integrations are simulated when keys aren't configured.
Based on a realistic B2B SaaS company receiving 300 demo requests per month, with a $70/hr average rep cost.
The full codebase — all five agents, the Streamlit dashboard, data generators, mock enrichment database, and FastAPI backend — is on GitHub.
View on GitHub