GROK BOT / start-a-grok-bot-routine-when-email-arrives

Start a Grok Bot routine when email arrives

Set a Grok Bot routine to run as soon as an email reaches your Gmail or the Bot's own address, at any hour, so it no longer waits for the next scheduled check. You describe the mail and what the Bot should do with it, the Bot picks the trigger, and you confirm it under When to run (labeled Schedule on the phone).

The changelog for 1.4.0, Nov 30, 2026 says routines can start when an event comes in, "like an email from a prospect," and that "Routines with event-based triggers only run when their event happens, so they don't use credits on scheduled checks." The setup steps below follow Trigger work from an event and Routine triggers, both checked on Dec 3, 2026.

Need

Do

1. Ask the Bot for the routine

Ask the Bot that should own it, and name the event and the response. The Bot chooses the trigger from what you describe.

For mail in your Gmail, ask something like:

When new mail reaches my Gmail from billing@example.com, summarize it in this chat. Do not send a reply.

For mail sent to the Bot's address, ask something like:

When mail arrives at your address from *@example.com, summarize it in this chat. Do not send a reply.

Routine triggers says to use the Bot's address for mail sent to the Bot on purpose, and a Gmail trigger for mail that lands in your own inbox. A Gmail trigger starts when new mail reaches any Gmail account you connected.

If a Slack or GitHub trigger needs an account you haven't connected, the Bot shows a card to connect it.

On the phone, you can also open the Bot's profile and tap Add routine under Routines. Grok Bot starts a message that begins "Set up a routine to"; finish the sentence and send it.

2. Check When to run

On desktop, click the Bot's name at the top of the chat to open its details. Routines are on the Details tab. Open the routine and check When to run, which shows the trigger in words.

On the phone, routines are on the Bot's profile, and the same field is labeled Schedule.

If it doesn't match what you meant, choose Edit, which starts a message that begins "Edit your routine:" with the routine's name. Add what should change and send it. You can also ask the Bot in chat.

A trigger starts runs only for new activity, not for anything from before it existed. Events that don't match the trigger don't start a run. For mail sent to the Bot's address, mail that fails the spam or virus scan is kept without its body or attachments, and it never starts a routine.

3. Narrow the trigger

Tell the Bot how to narrow it, such as "only email whose subject includes invoice."

A Gmail trigger can be narrowed by sender, subject, and account. A Bot email trigger can be narrowed by sender, subject, replies, authentication, and attachments. For a Bot-email trigger, you can list senders as addresses or whole domains such as *@example.com, or from anyone. An email trigger can list up to 50 senders.

By default, a Bot-email trigger skips senders that fail standard email authentication. If you ask the Bot to include them, When to run adds "including unauthenticated senders."

For a judgment a field can't capture, such as "a customer complaint," the Bot can describe which events count, and each event is checked against that description first.

A Gmail trigger, or one that watches an app, must be the routine's only trigger. Keep triggers narrow. Each run spends usage.

4. If a Gmail trigger can read no mail

The changelog for 1.6.0, Dec 1, 2026 says: "When a routine's Gmail trigger can read no mail, the Bot asks you to connect Gmail, or moves the routine to a watch or a schedule that checks mail instead."

If Gmail has signed you out, When your Bot takes initiative says your primary Bot tells you in its chat and offers to reconnect.

5. Move an hourly inbox check to an email trigger

If a routine already checks the inbox on a schedule, ask the Bot to start it when mail arrives instead, or open the routine, choose Edit, and say what should change. Then check When to run again. A Gmail trigger has to be the routine's only trigger, so the routine can't also keep a schedule.

Your primary Bot, marked with a star in the sidebar, can also switch one of its own scheduled routines to an event trigger. When your Bot takes initiative says it does this when the scheduled routine checks for something a trigger can catch, such as new mail in Gmail.

It moves only its own routines that are on, and only ones that report what they find, without posting, sending mail, or changing anything in another app.

The routine then runs when the event happens, at any hour, instead of on a timer. The Bot tells you in chat which routine it moved and what starts it now. This move does not wait for a yes. If you change one back, it shouldn't move that routine again.

A Team Bot can't be your primary Bot.

6. If the routine should send mail from the Bot's address

Email from a routine, or from any other turn you didn't start with that request, waits as a draft until you press Send. The computer and apps page says "there's no option for unattended sending."

7. Test, if the routine shows it

If the routine shows Test, open it on desktop and choose Test. The button says Running… until the run finishes, and the result shows up in the Bot's chat. A test run performs real work. Use safe inputs, and keep write actions behind approval.

If the test can't start, you see Couldn't start a test run, or a message that explains why. Some routines don't show Test; they still run on their schedule or trigger. For those, ask the Bot to do the same work once in chat with a safe input.

See

  • When to run (or Schedule on the phone) describes the email trigger in words.
  • Mail that doesn't match the filter does not start a run. Mail from before the trigger existed does not start a run. For mail sent to the Bot's address, mail that fails the spam or virus scan never starts a routine.
  • If the Gmail trigger can read no mail, the Bot asks you to connect Gmail, or moves the routine to a watch or a schedule that checks mail.
  • If the routine would send from the Bot's address, a draft waits until you press Send.

Where the sources stop

  • How the Bot chooses, in 1.6.0, among connecting Gmail, a watch, or a schedule. The changelog names those three outcomes. It doesn't say which one you get, or name any buttons on that prompt.
  • Whether a Bot-email trigger can share a routine with another trigger. The docs say a Gmail trigger, or one that watches an app, must be the routine's only trigger. They don't say the same about Bot email.
  • Exact words to use when you move a scheduled check. The docs say to choose Edit or ask the Bot in chat. They don't give a required phrase.
  • Origin as a trigger. The 1.4.0 changelog lists Origin among the event sources. The Routine triggers table fetched Dec 3, 2026, does not include Origin. Sources differ. This page doesn't use Origin.

Related