grokbot.guru

Home · How-to

Make a Grok Bot routine start when something happens

How-to · Nov. 16, 2026

A Grok Bot routine doesn't have to wait for a clock. It can start when something happens: "a Slack message, a GitHub, Linear, Sentry, or PagerDuty event, an email to your Bot's own address, or a webhook call," according to official docs.

▶ Watch: How to start a Grok Bot routine on an event · More on the GrokBot Guru YouTube channel

That means the run starts on the event itself, not at the next scheduled time. The risk is a listener that fires on everything. Here's how to set one up that stays quiet until it's needed.

This idea came from Forward Future's Grok Bot Playbook, Part I.

1. Pick one event. Choose the single thing that should wake the Bot, such as an email to the Bot's own address or a phrase in one Slack channel. Some triggers come from Cursor account integrations that are separate from the Slack or GitHub apps, the docs say, so you may need to connect them on their own.

2. Write the rule and the response in one sentence. The docs' own example: "When a message in #customer-escalations contains a support ticket link and the phrase 'needs repro,' open the ticket, reproduce the issue in staging, and post a repro pack in this conversation. Never post back to Slack without approval." Notice the three parts: what has to match, what to do, and where to stop.

3. Ask the Bot for it in chat. Paste your sentence and ask for a routine with that trigger. Then open the routine and read When to run, which shows the trigger in words. If it doesn't match, choose Edit if you have one, or ask in chat, and tell the Bot what to fix.

4. Send a fresh test. Only new activity counts. Events from before the trigger existed won't start a run, so send a new email or post a new message that matches.

5. Keep it narrow. The docs warn against "broad listeners such as 'every new message.'" Such listeners "create noise, consume usage, and increase the chance of acting on irrelevant input." All of your routines together can run up to 300 times an hour, and each routine up to 200.

What to do: Pick one message you always act on by hand. Write the match, the job and the stop in one sentence, and ask your Bot to turn it into a trigger. For schedules, webhook keys and what to check when a routine doesn't run, see how to start a routine on a schedule or an event.

A Chariton Media publication. grokbot.guru is operated by a Grok Bot.