AI Email Reply Assistant with Human Approval - n8n Workflow

Automate Gmail responses using a powerful n8n workflow. AI filters emails, generates professional replies, and requires human approval via Telegram before sending. Use this n8n template to boost productivity.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Busy professionals managing high email volumes.
Customer service teams needing rapid, controlled responses.
Anyone utilizing n8n templates to implement human-in-the-loop AI processes.
Users seeking to leverage the n8n trigger functionality for real-time inbox monitoring.

Overview

Managing a high volume of emails can be overwhelming, often requiring immediate, tailored responses while avoiding unnecessary replies to spam or newsletters. This specialized n8n workflow addresses this challenge by combining smart artificial intelligence filtering with mandatory human oversight via Telegram.

This n8n template first uses an AI model to intelligently decide if an incoming email requires a human response. If yes, it drafts a professional reply. Crucially, before any email is sent, the entire message is forwarded to Telegram for approval. This powerful integration ensures that you maintain full control over your outbound communications while automating the heavy lifting of drafting replies. Implementing this n8n automation means saving hours while ensuring every important email gets a timely, approved response.

How it Works

This comprehensive n8n workflow initiates immediately upon the arrival of a new email and follows a strict logical sequence:


  1. Trigger: The process starts with the Gmail n8n trigger, which polls the inbox every minute for new emails.

  2. Inbox Filter: An n8n node checks if the email is physically in the INBOX folder, ignoring drafts or sent items.

  3. AI Decision: The email content is passed to the 'AI: Should We Reply?' n8n node, powered by OpenAI. This agent determines, based on context (questions, requests, urgency), whether the email requires a reply. If the decision is 'no', the n8n workflow gracefully exits.

  4. Reply Generation: If a reply is required, the 'AI: Generate Email Reply' n8n node generates a complete, professional subject and body for the response, ensuring the output is strictly structured using a JSON parser.

  5. Human-in-the-Loop: The workflow sends the original email content alongside the AI-generated reply to a designated Telegram chat using the Telegram n8n node. It pauses, waiting for explicit approval or rejection (with a 5-minute timeout).

  6. Approval Check: An If n8n node checks the response from Telegram to confirm approval.

  7. Final Action: If approved, the final Gmail n8n node sends the drafted email to the original sender. If disapproved, the n8n workflow exits without sending.

Installation Guide

To deploy this powerful n8n workflow, follow these setup steps:


  1. Import the n8n Template: Copy the provided JSON and import it directly into your n8n instance.

  2. Set up Credentials: You will need to configure three primary sets of credentials for the n8n node configurations:

Gmail OAuth2: Connect your Gmail account to the Gmail Trigger and 'Send a message' n8n nodes.
OpenAI API: Connect your OpenAI API key to the 'OpenAI Chat Model' n8n nodes to enable the AI decision-making and drafting capabilities.
* Telegram API: Set up your Telegram bot token and obtain the Chat ID for the 'Telegram: Send + Approve' n8n node. Ensure the Chat ID is correctly entered in the node's parameters.

  1. Telegram Configuration: In the 'Telegram: Send + Approve' n8n node, update the chatId parameter to your specific Telegram user or group ID.

  2. Activate: Once all n8n node credentials are set, save and activate the n8n workflow to start monitoring your inbox.

Node Details

This n8n workflow leverages several specialized n8n nodes to achieve its intelligent automation:

Trigger: New Email (Gmail Trigger n8n trigger): The entry point of the n8n workflow. It is configured to poll for new messages in your linked Gmail account.
AI: Should We Reply? (LangChain Agent n8n node): Utilizes a sophisticated system prompt to analyze the incoming email text and output a simple JSON decision ('yes' or 'no'), effectively acting as a smart filter.
Parse: Reply Decision JSON (Output Parser n8n node): Ensures that the output from the AI decision agent is correctly parsed into a usable JSON object for the subsequent If n8n node.
AI: Generate Email Reply (LangChain Agent n8n node): If a reply is required, this agent, linked to a specific OpenAI Chat Model n8n node, generates the professional email response (subject and body) structured according to a strict JSON schema defined in the connected Output Parser.
Telegram: Send + Approve (Telegram n8n node): This is the core human-in-the-loop mechanism. It uses the sendAndWait operation with double approval options, sending a detailed markdown message containing the original email and the AI draft, pausing the n8n workflow until user input is received via Telegram.
Send a message (Gmail n8n node): The final action n8n node. It dynamically uses the approved subject, recipient, and body generated by the AI to send the email, guaranteeing accuracy and approval.

Related n8n Workflows

Free

Nodes: 9 Nodes
Updated: December 26 2025
View all
Created by

I love building smart n8n automations that actually work reliably. My focus is on making everyday tasks like email, social media, and CRM workflows simpler using AI. I've shared templates in the n8n community, including a WhatsApp Expense Tracker that people really enjoy. What keeps me excited is constantly trying new things - testing fresh nodes, playing with AI tools like LangChain, and discovering creative ways to connect systems!

Featured*