Smart Email Triage with Gmail, GPT-4, Slack and Google Sheets

Go to Workflow
0 views
Built by Rahul Joshi Rahul Joshi
Created on October 15, 2025

Description

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 time and ensures no important email is overlooked. πŸ€–πŸ’ŒπŸ“Š

What This Template Does
Monitors Gmail for unread or new incoming emails. πŸ“₯
Extracts sender, subject, and body content for processing. βœ‰οΈ
Uses GPT-4 to analyze email intent and determine priority. 🧠
Formats key insights (sender, summary, intent, urgency). 🧾
Posts structured summaries and priority alerts in Slack. πŸ’¬
Logs all processed emails with classification results in Google Sheets. πŸ“Š
Sends error notifications in case of API or parsing failures. 🚨

Key Benefits
βœ… AI-driven email intent classification for smarter response handling.
βœ… Seamless Slack notifications for high-priority or urgent emails.
βœ… Maintains a centralized record of email insights in Google Sheets.
βœ… Reduces response time by surfacing critical messages instantly.
βœ… Minimizes manual email triage and improves team productivity.

Features
Real-time Gmail monitoring for unread emails.
AI-based classification using GPT-4.
Slack notifications with rich formatting and urgency tagging.
Google Sheets logging for tracking and analytics.
Built-in error handling with notification alerts.
Modular setup for easy credential reuse across projects.

Requirements
Gmail OAuth2 credentials with inbox read access.
Slack Bot token with chat:write and channels:history scopes.
Google Sheets OAuth2 credentials for data logging.
Azure OpenAI (or OpenAI GPT-4) API credentials.
n8n instance (cloud or self-hosted).

Target Audience
Customer support teams managing shared inboxes.
Operations teams tracking email-based requests.
Sales or marketing teams prioritizing inbound leads.
AI automation enthusiasts optimizing email workflows.
Remote teams using Slack for real-time updates.

Step-by-Step Setup Instructions
Connect your Gmail, Slack, Google Sheets, and GPT-4 credentials in n8n. πŸ”‘
Specify the Gmail search filter (e.g., is:unread) for tracking new emails. πŸ“¬
Add your Slack channel ID in the notification node. πŸ’¬
Set your Google Sheet ID and tab name for logging results. πŸ“Š
Run once manually to verify connection and output structure. βœ…
Enable the workflow for continuous, real-time execution. πŸš€

Nodes Used (7)

AI Agent
@n8n/n8n-nodes-langchain.agent
Azure OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatAzureOpenAi
Code
n8n-nodes-base.code
Google Sheets
n8n-nodes-base.googleSheets
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Slack
n8n-nodes-base.slack
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured