Integrating Grok Bot with Slack using Cursor Webhook
This setup allows Grok Bot to interact in Slack while appearing as the logged-in user. A local listener captures Slack messages and triggers the Grok agent to respond.
added by @grossera
Using a Cursor webhook with @bot and a local machine running Grok https://t.co/83yVSE70L2:
I wanted Grok Bot in Slack and did not like the vanilla path.
Cursor’s Slack connector posts as the logged-in human. That is me. It is not a bot. Grok Bot (the app) is not in Slack as itself either. If a reply goes through Cursor’s Slack integration, Slack still shows my name.
𝗪𝗵𝗶𝗹𝗲 𝗹𝗼𝗼𝗸𝗶𝗻𝗴 𝗳𝗼𝗿 𝗮 𝗳𝗶𝘅 𝗜 𝗳𝗼𝘂𝗻𝗱 𝗮 𝗿𝗲𝘂𝘀𝗮𝗯𝗹𝗲 𝗽𝗮𝘁𝘁𝗲𝗿𝗻:
• The Cursor webhook is a doorbell.
• It wakes the agent so it can act.
• Write the payload first (to a file), then ring.
• A missing webhook body is normal. You cannot trust it.
• A local listener that delivers the payload first is the better alternative.
• Do not put that listener on Grok Bot’s cloud computer. Update/Reset rebuilds it. The listener is gone.
My setup:
A Slack app at https://t.co/hdEY71pWUj → Create New App → From a manifest. Grok Bot can write that JSON. I used the Hermes Slack manifest as a blueprint.
Slack creates a bot user (mine is GrokBot). Replies through that app show the bot, not me.
Always-on Mac Mini (Hermes lives there too) with Grok https://t.co/83yVSE70L2 connected for local files and LAN.
The app has to be up for the agent to read the file. Next to it, a lightweight LaunchAgent listens to Slack in Socket Mode. No model runs while it waits.
Inbound: Slack hits the listener. The listener writes the payload to a local file, then POSTs to the Cursor webhook (generic, not Slack).
That only wakes the agent inside Grok https://t.co/83yVSE70L2. The agent reads the file on the Mini and replies with Slack chat.postMessage as the bot user.