Generate GEO-optimized support replies from Gmail to Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Slack, Gmail and OpenAI Chat Model.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Extract Email Data (Edit Fields (Set)): sets 3 fields: customer_email, customer_subject, customer_message
- Slack: uses Slack
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Memory - Conversation Buffer; output parser: Output Parser - Structured JSON
- If: checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Memory - Conversation Buffer; output parser: Output Parser - Structured JSON
- Manual Review (Slack): uses Slack
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Memory - Conversation Buffer; output parser: Output Parser - Structured JSON
- Format Data For Email (Edit Fields (Set)): sets 5 fields: To, Reply, Geo Used…
- Send a message (Gmail): uses Gmail
- Notify Slack (Slack): uses Slack
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Nodes used (10)
- Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack - Gmail Trigger
n8n-nodes-base.gmailTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Error Trigger
n8n-nodes-base.errorTrigger
From the author
📊 Description Streamline customer support with a real-time, AI-powered answer engine that detects incoming support emails, classifies intent, identifies the customer’s GEO region, and generates a tailored reply ready to send. 📧 🤖 This workflow…