{"product_id":"qualify-inbound-leads-with-gpt-4o-mini-in-n8n-sheets-slack","title":"Qualify Inbound Leads with GPT-4o-mini in n8n + Sheets + Slack","description":"\u003ch3\u003eAutomatically qualify inbound leads using GPT-4o-mini in n8n—then notify Slack and return a JSON response\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow accepts lead submissions from a webhook, validates and enriches them with an OpenAI Chat Completions qualification score (using \u003cstrong\u003eGPT-4o-mini\u003c\/strong\u003e), logs the result (simulated Sheets\/CRM write), and sends an alert to \u003cstrong\u003eSlack\u003c\/strong\u003e—all in one streamlined flow.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives inbound leads\u003c\/strong\u003e via a webhook endpoint (configured with the path \u003ccode\u003elead-capture\u003c\/code\u003e) sent as a POST request containing at least \u003cstrong\u003eemail\u003c\/strong\u003e and \u003cstrong\u003ename\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and normalizes data\u003c\/strong\u003e: required fields are checked, optional fields like \u003cstrong\u003ecompany\u003c\/strong\u003e and \u003cstrong\u003esource\u003c\/strong\u003e are normalized, and a timestamp is added to the lead record.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQualifies the lead with OpenAI\u003c\/strong\u003e: the workflow calls OpenAI Chat Completions to generate a \u003cstrong\u003eJSON\u003c\/strong\u003e qualification \u003cem\u003escore\u003c\/em\u003e, \u003cem\u003ereasoning\u003c\/em\u003e, and a \u003cem\u003esuggested action\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApplies qualification logic\u003c\/strong\u003e: the lead is marked as qualified when the score is \u003cstrong\u003e7 or higher\u003c\/strong\u003e, and a processed timestamp is added.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the result\u003c\/strong\u003e: it produces a simulated “write to Google Sheets\/CRM” result (replace this with a real Sheets\/CRM node if desired).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies your team in Slack\u003c\/strong\u003e: sends a formatted message through a \u003cstrong\u003eSlack incoming webhook\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns a success payload\u003c\/strong\u003e as a JSON response to the original webhook requester.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams that want to \u003cstrong\u003etriage inbound form leads\u003c\/strong\u003e instantly and reduce manual review.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers building \u003cstrong\u003elead qualification pipelines\u003c\/strong\u003e in n8n with OpenAI-driven scoring.\u003c\/li\u003e\n  \u003cli\u003eOps workflows that need a \u003cstrong\u003eSlack alert\u003c\/strong\u003e whenever a lead is qualified (score ≥ 7).\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\/tools:\u003c\/strong\u003e code, webhook, http request, respond to webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI integration:\u003c\/strong\u003e OpenAI Chat Completions using GPT-4o-mini (via API key or n8n OpenAI credential)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack integration:\u003c\/strong\u003e Slack Incoming Webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets\/CRM:\u003c\/strong\u003e simulated logging step (swap for a real Sheets\/CRM node in your setup)\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup highlights:\u003c\/strong\u003e configure the webhook URL (path \u003ccode\u003elead-capture\u003c\/code\u003e), add your OpenAI authorization, and replace the placeholder Slack webhook URL.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824213352627,"sku":"N8N-18146","price":13.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/tpU_W16hE6N8YkBi4jsJG_tw07Jeq5.png?v=1786612818","url":"https:\/\/buyflowscripts.com\/products\/qualify-inbound-leads-with-gpt-4o-mini-in-n8n-sheets-slack","provider":"N8N Commerce","version":"1.0","type":"link"}