{"product_id":"n8n-lead-classifier-deepseek-gmail-approval-to-google-sheets","title":"n8n Lead Classifier: DeepSeek + Gmail Approval to Google Sheets","description":"\u003ch3\u003eAutomatically classify incoming leads with DeepSeek, get Gmail approval, and push approved records to Google Sheets\u003c\/h3\u003e\n\u003cp\u003eTurn raw form submissions into structured lead data using an n8n workflow that routes by \u003cstrong\u003eselected_service\u003c\/strong\u003e, extracts fields with \u003cstrong\u003eDeepSeek (OpenAI-compatible)\u003c\/strong\u003e, and sends a \u003cstrong\u003eGmail approval email\u003c\/strong\u003e before appending approved leads to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e. If the LLM call fails, the workflow notifies you via Gmail—so nothing silently breaks.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives leads via a webhook:\u003c\/strong\u003e Accepts a POST request to \u003ccode\u003e\/webhook\/lead-intake\u003c\/code\u003e containing \u003ccode\u003eselected_service\u003c\/code\u003e and \u003ccode\u003eraw_client_input\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRoutes by service:\u003c\/strong\u003e Uses the \u003ccode\u003eselected_service\u003c\/code\u003e field to route the lead to the correct service line.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts structured lead fields with DeepSeek:\u003c\/strong\u003e Calls the DeepSeek chat completions API to transform raw text into JSON fields such as \u003cstrong\u003ecompany_name\u003c\/strong\u003e, \u003cstrong\u003estate\u003c\/strong\u003e, and \u003cstrong\u003eowner\u003c\/strong\u003e. If the request fails, it sends a \u003cstrong\u003eGmail alert\u003c\/strong\u003e to keep you informed.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFormats data for approval:\u003c\/strong\u003e Parses the LLM response and prepares the structured lead details for human review.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRequests one-click approval via Gmail:\u003c\/strong\u003e Sends an approval email with an approval link back to n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOn approval, writes to Google Sheets:\u003c\/strong\u003e When the approval link is clicked, the workflow receives the approval webhook request, appends the approved lead to a \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e fulfillment queue, and returns an \u003cstrong\u003eHTML confirmation\u003c\/strong\u003e page.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eQualify and structure leads from a website form before they enter your CRM-style Google Sheet.\u003c\/li\u003e\n  \u003cli\u003eSupport fast human review for edge cases—without manually retyping lead fields.\u003c\/li\u003e\n  \u003cli\u003eImprove operational resilience by alerting via Gmail when the DeepSeek parsing step fails.\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:\u003c\/strong\u003e code, gmail, switch, webhook, sticky note, http request\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e DeepSeek (OpenAI-compatible chat completions), Gmail, Google Sheets\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eKey mechanism:\u003c\/strong\u003e approval link triggers a separate approval webhook to append to the Google Sheets queue.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46146308997299,"sku":"N8N-20252","price":17.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/qFagg9KQFTQ5Kj7uKSTgi_NwnbFJRT.png?v=1790845907","url":"https:\/\/buyflowscripts.com\/products\/n8n-lead-classifier-deepseek-gmail-approval-to-google-sheets","provider":"N8N Commerce","version":"1.0","type":"link"}