-
Start a Grok Bot Routine From Another App With a Webhook
Can another app start a Grok Bot routine? Yes. Grok Bot routines can start from a webhook. A webhook is a private web address that another app or service can send a message to. When it does, your Bot starts the routine and gets any details that came with the message.
What you need: the Grok Bot app on your Mac, Windows, or Linux computer (the webhook details show up on desktop), and an app or service that can send a web request with a custom header.
Step 1: Add the trigger
Copy and paste this into your Grok Bot:
Add a webhook trigger to my New Lead routine. When it runs, read the details that came with the call and draft a reply for me. Don’t send anything.
Step 2: Copy the webhook details
-
Click the Bot’s name at the top of its chat to open its details.
-
On the Details tab, open the routine. You’ll see a Webhook section with three fields.
-
POST to is the web address.
-
key is the secret password for it.
-
header is the full line the other app must send with the key, ready to copy.
-
Click a field to copy it.
Step 3: Point the other app at it
-
In the other app’s webhook settings, paste the POST to address and add the header.
-
The app can also send details with the call, such as a name or an order number. Your Bot receives them along with the routine’s instructions.
Step 4: Check that it worked
-
A 200 response means Grok Bot accepted the call and started a run. It doesn’t mean the Bot has finished. Check the Bot’s chat for the result.
-
Any other response means no run started. Make sure the routine isn’t paused and the call uses the current key.
-
Only new calls count. Calls sent before you added the trigger don’t start a run.
Good to know
-
The key works like a password, so keep it private.
-
Every run spends usage, so a webhook that fires often spends more than one that fires rarely.
-
All your routines together can run up to 300 times an hour, and each routine up to 200 times an hour. A run over the limit fails with “Automation run rate limit exceeded” and isn’t retried, so send the call again.
-
Keep sending, buying, and deleting behind your approval.
Grok Bot help page:
https://docs.x.ai/grok-bot/skills-routines-and-automations
docs.x.ai
Skills and routines | SpaceXSI Docs
Turn successful Grok Bot tasks into reusable skills and scheduled routines.
-
Sorry, there were no replies found.
Log in to reply.