{"product_id":"deepseek-lead-scoring-n8n-workflow-webhook-gmail-routing","title":"DeepSeek Lead Scoring n8n Workflow: Webhook → Gmail Routing","description":"\u003ch3\u003eInstant DeepSeek Lead Scoring in n8n — Webhook Intake to Gmail Routing\u003c\/h3\u003e\n\u003cp\u003eCapture new lead submissions with a webhook, have DeepSeek score each lead from \u003cb\u003e1 to 100\u003c\/b\u003e, automatically prevent duplicate processing with an n8n Data Table, and route approvals via \u003cb\u003eGmail\u003c\/b\u003e—all inside an n8n workflow.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cp\u003eThis DeepSeek Lead Scoring n8n workflow follows a clear pipeline:\u003c\/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eWebhook intake:\u003c\/b\u003e Receives a lead submission via a \u003cb\u003ePOST webhook\u003c\/b\u003e (raw_client_input plus selected_service).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eNormalization + deduplication:\u003c\/b\u003e Generates a deterministic \u003cb\u003elead_unique_id\u003c\/b\u003e, then checks an \u003cb\u003en8n Data Table\u003c\/b\u003e to skip leads already processed.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eAudit + enrichment:\u003c\/b\u003e Upserts the lead into the Data Table as an audit record, then sends the submission to the \u003cb\u003eDeepSeek Chat Completions API\u003c\/b\u003e to return structured fields and a \u003cb\u003epriority_score (1–100)\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eDecision routing:\u003c\/b\u003e Uses a three-way switch based on \u003cb\u003epriority_score\u003c\/b\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cb\u003eHigh scores\u003c\/b\u003e → sends an \u003cb\u003eapproval email\u003c\/b\u003e to one Gmail destination.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cb\u003eMid scores\u003c\/b\u003e → sends a \u003cb\u003efast-track approval\u003c\/b\u003e email to another Gmail destination.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cb\u003eLow scores\u003c\/b\u003e → sends a \u003cb\u003epolite decline\u003c\/b\u003e email.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eApproval handling:\u003c\/b\u003e Receives an approval click via a \u003cb\u003esecond webhook\u003c\/b\u003e, validates the decision, appends the approved lead to a \u003cb\u003eGoogle Sheets fulfillment\u003c\/b\u003e spreadsheet, and returns an \u003cb\u003eHTML confirmation\u003c\/b\u003e page.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eFailure alerting:\u003c\/b\u003e If the DeepSeek request fails, sends a \u003cb\u003ecritical alert email\u003c\/b\u003e via Gmail for troubleshooting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eScore inbound form leads and route them to the right sales approvals automatically.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators needing deterministic lead deduplication and audit trails with n8n Data Table.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers deploying a webhook-to-LLM scoring workflow with Gmail decision routing.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cb\u003eNodes\/logic:\u003c\/b\u003e webhook, data table (dedupe + audit), code\/if, switch (priority routing), gmail, and a approval webhook flow.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eLLM scoring:\u003c\/b\u003e DeepSeek Chat Completions API returning structured fields and a \u003cb\u003e1–100 priority_score\u003c\/b\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cb\u003eStorage:\u003c\/b\u003e Google Sheets fulfillment spreadsheet for approved leads; Data Table for processed-lead tracking.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46154026811571,"sku":"N8N-20284","price":15.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/0mz8KxDVt-ImPpMzuH-pO_vQ9blTQC.png?v=1790932786","url":"https:\/\/buyflowscripts.com\/products\/deepseek-lead-scoring-n8n-workflow-webhook-gmail-routing","provider":"N8N Commerce","version":"1.0","type":"link"}