# Examples

Source: https://docs.temprl.org/examples

> Complete Simo examples in Python, cURL and JavaScript - support triage, refund gates, insurance claims, browser agents, invoice extraction, moderation, video and tool calling.

Complete, copyable programs for common jobs. Each shows the Python SDK and the raw HTTP request, so you can use them from any language.

- [Support ticket triage](https://docs.temprl.org/examples/support-triage): Route tickets to the right team, flag angry customers and pull the order number.
- [Auto-approve refunds safely](https://docs.temprl.org/examples/refund-gate): Approve when sure, escalate when not, with thresholds set by cost.
- [Insurance claim intake](https://docs.temprl.org/examples/insurance-claims): Read dates and amounts, compute deadlines exactly, route claims.
- [Browser agent](https://docs.temprl.org/examples/browser-agent): Look at a screenshot, decide the next action and find where to click.
- [Invoice extraction](https://docs.temprl.org/examples/invoice-extraction): Pull totals, dates and line items, and check each value.
- [Content moderation](https://docs.temprl.org/examples/content-moderation): Score thousands of posts against a policy, concurrently.
- [Camera monitoring](https://docs.temprl.org/examples/video-monitoring): Ask whether something happened in a short clip.
- [Tool-calling agent](https://docs.temprl.org/examples/tool-calling-agent): Choose the next tool and its arguments, and hand over when unsure.

## The pattern behind all of them

1. Put the situation, and any rules, in the **state**.
2. Ask every question you need in **one request**.
3. **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)
```
