What an agentic workflow is.
An agentic workflow is one where an AI does the work at each step: it reads the email, looks up the account, decides which of two options fits, writes the reply and updates the record. People set the route and the limits.
It helps to keep two things apart. The AI is the reasoning. The workflow is the agreement about what that reasoning is for. The workflow says what outcome the business wants, which steps lead there, which checks must pass, where an expert has to sign off and what counts as finished. The AI decides how to handle each case within that.
That is the principle AIOS is built on: the workflow is the contract. Some steps are plain system calls, some need judgment, and your team reads and approves the whole thing before it runs. The workflow your team approved is the one that runs. There is no second copy hiding in a prompt.
Between a script and an agent left to improvise.
Most automation falls into one of two older shapes, and an agentic workflow sits between them.
| A script | An agent left to improvise | An agentic workflow | |
|---|---|---|---|
| Who decides the steps | Whoever wrote the script | The agent, on each run | Your team, before it runs |
| A case nobody planned for | Stops, or goes to an exceptions queue | Handled, in a way nobody reviewed | Handled within the approved steps, or passed to a person |
| Can be read before it runs | By whoever can read the code | Only as a set of instructions | In plain English, by the people who do the work |
| Where a person comes in | When the script breaks | Wherever the agent decides to ask | At the steps the team chose, and for exceptions |
| What done means | The last line ran | The agent says it is finished | A goal that can be checked from the record |
A script is predictable and brittle: it fails on the first email phrased differently. AI agents vs robotic process automation covers where that breaks.
An agent given a goal and tools but no workflow can cope with almost anything, and nobody can say in advance what it will do, so it is hard to test, approve or explain to an auditor. An agentic workflow keeps the flexibility where the work needs it and fixes the rest.
What an agentic workflow should contain.
A good agentic workflow reads like the instructions you would give a capable new hire, with the reasons included. It should hold these parts.
- What starts it. The event that sets a run going, without anyone pressing a button.
- The steps, each naming its system. What happens, in order, and which system each step reads from or writes to.
- The checks. What has to be true before the work moves on, such as a document being the one that was asked for.
- The decisions. The points where the work can go more than one way, and what decides between them.
- The waits. A set time to give a customer or a colleague before following up.
- The sign-offs. The steps that wait for an expert before they change anything.
- The goal. A definition of done that can be checked, and that a run either meets or misses.
One more thing belongs in it: the gaps. If a step needs a system nobody has connected yet, the workflow should say so plainly, so nobody mistakes it for finished. In AIOS such a step is marked as needing a connection. The system can then be connected, reached through its API or database, or Nightshift autonomously builds the connector.
Each step is a separate part with its own system, inputs and expected result, which is what makes it possible to check every step and explain every run.
It should start on its own.
If someone has to press run every time, the workflow is a tool that person uses. An agentic workflow starts when the work does. There are four kinds of moment that start one.
- A schedule. Every weekday morning, check the files still waiting on a document.
- Something arriving. An email lands in a watched inbox, a form is submitted, a customer calls or texts.
- Something changing. A loan is approved with conditions, a claim is opened, an order is marked late.
- Something failing to happen. A borrower has not replied, a document has not arrived, a payment is past due.
Teams forget the last kind, and it is often the most valuable, because nobody notices work that is not happening until it is late.
In AIOS a run can begin in eight ways: 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 another AI assistant. The Executor page shows how a run then works across every system the process touches and stops when the goal is met or when an exception needs a person.
Done has to be something you can check.
The goal is the line easiest to write badly. “Follow up with the borrower” is an activity. It can be done a hundred times without the file moving. “Every open condition has its document on file, or has been handed to the processor” is a goal. Anyone can look at the loan and say whether it is true.
A checkable goal tells the AI what it is working toward, so a run that has sent a reminder but not got the document knows it is not finished. It also lets every run be judged the same way, and gives the business something worth counting: cases closed, not messages sent.
When one pass cannot get there because the work depends on someone else replying, the workflow follows up on its next scheduled run, until the goal is met or a person needs to step in.
In AIOS every workflow carries a goal and a checkable definition of done, and each step is also judged against the result it was supposed to produce. If a step falls short, it is retried with feedback, not just repeated. The goal is also what AIOS charges against: a run that meets it carries the outcome fee, and a run that misses it does not. Outcome-based pricing for AI explains how the goal is written from the workflow itself, before any run.
Bring in a person for exceptions, not for every run.
A workflow where a person approves every run has kept the job and automated the typing, and it teaches the approver to click yes without reading. People belong in two places.
- At the steps where a mistake cannot be taken back. A payment, a change to a legal record, a refund above a limit, anything sent to a regulator. Put an expert’s sign-off on those steps, and only those.
- When a case falls outside the rules. Something the workflow was not written for, a customer who is upset or vulnerable, information that does not add up. The case goes to a person with everything they need to decide.
In AIOS, when a run pauses for sign-off, the expert sees what has been done, what AIOS wants to do next and why, in the words the workflow was written in. They approve it, reject it, or send it back with guidance, and the decision is recorded beside the run. An exception reaches the right person with the full case and a recommended action, so they decide instead of starting over.
What an approval gate should cover goes further on where to put sign-offs and what the reviewer should see.
One workflow, read from start to finish.
Here is the kind of workflow a mortgage team might approve for chasing documents after a loan is approved with conditions. It is written the way the processor would explain it.
- 1
Starts when a loan is approved with conditions, and every weekday morning after that.
Later runs pick up where the last one left off.
- 2
Sorts the open conditions into who can clear them.
Some need something from the borrower, some from an employer or a title company, and some only the processor can clear.
- 3
Asks the borrower for what is missing, by text or email.
One message listing every document still needed, in plain words.
- 4
Checks what comes back against what was asked for.
The right statements, every page, a signature where one is needed. If something is wrong, it says plainly what is still missing.
- 5
Waits a set time, then follows up.
If the borrower has not replied by the next scheduled run, it reminds them.
- 6
Brings in an underwriter for anything that bears on the credit decision.
Income that does not match the application goes to them with the documents attached and the discrepancy named. Whether a borrower qualifies is not the workflow’s call.
- 7
Waits for the loan officer’s sign-off before it changes the loan file.
The loan officer sees what was received and what will be recorded.
- 8
Done when every condition has its document on file, or has been handed to a person.
Anyone can open the loan and check.
Two of those steps need real judgment: deciding whether a document is the one that was asked for, and writing to a borrower in a way they will act on. The rest are lookups, messages and records. That mix is normal. Rules-based automation vs AI covers how to decide which steps are which, and AI for mortgage operations shows the rest of this kind of work.
How a team reviews and changes one.
The people who do the work should be able to check a workflow before it runs, and review a change as easily as the first version.
In AIOS, Blueprint turns what AIOS learned into an agentic workflow your team can read, in plain English. Ask for a workflow and AIOS answers with a plan first: the steps, the systems and the defaults it chose. Approve the plan and it builds the whole thing in one pass, then checks and test-runs it. Nobody on your side has to code.
- Changes arrive as a diff. Ask for a change, such as a manager’s approval before a refund, and AIOS shows exactly what moves: steps added, moved and removed. Small edits, like renaming a step, just happen.
- Every version is kept. The draft you edit stays separate from the release that runs, and a previous release is one step away.
- A change goes through the same tests and approval before it replaces the running version, and a reviewer other than the person who asked for it decides what moves forward.
Testing is where a workflow earns its approval. Proof drafts test cases from the workflow and its rules, each naming where a run should end, and runs them without sending, posting or paying anything. How to evaluate an AI agent before it goes live covers what those tests should look for.
Where the workflow comes from.
A workflow written from the procedure document automates the process as it was meant to run. The one worth automating is the one your best people actually run.
AIOS starts there. Its Observer watches an expert do the work and asks why at each judgment call, and the session becomes the workflow your team reviews. How to capture tacit knowledge before you automate covers that step in detail.
A workflow keeps changing after it goes live, as rules, systems and cases change. Nightshift reviews the day’s runs every night and builds the fix, which waits for your approval like any other change. How self-improving AI agents work explains what a run should leave behind for the next one.
Then start with one process whose outcome you can check. AI workflow automation covers the path from an expert’s afternoon to a workflow that runs on its own.
Questions.
What is an agentic workflow?
A process an AI carries out from start to finish, written as steps a team can read: what starts it, what each step does, where an expert signs off and the goal that means it is done. The AI supplies the judgment inside the steps.
What is the difference between an AI agent and an agentic workflow?
The agent is the reasoning. The workflow is the approved plan that reasoning works within: the outcome, the steps, the checks and the sign-offs. An agent with no workflow decides its own steps on each run, which is hard to test and hard to approve.
How is an agentic workflow different from ordinary workflow automation?
Ordinary automation follows fixed rules and stops on anything it was not built for. An agentic workflow can read an email, judge a document or hold a conversation inside a step, and still follows the steps your team approved.
Does a person have to approve every run?
No. A person signs off on the steps where a mistake cannot be taken back, and handles the cases that fall outside the rules. In AIOS the exception reaches them with the full case and a recommended action.
Is an agentic workflow just a long prompt?
Not in AIOS. Each step is a separate part with its own system, inputs and expected result, which is what lets AIOS check every step and explain every run.
Can we change a workflow after it goes live?
Yes. Describe the change and AIOS shows the diff. The new version goes through the same tests and approval before it replaces the one that is running, and a previous release is one step away.