Automate Gmail lead follow-up with OpenAI GPT-4O, HubSpot, Slack & Google Sheets
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail, HubSpot, Slack and Google Sheets and 1 more.
How it runs
Trigger: On Gmail events.
- 🔀 Check if Data Exists (If): checks a condition and branches into true / false
- 🔧 Normalize Gmail Data (Edit Fields (Set)): sets 5 fields: leadEmail, subject, message…
- 🧠 Analyze Lead Response (AI) (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- 📋 Parse AI Analysis Results (Code): runs custom JavaScript code
- 🔍 Needs Follow-Up? (If): checks a condition and branches into true / false
- HubSpot: work with engagement
- Slack: uses Slack
- 📊 Log to Google Sheets (Google Sheets): append
Services it uses
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) (📧 Gmail: New Lead Response).
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HubSpot
n8n-nodes-base.hubspot - Slack
n8n-nodes-base.slack - Google Sheets
n8n-nodes-base.googleSheets - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
How it works This workflow automates the handling of new lead responses received in Gmail. It captures emails with a specific label, analyzes the message using AI to determine sentiment, intent, urgency, next action, and priority, and then decides whether…