AI-Powered Gmail Auto-Responder with Human Verification - n8n Workflow

Automate your email responses using this powerful n8n workflow. It uses OpenAI integration to draft replies and requires human approval via a simple email confirmation before sending.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Professionals receiving high volumes of inquiries.

  • Small business owners needing quick, consistent communication.

  • n8n users interested in building advanced AI automation workflows.

  • Anyone seeking reliable n8n templates for Gmail and OpenAI integration.

Overview

This advanced n8n workflow provides a sophisticated solution for managing high-volume email traffic while maintaining quality control. By leveraging the power of AI (via the OpenAI n8n node), it analyzes incoming Gmail messages and determines if a response is needed. If so, it drafts a contextually relevant reply using detailed business information provided in the setup n8n node.

Crucially, before any email is sent, the n8n workflow pauses and requests approval from a designated user via email. This human-in-the-loop design ensures that every automated message is reviewed for accuracy and tone, combining the speed of automation with the precision of human oversight. This specific n8n workflow is one of the most effective n8n templates for professional communication automation.

How it Works

The process begins with the Gmail Trigger n8n node, which activates the moment a new email arrives in your inbox. This n8n trigger is set to poll the inbox for new messages.


  1. Context Setting: The 'Your Information' n8n node injects crucial business context and response guidelines into the data stream.

  2. AI Analysis: The 'Determines if Email Needs Response' AI n8n node (powered by the OpenAI Chat Model) assesses the message content and decides if a reply is necessary, passing the result to the 'If Email Needs Response' n8n node.

  3. Drafting: If the reply is needed, the 'Drafts Email Response (HTML)' n8n node uses the comprehensive business resource guide to craft a full, professional HTML reply draft.

  4. Cleanup: The custom 'Clean Up Email Code' n8n node uses JavaScript to normalize the AI-generated HTML, ensuring clean formatting by removing stray characters and excessive line breaks.

  5. Human Review: The 'Ask User for Approval' Gmail n8n node uses a unique 'sendAndWait' operation to send the draft to a specific approval email address. The n8n workflow pauses here, awaiting human confirmation.

  6. Verification & Send: The 'Approved?' n8n node checks the human response. If approved, the 'Send Reply' Gmail n8n node completes the original email thread with the final, human-verified response. This complete n8n workflow automates the entire drafting and approval process.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it into your n8n instance using the 'Import Workflow' function.

  2. Gmail Credentials: Connect your Gmail account to the 'Gmail Trigger' n8n node and the 'Send Reply' n8n node. Ensure the 'Gmail Trigger' is active to start listening for emails.

  3. OpenAI Setup: Configure the 'OpenAI Chat Model' n8n node with your OpenAI API key credentials.

  4. Customize Business Information: Edit the 'Your Information' Set n8n node. Update entityname, entitydescription, and critically, the emailtoreceiveapproval (this is where the draft will be sent for review).

  5. Resource Guide: Populate the informationresourceguide and responseguidelines within the 'Your Information' n8n node. These detailed instructions are essential for the AI to generate accurate and consistent responses.

  6. Approval Node: Update the sendTo parameter in the 'Ask User for Approval' Gmail n8n node to match the dedicated approval email address defined in step 4.

  7. Activate: Once all n8n node configurations are complete, activate the n8n workflow to begin automatic monitoring and response drafting.

Node Details

This n8n workflow utilizes several specialized n8n node types to achieve its goal:

Gmail Trigger: The primary n8n trigger. Function: Starts the n8n workflow upon receiving a new email. Key Configuration: Polling interval is set to everyMinute.
Your Information (Set n8n node): Function: Stores customizable business context, including detailed response guidelines and a resource guide, which the AI models use for context.
Determines if Email Needs Response (Information Extractor): Function: Uses the connected OpenAI n8n node to analyze the email body and subject, returning a simple boolean to decide if further action is required.
Drafts Email Response (HTML) (Information Extractor): Function: Generates the full, contextually appropriate HTML reply based on the input email and the resource guide defined in the previous n8n node.
Clean Up Email Code (Code n8n node): Function: Executes custom JavaScript to strip unnecessary characters, newlines (\n), and white space from the AI-generated HTML, ensuring a clean email output.
Ask User for Approval (Gmail): Function: Sends the generated draft to a human for review and pauses the n8n workflow until an explicit double approval confirmation (yes) is received. Key Configuration: Uses the sendAndWait operation.


  • Approved? (If n8n node): Function: Checks the result of the human approval step. Only proceeds to the final send action if the response is positive.

Related n8n Workflows

Free

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

Automation and change management consultant with over 10 years helping businesses perform better.

Featured*