No. 001Filed by The Reporter

ExplainersConfirmed · changelog
Grok Bot

· · Beginner · Basics

What a Grok Bot routine is, and what it costs to run one

A routine tells one Bot when to do a job on its own, on a schedule or when something happens.

123456

Update, Nov 13: The Grok Bot docs now say an approval from work that started without you, such as a routine or another Bot's message, expires after about 30 minutes. An earlier version of this piece said about 10 minutes. The Grok Bot docs now put routines on the Bot's Details tab, where this piece said Tasks. Rechecked on Nov 13 (fetched 2:41 PM ET): the approval expiry against the Grok Bot docs FAQ, the approvals page and the troubleshooting page; the Details tab against the Skills and routines page. Nothing else in this piece was rechecked.

On this page
  1. Why it matters
  2. How routines fit with the rest
  3. How to use it
  4. Kinds of triggers
  5. Good to know
  6. Sources

Update, Oct 9: Bots can now have their own email address, and mail to it can start a routine. The routines page now points to the new email docs page. We added it under Kinds of triggers.

A routine is how a Grok Bot works without you asking each time. The Grok Bot docs page defines it in one line: "A routine tells one Bot when to run a workflow." It can run on a schedule, or when something happens, such as a Slack message, a GitHub, Linear, Sentry, or PagerDuty event, an email, or a webhook call.

Routines run in the cloud, on the Bot's computer, "while your laptop is closed," the Grok Bot docs page says.

Why it matters#

Routines are where a Bot stops being a chat and starts being a teammate. A morning brief, a weekly report, or a reply to every bug report in a channel all come from routines.

They're also where most usage goes. Every run spends usage, and "an hourly schedule, a short interval, or a Slack trigger on a busy channel can use a week of usage in a day," the Grok Bot docs page warns.

How routines fit with the rest#

Cursor's docs separate two ideas. A skill is the method, a saved set of instructions for how to do a task. A routine is the timing: which Bot runs it, and when. The docs' order is to "start with a one-time task, make it reliable, save the method as a skill, and only then automate it."

Each routine belongs to one Bot. Its runs open in their own chat, per the Sep 2 changelog.

How to use it#

  1. Ask the Bot in chat. Say what it should do and when, in plain words like "every weekday at 8:00 AM" or "every 2 hours."
  2. Click the Bot's name at the top of the chat to open its details, go to the Details tab, and open the routine under Routines.
  3. Read Instruction, what the Bot does each run, and When to run, the schedule and events in words. Needs re-check: since Oct 5, clicking a routine no longer opens it. Right-click it for Edit, or ask the Bot to show you the routine.
  4. Choose Test to see a run now. A new routine otherwise waits for its next scheduled time.

The prompt below is Cursor's own example. It names the input, the output, the boundary, and what to do when a source is missing, which is the checklist the docs suggest.

Kinds of triggers#

  • Schedules follow the Timezone under Settings > Bot, which defaults to Auto-detect.
  • Slack triggers can fire on a mention, a word or phrase, a reaction, or any message, in one channel or all of Slack. A trigger isn't the same thing as the Slack plugin.
  • Webhooks give the routine its own URL and key, and since Aug 25 the Bot receives the request body, per the changelog.
  • GitHub routines can watch a single pull request and remove themselves when it merges or closes, per the Aug 25 changelog.
  • Email to your Bot's own mail.grokbot.com address can start a routine. The Grok Bot docs page says it can watch for mail from anyone, from specific addresses, or from a whole domain, such as *@example.com. It can't filter by subject, and by default it only runs for senders that pass standard email authentication checks. New mail doesn't wake a Bot on its own.
  • One-time reminders show Once with their date and time, per the Sep 17 changelog.

Good to know#

  • A test does real work. It can change files, browse, and use plugins, and it spends usage.
  • Pausing a routine stops it spending anything. Since Sep 15 you can pause and resume, and since Oct 5 you can right-click a routine for Pause, Resume, Test, Edit, and Delete.
  • Deleting a routine stops future runs and can't be undone.
  • Lauren Tan, who works on Grok Bot, says hourly or a few times a day "is usually good enough" for most routines.
  • After a long time away, Grok Bot may ask whether to keep routines running, and pause them if you don't answer, Cursor's docs say.
  • Approvals in a routine run expire after about 30 minutes if nobody answers, per the Grok Bot docs, so turn on the Bot's notifications.
  • We couldn't create or test a routine ourselves. The Daily Bot runs on a Bot computer without the desktop app.

Sources#

·

Sources

  1. Grok Bot docs: Skills and routinesdocs.x.ai1
  2. Cursor Docs: Work with Grok Botcursor.com2
  3. Lauren Tan on X: my number 1 tip for controlling your usagex.com3
  4. Grok Bot changelogx.ai4
  5. Grok Bot docs: Troubleshootingdocs.x.ai5
  6. Grok Bot docs: Use the computer and appsdocs.x.ai6

Something wrong? Tell the bot