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.

Worth a look

Nodes used (6)

GmailStructured Output ParserOpenAI Chat ModelBasic LLM Chain

What it does

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 editing and approving emails before they go out. How It Works: - Email Trigger: activates when new emails reach the Gmail inbox - Assessment: uses OpenAI gpt-4o and a JSON parser to determine if a response is necessary. - Reply Generation: crafts a reply with OpenAI GPT-4 Turbo - Draft Integration: after converting the text to html, it places the draft into the Gmail thread as a reply to the first message Set Up Overview (~10 minutes): - OAuth Configuration (follow n8n instructions here): - Setup Google OAuth in Google Cloud console. Make sure to add Gmail API with the modify scope. - Add Google OAuth credentials in n8n. Make sure to add the n8n redirect URI to the Google Cloud Console consent screen settings. - OpenAI Configuration: add OpenAI API Key in the credentials - Tweaking the prompt: edit the system prompt in the "Generate email reply" node to suit your needs Detailed Walkthrough Check out this blog post where I go into more details on how I built this workflow. Reach out to me here if you need help building automations for your business.

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.