Templates / Automate Gmail lead follow-up with OpenAI GPT-4O, HubSpot, Slack & Google Sheets

Automate Gmail lead follow-up with OpenAI GPT-4O, HubSpot, Slack & Google Sheets

Ready for 3.0

by Avkash Kakdiya ✓ · 194 views · created 2025-08-21 · AI Summarization, Multimodal AI

Ready 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.

  1. 🔀 Check if Data Exists (If): checks a condition and branches into true / false
  2. 🔧 Normalize Gmail Data (Edit Fields (Set)): sets 5 fields: leadEmail, subject, message…
  3. 🧠 Analyze Lead Response (AI) (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  4. 📋 Parse AI Analysis Results (Code): runs custom JavaScript code
  5. 🔍 Needs Follow-Up? (If): checks a condition and branches into true / false
  6. HubSpot: work with engagement
  7. Slack: uses Slack
  8. 📊 Log to Google Sheets (Google Sheets): append

Services it uses

GmailHubSpotSlackGoogle SheetsOpenAI Chat Model

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)

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…

Excerpt from Avkash Kakdiya's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.