{"product_id":"n8n-webhook-lead-qualification-with-openai-json-scoring","title":"n8n Webhook Lead Qualification with OpenAI JSON Scoring","description":"\u003ch3\u003eTurn every inbound lead into a scored, prioritized action—automatically\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003en8n Webhook Lead Qualification with OpenAI JSON Scoring\u003c\/strong\u003e workflow receives new lead form submissions via a webhook, normalizes the contact data, and uses the \u003cstrong\u003eOpenAI Responses API\u003c\/strong\u003e to return \u003cstrong\u003estrict JSON scoring\u003c\/strong\u003e—including \u003cem\u003escore, priority (HOT\/WARM\/COLD), status, summary,\u003c\/em\u003e and a \u003cem\u003erecommended next action\u003c\/em\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a POST request\u003c\/strong\u003e on a webhook endpoint with lead fields (name, contact details, service, and message).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and validates inputs\u003c\/strong\u003e by trimming text, lowercasing email, cleaning the phone number, and rejecting requests missing required data.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a JSON-only OpenAI request\u003c\/strong\u003e instructing the model to return strict JSON containing: \u003cstrong\u003escore\u003c\/strong\u003e, \u003cstrong\u003epriority\u003c\/strong\u003e, \u003cstrong\u003esummary\u003c\/strong\u003e, and \u003cstrong\u003erecommended action\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the lead to OpenAI\u003c\/strong\u003e, extracts the model’s JSON output, and merges results back into the lead record.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMaps AI priority to workflow status\u003c\/strong\u003e (HOT\/WARM\/COLD into \u003cstrong\u003eNew - HOT\u003c\/strong\u003e, \u003cstrong\u003eFollow-up\u003c\/strong\u003e, or \u003cstrong\u003eNurture\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eResponds to the webhook caller\u003c\/strong\u003e with a JSON payload containing the lead score, priority, status, summary, and recommended next step.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eQualify leads from a landing page form by email or phone and route them by priority.\u003c\/li\u003e\n  \u003cli\u003eConvert “message + service interest” into an AI-generated summary and follow-up instruction.\u003c\/li\u003e\n  \u003cli\u003eGive SaaS operators consistent lead triage using configurable OpenAI model instructions and scoring thresholds.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/steps used:\u003c\/strong\u003e code, webhook, sticky note, HTTP request, and respond to webhook.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegration:\u003c\/strong\u003e OpenAI via the \u003cstrong\u003eOpenAI Responses API\u003c\/strong\u003e using an API key added as an \u003cstrong\u003eHTTP Header Auth\u003c\/strong\u003e credential.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSetup:\u003c\/strong\u003e deploy, copy the webhook URL, and configure your lead source to POST at least \u003cem\u003efirst_name\u003c\/em\u003e, \u003cem\u003emessage\u003c\/em\u003e, and either \u003cem\u003eemail\u003c\/em\u003e or \u003cem\u003ephone\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003eOptionally adjust the \u003cstrong\u003eOpenAI model name\u003c\/strong\u003e, prompt instructions, and \u003cstrong\u003escoring thresholds\u003c\/strong\u003e in the request-building step to match your business rules.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45917686268083,"sku":"N8N-18847","price":63.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/gsyjRMU8JpU5K5Homnp3N_oRL5g8iB.png?v=1788080667","url":"https:\/\/buyflowscripts.com\/products\/n8n-webhook-lead-qualification-with-openai-json-scoring","provider":"N8N Commerce","version":"1.0","type":"link"}