Problem
Sales teams spend time manually reviewing every inbound lead. Reading form submissions, estimating fit, deciding who to call first, drafting follow-up. At volume, that is judgment-intensive work that follows the same criteria every time. And the best leads often wait hours for a response while the team manually prioritizes.
Solution
An n8n workflow triggered when a lead submits a form. Claude AI scores them 1 to 10 based on portfolio size, budget, urgency, and fit, then routes automatically. Hot leads (7+) get created in HubSpot CRM and receive a personalized email referencing their specific situation. Cold and warm leads enter a nurture sequence.
Demo
Results
- HubSpot CRM integration live
Webhook trigger receives the lead payload from any form tool (Typeform, Webflow, HubSpot Forms). A Parse Lead Data Code node normalizes and extracts all fields. A Build Scoring Prompt Code node formats the lead as a structured context table and constructs the full Claude messages array with a precise 10-point scoring rubric. An HTTP Request node sends to OpenRouter (Claude 3.5 Sonnet) and receives a structured JSON response. A Parse AI Score Code node extracts the score, tier, reasoning, key signals, and personalization hook, with JSON parse error fallback. An IF node branches on score ≥7. Hot path: HTTP Request creates a HubSpot contact via the CRM v3 API. Gmail sends a warm, personalized email referencing Claude's personalization hook. Slack posts a rich alert with the score, signals, and recommended next step. Google Sheets logs the full run. Cold/warm path: Gmail sends a value-add nurture email. Error Trigger node routes failures to a Slack error alert.
Tech Stack
- n8n
- Claude AI
- HubSpot CRM API
- Gmail API
- Google Sheets API
- Slack
- JavaScript