How to create a webhook trigger for Grok Bot
Sometime you might want to send information to your Grok bot from an external system.
Say, a customer has rised a issue and you want to do let the Grok bot do the initial analysis or something.
For such cases, you can use the webhooks trigger for your Grok bot.
How to get started?
Just tell your bot, to create a routine with webhook trigger and it’ll create a new routine for you.
And from the created webhook, you can get the credentials needed to trigger the webhooks.
Example
curl -X POST "https://api2.cursor.sh/automations/webhook/YOUR_WEBHOOK_ID" \ -H "Authorization: Bearer $YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"message": "Hello from my webhook!"}'
If it works, you should be getting success in the response.