Templates / Auto-respond to Gmail enquiries using GPT-4o, Dumpling AI & LangChain agent

Auto-respond to Gmail enquiries using GPT-4o, Dumpling AI & LangChain agent

Needs changes

by Yang ✓ · 10,885 views · created 2025-05-14 · Ticket Management, AI RAG

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
HTTP Request Tool (legacy)
Dumpling AI Agent – Search for Relevant Info
HTTP Request node connected to the AI Agent's Tool input
AI Agent v1 (old agent modes)
LangChain Agent Handles Reply Logic (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Worth a look

Nodes used (8)

GmailOpenAIOpenAI Chat ModelSimple MemoryHTTP RequestAI Agent

What it does

Who is this for? This workflow is perfect for customer support teams, sales departments, or solopreneurs who receive frequent email enquiries and want to automate the initial response process using AI. If you spend too much time answering similar questions, this system helps respond faster and more intelligently—without writing a single line of code. --- What problem is this workflow solving? Manually responding to repeated customer enquiries slows productivity and increases delay. This workflow classifies if an incoming email is a real enquiry, analyzes the content with a LangChain-powered agent, fetches helpful context using Dumpling AI, and sends a personalized reply using Gmail—all within minutes. --- What this workflow does 1. Listens for new incoming Gmail messages using the Gmail Trigger node. 2. Classifies whether the email is an enquiry using a GPT-4o classification prompt. 3. Uses a Filter node to continue only if the email was classified as an enquiry. 4. Passes the email content to a LangChain Agent, enhanced with memory, AI tools, and Dumpling AI to search for relevant information. 5. The agent constructs a smart, relevant response, then sends it to the original sender via Gmail. --- Setup 1. Connect Gmail - Use the Gmail Trigger node to connect to the Gmail account that receives enquiries. - Make sure Gmail OAuth2 credentials are authenticated. 2. Configure Dumpling AI Agent - Sign up at Dumpling AI. - Create an agent trained to search your help docs, site content, or FAQs. - Copy your Dumpling agent ID and API key. - Paste it in the Dumpling AI Agent – Search for Relevant Info HTTP Request node. 3. Set Up LangChain Agent - No extra setup needed beyond connecting OpenAI credentials. - GPT-4o is used for classification and reply generation. 4. Enable Gmail Reply Node - The final Send Email Response via Gmail node will send the AI-generated reply back to the same thread. --- How to customize this workflow to your needs - Change the classification prompt to include other email types like “support”, “complaint”, or “sales”. - Add additional logic if you want to CC someone or forward certain types of enquiries. - Add a Notion or Google Sheets node to log the conversation for analytics. - Replace Gmail with Outlook or another email provider by switching the nodes. - Improve context by adding more AI tools like database queries or preloaded FAQs.

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.