Auto-categorize Gmail emails with AI and send prioritized Slack alerts
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Slack.
How it runs
Trigger: On Gmail events.
- Get Email (Gmail): get
- AI Agent: runs an AI agent
- Routing Map (Edit Fields (Set)): sets 2 fields: label, slackChannel
- Send Notification to Slack (Slack): uses Slack
- OpenAI Chat Model: uses OpenAI Chat Model, with model: AI Agent
- Structured Output Parser: uses Structured Output Parser, with output parser: AI Agent
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) (Trigger on Unread Email).
Nodes used (7)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Gmail
n8n-nodes-base.gmail - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Slack
n8n-nodes-base.slack
From the author
Who is this for? - Teams using Gmail and Slack who want to streamline email handling. - Customer support, sales, and operations teams that want emails sorted by topic and priority automatically. - Anyone tired of manually triaging customer emails. What does…