Examples
Complete, copyable programs for common jobs. Each shows the Python SDK and the raw HTTP request, so you can use them from any language.
Choice · Score · ExtractSupport ticket triageRoute tickets to the right team, flag angry customers and pull the order number.
Noul · thresholdsAuto-approve refunds safelyApprove when sure, escalate when not, with thresholds set by cost.
derive · TaskInsurance claim intakeRead dates and amounts, compute deadlines exactly, route claims.
Images · LocateBrowser agentLook at a screenshot, decide the next action and find where to click.
Fill · self_checkInvoice extractionPull totals, dates and line items, and check each value.
Noul · asyncContent moderationScore thousands of posts against a policy, concurrently.
VideoCamera monitoringAsk whether something happened in a short clip.
Agent · argsTool-calling agentChoose the next tool and its arguments, and hand over when unsure.
The pattern behind all of them
- Put the situation, and any rules, in the state.
- Ask every question you need in one request.
- Act on the probabilities: automatic above a threshold, a person in between.
Python
r = c.ask({"policy": POLICY, "input": text}, questions)
if min(r.certainty.values()) > 0.9:
act(r.values)
else:
review(r)