Write and track cold emails with Google Gemini and Gmail
Ready for 3.0What 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
Other Google Gemini + Gmail templates (518)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
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.…