Bridge Claude Code to Grok Bot through a webhook routine
With no direct API between them, the author found one door after reading 37 doc pages: a Grok Bot routine with a webhook trigger. They wrapped it in 670 lines of dependency-free Python with 56 tests; sends are idempotent and results come back as files.
Source
@danmercede on X · 2026-10-15
Written in our own words. Credit to the original author. Link checked 2026-11-13.
What they did
With no direct API between them, the author found one door after reading 37 doc pages: a Grok Bot routine with a webhook trigger. They wrapped it in 670 lines of dependency-free Python with 56 tests; sends are idempotent and results come back as files.
Result (as claimed)
Full write-up published.
Tools they used
Cost: Claude Code: from $17/mo; Grok Bot: from $30/mo.
Set it up
Map the task
Write the trigger, the inputs, the decisions and the output. Note which steps need a human yes.
Connect the tools
Set up Claude Code, Grok Bot, Python with the narrowest permissions that work. Use a test account or sandbox first.
Build the workflow
Create the steps in order. Add an approval step before anything sends, pays or deletes.
Run it on real but low-stakes data
Run a few times, read every output, and fix prompts or rules that misfire.
Schedule and monitor
Turn on the schedule or trigger, and add a daily summary or alert so you notice failures.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Bridge Claude Code to Grok Bot through a webhook routine What the original author did: With no direct API between them, the author found one door after reading 37 doc pages: a Grok Bot routine with a webhook trigger. They wrapped it in 670 lines of dependency-free Python with 56 tests; sends are idempotent and results come back as files. Reported result (as claimed by the author): Full write-up published. Source: https://x.com/danmercede/status/2110769669456187797 Tools they used: Claude Code, Grok Bot, Python Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Bridge Claude Code to Grok Bot through a webhook routine What the original author did: With no direct API between them, the author found one door after reading 37 doc pages: a Grok Bot routine with a webhook trigger. They wrapped it in 670 lines of dependency-free Python with 56 tests; sends are idempotent and results come back as files. Reported result (as claimed by the author): Full write-up published. Source: https://x.com/danmercede/status/2110769669456187797 Tools they used: Claude Code, Grok Bot, Python Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Bridge Claude Code to Grok Bot through a webhook routine What the original author did: With no direct API between them, the author found one door after reading 37 doc pages: a Grok Bot routine with a webhook trigger. They wrapped it in 670 lines of dependency-free Python with 56 tests; sends are idempotent and results come back as files. Reported result (as claimed by the author): Full write-up published. Source: https://x.com/danmercede/status/2110769669456187797 Tools they used: Claude Code, Grok Bot, Python Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to set up Grok Bot agents for real work: first Bot, routines, webhooks and a team of Bots, with prompts · How to vibe code an app with Claude Code · How to trigger AI agents with webhooks and events · How to add payments to vibe-coded apps
Related use cases
Drive Claude Code by voice from Grok Bot
He starts Claude Code inside tmux and has Grok Bot's voice mode send it prompts through tmux, so he can talk to his coding agent and still watch the session.
Let Claude Code hand tasks off to your Grok Bots
Unsure what to use Grok Bot for, a developer connected it to Claude so Claude Code can delegate tasks to Grok Bots, and open-sourced the bridge.
Run 40 Grok Bots through one chief bot for family, work and home
A non-coder talks to one bot, Jarvis, which runs about 40 others: it built a hide-and-seek game of his kitchen scanned in 3D for his kids, reconciles work expenses into Power Apps, runs his 3D printer, built his IT business site and its SEO, drafts email replies that wait for his OK, controls his TV and logs overtime in Notion. Coding goes through Claude and Codex CLIs on his own machines.
Have Grok Bot drive Claude Code to build a web app while you sleep
A builder sends Grok Bot an idea, screenshots, a reference site and a screen recording; Grok researches it, writes the plan and has Claude Code build the app overnight.