{"product_id":"lead-capture-qualification-n8n-workflow-gpt-4o-mini-sheets-slack","title":"Lead Capture \u0026 Qualification n8n Workflow: GPT-4o-mini + Sheets + Slack","description":"\u003ch3\u003eTurn new lead submissions into qualified opportunities—automatically\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003eLead Capture \u0026amp; Qualification n8n Workflow\u003c\/strong\u003e receives lead details on an \u003cstrong\u003en8n webhook\u003c\/strong\u003e, validates and normalizes the data, then uses \u003cstrong\u003eOpenAI Chat Completions (GPT-4o-mini)\u003c\/strong\u003e to generate a \u003cstrong\u003e1–10 qualification score\u003c\/strong\u003e, reasoning, and a recommended next action. It logs the result and sends a \u003cstrong\u003eSlack\u003c\/strong\u003e notification—then returns a JSON response to the caller.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAccepts POST lead submissions\u003c\/strong\u003e via an \u003cstrong\u003en8n webhook\u003c\/strong\u003e (lead details in the request body).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates required fields\u003c\/strong\u003e: checks that \u003cstrong\u003eemail\u003c\/strong\u003e and \u003cstrong\u003ename\u003c\/strong\u003e are present.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnsures email format is valid\u003c\/strong\u003e and \u003cstrong\u003enormalizes the payload\u003c\/strong\u003e with defaults such as \u003cstrong\u003esource\u003c\/strong\u003e and a \u003cstrong\u003etimestamp\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQualifies the lead with OpenAI\u003c\/strong\u003e by sending the lead data to the \u003cstrong\u003eOpenAI Chat Completions API\u003c\/strong\u003e, returning JSON containing:\n    \u003cul\u003e\n      \u003cli\u003ea \u003cstrong\u003equalification score (1–10)\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003e\u003cstrong\u003ereasoning\u003c\/strong\u003e\u003c\/li\u003e\n      \u003cli\u003e\u003cstrong\u003esuggested action\u003c\/strong\u003e\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses results\u003c\/strong\u003e and merges them with the original lead data, flagging the lead as \u003cstrong\u003equalified when the score is 7 or higher\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the processed lead\u003c\/strong\u003e (as a placeholder for Google Sheets\/CRM) and generates a \u003cstrong\u003esimulated row reference\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies your team in Slack\u003c\/strong\u003e with a formatted “new lead captured” message including \u003cstrong\u003ename\u003c\/strong\u003e, \u003cstrong\u003eemail\u003c\/strong\u003e, \u003cstrong\u003escore\u003c\/strong\u003e, and \u003cstrong\u003esuggested action\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds back with JSON\u003c\/strong\u003e to the webhook caller.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eScore inbound form leads from your website and alert your sales channel in \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eQualify leads captured by a CRM or marketing tool by posting to the \u003cstrong\u003en8n webhook\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eAutomate lead triage: route “qualified” leads (score ≥ 7) for immediate follow-up.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\u003c\/strong\u003e: code, webhook, http request, respond to webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e: OpenAI Chat Completions using \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e (request includes your OpenAI API key)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e: posts via your \u003cstrong\u003eSlack incoming webhook URL\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003eOutput: returns a \u003cstrong\u003eJSON response\u003c\/strong\u003e after qualification and notification\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824223183027,"sku":"N8N-18135","price":18.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/Zkeq8VTOOhqJGr7c-CwRh_UXFot0tk.png?v=1786613102","url":"https:\/\/buyflowscripts.com\/products\/lead-capture-qualification-n8n-workflow-gpt-4o-mini-sheets-slack","provider":"N8N Commerce","version":"1.0","type":"link"}