Qualify and triage leads with Google Gemini, HubSpot, Gmail, Slack and Sheets
Ready for 3.0What this workflow does
This AI workflow has 44 nodes and runs when an HTTP POST request hits its webhook URL (plus 4 other triggers). Along the way it connects Gmail, Google Sheets, Google Gemini Chat Model and Slack. It also calls api.hubapi.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 4 other triggers).
- Set Configuration Variables (Edit Fields (Set)): sets 16 fields: leadLogSheetUrl, businessProfileSheetUrl, businessName…
- Route by Lead Source (Switch): routes items into 4 branches
- Normalize Lead Data (Code): runs custom JavaScript code
- Read Leads for Replying (Google Sheets): read
- Read Lead Log Data (Google Sheets): read
- Read Leads for Daily Report (Google Sheets): read
- Append New Lead to Sheets (Google Sheets): append
- Extract New Text from Reply (Code): runs custom JavaScript code
- Gather Open HubSpot Tasks (Code): runs custom JavaScript code
- Compile Daily Lead Report (Code): runs custom JavaScript code
…plus 28 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: api.hubapi.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (When Lead Replies).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Webhook
n8n-nodes-base.webhook - Gmail Trigger
n8n-nodes-base.gmailTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow captures website and Google Ads leads via webhooks, logs them to Google Sheets, and uses Google Gemini to qualify them against a Business Profile sheet, then creates HubSpot contacts and call tasks and sends Slack and Gmail…