Trigger Grok automations
Start a Grok automation from a webhook by using the signing secret Grok issues.
- PlanPro or Enterprise
- WhoOwners, admins, and members
Trigger Grok automations from Project Feed
A Grok automation can start from a webhook. Grok creates the endpoint URL and the signing secret, and Project Feed signs each delivery with that secret using the Standard Webhooks headers Grok verifies. Each matching event starts one run, so subscribe only to events the automation should act on.
- 1.
Create the trigger in Grok
Add a webhook trigger to the automation and copy the webhook URL and the signing secret it shows. The secret starts with whsec_.
- 2.
Open Webhooks
In Project Feed, open Settings > Developers > Webhooks and select New webhook. Keep Destination on Standard webhook.
- 3.
Paste the URL and secret
Enter the Grok URL, then paste the secret into Signing secret from the receiving service. Choose the events and select Create webhook. Project Feed does not show the secret again.
- 4.
Send a test
Choose Send test and confirm the delivery shows a 2xx status in the delivery history, then trigger one real event.
signingSecret.Fix Grok automation problems
- The test fails with 401 or 403
- Grok rejected the signature. Paste the secret again from the Grok automation, with the whsec_ prefix and no spaces, and choose Send test.
- The signing secret is rejected when saving
- Use whsec_ followed by base64 text. The part after the prefix must decode to between 24 and 64 bytes.
- Grok rejects the request as too old
- Each attempt is signed when it is sent and Grok accepts timestamps within 5 minutes. A retry is signed again, so a failure here usually means the receiving clock is off.