Run an agent per customer task
A typed answer, by webhook
Your backend starts one session per customer request with an org key, and Rush posts the result to your webhook when the turn ends.
Best for
- Products that run an agent for each customer request
- Work with no repository: research, drafting, analysis
Uses
- An org API key
- A webhook endpoint on your server
From your code
POST /o/{org}/sessions{
"harness": "claude",
"input": "Draft a reply to this support ticket from the attached thread. Keep it under 150 words."
}Watch it work, then read what comes back
GET /o/{org}/sessions/{session}/eventsevent: thinkingThe customer asked about a refund window.event: messageDrafted a 120-word reply.event: resultturn endedPOST your webhook · run.completed- type
run.completed- data.status
completed- data.result
Thanks for reaching out. Your order is within the 30-day window…- data.total_cost_usd
0.06
Steps
- 01
Create a key
An org admin creates a key under Settings, API keys. Store the
rk_live_…secret on your server asRUSH_API_KEY. - 02
Give the key a webhook
Set a public
httpsendpoint on the key. The response carries thewhsec_…signing secret once. - 03
Start one session per task
POST /o/{org}/sessionswithharnessandinput. Without a repository it runs in a sandbox of its own, with a computer and a browser. - 04
Verify and store the result
Each finished turn posts
run.completed,run.failedorrun.cancelled, signed per Standard Webhooks. Check the signature, then storedata.result.
In the API and the docs
Related
All use casesProduce a report or file, no repo
A file you download
Send a request with no repository; the agent works in its own computer and returns a file as one of the session's artifacts.
Open the recipeReview every pull request
A review on the PR
Each pull request gets an agent that checks it out in its own sandbox, runs the tests and posts a review with the evidence.
Open the recipe