New Tool Radar

AI Agents & Automation

How to Route Urgent Agent Email to Slack and Log the Rest in a Sheet

Route urgent agent email to Slack and log the rest in a sheet, so urgent messages get seen and nothing is lost.

Schematic with three steps: Build the trigger, classifier and router; Send urgent to Slack and log every; Run the two test emails and check.

Routing is triage with a destination: urgent messages go to Slack where a person will see them, and everything else is logged in a sheet where it can be found later. The Make pattern is a Gmail trigger, an AI module that classifies each message, a router that splits by class, and a Slack message on the urgent route plus a Sheets row on every route. Add a fallback route for messages the classifier cannot place, so nothing disappears when the AI is unsure. Test with one urgent and one ordinary message before turning it on.

What you need

  • A Gmail inbox, a Slack channel for urgent mail, and a Google Sheet for the log
  • A Make scenario with a Gmail trigger and a router
  • Two test emails: one urgent and one ordinary

Step 1: Build the trigger, classifier and router

Add the Gmail trigger, then the AI module that classifies each message as urgent or ordinary, then a router with one route per class plus a fallback route for unclassified messages.

Step 2: Send urgent to Slack and log every message in the sheet

On the urgent route add a Slack message with the subject, sender and summary. On every route add a Sheets row with the same fields, so the log holds everything and Slack holds only the urgent.

Step 3: Run the two test emails and check both destinations

Run the scenario on the urgent test email and confirm it reaches Slack and the sheet, then on the ordinary one and confirm it reaches only the sheet. If the ordinary one also reaches Slack, the classifier is too eager.

Worked example: synthetic email routing

The table below is a synthetic example. It shows the expected result of the routing; no email was routed.

Message Slack? Sheet?
Urgent: system down Yes Yes
Ordinary: weekly update No Yes
Unclassified message No, fallback Yes
Nothing lost Yes Pass

Expected result (UNTESTED). the urgent message reaches Slack and the sheet, the ordinary one reaches only the sheet, and nothing is lost. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A router without a fallback route lets unclassified messages disappear.
  • The classifier needs a low temperature, or the same message routes differently each time.
  • Slack is for urgent only; routing everything there trains the team to ignore it.
  • The sheet log must hold every message, or the audit trail has gaps.

Sources

See all