Order
The arrows are the order. Branches take a condition; loops run a step over a list.
The workflow decides the order. AI reads, judges and drafts inside the steps that need it.
Most business processes are known: the same steps, the same checks, the same hand-offs. What changes is the input. Botminds XFlows keep the steps fixed and auditable, put an agent or a typed decision exactly where judgement is needed, and run them on millions of documents — on schedules, on events, on every new arrival.
Agentic workflows are automated processes in which AI agents do the parts that need reading, judgement or writing, inside a sequence of steps the business has defined. The workflow fixes the order, the checks and the hand-offs; the agent handles the messy input. In Botminds an agentic workflow is an XFlow: a graph of steps that run code, call systems, run an agent or make a typed decision — started by a schedule, an event or a new document.
In a script, the code decides what happens next. In an autonomous agent, the model does. Agentic workflows sit in between: the business fixes the steps, and AI makes the calls inside them that a rule cannot.
Most enterprise work belongs in the second column: an accounts-payable process stays the same from invoice to invoice; the invoices do not. When the path itself changes every time, use an AI agent. When the work is large and spread across teams, run the workflows inside an agent mesh.
An XFlow is a graph of steps drawn on a canvas. Each step does one thing; the arrows are the order. Twenty step types on the canvas — AI, code, control, connections and records — plus ready-made intake, classification and industry steps for mesh pipelines.
The arrows are the order. Branches take a condition; loops run a step over a list.
Each step receives what the step before it returned, or the document the run started on.
A step missing a required setting is flagged on the canvas before anything runs.
Every run keeps each step’s log, so a failure points at the step that stopped the chain.
Real workflow orchestration starts on its own — on a clock, a business event or a new document — and every run, however it started, is streamed, logged and controllable.
Add your flows after a collection’s processing flow, and they run on each document as it arrives — the most common way agentic workflows go live.
A stage change — to the stages you pick — new annotations, an export, a re-scored document or a new record: each can start a workflow.
Start a workflow from the API or from a conversation with Piper. Workflows, agents and meshes share one run surface.
Many steps need one judgement, not an agent: is this urgent, which document type is it, does this clause allow early termination. A typed decision asks exactly that and returns a typed answer with a probability.
answer = bm.decide(
state={"supplier": s, "total": total, "po_match": ok},
questions={
"action": {
"kind": "choice",
"instructions": "What should happen to this invoice?",
"criteria": ["pay", "hold for review", "reject"],
},
},
purpose="invoice triage",
)
action = answer["answers"].get("action", {})
if not answer["ok"] or action.get("unsure", True):
return {"route": "review"} # a person decides
return {"route": action["choice"]}Named options, a probability for each, and a built-in “none of these”.
Ordered levels: low to critical, no risk to high risk.
The probability that a statement is true.
Below 0.70 confidence the answer is marked unsure, and the code routes it to a person.
Sums stay in code. Dates, totals and contract rules are exact in code. A typed decision is for the call a rule cannot make. Switch the decision model on per workspace.
The building blocks nest. An agent can be a step of a workflow; a workflow can be a member of a mesh; a workflow can call another. Each keeps its own rules wherever it is placed.
The run-an-agent step calls any agent in the project, with its own tools, model and record. Its answer — typed fields when it has a schema — is the step’s output.
A mesh runs workflows as members, in thousands of parallel copies. Fan-out, joins and delivery are the mesh’s job.
One workflow calls another, or publishes to a topic every subscriber starts on. Common steps are built once and reused.
In the invoice workflow, hold anything over 50,000 for review, whatever the decision says.
I’ll add one code step after Typed decision: if the total is over 50,000, route to Review. It applies from the next run; runs in progress finish as they started. Add it?
Yes.
Added and read back: the step is in place, the code compiles, and the steps after it receive the same input as before.
Some decisions must be a person’s. The work is split at a review stage: the first workflow ends by handing the document to a person, and the person’s decision starts the next one — nothing is held open while they decide.
The stage is the pause; the person’s move is the approval — and it is on the document’s record with who made it and when.
The stage decides: the personas you pick see documents waiting there, with the moves you allow — Approved, Declined.
The document lands in the reviewer’s Inbox, with the agent’s work beside the source.
Every move is recorded with who made it and when, next to the runs on either side.
Five questions, asked in order, settle most designs. The answers usually combine: a workflow with one agent step and one typed decision, split at a review stage, running inside a mesh when volume is high.
Every step that can be code should be code: exact, cheap and easy to audit.
Prefer a typed decision to an agent, and an agent with few tools to one with many.
Test each agent step and decision against a golden dataset. See AI agent evaluation.
Four processes, drawn the way they run. Code steps carry the order; AI steps sit where a document must be read or a call made.
Read the PDF → an agent extracts supplier, totals and lines → SQL matches the purchase order → a typed decision picks pay, hold or reject → hold goes to a person.
Unpack the attachments → classify each file → an agent extracts the claim form → check the policy by API → a typed decision scores urgency → route to the right queue.
SQL finds contracts ending in 90 days → an agent reads notice periods and auto-renewal → a templated report lists what needs action → email it to the owners.
A supplier moved to Submitted → an agent checks the documents against the checklist → a yes-or-no decision on completeness → complete moves to Review for a person.
Agentic workflows on Botminds are built for internet-scale workloads: events fan in from every connected system, queues absorb the bursts, and workflow runners and workers scale out on Kubernetes — on Azure, AWS, Google Cloud or on-premises, in any region.
SharePoint, mailboxes, drives, cloud storage, webhooks, your API and schedules all start the same workflows.
A month-end spike lands in a durable queue, and workers are added until it drains.
Workflow runners are stateless and replicated, so more runs mean more runners, and releases roll through them.
Pause, resume, rerun or cancel — one run or thousands in bulk — with each step’s log.
The Runs tab filters by state, tag and date, with each step’s log.
Rerun after a fix, one at a time or in bulk.
Compare each change with a pinned baseline on a golden dataset.
Edit one step in place; it applies from the next run.
Workflows travel in a solution package to the next environment.
The three are often sold as substitutes. They solve different problems, and most enterprises end up with all three — the question is which one runs each step.
| RPA | Plain AI agent | Botminds agentic workflow | |
|---|---|---|---|
| Who decides the next step | The script | The model | The workflow; AI decides inside a step |
| Unstructured input | Breaks on it | Reads it | Agent and decision steps read it |
| Predictability | High, until a screen changes | Varies run to run | Fixed order; AI where placed |
| Audit | Logs of clicks | A transcript, if kept | Every run, every step, every move by a person |
| A person’s approval | Outside the bot | A prompt in chat | A review stage between flows, with roles |
| Volume | More bot licences | Model calls on every step | Runners and workers scale out; model calls where needed |
| Testing | Re-record the bot | Ad hoc prompts | Golden datasets per agent step and per workflow |
| Your existing bots | — | — | Run a Botminds RPA bot as a step, or call your bot platform through an API step |
Coming from an RPA or workflow platform? See how Botminds compares with UiPath and Automation Anywhere, and the build vs adopt whitepaper.
More from the platform: the full architecture, and how security works at Botminds.
Agentic workflows are automated processes where AI agents handle the steps that need reading, judgement or writing, inside an order of steps the business defines. The workflow keeps the process predictable and auditable; the agent handles messy input such as documents and free text.
In a workflow, the steps and their order are fixed and AI works inside them. An agent chooses its own next step and tools as it goes. Use a workflow when the process is known and the inputs vary; use an agent when the path itself changes every time.
Agentic process automation is the step after robotic process automation: instead of scripted clicks, processes run as workflows with AI agents inside them, so they read documents, make bounded decisions and hand exceptions to people.
For processes with documents, emails or judgement calls, yes — RPA breaks when the input changes, while an agent step reads it. For fixed screens and rules RPA still works, and in Botminds you run a Botminds RPA bot as a step, or call your bot platform through an API step.
Invoice to payment, claims intake, contract renewal watch and supplier onboarding: each has fixed steps, one or two agent steps that read documents, a typed decision, and a review stage where a person approves.
Workflow orchestration is starting, ordering, monitoring and recovering the steps of a process. In Botminds a workflow starts on a schedule, a document event, a new document, a topic message, a mesh, the API or by hand, and every run can be paused, resumed, rerun or cancelled.
Yes. Events fan in from every connected system into durable queues, workflow runners and workers scale out on Kubernetes, and the same workflows run on every document — on Azure, AWS, Google Cloud or on-premises.
Yes, at a review stage. The first workflow ends by moving the document to review; the person’s move to Approved starts the next workflow, and the move is recorded with who made it.
Run it against a golden dataset of documents with known answers, repeat runs to check consistency, and compare each change with a pinned baseline. See AI agent evaluation.
When one item fans out into many parts, or several teams’ workflows and agents must run as one pipeline that survives a crash. The workflows become members of the mesh.
Show us one process your team runs every day. We’ll draw it as an agentic workflow on your documents — fixed steps, AI where it counts, a person where it must be.