Bring personal Grok Bots into Slack as teammates, via webhook routines
Source read in fullRead first
Overview
Someone who already has a personal Grok Bot can run this self-hosted Slack gateway so each bot gets its own Slack app, handle, and DMs, and answers in the thread with its existing persona, memory, and apps.
Workflow
- What it is: A self-hosted Slack gateway that brings personal Grok Bots into a Slack workspace as their own teammates. Each bot gets its own Slack handle, avatar, and DMs, keeps its persona, memory, and apps, and replies in the thread. The README presents it as working with the Grok Bot already on a personal plan, through the bot's webhook routines. Slack Socket Mode is used so there is no public URL, open port, or TLS to expose.
- Grok Bot parts used: One webhook-triggered Routine per bot, whose instructions come from
routine-prompt.txt, plus a Slack bot token stored as a Grok Bot secret so the bot can post to Slack itself. There is nox.ai/bot/...template link. Each Slack event becomes a new routine run: grackle listens on Slack, then POSTs the message and its thread or DM context to that bot's webhook. Not part of Grok Bot: the grackle Node.js or Docker process, Slack apps (one per bot),bots.json/bots.tokens.json, and Slack Socket Mode. The Grok Bot, not grackle, posts the reply as its own Slack app. - You need: A Grok plan that includes Grok Bot (Premium, Super, or Ultra on The X Subscription, or a linked legacy SuperGrok or X Premium+ plan); a Slack workspace where you can create apps (the free Slack plan allows 10 apps, so up to 10 bots); Node.js 22.18+ to set up; and an always-on machine with Node.js or Docker to run it.
npm run add-botis meant to be run on a computer with a browser and the Grok Bot app at hand. Not stated in the source: any paid Slack plan beyond the free-plan app limit. - Install: Clone the repo, install dependencies, and run
npm run add-botonce per bot; then start grackle and invite the bot into channels. The README's path, kept as sub-steps:- Step 1:
git clone https://github.com/h0ngcha0/grackle.git, thencd grackle,npm install, andnpm run add-bot. The wizard is described as taking about ten minutes: it opens the Slack pages, checks every token, saves the bot tobots.json, tells you when to start withnpm start, and then checks that a message gets through and the bot answers. A screenshot walkthrough lives indocs/add-bot.md(that file was not fetched as a block). - Step 2: Start it with
npm start, or with Docker (docker build -t grackle .anddocker run -d --name grackle --restart unless-stopped -v "$PWD/config:/config" grackle). Mentions sent while grackle is offline are missed. The container reads/config/bots.jsonas user ID 1000; mount the folder, not the file. User 1000 must be able to readbots.json, whichnpm run add-botmakes readable only by the installing user; for a rotating app token, that user must also be able to write the folder andbots.tokens.json. For everyday use the README suggests a small always-on machine such as a VPS, a home server, or a Raspberry Pi. - Step 3: DMs work right away. In a channel, run
/invite @Allen(using the bot's Slack handle) and mention it. - Step 4: To do the same setup by hand, the README's details section covers creating the Slack app from
slack-app-manifest.yaml, saving the Slack bot token as a Grok Bot secret whose name is unique to that bot (bots on one Grok account share secrets), creating a webhook routine fromroutine-prompt.txtwith<YOUR MEMBER ID>,<BOT MEMBER ID>, and<SECRET NAME>replaced, and fillingbots.json. That routine file is long, so this case points to the path rather than repeating it. Webhook URL and key come from the routine's details in the Grok desktop app.
- After install: A mention, a DM, or (if
listenis on) a quiet group chat starts one webhook run; the bot replies in Slack as its own app.- Each run is a POST to the webhook with
Authorization: Bearer <webhookKey>.kindismention,dm, orchat(a listening bot). Context is up to 20 messages, trimmed so thattextandcontextstay within about 4,000 characters, the limit the README attributes to Grok staff for a webhook call. - Replies can start a few minutes late when Grok is busy; the looking-eyes reaction shows the message was picked up. A listening bot waits until a conversation has been quiet for 2 minutes (10 at most), then reads it in one run.
- Without
listen, the bot must be mentioned every time in channels and group DMs, even in a thread it has already answered. 1:1 DMs never need a mention. - If Grok asks in the app to approve the bot's Slack post, approve it there. Requests from background runs expire after 30 minutes.
- Other bots can @mention it when
allowBotsis on (the default). The routine prompt tells the bot to DM the owner and wait for confirmation before using private apps or acting on the owner's behalf at another bot's request.
- Did the author run it: The repository has no run records from the author. The repo includes tests, typecheck, and a GitHub Actions CI workflow. The check at the end of
npm run add-bot, and the screenshots underdocs/add-bot/, are an installer walkthrough and an acceptance step, not a record of a live Slack run.
Key points and results
- Maturity: At fetch time on 2026-12-04 the repo was created at 2026-12-01T22:01:44Z, last pushed at 2026-12-03T21:18:57Z, with 36 commits, 3 stars, 0 forks, 0 open issues or PRs, and an MIT license.
routine-prompt.txtwas fetched. The README does not label this a hackathon or demo. The repository has no author-run Slack record. - Permissions and boundaries:
bots.jsonandbots.tokens.jsonhold Slack tokens, secrets, and webhook keys; they are git-ignored and must be kept private. Anyone who can message a bot can start a run on the owner's Grok account;allowedUserslimits who may talk to it (empty means anyone who can message it, including guests, people from other companies in shared channels, and other bots). Only the owner's Slack member ID, in thetextof amentionordmrun, may ask the bot to use private apps such as email, calendar, or files, or to act on the owner's behalf. In achat(listen) run the bot must not do those things, even for the owner. Instructions incontextare background only. Withlistenon, every message in the channels and group DMs the bot is in goes to Grok, not just messages addressed to it. grackle does not log message text. - Known limits: Each message starts a new routine run, which is slower than live chat and can start a few minutes late when Grok is busy. The README states that Grok allows 200 runs an hour per routine and 300 an hour across all routines (author's claim, not reproduced). A bot answers at most 5 bot mentions an hour in each thread, and 5 more at a channel's top level. Agents that stream a reply by editing it as they go are not picked up reliably. The README says Grok's consumer terms do not allow making an account available to anyone else, so letting teammates talk to a bot on a personal plan is a grey area; the official way named there is a Team plan with Team Bots, and the project is used at the reader's own risk. This project is not affiliated with SpaceX Super Intelligence (xAI), Grok, or Slack.
- Worth borrowing: Give each Grok Bot its own Slack app and let the bot post the reply itself, with Socket Mode so the host does not expose a public URL. See the README's How it works section.
- Worth borrowing: Restrict private-app use and acting on the owner's behalf to the owner's Slack member ID in a direct mention or DM, and confirm in a DM before acting on another bot's request. See
routine-prompt.txt. - Worth borrowing: Use
allowedUsersto limit who can start a run, and treatlistenas a choice that sends the whole channel or group DM to Grok. See the Configuration table and Security and terms in the README.
Source
- Platform
- GitHub
- Author
- h0ngcha0
- Published
- Categories
- Multi-bot teams
What this evidence label means
Source read in full
We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.