{"product_id":"webhook-lead-capture-ai-qualification-with-slack-alerts","title":"Webhook Lead Capture \u0026 AI Qualification with Slack Alerts","description":"\u003ch3\u003eCapture leads via Webhook, auto-qualify them with OpenAI, and alert your team in Slack\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives new lead submissions through a \u003cstrong\u003eWebhook\u003c\/strong\u003e, validates and enriches the data with an \u003cstrong\u003eOpenAI qualification score\u003c\/strong\u003e (1–10), logs the processed result for Google Sheets\/CRM handling, and sends a \u003cstrong\u003e“new lead”\u003c\/strong\u003e notification to \u003cstrong\u003eSlack\u003c\/strong\u003e—then returns a JSON response to the webhook caller.\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 a POST request on a webhook endpoint (at minimum: \u003cem\u003ename\u003c\/em\u003e and \u003cem\u003eemail\u003c\/em\u003e; optionally \u003cem\u003ecompany\u003c\/em\u003e and \u003cem\u003esource\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and normalizes inputs\u003c\/strong\u003e: checks required fields, validates email format, normalizes optional fields, and adds timestamps.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eQualifies the lead with OpenAI\u003c\/strong\u003e: sends the lead details to OpenAI \u003cstrong\u003eChat Completions (gpt-4o-mini)\u003c\/strong\u003e to generate a 1–10 qualification score, reasoning, and a suggested next action.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses results safely\u003c\/strong\u003e: flags the lead as \u003cem\u003equalified\u003c\/em\u003e when the score is \u003cstrong\u003e7 or higher\u003c\/strong\u003e, and includes a fallback default score if the model output is not valid JSON.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrepares a logging payload\u003c\/strong\u003e: creates a processed result payload intended for \u003cstrong\u003eGoogle Sheets\/CRM logging\u003c\/strong\u003e (simulated in this template) and generates a placeholder row reference.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies via Slack\u003c\/strong\u003e: posts a formatted “new lead” alert to Slack using a \u003cstrong\u003eSlack Incoming Webhook\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns a JSON response\u003c\/strong\u003e back to the webhook caller with the processing outcome.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn form submissions into actionable sales leads with AI-assisted qualification.\u003c\/li\u003e\n  \u003cli\u003eRoute high-intent leads (score ≥ 7) faster by triggering Slack alerts for your sales\/support team.\u003c\/li\u003e\n  \u003cli\u003eCentralize lead intake from SaaS apps or landing pages into Google Sheets\/CRM-ready records.\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\/blocks used\u003c\/strong\u003e: code, webhook, http request, respond to webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\u003c\/strong\u003e: OpenAI Chat Completions (\u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e) and \u003cstrong\u003eSlack Incoming Webhook\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore behavior\u003c\/strong\u003e: validates required fields and email format; computes qualification score (1–10) and qualified flag (≥ 7); posts to Slack; returns JSON.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eBest for:\u003c\/strong\u003e n8n users, automation engineers, and SaaS operators who need a reliable \u003cstrong\u003ewebhook lead capture + AI qualification\u003c\/strong\u003e workflow with real-time Slack alerts.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45824211746995,"sku":"N8N-18147","price":38.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/OXQb_0yxnqOCf6lap2NSj_gZtAvY4o.png?v=1786612797","url":"https:\/\/buyflowscripts.com\/products\/webhook-lead-capture-ai-qualification-with-slack-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}