Gmail triage that drafts before you reply

Search and read Gmail from a workflow, classify with AI, save a draft or reply in thread, and label the message so the next pass skips it. One click.

Category
Email
Connect
Connect with one click (OAuth) · managing connections
Operations
14
Triggers
none yet

The inbox is where most work arrives and where most automation gives up. Gmail in MadMax covers the full loop: find the messages that matter with a normal Gmail query (from:alice is:unread, has:attachment newer_than:1d), read them, decide with AI, draft or send the reply, and label the thread so the next pass skips it. A person can sit in the middle of any of that with a one-click approval, and the safest output is a draft the step never sends. Gmail has no push events here, so a run starts with the watch trigger polling a search on a cron and firing once per unseen message id, baselining the existing inbox first, or by forwarding from Gmail to a workflow's own inbound address, which needs no connection at all and carries attachments. Writing back uses the connection either way. Describe it in plain English and MadMax builds the workflow, runs it on real messages from your mailbox, and shows you the drafts it would create before it creates any.

What teams build

  • A watch trigger polls is:unread -label:Triaged every ten minutes, an AI classify step labels each message support, sales, newsletter or other, support mail gets a reply drafted by an agent bound to your help-center knowledge base and saved with create_draft, and everything gets the Triaged label.
  • A form collects a prospect's email and context, an agent drafts a short first touch, an approval emails the rep a one-click approve or reject with the draft in the prompt, and send_message goes out only on approve; a week later a search finds the thread and reply follows up inside it.
  • A 2 a.m. schedule searches label:Receipts older_than:90d and a loop trashes each match, then a second search for from:alerts@ adds an Alerts label (created once, find-or-create) and marks them read so the morning inbox shows only what needs a person.

How it connects

One click. Press Connect on the Gmail card in Settings → connectors and approve the Gmail permission on Google's consent screen. MadMax stores the grant encrypted, refreshes the access token before it lapses, and never shows the token back to anyone; a revoked grant shows a reconnect button that re-authorizes in place. Connections belong to a workspace, private by default or shared with the team, and each Gmail step picks which mailbox it uses. See managing connections.

Related

Every Gmail operation MadMax can run

Straight from the integration's manifest, so this list is what the steps on the canvas can actually do today.

Operation What it does
add labels Add one or more labels to a message.
create draft Create a draft email without sending it.
create label Create a Gmail label. This is FIND-OR-CREATE: if a label with this name already exists, the existing label's id is returned (`found_existing: true`) instead of an error, so calling this in a loop or re-run is always safe.
get message Fetch a single message by id (full format: subject, from/to, snippet, labels).
list labels List every label in the mailbox (system + user). `labels` is the full list; match on `name` to find a label's id.
mark read Mark a message as read (removes the UNREAD label).
mark unread Mark a message as unread (adds the UNREAD label).
remove labels Remove one or more labels from a message.
reply Reply within an existing thread. Sets In-Reply-To + threadId so Gmail threads it correctly.
search messages Search messages with a Gmail query (e.g. `from:alice is:unread`). Returns matching message ids.
send message Send an email. Set `html` for an HTML body, else `body` is sent as plain text.
trash Move a message to the trash.
untrash Restore a message from the trash.
update label Rename a Gmail label in place. The label id is unchanged, so every message already carrying it keeps it under the new name.

Works with

Describe the workflow. MadMax builds it and tests it on your data.

Free to start, no card. Connect your apps, say what should happen in plain English, and watch each step run against real data before anything goes live.