Case study 01
BuildIQ — AI Lead Intelligence Pipeline
AI-powered lead intelligence workflow that validates incoming leads, performs AI analysis and scoring, stores results in Supabase, handles processing failures, and sends successful-processing notifications.
- n8n
- Claude API
- Supabase
- Gmail
- Webhooks

How it works
- 01Receive lead via webhook / REST API intake.
- 02Validate and normalize the submitted lead data in n8n.
- 03Build the Claude request and run the AI analysis on the lead.
- 04Parse the structured AI output and derive a lead score.
- 05Save the processed lead and score to Supabase.
- 06Send the notification email via Gmail and return a success response.
Business problem
Inbound leads arrive in inconsistent shapes and have to be read, judged and prioritised by hand, which delays follow-up and leaves no record of how a lead was assessed.
Solution
A single n8n workflow standardises every submission, runs an AI analysis and scoring step on it, persists the result to a database, and notifies the right recipient — so qualification happens automatically the moment a lead arrives.
Error handling & reliability
- Invalid input stops the flow and returns an HTTP 400 response.
- Failed AI analysis or save builds an AI-failed record and returns an HTTP 500 response.
- Success and failure paths stay separate so a failure never produces a false success.





















