Answer customer support emails in Gmail with Google Docs and Google Gemini
Ready for 3.0What this workflow does
This AI workflow has 26 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Google Gemini Chat Model and Google Docs.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Support Settings (Edit Fields (Set)): sets 3 fields: owner_email, reply_mode, knowledge_base_url
- Ask You (Gmail): send and wait for a reply
- Email Details (Edit Fields (Set)): sets 6 fields: message_id, thread_id, from_email…
- You Answered? (If): checks a condition and branches into true / false
- Classify Email (Text Classifier): classifies text into categories with AI, with model: Classify Model
- Write Final Reply (Basic LLM Chain): sends a prompt to an LLM, with model: Final Reply Model; output parser: Final Reply Format
- Read Knowledge Base (Google Docs): get
- Your Reply (Edit Fields (Set)): sets 2 fields: email, draft
- Has Knowledge Base Entry? (If): checks a condition and branches into true / false
- Draft Reply (Basic LLM Chain): sends a prompt to an LLM, with model: Draft Model; output parser: Reply Format
…plus 8 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - No Operation, do nothing
n8n-nodes-base.noOp - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Docs
n8n-nodes-base.googleDocs - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - If
n8n-nodes-base.if - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Gmail
n8n-nodes-base.gmail - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
Quick overview Answers customer emails in Gmail using only a knowledge base you keep in Google Docs. When the answer isn't there, it asks you, turns your answer into a reply, and sends you a ready-to-paste entry so it can answer that question next time. How…