Templates / Gmail AI Auto-Responder: Create Draft Replies to incoming emails

Gmail AI Auto-Responder: Create Draft Replies to incoming emails

Ready for 3.0

by Nicolas Chourrout · 76,041 views · created 2024-05-19 · Ticket Management, Multimodal AI

Ready 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 on Gmail events. Along the way it connects Gmail and OpenAI Chat Model.

How it runs

Trigger: On Gmail events.

  1. Assess if message needs a reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat; output parser: JSON Parser
  2. If: checks a condition and branches into true / false
  3. Generate email reply (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
  4. Gmail: work with draft

Services it uses

GmailOpenAI Chat Model

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 Trigger).

Nodes used (6)

From the author

This workflow automatically generates draft replies in Gmail. It's designed for anyone who manages a high volume of emails or often face writer's block when crafting responses. Since it doesn't send the generated message directly, you're still in charge of…

Excerpt from Nicolas Chourrout'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.