# Why finance and insurance run on state machines

> State machines improve throughput, accuracy and auditability in regulated businesses, and give the whole process one versioned contract. Here is the business case, with the evidence each benefit produces.

By Ptally Regulation and Risk, 21 November 2026. Category: Regulation.
Source: https://ptally.ai/blog/why-finance-and-insurance-run-on-state-machines

Payments, lending, insurance and investments all share a pattern. A case passes through a series of checks before money moves, and afterwards someone may need to show what happened and why. Banks have long run payments this way, with each payment in a defined status. More of insurance and lending is now following, because the same structure that makes a process safe also makes it fast.

This article sets out the business case. If you are new to the idea, [our introduction to state machines](https://ptally.ai/blog/what-is-a-state-machine) explains states, events, rules and traffic lights with diagrams.

## Four benefits

A well-built state machine improves four things at once.

![Four panels: throughput, accuracy, auditability and system contract.](https://ptally.ai/blog/state-machine/four-outcomes.png "What a state machine improves")

### Throughput

In a manual process, every case passes through every person. Most of the elapsed time is not the work itself but the wait between one person finishing and the next one starting.

![Top: six steps, each followed by a wait for the next person. Bottom: five steps run straight away and only the referred step waits for a person.](https://ptally.ai/blog/state-machine/waiting-vs-working.png "Where the time goes")

A state machine moves a case on as soon as a rule allows it. Green steps run straight away. Only the cases that need judgement wait, and only at the step where they need it. Because each case holds its own state, many cases can run at once without queuing behind each other.

This also changes how a team grows. If every case needs a person at every step, more volume means more people. If people only handle referrals, volume can grow while the team focuses on the cases that need them.

### Accuracy

When people move cases by hand, the same check can be done differently by different people, or skipped on a busy day. When a state machine moves cases, every rule runs on every case, in the same order, every time.

Accuracy also improves because information is not retyped between systems. The values a check used are the same values the price used, and both are kept.

### Auditability

Every move in a state machine is recorded as it happens. That record answers the questions regulators, auditors and complaints teams ask:

![The record behind one quote: the model version, who ran it, when, its inputs, the lights, the rule that fired, and an amendment by an underwriter with a reason, keeping the original result.](https://ptally.ai/blog/state-machine/quote-record.png "The record behind one quote")

- **What was decided?** The result, whether it was valid, and any refers or exclusions.
- **Why?** The rules that fired and the inputs they used.
- **Under which rules?** The version of the model that ran.
- **Who acted?** A person, an AI agent or an integration, with a time.
- **What changed afterwards?** Any amendment, with who made it and why, alongside the original result.

For UK firms this supports Consumer Duty, which expects firms to evidence good outcomes and fair value rather than assert them. It supports senior managers who need to show reasonable steps over the processes they are accountable for. And it supports the growing expectations on AI, from the EU AI Act to the NAIC's model bulletin in the US, that automated decisions can be explained and that people stay in control. Our article on [explainability in regulated industries](https://ptally.ai/blog/ai-in-regulated-industries-explainability) covers those rules in more detail.

### One system contract

Without a state machine, the rules of a process are spread across portals, services and spreadsheets, and the contracts between them. With one, the process is described in a single versioned model that every channel uses. A rule change is a model change, tested and approved, rather than a coordinated release across several teams. Our article on [replacing schemas and service contracts](https://ptally.ai/blog/one-system-model-instead-of-schemas-and-service-contracts) explains how.

## Where state machines help most

The benefits are largest where several of these are true:

- **High volume with a long tail of exceptions.** Most cases are straightforward and a minority need judgement, as with personal lines, small business insurance, consumer lending and retirement income.
- **Several channels.** Brokers, direct customers and price comparison sites all need the same rules and the same price.
- **Outside data and checks.** Identity, sanctions, credit, property or vehicle data, some of which can take time to come back.
- **Documents.** Applications that arrive with evidence that has to be read and cross-checked.
- **Regulatory scrutiny.** Any process where you may need to show, years later, why a case was treated as it was.

## What to ask of a platform

If you are assessing whether a platform can run your process as a state machine, these questions separate the real thing from a workflow diagram on top of separate systems.

1. Is the state of each case held in one place, or reconstructed from several systems?
2. Can the business change a rule, test it and publish it without a software release?
3. Does every saved result record the version of the rules that produced it?
4. Can you see who moved each case, including AI agents and integrations?
5. If someone amends a result, is the original kept?
6. Can an AI assistant read and explain the record without being able to change live rules?

Our [buyer's checklist for pricing platforms](https://ptally.ai/blog/insurance-pricing-platform-buyers-checklist) covers the wider evaluation.

## How this is done in Ptally

Ptally is the rating and rules state machine for quote to bind. It builds, manages and records the state of your quoting and binding system, which is what lets you make that system agentic and automated.

- **The model is the state machine.** A system model runs your modules in order, such as check, validate, enrich, KYC, rate and CRM. Refer and exclusion rules set each module's light.
- **Built for volume.** Quotes are served in milliseconds and cases run in parallel. The platform has handled more than $1 billion of annual premium and over 50 million flows, with more than 3 million more each month, across brokers, direct channels and price comparison sites in the UK, Oceania and the US.
- **Every quote is a full record.** Each saved quote holds its inputs, outputs, lights, rules that fired, the version that ran it and who ran it. Quotes for one case form a journey, which ends when a quote is marked sold. A [debug trace](https://ptally.ai/developer/debugging) shows how each result was reached.
- **Amendments keep the original.** People with the right role can amend a result, its validity or the sold flag. Each amendment is logged with who, when and why, and the engine's original result is kept.
- **Change control is built in.** Versions move from draft to approved to published, with tests on every version. AI agents can work on drafts, while approving and publishing stay with people.
- **People, agents and integrations together.** The same model is available through the [API](https://ptally.ai/developer/api), the [MCP server](https://ptally.ai/developer/mcp) and the dashboard. Our article on [people, AI agents and integrations](https://ptally.ai/blog/people-ai-agents-and-integrations-on-one-state-machine) shows how to divide the work.
- **Your cloud if you need it.** Ptally can run as a managed service or inside your own cloud account, so case data stays within your environment.

## Getting started

Model your current quote, application or claims process as a state machine on Ptally with your AI client, run it alongside your existing process and compare the results on your own cases. There is no implementation fee and nothing to pay upfront. [Talk to our team](https://ptally.ai/#contact).

*This article is general information and is not legal advice.*
