# Self-hosted AI workflow examples

- [Handle a refund](/examples/refund-desk). See how an idempotent refund API uses an order ID on retry. Inspect the duplicate-request test and compare recorded outcomes after a policy change.
- [Follow up on a support ticket](/examples/support-follow-up). Interrupt a support workflow while it waits for a human reply. See it reuse the recorded model decision and send one reminder after recovery.
- [Approve an invoice](/examples/invoice-approval). Match an invoice PDF to a purchase order and goods receipts. Follow a €150 price discrepancy from the approval request to the ledger.

## More examples

Each workflow includes its source, its compiled package and a walkthrough. The sandbox supplies the business services; workflows that make judgments need model access.

| You want to…                                 | Start here                                                                                                                                                        |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Answer questions from your documents         | [Helpdesk](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/workflows/helpdesk/README.md): cited pages, grounded answers and a chat bot                                                            |
| Follow up on support tickets                 | [Support follow-up](/examples/support-follow-up): classify, route, wait and remind                                                      |
| Approve expenses from a receipt photo        | [Expense desk](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/workflows/expense-desk/README.md): typed readings and a policy in code                                                             |
| Approve invoices against orders and receipts | [Invoice approval](/examples/invoice-approval): documents, arithmetic and human approval                                                |
| Handle refund requests through an API        | [Refund desk](/examples/refund-desk): written policy, model judgments and replies                                                       |
| Route shared mail or chat                    | [Mail router](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/workflows/mail-router/README.md) and [chat router](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/workflows/chat-router/README.md): shared handlers and escalation |
| Renew a contract by email                    | [Renewal desk](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/workflows/renewal-desk/README.md): a conversation that waits for replies                                                           |
| Learn one feature at a time                  | [Basics tour](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/examples/basics/README.md): seventeen small agents, including state, decisions and webhooks                                                  |

[All examples](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/README.md)

With their recorded runs on the site: [the refund desk](https://cernanto.com/examples/refund-desk), [the support follow-up](https://cernanto.com/examples/support-follow-up) and [the invoice approval](https://cernanto.com/examples/invoice-approval).

---

[Release source](https://github.com/Cernanto/cernanto/blob/v0.9.4/agents/README.md) · [HTML page](https://cernanto.com/examples)

## Project

[GitHub](https://github.com/Cernanto/cernanto) · [npm](https://www.npmjs.com/package/cernanto)

[About](/about)

## Contact

[Project questions](https://github.com/Cernanto/cernanto/discussions) · [Report an issue](https://github.com/Cernanto/cernanto/issues)

[Licensing](mailto:legal@cernanto.com) · [Security](mailto:security@cernanto.com)

## Legal

[License](/license) · [Patents and trademarks](/license#patents)

[Privacy](/license#privacy)

Cernanto™ · Copyright © 2026 Cernanto
