Real-time Gmail triage with urgent Slack alerts

By General Input

Geni reads every new Gmail message, classifies it by priority and intent, applies a label, and pings Slack only when something is genuinely urgent.

Integrations

  • Gmail
  • Slack

Type

Agentic Task

Categories

  • Personal Productivity
  • Operations

Build me an agent workflow that triages my Gmail inbox in real time and pings me on Slack only when something is genuinely urgent.

Trigger: poll Gmail for new emails using the new_email event. Run on every new message that arrives in my inbox.

For each new email, the agent should: 1) Use Gmail Get a Message to fetch the full message and read the subject, snippet, and body. 2) Classify the email on two axes: priority (Urgent, Important, Normal, or Low) and intent (customer issue, sales reply, internal request, newsletter, automated notification, or other). The agent uses judgement here, this is not a deterministic pipeline.

Then apply a custom priority label in Gmail using Modify Message Labels. The labels are Priority/Urgent, Priority/Important, Priority/Normal, and Priority/Low. The first time a label is needed, create it via Gmail Create a Label, then reuse it for every subsequent email. List existing labels first if needed so we do not duplicate.

For anything classified as Urgent, post a concise alert to Slack using Send a Message into the channel #inbox-urgent. The Slack message should contain: sender name and email, a one-line summary of what they want, a suggested next action, and a link to the Gmail thread.

Important: skip the Slack alert for newsletters, calendar invites, and known automated senders (no-reply addresses, marketing domains, system notifications). These should still be labeled in Gmail but never posted to Slack. The Slack channel is for human-judgement urgency only.

Keep the Slack message short and skimmable. I should be able to glance at my phone and decide in five seconds whether to open the email now or later.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentWin back LiveChat visitors whose chats went unansweredChat quality review board for LiveChat support leadsChase the paperwork every new client and vendor still owesFile Gmail attachments into storage with names you can findWin back no-show and cancelled appointments every morningLive Loop returns analytics with product-level drill-downNewsletter pre-flight and approval board for Mailjet sendsTurn a prospect spreadsheet into personalized sequence enrollmentsMailjet email delivery lookup console for support teams