Auto-digest your support inbox to Slack with Gemini

By General Input

Every 10 minutes, Gemini reads new support emails, tags urgency, and posts a compact digest to your team's Slack channel.

Integrations

  • Gmail
  • Google Gemini
  • Slack Bot

Type

Agentic Task

Categories

  • Customer Support
  • Operations

Build an agent workflow that sweeps my support Gmail inbox every 10 minutes and posts a digest of new unread threads to a Slack channel. Use Google Gemini to summarize each email and tag it with a priority.

Trigger: cron, every 10 minutes.

On each run, use Gmail List Messages to find unread messages in the inbox that do NOT already carry a Processed label (query something like `is:unread -label:Processed`). For each matching message, use Gmail Get a Message with the full format to pull the sender, subject, thread id, and body.

For each email, call Google Gemini Generate Content with model gemini-2.5-flash. Send the subject and body and ask Gemini to produce three things: (a) a two or three sentence summary written for a busy support lead, (b) the inferred customer sentiment, and (c) a priority tag with the value urgent, normal, or low.

Then use Slack Bot Send a Message to post one compact message per email to my team's support channel. Each message should include the sender, the subject, the priority tag, the short summary, and a link back to the original Gmail thread (https://mail.google.com/mail/u/0/#inbox/<threadId>). Keep formatting tight, use Slack mrkdwn, and never include the raw email body.

After posting each email to Slack, use Gmail Modify Message Labels to add a Processed label to that message so it never gets digested twice. If the Processed label does not exist yet, create it on first run.

If a run finds no new unprocessed emails, do nothing and finish silently. Do not post empty digests to Slack.

Make the Slack channel, Gmail search query, and Processed label name easy to change up top so I can point this at different inboxes and channels later.

Related prompts

Explore more prompts
Win back LiveChat visitors whose chats went unansweredA brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seats