All workflows
Gmail logoAnthropic logo

Auto-label new Gmail messages with AI

Reads unread inbox mail every hour and applies your own labels to each message using AI.

Every hour2 apps3 steps

Apps it connects

Authenticate each one once and the workflow is ready to run.

What it does

Each integration step this workflow runs, in order, what it is for, and the conditions and loops that decide when it runs.

  1. 1GmailList emailsReads up to 25 unread messages currently in your inbox, taking the sender, subject and preview of each.
  2. For each email

    1. 2AnthropicGenerate model responseAsks the AI to pick exactly one label from your rules for each message, or none if nothing fits.
    2. If label is not empty and label is not “none”

      1. 3GmailAdd label to messageApplies the chosen label to the message, creating the label in Gmail if it does not exist yet.

How it works

What happens on each run, in plain English.

Every hour, the workflow reads the unread mail sitting in your Gmail inbox and sorts it using labels you describe in plain English, such as one for invoices, one for candidate outreach and one for newsletters. The AI reads each message's sender, subject and preview against your rules and picks exactly one label, which is then applied to the message.

You end up with an inbox where new mail already carries the right label, and labels are created in Gmail the first time they are used. A message that matches none of your rules is left untouched rather than pushed into the nearest category, so the labels you do see stay trustworthy. A message that cannot be processed is noted in the run log and skipped, and the rest of the batch still goes through. Nothing is archived, moved or replied to: labels are added and that is all.

gmailemailtriagelabelsaihourly

Start from a workflow that already works.

Add "Auto-label new Gmail messages with AI" to your workspace, connect its apps, and make it yours.

Free plan, no credit card