Organize Gmail with GPT-4 & send urgent notifications via Telegram and WhatsApp
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on Gmail events. Along the way it connects Gmail, WhatsApp Business Cloud, Telegram and OpenRouter Chat Model and 2 more.
How it runs
Trigger: On Gmail events.
- Get a message (Gmail): get
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model, Google Gemini Chat Model; 2 tools (Check Sent, Check Sent); output parser: Structured Output Parser
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model, Google Gemini Chat Model; memory: Simple Memory
- Create Label if Doesn't exist (Gmail): create (label)
- Code: runs custom JavaScript code
- Get Existing Labels (Gmail): work with label
- If: checks a condition and branches into true / false
- Wait: waits 15 seconds
- Filter: keeps only the items that match a condition
…plus 3 more steps. See the full node list below.
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 Trigger1).
Nodes used (16)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail Tool
n8n-nodes-base.gmailTool - Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Telegram
n8n-nodes-base.telegram - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
This workflow automatically transforms your messy inbox into a neatly organized space while ensuring you never miss a critical message. It connects to your Gmail account and triggers for every new email. Using a powerful AI agent, the workflow first analyzes…