
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
- HTTP RequestSERAMAN | Render Final Video
- Edit FieldsSERAMAN | Store Creatomate Render ID
- WaitSERAMAN | Wait Creatomate
- HTTP RequestSERAMAN | Check Creatomate Status
- IfSERAMAN | Is Render Done
- Edit FieldsSERAMAN | Extract Final Video URL
- Edit FieldsSERAMAN | Increment Creatomate Attempt
- IfSERAMAN | Creatomate Max Attempts
- Called by another workflowStart
- Google SheetsGet row(s) in sheet
- CodeCode in JavaScript
- Google SheetsGet row(s) in sheet1
- Google SheetsUpdate row in sheet
- Google SheetsGet row(s) in sheet2
- Google SheetsUpdate row in sheet1
- Edit FieldsEdit Fields
- CodeSERAMAN | Take Most Recent Sheet3 Row
- GmailSERAMAN | Creatomate Render Timeout Alert
- IfSERAMAN | Render Failed?
- 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.
