Auxx.ai
AI AgentsProcedures

Steps, conditions & routing

The building blocks of a procedure — instruction steps where the agent acts, conditions that branch, and routing that ends or redirects the flow.

A procedure is made of steps. Most are instruction steps; the rest control the flow with conditions and routing.

Instruction steps

An instruction step is prose telling the agent what to do at this point — "Ask the customer for their order number," or "Confirm the refund amount." This is where the agent does its work: it reads the instruction, talks to the customer, and calls tools as needed.

When the step's goal is met, the procedure moves on to the next step automatically.

Conditions

A condition branches the procedure with if / else-if / else logic. Conditions come in two modes:

ModeHow the branch is decidedUse when
TextThe agent judges it in natural languageThe decision needs understanding — "the order has shipped"
StructuredExact rules over CRM fields and variablesThe decision is a precise data check — "order total > $100"

Text mode is flexible and reads like a human instruction. Structured mode is deterministic and uses the same condition builder you'll find elsewhere in Auxx.

Routing

Routing steps decide where the procedure goes next:

RoutingWhat it does
FinishedEnds the procedure successfully
HandoffEscalates to a human and leaves the procedure
SwitchJumps to a different procedure with no return

Sub-procedures

A sub-procedure is a named, reusable block inside a procedure — for example "Validate refund eligibility." Unlike a switch, calling a sub-procedure returns to where it was called, and it shares the same variables as the rest of the procedure. Use sub-procedures to avoid repeating the same steps in multiple branches.

Switch vs. sub-procedure

Use switch to permanently hand off to another standalone procedure. Use a sub-procedure when you want to do some work and then come back.

Next steps