{"product_id":"qualify-leads-with-gpt-4o-mini-webhook-sheets-slack-n8n","title":"Qualify Leads with GPT-4o-mini, Webhook, Sheets \u0026 Slack (n8n)","description":"\u003ch3\u003eAutomatically Qualify Incoming Leads with GPT-4o-mini (Webhook → Sheets Placeholder → Slack)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes lead submissions from a \u003cstrong\u003eWebhook\u003c\/strong\u003e, validates and normalizes the data, then uses \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e (via the OpenAI Chat Completions API) to generate a \u003cstrong\u003equalification score (1–10)\u003c\/strong\u003e, recommended next action, and reasoning—before logging the result and alerting your team in \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 lead data\u003c\/strong\u003e via an HTTP \u003cstrong\u003ePOST\u003c\/strong\u003e request to a webhook endpoint (lead details in the request body).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates required fields\u003c\/strong\u003e: checks for \u003cstrong\u003eemail\u003c\/strong\u003e and \u003cstrong\u003ename\u003c\/strong\u003e, verifies email format, and applies normalization (including 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 GPT-4o-mini\u003c\/strong\u003e: sends the lead details to the OpenAI Chat Completions API to return JSON containing a \u003cstrong\u003escore (1–10)\u003c\/strong\u003e, \u003cstrong\u003ereasoning\u003c\/strong\u003e, and a \u003cstrong\u003esuggested action\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and enriches the record\u003c\/strong\u003e: merges qualification output into the lead payload and flags 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 (currently as a placeholder for writing to Google Sheets\/CRM) and returns a success JSON response with a \u003cstrong\u003esimulated row number\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies Slack\u003c\/strong\u003e via an incoming webhook with a formatted “\u003cstrong\u003enew lead captured\u003c\/strong\u003e” message.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRoute form submissions or app signups to an AI-scored sales pipeline in near real time.\u003c\/li\u003e\n  \u003cli\u003eDetect high-intent leads (score ≥ 7) and alert sales\/ops instantly in Slack.\u003c\/li\u003e\n  \u003cli\u003eStandardize lead payloads before they hit your CRM or Google Sheets.\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\/workflow components\u003c\/strong\u003e: code, webhook, HTTP Request (OpenAI), Slack incoming webhook, and Respond to Webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e: OpenAI Chat Completions API using \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e: incoming webhook post for lead-capture notifications.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup notes:\u003c\/strong\u003e Replace \u003ccode\u003eYOUR_OPENAI_API_KEY\u003c\/code\u003e with a valid OpenAI key (or switch to an n8n OpenAI credential-based node) and update the Slack incoming webhook URL. If you want Google Sheets storage, replace the placeholder logging step with a Google Sheets node.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824206536883,"sku":"N8N-18150","price":8.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/F-hfLH6fx4fJAoXB_QKO3_PsmAHm65.png?v=1786612722","url":"https:\/\/buyflowscripts.com\/products\/qualify-leads-with-gpt-4o-mini-webhook-sheets-slack-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}