{"product_id":"ai-lead-scoring-n8n-workflow-gpt-4o-mini-sheets-slack","title":"AI Lead Scoring n8n Workflow: GPT-4o-mini, Sheets \u0026 Slack","description":"\u003ch3\u003eInstant AI lead scoring in n8n—webhook in, qualification score + Slack alert out\u003c\/h3\u003e\n\u003cp\u003eTurn every incoming lead submission into a clear \u003cstrong\u003eAI lead scoring\u003c\/strong\u003e decision. This n8n workflow accepts lead data via webhook, validates it, uses \u003cstrong\u003eOpenAI (Chat Completions, GPT-4o-mini)\u003c\/strong\u003e to generate a 1–10 qualification score and recommended next step, logs the result (placeholder for Google Sheets\/CRM), and posts a formatted notification to \u003cstrong\u003eSlack\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives leads\u003c\/strong\u003e by handling a \u003cem\u003ePOST\u003c\/em\u003e request on a webhook endpoint with 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, verifies email format, and normalizes the lead data with defaults and a timestamp.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScores and recommends actions\u003c\/strong\u003e by sending the lead to the \u003cstrong\u003eOpenAI Chat Completions API\u003c\/strong\u003e to generate:\n    \u003cul\u003e\n      \u003cli\u003ea \u003cstrong\u003equalification score\u003c\/strong\u003e from \u003cstrong\u003e1 to 10\u003c\/strong\u003e\n\u003c\/li\u003e\n      \u003cli\u003ereasoning\u003c\/li\u003e\n      \u003cli\u003ea suggested next action\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses results\u003c\/strong\u003e, merges the AI output back into the lead record, and flags the lead as \u003cstrong\u003equalified when the score is 7+\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the processed lead\u003c\/strong\u003e as a stand-in for \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e or a \u003cstrong\u003eCRM\u003c\/strong\u003e, then returns a success JSON payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAlerts your team on Slack\u003c\/strong\u003e using a Slack \u003cstrong\u003eincoming webhook\u003c\/strong\u003e with a “new lead captured” message.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns JSON to the caller\u003c\/strong\u003e as the webhook response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eQualify inbound leads captured from forms or SaaS signup flows with a score that drives routing.\u003c\/li\u003e\n  \u003cli\u003eNotify sales\/ops instantly in Slack when a new lead is captured and scored (7+ flagged as qualified).\u003c\/li\u003e\n  \u003cli\u003ePrototype lead pipelines before wiring the placeholder log step to Google Sheets or a CRM.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e (incoming POST endpoint) + \u003cstrong\u003eRespond to Webhook\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e node for validation, normalization, and parsing\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e node(s) for \u003cstrong\u003eOpenAI Chat Completions\u003c\/strong\u003e and \u003cstrong\u003eSlack incoming webhook\u003c\/strong\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eSetup is straightforward: add your \u003cstrong\u003eOpenAI API key\u003c\/strong\u003e in the Authorization header, configure your \u003cstrong\u003eSlack webhook URL\u003c\/strong\u003e, and (optionally) replace the placeholder logging step with a \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e or \u003cstrong\u003eCRM\u003c\/strong\u003e node.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824205226163,"sku":"N8N-18160","price":3.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/mOu2K_zjF9TSmEtHHLE5l_3HAyMi5h.png?v=1786612468","url":"https:\/\/buyflowscripts.com\/products\/ai-lead-scoring-n8n-workflow-gpt-4o-mini-sheets-slack","provider":"N8N Commerce","version":"1.0","type":"link"}