Trigger a Grok Bot routine with a keyword in iMessage
At a glance
An iPhone user tested a message-triggered automation that passes an incoming text to Grok Bot. This workflow is listed under Personal automation, Messaging, Life admin.
- Agents / tools
- Grok Bot, Apple Shortcuts, iMessage
SourceBuilding a tool for these workflows? See weekly rates.
What they did
1) Have an iPhone with Shortcuts and a Grok Bot account that can create webhook-triggered routines. Create the routine with a webhook trigger, then copy its webhook URL and Authorization header. 2) In Shortcuts, open Automation, choose Message, and set the sender and a Message Contains keyword. Turn Confirm Before Run off. 3) Add Get Contents of URL, paste the webhook URL, select POST, and enter the supplied authorization header. Set the request body to JSON: source is imessage-shortcut, and message is the incoming message variable from the automation. 4) Save the automation and have that sender send a text containing the keyword. Check that the bot routine starts and receives the message text; the author tested this with a message from his wife.
How it went
The author reports a successful trigger without opening an app or typing a prompt.