{"product_id":"n8n-workflow-qualify-agency-leads-auto-draft-gmail-replies","title":"n8n Workflow: Qualify Agency Leads \u0026 Auto Draft Gmail Replies","description":"\u003ch3\u003eAuto-qualify agency leads, draft Gmail replies, and update HubSpot—end to end\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow receives agency enquiries via an authenticated webhook, uses OpenAI to extract a structured brief and generate a qualified reply, checks HubSpot to prevent duplicates, creates\/updates CRM records, saves a personalised Gmail draft, and alerts your team in Slack.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives lead enquiries\u003c\/strong\u003e via an \u003cem\u003eauthenticated webhook\u003c\/em\u003e (e.g., \u003cem\u003erequestId, name, email, company, website, message\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalises and validates\u003c\/strong\u003e the incoming payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeduplicates against HubSpot\u003c\/strong\u003e by searching HubSpot Deals using a deterministic deal name. If found, it returns the existing \u003cstrong\u003eHubSpot deal ID\u003c\/strong\u003e and skips creating a new deal\/draft.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOptionally enriches research\u003c\/strong\u003e when the website domain is allowlisted: fetches the approved company homepage and extracts bounded plain text as evidence.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses OpenAI for extraction + drafting\u003c\/strong\u003e to generate a structured lead brief and a \u003cstrong\u003edraft reply\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eScores and assigns ownership\u003c\/strong\u003e using deterministic rules (budget, service fit, urgency, and verified website evidence). If AI extraction fails, it falls back to a manual-review payload.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUpserts HubSpot records\u003c\/strong\u003e: creates\/updates a Contact and creates an associated Deal with qualification details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaves a personalised Gmail draft\u003c\/strong\u003e and \u003cstrong\u003eposts a review notification to Slack\u003c\/strong\u003e, then returns the deal ID and score to the webhook response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eTurn incoming agency enquiries into \u003cstrong\u003equalified HubSpot deals\u003c\/strong\u003e automatically.\u003c\/li\u003e\n  \u003cli\u003eReduce response time by generating \u003cstrong\u003edraft Gmail replies\u003c\/strong\u003e with evidence-backed research.\u003c\/li\u003e\n  \u003cli\u003ePrevent duplicate outreach and CRM clutter with deterministic deduplication.\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\/tools:\u003c\/strong\u003e if, set, code, Gmail, Slack, HubSpot.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e authenticated Webhook Header Auth, OpenAI, HubSpot (App Token with contacts\/deals permissions), Slack notifications, Gmail draft creation.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eBest for:\u003c\/strong\u003e n8n users, automation engineers, and SaaS operators who need a reliable lead qualification workflow for agency enquiries.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46254508802227,"sku":"N8N-21332","price":14.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/d5KjbTqj9Co1PgbQw-GA4_Z1SI5zIU.png?v=1792573495","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-qualify-agency-leads-auto-draft-gmail-replies","provider":"N8N Commerce","version":"1.0","type":"link"}