🎫 Auto-respond to Gmail inquiries using OpenAI, Google Sheet & AI agent

2,688 views · 🎫 Ticket Management & Triage

Description

Who is this for?

This workflow is ideal for:

What problem is this workflow solving?

Manually responding to repetitive customer emails is inefficient, prone to inconsistency, and time-consuming. This workflow solves the issue by:

What this workflow does

This AI-powered Gmail auto-responder intelligently handles inbound emails with the following steps:

  1. Monitors your Gmail inbox for new incoming emails in real time
  2. Classifies each email as either an “Inquiry” or “Not Inquiry” using GPT-4
  3. Gets context from a Google Sheets FAQ database The context will be used to determine the most accurate and helpful response
  4. Generates a professional reply only if it’s a valid inquiry (e.g., pricing, refund, product details)
  5. Builds a context-aware, helpful response using verified knowledge only
  6. Sends the reply to the original sender automatically
  7. Logs everything to a Google Sheet — original email, AI response, timestamp, and email address

Example Use Case:

An email comes in: “Hi, I want to know your pricing and refund policy.”

The workflow:

Setup

  1. Copy the Google Sheet template here: 👉 Gmail Auto-Responder – Google Sheet Template This contains:

    • A FAQ_Context tab (your knowledge base)
    • An Enquiry_Log tab (interaction logs)
  2. Connect your Gmail account to the Gmail Trigger and Gmail Send nodes

  3. Add your OpenAI API key in the classification and response generator nodes

  4. Link the Google Sheet in both the FAQ lookup and logging nodes

  5. Test with a sample email — try asking a pricing and refund question to see the complete process in action

How to customize this workflow to your needs

Contact me for consulting and support:
📧 billychartanto@gmail.com

🔗 Nodes Used

Google Sheets, 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