An iPhone shortcut triggers a Grok Bot Routine with the full keyword-matched iMessage
Overview
The author wanted to skip manual prompts and tested an iPhone Shortcuts automation that triggers a Grok Bot webhook Routine from an iMessage and passes the message body.
Workflow
Trigger: Let an event tell the bot to start. In the author’s test, an iMessage with a keyword from the author’s partner automatically triggered a Grok Bot Routine and passed the full original message. No one opened the app, entered a prompt or stepped in. This is how the author used an iMessage to connect iPhone activity to Grok Bot and let a real-world event start an AI workflow.
- By hand: Create a webhook-triggered Routine in Grok Bot. Give it one specific job and clear permissions.
- By hand: Copy the Routine’s webhook URL and Authorization header from the sidebar. Ask Grok Bot for the request body format it expects.
- By hand: On iPhone, go to Shortcuts → Automation → + → Message.
- By hand: Pick a sender and set Message Contains to a keyword. Turn on Automation and leave Confirm Before Run off.
- By hand: Add a Get Contents of URL action. Paste the webhook URL, set the method to POST and include the Authorization and Content-Type headers from Grok Bot.
- By hand: Set the request body to JSON. Add a source field with the value imessage-shortcut, and a message field that takes the incoming message variable instead of hard-coded text.
- Check: Have someone else send an iMessage with the keyword. Confirm Grok Bot received the message and ran the Routine. The author’s test showed that an incoming iMessage could start a Grok Bot Routine and pass the real message text (author's claim, not reproduced).
Key points and results
- No human relay is needed. The whole trigger chain runs without opening the app, typing a prompt or intervening.
- The sample commands are configuration examples. The author lists five to configure, beyond the tasks tested that day: GROK BRIEF for a calendar, email and priority briefing, GROK RESEARCH: [topic] for research, GROK BILL: [provider] for the latest bill, GROK TEAM CHECK for the Chief of Staff to gather bot team progress, and GROK PREP: [meeting] to prepare from connected information. Set a Shortcuts trigger keyword such as GROK and restrict the sender. The Routine should recognize only those commands and start only authorized work.
- The pattern goes beyond iMessage. Activity in any app can be a trigger. An event can start a bot directly and spare it from repeatedly checking if something happened. Once a Routine starts, it can coordinate other bots within the permissions already granted.
- The author’s closing advice. Give Grok Bot tasks and events that tell it when to start.
Source
- Platform
- X
- Author
- Michael | AI + Agents
- Published
- Categories
- Life assistant, Getting started
What this evidence label means
Author's claim, unverified
The method and results come from the author's own account. This site has not reproduced them.