Five steps, on every run.
Whoever handles a request does the same few things, whatever the department. A claims handler, a billing clerk and a scheduler all work out what they are asked, look up what they need, decide, act and make sure it worked. A well-built agent follows that order on every run, which is what makes its work predictable enough to review.
The steps stay the same from one job to the next. What changes is what each step is given: the knowledge, the tools, the policies and the playbook for that kind of work. That is how one design can run invoices, claims and scheduling, provided each job brings its own inputs. It is the second of the principles AIOS is built on.
| What happens | Model or plain code | |
|---|---|---|
| 1. Understand what is asked | The request is placed as a kind of work: which part of the business, which rules, which tools and how much it may do alone | A model reads what was meant. The limits that follow come from your rules. |
| 2. Find what it needs to know | Procedures, product rules, customer history, policy limits and approval requirements for this job are brought in, with the tools it needs | Looking up a record is plain code. |
| 3. Plan the steps | The approved workflow for this kind of work is laid out against this case | A model chooses between valid options and applies business judgment. |
| 4. Act in your systems | Records are read and written, messages sent and approvals requested | Calling a system, checking a policy flag and validating a required field are plain code. |
| 5. Check the result and explain it | Each step’s result is checked, and the run ends with an account of what happened | A model explains the decision and decides when to bring in a person. |
Before step one, something starts it.
A chatbot waits to be asked. An agent doing operations work has to notice when work arrives, or it becomes one more screen someone has to remember to open.
In AIOS, a workflow starts on its own trigger, and nobody has to press go. A run can begin on a schedule, a message to an inbox AIOS watches, a form AIOS hosts, another system posting to an event address, new items in a connected app, a customer conversation, a call to the AIOS API, or a request from another AI assistant.
Some work starts when something fails to happen, such as a document that has not arrived by its deadline, so a schedule has to check for it. If a person still presses run every morning, the process is automated only halfway. AI chatbot vs AI agent covers the same difference for conversations with customers.
Step one: understand what is asked.
Follow one request through all five steps. A customer texts: “The blender I ordered arrived cracked and I want my money back.”
Before anything runs, the agent decides what kind of work this is. It is a refund request about a specific order, which puts it in customer service, under the refund policy. That decision settles more than the topic. It settles which rules apply, which tools the run may use, what knowledge is relevant and how much it may do before an expert signs off.
Reading what someone meant is work for a language model, because customers phrase the same request in endless ways. What follows from that reading should not be left to the model. A billing question and a scheduling change can share one core without sharing permissions, because the permissions come with the kind of work and from your rules.
On a phone call all of this has to happen at the pace of a conversation, which makes voice the hardest test. Intent classification for AI agents goes further into how the decision is made and what it should settle.
Step two: find what it needs to know.
A capable person handling the refund would open the order, check the customer’s history and look up the refund policy. An agent should work the same way.
Knowledge is not baked into the agent. Procedures, product rules, customer history, policy limits and approval requirements are chosen for the job as it starts. For the cracked blender, that means the order, the customer’s past contacts, the return rules and the amount above which a manager has to approve. AIOS records which knowledge it used and why, so the choice can be checked afterward.
Tools work the same way. The run is handed the systems this job needs and no others, because every extra tool is one more way to call the wrong system or act outside the workflow. The refund run can reach the order system, payments and text messages. It has no reason to reach payroll.
Two kinds of memory feed this step in AIOS. Customer memory keeps one record per person across every channel, so a customer who called yesterday is the same record when they text today. And after each run AIOS records what helped and what failed, then recalls the lessons that apply before the next plan. The Memory page explains both, and context engineering for AI agents explains how to choose, limit and record what a run is given.
Step three: plan the steps.
With the request understood and the context gathered, the agent decides what to do. This is where a well-built agent and an improvising one differ most.
An improvising agent works out its steps from a prompt each time. Two identical requests can get two different plans, and nobody approved either of them. A governed agent plans against a workflow your team has already approved, with the goal, the steps, the checks, where an expert signs off and what counts as done. The agent is the reasoning layer. The workflow is the business contract.
Inside that contract there is still judgment to apply. The cracked blender might call for a refund, a replacement or a photo of the damage first, depending on the order and the customer’s history. Choosing between valid options like these is what a model is for. With a rule that refunds over the limit need a manager’s approval, skipping that approval is not one of the options. In AIOS the plan comes before any action, and each tool call is checked against a deterministic policy engine before it touches a system of record.
In Blueprint the workflow is written in plain English, and nothing runs until your team approves it. What is an agentic workflow? covers what a workflow should contain.
Step four: act in your systems.
Acting means reading and writing in the systems where the work lives. For the refund, that is looking up the order, comparing the amount with the refund limit, issuing the refund, updating the case and texting the customer. Most of it should not involve a model at all.
Looking up a record, checking a policy flag, validating a required field and calling a system should give the same answer every time, so AIOS does those in plain code. Passing a known operation through a model, or through a second agent, adds time, cost and one more chance to change the meaning of the request, for little in return. Rules-based automation vs AI covers where to draw that line.
Two controls stand in front of every action. Every action is policy-gated: AIOS checks it against your policies before it reaches a system of record, and you add rules where your process needs them. And any step can wait for an expert’s sign-off. If the blender cost more than the refund limit, the run would stop before paying anything, show the manager what is done and what comes next, and wait for an answer.
AIOS reaches your systems through ready-made connectors for more than 100 systems, or through a system’s API, database or inbox. You choose the model behind the judgment for each workflow, open models included, or bring your own key.
Step five: check the result and explain it.
An agent that reports success because a system accepted its request has not checked anything. For the refund, the check is whether the money went back against the right order, the customer was told and the case was closed.
In AIOS each step is judged against the result it was supposed to produce before the next one starts. If it falls short, it is retried with feedback, not just repeated. Every workflow carries a goal and a checkable definition of done, and a run that meets it counts as a success.
Then the run explains itself. Every run keeps its goal, a plain-language account of what happened, each step’s result and every call it made to another system. When someone asks why the refund went through, the answer is already written down. Explaining a decision is one of the places AIOS uses a model, along with reading what someone meant and choosing between options.
That is how AIOS runs approved workflows across your systems. It starts on its own, works step by step inside the limits you set, and leaves a record of every run.
What happens when a step goes wrong.
Real work goes wrong in ordinary ways. A system is down, a customer gives the wrong order number, or a case falls outside every rule. How an agent behaves at those moments matters more than how it behaves on the clean path.
- A step that falls short is retried with feedback, so the retry knows what went wrong the first time.
- An exception reaches a person with the case. When something falls outside the rules, the right person gets the full case and a recommended action, and the run waits for them.
- Anything can be stopped. A kill switch halts one run or the whole account, and circuit breakers trip on their own when cost, error rate or scope leaves the band you set.
- A missed goal carries no outcome fee. AIOS charges the outcome fee only when a run meets its workflow’s goal. The usage the run consumed is still billed as usage.
- Every run teaches the next. After each run AIOS records what helped, what failed and what resolved the issue. Every night Nightshift reviews the day’s runs and builds fixes, which wait for your approval. How self-improving AI agents work covers that loop.
How to judge an agent by its steps.
When an agent is demonstrated, ask to watch one real run through all five steps, not just the conversation. A fluent reply shows the first step at best.
- 1
What kind of work did it decide this was?
And which rules and limits came with that decision.
- 2
What did it use, and why?
The knowledge and records it brought in, and the systems it was allowed to reach.
- 3
Which workflow did it follow?
And who approved that workflow, and when.
- 4
Which steps ran in plain code?
Lookups, policy checks and system calls should not depend on how a model reads the request.
- 5
How did it know it was done?
The goal it was judged against, and the check that showed the result held.
- 6
Where would a person have come in?
The exception or the approval, and what that person would have seen.
- 7
Can you open the record?
Every step, its result and every call to another system, in the order they happened.
Before an agent goes live, the same questions become tests. How to evaluate an AI agent covers how to build them, and Proof runs every AIOS workflow as a simulation against its test cases first, with nothing sent, posted or paid.
Questions.
How do AI agents work?
They take each request through the same steps: understand what is asked, find what is needed, plan the steps, act in your systems, then check the result and explain it. A model handles the judgment, and lookups, policy checks and system calls run in plain code.
Does an AI agent use AI for every step?
It should not. Looking up a record, checking a policy flag, validating a required field or calling a system should give the same answer every time, so AIOS does those in plain code and uses a model only where judgment is the work.
What starts an AI agent?
In AIOS, a workflow starts on its trigger: a schedule, an email, a form, an event, new items in a connected app, a conversation, an API call or another AI assistant. Nobody has to press run.
How does an AI agent know what it is allowed to do?
From the kind of work it decides a request is, the approved workflow for that work and your policies. In AIOS every action is checked against those policies before it reaches a system of record, and any step can wait for an expert’s sign-off.
Can we see why an AI agent did what it did?
Yes. Every AIOS run keeps its goal, a plain-language account of what happened, each step’s result and every system call, so the answer is already written down when someone asks.
Which AI model does it use?
You choose the model for each workflow, open models included, or bring your own key. No single provider holds the work.