Trigger an AI Agent From Email: Rule or Job?

An Inbox rule drafts and waits for you. A job on a Gmail event runs an agent with nobody watching. How the two compare on setup, outputs, storage and rate limits, and which one new mail should start.

Max Ma
Max Ma
Nov 1, 2026

Use an Inbox rule when new mail needs a reply, a label or a heads-up, and someone should read the reply before it goes out. Use a job triggered by a Gmail event when new mail should start work beyond the mailbox, done by an agent with its own tools and nobody watching. One drafts and waits, unless you write it to send; the other acts on its own.

Insulin has both, and because both start from the same mailbox, the choice is easy to get backwards. Below, each is judged on the same questions: where it’s set up, which mailboxes it reads, how it picks mail, what it can do, whether it waits for you, where its results appear, what it keeps, and how its volume is capped.

Draft and wait, or act unattended?

The dividing question is whether the output needs a person before it matters. A reply to a customer usually does: its tone, its facts and anything it promises are worth a look, and a sent email can’t be recalled. An Inbox rule is built for that. It reads the mail, then drafts, labels or pings you, and leaves the decision with you.

The work an email should start often isn’t a reply at all. An invoice from [email protected] might call for a record updated in a system the agent is connected to, or a short report assembled from several sources. That is agent work: tools, several steps, and no one to ask along the way. A job on a Gmail event runs its agent with that agent’s integrations, at the access each one is set to, and nobody is asked mid-run. Whether that lets the agent send mail is covered in can an AI agent send email without asking.

Neither one decides which mail matters. A rule’s plain-English description and a job’s filter expression are yours to write, and each has a way to test it before it counts.

Inbox rule vs Gmail-triggered job, side by side

The rule is the safer default for anything a customer will read; the job is the only one of the two that can act outside the mailbox.

Inbox App rule, started by new mailJob on a Gmail event
Where it’s set upThe Rules page, in plain English. The Inbox chat rail can create one too, except an auto-send ruleOnly by asking the assistant, with a live Gmail connection. The Jobs app has no create form
MailboxesGmail or Outlook, one at a timeGmail. Outlook isn’t a push source
Which mail countsThe rule’s description, saved as a structured filter. Preview runs it on a sample without sendingA filter expression on the event payload. With none, every event runs the agent
What it can doReply (a draft, or a send on an auto-send rule), DM you on Slack, apply up to five labelsWhatever its agent’s integrations allow, at their access levels
Does it wait for you?Every reply waits in Approvals ▸ Pending and Send asks you to confirm, unless you wrote an auto-send ruleNo. The run is unattended
Where results appearApprovals ▸ Pending, the Slack DM, and label chips under MailsThe run’s Output tab. Event runs send no Slack DM
What it keepsNever the full body. A per-message record: subject, sender, recipients, timestamps, the preview line, labels, draftsThe run’s Input tab keeps the event payload
VolumeNo per-rule limit documented. Messages Gmail throttles are retried60 runs per job and 300 per organization per rolling hour, then Rate limited

What can an email rule produce?

A reply, a Slack message to you, and labels. An email rule can’t take a CRM action. The Inbox documentation’s Actions table offers a CRM action “only on a CRM-triggered rule”, one started by a deal changing stage in Salesforce, HubSpot or Dynamics 365, and even then it waits for you to click Run in chat. Auto-drafting a follow-up when a deal stage changes covers that trigger.

The three outputs an email rule does have:

  • Email reply, either drafted for review or, on an auto-send rule, sent automatically. An auto-send rule fires on one exact condition on the sender, the subject or the body, puts no outside context into the reply, runs a pre-send check that moves doubtful replies to Approvals, and can be written only on the Rules page.
  • Slack, a direct message to you when the rule fires, with a link back to the queue. It needs your own Slack connection.
  • Labels, up to five per rule and 40 characters each. They show as chips in the Inbox, and on Gmail they sync as real labels when the connection carries the gmail.modify permission.

A rule also reads before it drafts. It searches the integrations its description names for context, and a draft for review can draw on the customer matched in your Fours data and on the knowledge bases you attach. That reading informs the draft; the outputs above are all a rule writes.

How does each one pick which mail counts?

A rule picks mail by what its description says. A job picks events with an expression you write against the payload, and with no expression it runs on all of them.

Clicking Save turns a rule’s description into a structured rule, and Details shows the filter it produced. Preview runs the rule as you’ve written it against one sample event and badges every output Preview only - not sent.

