SponsoredSynergy45Stronger looking, Thicker looking Hair SerumVisit Synergy45

Your business here

Grok Bot + Claude Code: hand X research to Grok mid-task

Claude Code calls a Grok Bot routine through a webhook whenever it needs current X posts, waits for the answer, then finishes the job, such as a landing page or a script.

Get the starter prompt

How does an AI agent webhook handoff to Claude Code work?

In this AI agent webhook handoff, Claude Code calls a Grok Bot routine through its webhook when a task needs current X posts, waits for the answer, then finishes the job. You create a webhook-triggered routine, write a Claude Code skill that calls it, decide where the answer is saved, and check the cited posts before building on them.

Setup

  1. In Grok Bot, create a routine that starts from a webhook. It gets its own webhook URL and key, and the request body reaches the Bot.
  2. Write a Claude Code skill, for example .claude/skills/grokbot-research/SKILL.md, that sends the question to the webhook and waits for the reply.
  3. Decide how the answer gets back. The demo's guide covers this behind a sign-in; a simple option is for the routine to save its answer to a doc or GitHub issue the skill reads.
  4. Test with one question, and check the cited posts before you build on them.

Starter prompt

Context / Role

Grok Bot with Claude Code (documented setup). Do the setup steps above first.

The copy-paste prompt
Starter promptAdapted from the source
---
name: grokbot-research
description: Use when the task needs current posts or discussion from X.
---
1. Send the question to the Grok Bot routine's webhook URL, with its webhook key, asking for: the 10 most relevant X posts with links, and a 5-line summary.
2. Wait for the answer at [doc / issue the routine writes to]. If nothing arrives within 10 minutes, carry on without it and say so.
3. Cite the post links you use. Never invent posts or quotes.
Variables to customize
  • [doc / issue the routine writes to]
Expected output / next step

A Claude Code skill that sends the question to the routine's webhook, waits for the 10 most relevant X posts with links and a 5-line summary, cites the links it uses, and carries on (saying so) if nothing arrives within 10 minutes.

Stack next step: Routines: daily and weekly runs that keep work moving.

Business fit

How this stack helps specific businesses:

  • CreatorsScripts, threads and newsletters can draw on what people are saying on X this week.
  • StartupsLanding pages and launch copy can answer the objections people actually post.
  • AgenciesAgencies fold live social research into client deliverables in the same session.

Watch-outs

  • The demo comes from Agent Native, which publishes the setup guide; no business results have been published yet.
  • Several replies argue the reverse works better: Grok Bot coordinating and Claude Code doing the building. See the next stack.
  • Treat the webhook URL and key like passwords.

Workflows on this page at a glance

The starter prompt, then the use cases and prompts linked below. Input data is what each prompt asks you to fill in; the last column is what it produces, or the time or money result the source states.

Summary of the workflows on this stack page: tool, input data and expected output
Workflow / use casePrimary AI role / tool slotInput dataExpected business output / time saved
Starter prompt for this stackGrok Bot + Claude Code[doc / issue the routine writes to]Expected outputA Claude Code skill that sends the question to the routine's webhook, waits for the 10 most relevant X posts with links and a 5-line summary, cites the links it uses, and carries on (saying so) if nothing arrives within 10 minutes.
Let Claude Code hand X research to Grok Bot mid-taskClaude Code, Grok Bot (Runs on its own)[webhook URL]; [your niche]Time savedNot published: the source gives no time or money figure

Related

Related stacks and workflows