quiet robot

Recipe: Triage new issues from a webhook

Starts when a webhook or GitHub event arrives, labels the new issue with Claude, drafts a first reply, and waits for a person to post it. What it does, when to use it, how to make it yours, and what a run costs.

View as Markdown

Starts when a webhook or a GitHub event arrives with a new issue. Claude labels it as a bug, a feature request or a question, drafts a first reply, and the run waits for a person before anything is posted. Without a trigger it reads a sample issue, so you can run it straight away.

At a glanceNotes
LevelAdvanced
CategoryCoding
ShapeA webhook starts it, AI labels, a person posts
PlanFree and up
Needs a Claude keyYes
Limits it comes with1 loop, 900 seconds, $0.10
Triage new issues from a webhook, as it is on the canvas.Read the issue (Run code), Label it (AI choice), Draft a first reply (Ask AI), Post label and reply? (Approval), Post them (Run command), Leave it for a person (Output). Arrows: Read the issue to Label it; Label it to Draft a first reply on any label; Draft a first reply to Post label and reply?; Post label and reply? to Post them on Approved; Post label and reply? to Leave it for a person on Denied.any labelApprovedDenied{ } RUN CODERead the issue◆ AI CHOICELabel itbug · feature · question✦ ASK AIDraft a first reply✋ APPROVALPost label and reply?>_ RUN COMMANDPost them⚑ OUTPUTLeave it for a person
Triage new issues from a webhook, as it is on the canvas.
Try it nowSimulateRun

Opens it in the Playground as a flow of your own. Simulate shows what a run costs. Run asks before it starts.

The steps

StepBlockWhat it does
Read the issueRun codeReads the issue from .qr/trigger.json, which a trigger writes, or from a sample payload when the run wasn't started by one.
Label itAsk AI, DecisionClaude (Haiku, quick and cheap) labels the issue: bug, feature or question.
Draft a first replyAsk AI, TextClaude drafts a short first reply for that label, asking for one missing detail if it would help.
Post label and reply?ApprovalA person reads the label and the reply, then approves posting them or leaves the issue for a person.
Post themRun commandSays what would be posted. The recipe posts nothing until you add your token and API call.

When to use it

  • New issues, form entries or orders should get a first look within a minute, at any hour.
  • You want AI to sort and draft, and people to decide what's posted.
  • A flow should start from another system, not from someone pressing Run.

Run it

The quick way: choose Try it now under the drawing. It opens the recipe in the Playground as a flow of your own, after you sign in if you aren't yet. Simulate opens it and shows the forecast, and Run opens it and asks before it starts, with what the run will likely cost. From the dashboard instead:

  1. In the dashboard sidebar, open Agent Playground → Recipes and find Triage new issues from a webhook. Choose Advanced to filter the list. In the builder, Recipes in the toolbar lists them too.
  2. Choose Use this recipe. It becomes a flow of your own, so changing it never changes the recipe.
  3. If you haven't yet, save your Claude key on the Secrets page. The builder offers Add a key… in the step's key list if it's missing.
  4. Choose Simulate to see the forecast, then Run.
  5. When the run waits for a person, approve or deny it from the banner, from Approvals, or from the approval email.

What you'll see: Run it from the builder and it reads the sample issue (#57, a coupon bug). Then send a real event: add a Webhook trigger and post {"issue": {"number": 1, "title": "...", "body": "..."}} to it, or add a GitHub event trigger for issues.

Make it yours

  1. Add a trigger (triggers need Pay as you go with a card): Webhook for your own systems, or GitHub event with the issues event for a repository.
  2. Change the labels in Label it to yours (2 to 6), and give each its own path if they need different handling.
  3. In Post them, call your tracker's API with a token saved on the Secrets page. Keep the approval before it.

What a run costs

These are the builder's own forecast for the recipe as it comes, with its limits, rounded. Simulate shows the same numbers for your version, and they change as you change the flow.

NotesTypical1 in 10 runsAt most
Sandbox time$0.002$0.002$0.01
Claude, on your key$0.002$0.002the run's spend limit
How long it takesabout 2 minutesabout 3 minutes900 seconds

A typical run uses $0.0017 of sandbox time, so about 600 runs cost $1, and every plan includes $5 of usage a month. The time includes a person taking a minute or two to answer the approval. The clock, and the sandbox, keep running while the run waits. Claude is billed by Anthropic to your own key, at their usual prices. The run counts it toward its spend limit, so it can't overspend, but we don't charge you for it. At most is the most a run could cost with these limits: it stops at $0.10 or 900 seconds, whichever comes first.

  • Agent PlaygroundQuickstart: build and run your first flow
  • Agent PlaygroundBlocks
  • Agent PlaygroundRecipes
  • SandboxesQuickstart: your first sandbox
  • SandboxesMCP server
  • SandboxesAPI reference
  • InsightsAll posts