✨ Gmail auto-reply generator with ChatGPT

2,003 views · ✨ AI & LLMs

Description

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Gmail Auto-Reply with AI

Automatically draft smart email replies using ChatGPT. Reclaim your time typing the same responses again and again.


Who is this for?

If you’re overwhelmed with emails and constantly repeating yourself in replies, this workflow is for you.

Whether you’re a freelancer, business owner, or team lead, it saves you time by handling email triage and drafting replies for you.


What does it solve?

This workflow reads your unread Gmail messages and uses AI to:

It takes email fatigue off your plate and keeps your inbox moving.


How it works

  1. Trigger on New Email: Watches your Gmail inbox for unread messages.
  2. AI Agent Review: Analyzes the content to decide if a reply is needed.
  3. OpenAI ChatGPT: Drafts a short, polite reply (under 120 words).
  4. Create Gmail Draft: Saves the response as a draft for you to review.
  5. Label It: Applies a custom label like Action so you can easily find AI-handled emails.

How to set up?

  1. Connect credentials:

    • Gmail (OAuth2)
    • OpenAI (API key)
  2. Create the Gmail label:

    • In your Gmail, create a label named Action (case-sensitive).

How to customize this workflow to your needs

🔗 Nodes Used

Gmail, Gmail Trigger, AI Agent, OpenAI Chat Model, Structured Output Parser

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup