{"product_id":"ai-lead-scoring-workflow-webhook-hubspot-slack-alert","title":"AI Lead Scoring Workflow: Webhook → HubSpot + Slack Alert","description":"\u003ch3\u003eScore every new lead in real time—then notify your team on Slack\u003c\/h3\u003e\n\u003cp\u003eThis \u003cstrong\u003eAI Lead Scoring Workflow\u003c\/strong\u003e for n8n receives new lead submissions via a webhook, uses \u003cstrong\u003eOpenAI\u003c\/strong\u003e to generate a \u003cstrong\u003e1–10 lead score\u003c\/strong\u003e with a short reason and summary, upserts the contact into \u003cstrong\u003eHubSpot\u003c\/strong\u003e, sends a thank-you email, and posts a \u003cstrong\u003eSlack alert\u003c\/strong\u003e whenever the score meets your configured “hot lead” threshold.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives leads\u003c\/strong\u003e via a \u003cstrong\u003ewebhook\u003c\/strong\u003e POST endpoint whenever a new lead is submitted.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes incoming data\u003c\/strong\u003e into a consistent lead object (name, email, phone, company, message, source).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScores the lead with OpenAI\u003c\/strong\u003e using Chat Completions, returning a \u003cstrong\u003eJSON response\u003c\/strong\u003e with a \u003cstrong\u003e1–10 score\u003c\/strong\u003e, plus a brief reason and summary.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnriches the lead record\u003c\/strong\u003e by attaching the score, reason, and summary for downstream actions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends a thank-you email\u003c\/strong\u003e through your \u003cstrong\u003eSMTP\u003c\/strong\u003e server, including a booking link for follow-up.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpserts into HubSpot\u003c\/strong\u003e as a contact, using the \u003cstrong\u003eemail address as the unique identifier\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNotifies Slack\u003c\/strong\u003e via an incoming webhook when the score is \u003cstrong\u003egreater than or equal to the configured hot-lead score\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eQualify inbound leads from your web forms and immediately flag high-intent prospects.\u003c\/li\u003e\n  \u003cli\u003eRoute “hot leads” to sales\/CS via Slack while still capturing every lead in HubSpot.\u003c\/li\u003e\n  \u003cli\u003eAutomate response emails with a booking link to increase follow-through—without manual CRM work.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI\u003c\/strong\u003e via HTTP Header Auth (Authorization: Bearer \u0026lt;API key\u0026gt;) for Chat Completions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHubSpot\u003c\/strong\u003e via HTTP Header Auth (Authorization: Bearer \u0026lt;private app token\u0026gt;) with contact upsert by email.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSlack\u003c\/strong\u003e alert using an incoming webhook.\u003c\/li\u003e\n  \u003cli\u003eNodes\/blocks include: \u003cstrong\u003ewebhook\u003c\/strong\u003e, \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eemail send\u003c\/strong\u003e, plus supporting nodes like \u003cstrong\u003esticky note\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eSend acknowledgments using an \u003cstrong\u003eSMTP credential\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46288985456819,"sku":"N8N-21704","price":49.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/4MmclFDJ2HindL8NyAoKn_RcL0ASRK.png?v=1793005428","url":"https:\/\/buyflowscripts.com\/products\/ai-lead-scoring-workflow-webhook-hubspot-slack-alert","provider":"N8N Commerce","version":"1.0","type":"link"}