{"product_id":"n8n-webhook-lead-scoring-with-groq-chat-completions","title":"n8n Webhook Lead Scoring with Groq Chat Completions","description":"\u003ch3\u003eInstant Lead Scoring via n8n Webhook + Groq Chat Completions\u003c\/h3\u003e\n\u003cp\u003eTurn inbound leads into actionable sales signals automatically. This \u003cstrong\u003en8n webhook workflow\u003c\/strong\u003e receives lead details, uses \u003cstrong\u003eGroq’s OpenAI-compatible Chat Completions API\u003c\/strong\u003e to score and qualify the lead, and returns a clean \u003cstrong\u003estructured JSON\u003c\/strong\u003e response with score, tier, qualification status, recommended next action, and reasons.\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 through a \u003ccode\u003ePOST\u003c\/code\u003e request on the \u003ccode\u003e\/ai-lead-qualification\u003c\/code\u003e webhook, using fields from the request body (e.g., \u003ccode\u003ename\u003c\/code\u003e, \u003ccode\u003eemail\u003c\/code\u003e, \u003ccode\u003ecompany\u003c\/code\u003e, \u003ccode\u003erole\u003c\/code\u003e, \u003ccode\u003ebudget\u003c\/code\u003e, \u003ccode\u003eneed\u003c\/code\u003e, \u003ccode\u003esource\u003c\/code\u003e, \u003ccode\u003emessage\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds a scoring prompt\u003c\/strong\u003e asking Groq to evaluate the lead from \u003cstrong\u003e0–100\u003c\/strong\u003e across factors like \u003cstrong\u003ebudget\u003c\/strong\u003e, \u003cstrong\u003eauthority\u003c\/strong\u003e, \u003cstrong\u003efit\u003c\/strong\u003e, \u003cstrong\u003eurgency\u003c\/strong\u003e, and \u003cstrong\u003edetail\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls Groq Chat Completions\u003c\/strong\u003e using the \u003ccode\u003eopenai\/gpt-oss-120b\u003c\/code\u003e model and requests a \u003cstrong\u003eJSON-formatted\u003c\/strong\u003e response.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses and normalizes results\u003c\/strong\u003e, applying defaults if any fields are missing, and maps the output to a consistent schema: \u003ccode\u003escore\u003c\/code\u003e, \u003ccode\u003etier\u003c\/code\u003e, \u003ccode\u003equalified\u003c\/code\u003e, \u003ccode\u003erecommended_action\u003c\/code\u003e, and \u003ccode\u003ereasons\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns the qualification result\u003c\/strong\u003e as the webhook response payload to the original requester.\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 form or CRM by calling the \u003ccode\u003e\/ai-lead-qualification\u003c\/code\u003e endpoint in real time.\u003c\/li\u003e\n  \u003cli\u003eRoute high-fit leads to sales outreach while deprioritizing low-fit inquiries—based on \u003cstrong\u003eAI lead scoring\u003c\/strong\u003e tiers and reasons.\u003c\/li\u003e\n  \u003cli\u003eGenerate consistent lead qualification outputs to drive downstream n8n workflows (follow-ups, routing, or notifications).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook trigger\u003c\/strong\u003e: listens for \u003ccode\u003ePOST \/ai-lead-qualification\u003c\/code\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request\u003c\/strong\u003e: calls \u003ccode\u003ehttps:\/\/api.groq.com\/openai\/v1\/chat\/completions\u003c\/code\u003e using Groq API key authentication via HTTP Header credentials\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes used\u003c\/strong\u003e: code, webhook, sticky note, http request, respond to webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eModel\u003c\/strong\u003e: \u003ccode\u003eopenai\/gpt-oss-120b\u003c\/code\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eNote:\u003c\/strong\u003e For best scoring accuracy, ensure your webhook payload includes the expected lead fields (like \u003ccode\u003ebudget\u003c\/code\u003e, \u003ccode\u003eneed\u003c\/code\u003e, and \u003ccode\u003emessage\u003c\/code\u003e).\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45950073700531,"sku":"N8N-19162","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/2Ox-V3dyYuFLUsE0cV120_xo5pLRU6.png?v=1788513215","url":"https:\/\/buyflowscripts.com\/products\/n8n-webhook-lead-scoring-with-groq-chat-completions","provider":"N8N Commerce","version":"1.0","type":"link"}