Smart email triage with Gmail, GPT-4, Slack and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs on Gmail events. Along the way it connects Gmail, Slack, Azure OpenAI Chat Model and Google Sheets.
How it runs
Trigger: On Gmail events.
- Extract Email Data (Code): runs custom JavaScript code
- Check Attachments (If): checks a condition and branches into true / false
- Process Attachments (Code): runs custom JavaScript code
- Skip Attachments (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Azure OpenAI Chat Model; memory: Simple Memory; output parser: Structured Output Parser
- Parse AI Response (Code): runs custom JavaScript code
- Route Urgent (If): checks a condition and branches into true / false
- Slack: uses Slack
- Route Attachments (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · 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).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets
n8n-nodes-base.googleSheets
From the author
Description This workflow intelligently analyzes incoming Gmail emails, classifies intent using GPT-4, and sends real-time Slack notifications while logging structured data into Google Sheets. It provides a smart, AI-assisted communication workflow that saves…