Answer repeat support emails from a knowledge base with Gmail, OpenAI and Slack
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Slack.
How it runs
Trigger: On Gmail events.
- Your Settings (Edit Fields (Set)): sets 6 fields: confidenceThreshold, teamChannel, sendRepliesAutomatically…
- Get The Full Thread (Gmail): get (thread)
- Check Who Has Replied (Code): runs custom JavaScript code
- Has A Human Already Replied? (If): checks a condition and branches into true / false
- Log The Silence (Data table): insert (row)
- Is It Urgent By Keyword? (If): checks a condition and branches into true / false
- Alert The Team Urgently (Slack): post (message)
- Is It Just Thanks? (If): checks a condition and branches into true / false
- Log The Urgent Alert (Data table): insert (row)
- Log No Reply Needed (Data table): insert (row)
…plus 14 more steps. See the full node list below.
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Switch
n8n-nodes-base.switch
From the author
Quick overview This workflow polls a Gmail support inbox for unread emails, uses OpenAI to classify messages against an n8n Data Table knowledge base, drafts (and optionally sends) approved replies in Gmail, posts escalations and urgent alerts to Slack, and…