Write and track cold emails with Google Gemini and Gmail
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 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).
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model
- Set Pixel And Metadata (Edit Fields (Set)): sets 4 fields: query.email, query.name, query.subject…
- Parse AI Output (Code): runs custom JavaScript code
- Date & Time: formats or calculates dates
- Generate Tracking ID (Code): runs custom JavaScript code
- Send Open Notification (Gmail): uses Gmail
- Build HTML Email (Code): runs custom JavaScript code
- Send via Gmail (Gmail): uses Gmail
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.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - Date & Time
n8n-nodes-base.dateTime
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.…