Templates / Gmail smart auto-responder with GPT-4o and Google Drive context memory

Gmail smart auto-responder with GPT-4o and Google Drive context memory

Needs changes

by Usama Rehman · 1,484 views · created 2025-06-26 · Personal Productivity, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on Gmail events. Along the way it connects Gmail, Google Drive, Embeddings OpenAI and OpenAI Chat Model.

How it runs

Trigger: On Gmail events.

  1. Google Drive: download
  2. Gmail: get many
  3. Profile Document Loader (Default Data Loader): uses Default Data Loader
  4. Thread Document Loader (Default Data Loader): uses Default Data Loader
  5. Simple Vector Store: stores documents in the Simple vector store, with embeddings: OpenAI Embeddings; document loader: Thread Document Loader, Profile Document Loader
  6. Prepare Agent Context (Edit Fields (Set)): sets 1 field: text
  7. Email Reply Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Vector Store Retriever); memory: Simple Memory
  8. Check If Reply Needed (If): checks a condition and branches into true / false
  9. Gmail: work with draft
  10. Error Handler (Code): runs custom JavaScript code

Services it uses

GmailGoogle DriveEmbeddings OpenAIOpenAI Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Email Reply Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
  • Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Email Reply Agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

Advanced Gmail AI Auto-Responder with Context Intelligence The next-generation email automation that knows your communication style, remembers conversations, and responds with human-like intelligence. 🚀 What Makes This Advanced? Unlike basic AI email…

Excerpt from Usama Rehman'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.