Read, analyze, and auto-reply to Gmail emails with OpenAI, Slack, and Sheets
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Slack, Google Sheets and OpenAI.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Extract & Clean Email (Code): runs custom JavaScript code
- Set Email Config (Edit Fields (Set)): sets or maps fields
- OpenAI: work with conversation
- Parse Analysis (Code): runs custom JavaScript code
- OpenAI: work with conversation
- Prepare Reply Data (Code): runs custom JavaScript code
- Needs Escalation? (If): checks a condition and branches into true / false
- Slack: uses Slack
- Gmail: uses Gmail
- Gmail: add label
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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: Watch Inbox).
- 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 - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
A fully automated, AI-powered email assistant built in n8n that reads incoming emails, understands their intent and sentiment, classifies them by category, drafts intelligent context-aware replies, and sends them automatically — all without any human…