A job’s filter uses filtrex syntax, with the payload under the event namespace. The Jobs documentation is plain about the default: “If no filter expression is set, every event passes and triggers an agent run.” It doesn’t list the Gmail events a job receives beyond the gmail.<event> pattern, so look before you narrow. The assistant can run the job with a sample payload to exercise the filter, and a skipped event is recorded as Filtered rather than lost. Which events actually run a job covers writing a filter that keeps working.

What does each one keep?

The Inbox never stores a message’s full body but keeps a defined record of each message. A job keeps each run’s input, and the documentation doesn’t say what a Gmail event puts there.

The Mails section says bodies are fetched from your provider each time you open a message and “the full body is never stored.” What it keeps per message: the subject, sender, recipients and timestamps; the short preview line your provider returns; the labels applied; AI drafts and their edit history; the customer snapshot a draft was written with; a thread summary when you ask for one; and the rule-trace records.

A job run keeps three tabs: Output, Steps (every tool call, with its arguments and its result or error) and Input, which for a push run holds “the event payload.” The Jobs documentation says Fours event payloads are scrubbed of personal data before the agent sees them or a run record is stored. It says nothing either way about Gmail’s. Before you point a job at mail you’d rather not see on a run record, read the Input tab of its first few runs. The record is visible only to the job’s owner: not even an organization admin can open someone else’s job.

How is volume capped?

A job is capped at 60 runs per hour, and an organization at 300, over a rolling hour. The Inbox documents no per-rule limit, but its own Gmail watch can be rate-limited too.

The Jobs rate limits apply to runs started for you, an arriving push event included. They’re fixed, with no setting, and a run over either limit is recorded as Rate limited instead of executing. On a busy mailbox, the filter is the volume control.

The Inbox reads mail through a mailbox watch of its own, which the Jobs documentation names Inbox · Gmail. There, Rate limited “can also mean the run finished but Gmail rate-limited part of its work; those messages are tried again on a later delivery.” The Inbox documentation adds that a message is tried three times in all; one it gives up on shows a Failed badge and gets no draft, though you can still reply to it yourself. Whether that watch counts toward the 300-run organization limit isn’t stated.

Which one should new mail start?

Pick by who needs to see the result, and by what the email should change.

  • A customer is waiting for an answer: a rule. Questions from customers at globex.example get a draft in your writing style that waits in Approvals ▸ Pending.
  • You want mail sorted: a label-only rule, with no draft and nothing sent.
  • You want to know at once: a rule with a Slack DM, alone or beside a draft.
  • One kind of message always gets the same acknowledgement: an auto-send rule, written on the Rules page around one exact condition, such as mail from [email protected].
  • The email should start work in another system: a job on a Gmail event, with a filter, an agent whose integrations are set no wider than the work needs, and a look at the first runs’ Input and Steps tabs.
  • The email should update your CRM: a job, if its agent’s CRM integration allows writing. An email rule can’t; a CRM action belongs to rules a deal’s stage change starts.
  • Your mailbox is Outlook: a rule. Outlook isn’t a job source.

What about Google Calendar and GitHub events?

They work like the job column. Google Calendar (calendar.<event>) and GitHub (github.<event>) are push sources set up the same way, by asking the assistant with a live connection to that provider, and each gets the same filter, unattended run, run tabs and hourly limits. The Inbox App has no rule for them: its rules start from new mail, a deal changing stage in your CRM, or a Fours marketplace event.

Whether a piece of work belongs in a job at all is the question behind when to use a job instead of a conversation.

Sources

Primary sources for the platform rules cited above. Last verified November 3, 2026. Providers change their products, prices and terms without notice — check the source before relying on a detail.

  • Fours documentation: Inbox — Rules written on the Rules page or from the chat rail (never auto-send); Gmail or Outlook, one at a time; an email rule's outputs, with CRM actions only on CRM-triggered rules; up to five labels of 40 characters, synced to Gmail with gmail.modify; the auto-send conditions; Approvals ▸ Pending; the full body never stored and the per-message record; Gmail rate limits retried, three attempts in all, then a Failed badge
  • Fours documentation: Jobs — Gmail (gmail.<event>), Google Calendar and GitHub as push sources created only by asking the assistant with a live connection; no create form; filter expressions and the no-filter default; the Output, Steps and Input tabs; Fours payloads scrubbed; the Inbox · Gmail Rate limited note; no Slack DM for event runs; 60 runs per job and 300 per organization per rolling hour; jobs private to their owner

Browse every post on the Insulin Blog

Stay Updated

New posts, product updates and marketplace strategy are shared on LinkedIn as they publish.

Follow Fours on LinkedIn