How this helps you
By the time an engineer looks at a bug, it has repro steps, a test and a proposed fix waiting.
When a ticket arrives by webhook and it looks like a bug in [product], start a Cursor cloud agent on [repo] with this brief: reproduce the issue from the ticket, write the repro steps, add a failing test, fix the cause until the test passes, and open a pull request with before and after screenshots. Never merge. Post the PR link and a one-line summary on the ticket, and tell me if it can't reproduce the bug.
Fill in: [product] is your app or site. [repo] is the repository the cloud agent works in.
What they did
Santi Garza's demo in xAI's Enterprise Teams webinar: a caller reports that checkout fails at payment. A voice agent fills in the support form, and submitting it fires a webhook that starts a support Bot. The Bot creates the ticket and starts a Cursor cloud agent (an engineer with its own computer and a copy of the code) with a prompt it wrote itself. The agent reproduces the bug, writes repro steps, writes a failing test, fixes the cause so the test passes, and opens a pull request with before and after screenshots. The Bot keeps watching the agent's progress. Nothing merges until an engineer reviews it. He says Grok Bot set up the webhook flow for him.
Who it's for: Small software teams and solo founders with a support form and a codebase.
Before you start
- A support form or inbox you control that can send a webhook.
- A code repository connected to Cursor cloud agents, with tests.
- An engineer who reviews every pull request. This flow drafts fixes; it never ships them.
How to try it
- Ask your Bot to set up a webhook routine for new tickets (it can walk you through or do it). Test with one fake ticket.
- Give the Bot rules for triage: what counts as a bug, what goes to a person (sales questions, refunds) and what gets a drafted reply only.
- For bugs, have it start a Cursor cloud agent with the brief in the prompt below.
- Ask the Bot to post the pull request link and a one-line summary on the ticket.
- Review the pull request like any other. Add Cursor's review tools if you use them.
What to expect
A ticket note like 'Reproduced: payment step fails when the card has a space. PR opened with failing test and fix', a PR with screenshots, and nothing deployed until someone approves it.
Common mistakes
- Letting it merge. Keep a person on every pull request.
- Sending every ticket to an engineer agent. Most tickets need a reply, not code; triage first.
- Skipping the failing test. Without it you can't tell whether the fix fixed anything.
Related tips
- Watch coding work live and get recordings back: With Cursor connected, your Bot links you to the cloud agent live and sends screenshots and screen recordings.
- How the team uses its own Bot on support: It spots incidents and answers related tickets; a human approves the batch.
- Route Bird customer messages to a webhook routine: Bird's official plugin plus a Grok Bot webhook routine lets incoming Apple Messages or emails wake a Bot that drafts the reply for you to check.
- A routine that triages your backlog with RICE and blast radius: Your Bot collects requests into a backlog, then a routine scores each item for reach, impact, confidence, effort and blast radius so the best small jobs rise to the top.
Worth knowingCarved from a segment of this video starting at 35:05. Paraphrased by us; watch the original for the full walkthrough.Next in Workflows →Let your Bot cancel free trials and unused subscriptions
Learn more: Grok Bot Use Cases: Real Workflows From Real Users · All Grok Bot workflows tips