Send to Grok Bot on iPhone
Share a post from the X app, pick where it goes, and you are done. You install the shortcut once and paste one code. You do not copy a webhook address.
1. Copy the relay code
- On a computer, open relay.sendtogrokbot.com.
- Copy the code. It starts with
stgbr1. - If you want Grok Bot or Claude, save that destination on the same page. ChatGPT and Codex need nothing saved.
2. Add the shortcut
The iCloud install link is not published yet.
When that link is here, open it on the iPhone. Shortcuts asks for the relay code. Paste the code from step 1. You paste it once.
If iOS says the shortcut is untrusted, open Settings, tap Shortcuts, and turn on Allow Untrusted Shortcuts. Then open the link again.
3. Send a post
- In the X app, open a post and tap Share.
- Tap Send to Grok Bot.
- Pick Grok Bot, Claude, ChatGPT, or Codex.
A notification names the destination. ChatGPT and Codex then open with the post filled in. You press Send in that app. Grok Bot and Claude are sent for you, using what you saved on the relay.
If Share does not list the shortcut, tap More on the share sheet and turn on Send to Grok Bot.
The last 50 sends are on History. Paste the same code there. That page does not save the code.
Build it yourself
Use this only when the install link above is still missing. In the Shortcuts app, create a shortcut named Send to Grok Bot, turn on Show in Share Sheet, and add these actions in order.
- Text. Paste the relay code. This stays the first action.
- Set Variable named Relay Code.
- Get URLs from Input. Input is Shortcut Input. Then Set Variable named Links.
- If Links has any value.
- Inside that If: Get Item from List, First Item, from Links. Set Variable named Post URL.
- Choose from Menu. The lines are Grok Bot, Claude, ChatGPT, and Codex.
- Under each line, add Text with exactly
grokbot,claude,chatgpt, orcodex, then Set Variable named Destination. - Below End Menu, add Get Contents of URL. URL
https://relay.sendtogrokbot.com/v1/send. Method POST. HeaderAuthorizationisBearerplus the Relay Code variable. HeaderContent-Typeisapplication/json. JSON body:destinationis Destination,urlis Post URL,sourceisshortcut. - Get Dictionary from Input, then Set Variable named Response.
- Get Dictionary Value for
notice, from Response. Set Variable named Notice. - Get Dictionary Value for
openUrl, from Response. Set Variable named Open URL. - Show Notification. Title Send to Grok Bot. Body is Notice.
- If Open URL has any value, Open URLs with Open URL.
- In the Otherwise of the first If, show a notification: No post link was shared.