Auto-reply to emails using Google Gemini AI and SendGrid
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 8 nodes and runs when a new email arrives over IMAP. Along the way it connects Google Gemini Chat Model and SendGrid.
How it runs
Trigger: When a new email arrives over IMAP.
- Pause for 20 seconds (Wait): waits 20 seconds
- Set your details (Edit Fields (Set)): sets 3 fields: from, subject, body
- Check if email exists (If): checks a condition and branches into true / false
- Generate reply email (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- Send reply email (SendGrid): work with mail
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)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Wait
n8n-nodes-base.wait - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - SendGrid
n8n-nodes-base.sendGrid - AI Agent
@n8n/n8n-nodes-langchain.agent - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap
From the author
Transform your inbox into an intelligent assistant! This workflow automatically reads incoming emails, generates personalized AI responses using Google Gemini, and sends professional replies—all on autopilot. How It Works: 1. Monitors Your Inbox - IMAP…