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.

n8nRead on 2026-11-168 steps

Steps

  1. Trigger: Schedule trigger runs every hour
  2. Fetch emails and labelsGmail
    Gmail messages from the last 4 hours, and Gmail labels.
  3. Analyze with GPT-4OpenAI
    Summary, urgency, intent, category.
  4. Classify and labelGmail
    Intent label added inside Gmail.
  5. Slack alerts for high urgencySlack
  6. Google Sheets loggingGoogle Sheets
    Sheet1 all messages, Sheet2 latest batch.
  7. Wait, then prepare the digestGoogle Sheets
    Waits 30 seconds, reads Sheet2, groups Medium and Low urgency.
  8. 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