Skip to main content
Inbound Lead Triage Engine project overview
All work

Inbound Lead Triage Engine

Inbound leads sat in a shared inbox for up to nine hours before anyone read them. We replaced the inbox with a classifier that routes every lead in under a minute.

Client
B2B SaaS, 40-person sales org
Industry
SaaS
Year
2025
Built with
  • n8n
  • OpenAI
  • HubSpot
  • Slack
  • Postgres

The situation

Marketing was spending well into five figures a month driving demo requests into a shared inbox that two SDRs checked between calls. Median time-to-first-touch was just over nine hours, and roughly a fifth of requests were never answered at all.

The team had already tried routing rules in their CRM. They broke constantly, because the signal that actually mattered — what the prospect wrote in the free-text field — was invisible to a rules engine.

What I built

I built an n8n workflow that fires on every form submission, enriches the record, and passes the free-text message to a classifier prompt that returns a structured verdict: segment, urgency, likely budget band, and a one-line summary for the rep.

High-intent leads are written straight into the CRM with an owner assigned and posted into a Slack channel with a claim button. Everything else is queued for a nurture sequence. Every classification is logged to Postgres with the raw model output, so a bad call can be traced and the prompt corrected rather than argued about.

The workflow ships with a documented failure path: if the model call fails twice, the lead routes to a human queue rather than being dropped silently.

How it runs

The actual workflow, laid out as it was built. Drag to pan, ctrl-scroll to zoom, or open it fullscreen.

20 steps, as a list
  1. HTTP RequestSERAMAN | Render Final Video
  2. Edit FieldsSERAMAN | Store Creatomate Render ID
  3. WaitSERAMAN | Wait Creatomate
  4. HTTP RequestSERAMAN | Check Creatomate Status
  5. IfSERAMAN | Is Render Done
  6. Edit FieldsSERAMAN | Extract Final Video URL
  7. Edit FieldsSERAMAN | Increment Creatomate Attempt
  8. IfSERAMAN | Creatomate Max Attempts
  9. Called by another workflowStart
  10. Google SheetsGet row(s) in sheet
  11. CodeCode in JavaScript
  12. Google SheetsGet row(s) in sheet1
  13. Google SheetsUpdate row in sheet
  14. Google SheetsGet row(s) in sheet2
  15. Google SheetsUpdate row in sheet1
  16. Edit FieldsEdit Fields
  17. CodeSERAMAN | Take Most Recent Sheet3 Row
  18. GmailSERAMAN | Creatomate Render Timeout Alert
  19. IfSERAMAN | Render Failed?
  20. CodeSERAMAN | Halt After Render Failure

The outcome

9h to 4min

median time to first touch

Median time-to-first-touch fell from nine hours to under four minutes. The unanswered-lead rate went to zero, because there is no longer a queue a human has to remember to check. Two SDR hours a day went back to actual selling.

Answers from this site. Anything else reaches Adelaja.