Skip to main content

A local Grok Bot decision board sends web answers back through a webhook Routine

GitHubGitHubzedatrix2026-11-24

Life assistantMulti-bot teamsSource read in fullRead first
GitHubGitHubzedatrix2026-11-24

Open original

Overview

A local decision board helps a Grok Bot chief of staff surface decisions. The user answers from the page or chat, and a webhook Routine writes answers back to the board.

Workflow

  1. What it is: A local decision board template for a Grok Bot chief of staff. A single-page web app and CLI (bin/ab.mjs) let the bot post decisions as cards on a local board and in chat. A user answers in either, and web actions return to the bot through a webhook Routine. README calls it a from-scratch chief of staff setup with example data and screenshots.
  2. Grok Bot parts used: Webhook and scheduled Routines, chat cards and commands on a registered computer. (1) One webhook Routine handles answers, Explain this better, Not relevant anymore and glance-row comments. (2) An hourly refresh reconciles, clears expired cards, rebuilds glance and follows up. (3) A ticket-system webhook (Linear in the example) or schedule runs ab project-refresh. (4) The bot posts chat cards and users can answer in chat (ab answer --by chat). (5) The Routine runs the CLI via bot shell access to the host. Not part of Grok Bot: local React/Vite app, Node server, CLI, launchd/systemd service and outside ticket system. No x.ai/bot template link.
  3. You need: macOS or Linux, Node.js 18+ and Grok Bot Routine permissions. Use npm and a modern browser. Chrome is optional for end-to-end checks. The bot needs a webhook Routine and shell access to the registered host, which may be its own computer. Use an event-delivery-only webhook key as recommended. Required paid plan: Not stated in the source.
  4. Install: Follow the README's 26-step chief of staff checklist. Main steps:
    • Step 1: After git clone, run ./start.sh. First run creates app/.env.local, installs dependencies, starts the server and opens a browser. Check http://board.localhost:8085.
    • Step 2: Edit app/.env.local for assistant name, IANA zone, port and host. For a name other than .localhost, run ./add-host.sh. Restart after editing.
    • Step 3: Create a webhook Routine with the exact prompt from README's Setting up the receiving side as a Grok Bot routine section, filling the absolute repo path. Put URL and auth in ACTION_BOARD_WEBHOOK_URL and ACTION_BOARD_WEBHOOK_AUTH, out of Git and chat.
    • Step 4: Install a launchd (macOS) or systemd user service (Linux). curl http://127.0.0.1:8085/__ab/board should return 200. Use the README curl to /__ab/webhook to confirm receipt.
    • Step 5: Run tests, clear sample cards, bring in glance lists with ab glance, use one ab project-refresh for the project page, raise the first real decision with ab raise and send the chat card.
  5. After install: Send cards and record decisions in sync.
    • Raise with ab raise and build chat cards only from the CLI's printed card. Reusing an ID updates the card in place.
    • Answer in the browser using single choice, multiple choice or free text, change priority, ask Explain this better to rewrite the card in plain language under the same ID, or clear with Not relevant anymore. Open pages refresh about a second after file updates.
    • Answers and glance-row comments go to the webhook Routine, which writes with ab answer --by app. Without the webhook configured, answers remain in the browser and are sent later.
    • Glance lists waiting on others, others' PRs and tickets without PRs. Each row takes a comment to the assistant.
    • Hourly ab check --chat reconciles, removes cards resolved elsewhere, rebuilds glance and nudges once daily for items waiting more than two days. The project page updates by milestone counts.
  6. Did the author run it: The repository has no run records from the author. Screenshots and initial data are examples. README says screenshots use sample data from app/src/data/. In PR #1 the author reports passing vitest 288/288 and bin/ab.test.sh 307/307 (author's claim, not reproduced). readme-commands.test.ts executes README commands in order. There is no evidence the author used it for personal decisions.

Key points and results

  • Maturity: At fetch on 2026-11-24, under 1 day old (2026-11-23 20:08 UTC), 3 commits, 0 stars, 0 forks, MIT, 1 open issue or PR, and both listed PRs by the author. README calls itself a complete chief of staff setup with tests and end-to-end scripts.
  • Permissions and boundaries: Bind only to 127.0.0.1, unreachable from other machines. All routes validate Host and Origin against DNS rebinding and other sites. Anyone able to open the page can see webhook URL and auth. README recommends an event-delivery-only key. Delivery logs omit URL, auth, questions and comments. The sample hourly Routine politely nudges an owner of a waiting item at most once daily per item. This is the sole outside contact.
  • Known limits: macOS/Linux only and Node 18+. No database. Two data files with bin/ab.mjs the only supported writer. Direct webhooks need CORS or use the local /__ab/webhook relay. Explain this better and Not relevant anymore are not queued and only retry through one round. The Routine needs host command access. Keep private live board data out of Git.
  • Worth borrowing: Build chat cards from CLI output only and reconcile with ab check --chat to prevent drift between chat and board (README posting and sync sections).
  • Worth borrowing: Encode what the bot should do in exit codes. Exit 3 means the server is down, so skip chat. Exit 4 means answered or cleared. Exit 0 already-answered makes retries safe (README Exit codes).
  • Worth borrowing: Reliable delivery with local fallback, attempts at 0/500/1500ms, browser queueing until delivery, and logs containing event and status only (README How it is delivered).

Source

Platform
GitHub
Author
zedatrix
Published
Categories
Life assistant, 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.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.