Templates / Write and track cold emails with Google Gemini and Gmail

Write and track cold emails with Google Gemini and Gmail

Ready for 3.0

by Ravi Patel ✓ · 72 views · created 2026-06-10 · Lead Nurturing, AI Chatbot

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 11 nodes and runs when a chat message arrives (plus 1 other trigger). Along the way it connects Gmail and Google Gemini Chat Model.

How it runs

Trigger: When a chat message arrives (plus 1 other trigger).

  1. AI Agent: runs an AI agent, with model: Google Gemini Chat Model
  2. Set Pixel And Metadata (Edit Fields (Set)): sets 4 fields: query.email, query.name, query.subject…
  3. Parse AI Output (Code): runs custom JavaScript code
  4. Date & Time: formats or calculates dates
  5. Generate Tracking ID (Code): runs custom JavaScript code
  6. Send Open Notification (Gmail): uses Gmail
  7. Build HTML Email (Code): runs custom JavaScript code
  8. Send via Gmail (Gmail): uses Gmail

Services it uses

GmailGoogle Gemini 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.

Nodes used (8)

From the author

Quick Overview This workflow uses an n8n Chat trigger with Google Gemini to draft a personalized cold email, sends it via Gmail with a tracking pixel, and then captures opens through a webhook that triggers an internal Gmail notification. How it works 1.…

Excerpt from Ravi Patel'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.