Gmail triage and Slack urgent alerts
Labels recent Gmail by intent and alerts Slack when a message is urgent. This n8n template runs on a schedule and pulls Gmail messages received in the last 4 hours. Each email is analyzed with GPT-4 according to the page body, while the title names GPT-4o. The model returns a one-line summary, urgency (High, Medium, Low), a category and an intent. The workflow adds an intent label in Gmail under an AI Agent prefix, sends a Slack alert for High urgency, logs all emails to two Google Sheets and sends a Slack digest of the Medium and Low urgency messages. The page gives both hourly and 4-hour timing.
Steps
- Trigger: Schedule trigger runs every hour
- Fetch emails and labelsGmail
Gmail messages from the last 4 hours, and Gmail labels. - Analyze with GPT-4OpenAI
Summary, urgency, intent, category. - Classify and labelGmail
Intent label added inside Gmail. - Slack alerts for high urgencySlack
- Google Sheets loggingGoogle Sheets
Sheet1 all messages, Sheet2 latest batch. - Wait, then prepare the digestGoogle Sheets
Waits 30 seconds, reads Sheet2, groups Medium and Low urgency. - Output: Slack digest summarySlack
Medium and Low urgency messages from the past hour.
Limits
No limit written yet. That does not mean it has none.
What it does well
- Medium and Low urgency messages go to a Slack digest.
Before you import
You need: Gmail, Slack, Google Sheets and OpenAI credentials.
Similar templates
Gmail support drafts with IONOS AI
Also for customer support, 7 steps.
Gmail knowledge base support agent
Also for customer support, 7 steps.
Label Gmail with a local Ollama model
Also for customer support, 8 steps.
Gmail and OpenAI: 29 templates compared
Same two apps, different steps.
Google Sheets and OpenAI: 24 templates compared
Same two apps, different steps.
Gmail and Google Sheets: 22 templates compared
Same two apps, different steps.
Gmail and Slack: 18 templates compared
Same two apps, different steps.
OpenAI and Slack: 17 templates compared
Same two apps, different steps.
Google Sheets and Slack: 16 templates compared
Same two apps, different steps.
Sort incoming requests
Other templates that do this task.