Building an agent
An agent is a flow of steps. It receives data, runs steps in order, and finishes by delivering a result.
Input → Step → Step → … → Result
Every agent's four questions
| Question | Where it is answered |
|---|---|
| What does it receive? | The input fields |
| What does it do? | The steps |
| How does it choose a path? | Conditions and switches |
| What does it return? | The Result step |
The input fields
Declare what the agent receives when it is triggered: name, type, whether it is required and, where it makes sense, the valid options.
| Type | Use |
|---|---|
| Text | Free-form content |
| Number | Numeric values |
| Yes/no | Behavior flags |
| Date and Date and time | Periods and deadlines |
| Choice from options | One value from a closed list |
| Object and List | Structures coming from another system |
The fields you declare become the manual run form, the schedule form, and the contract for whoever calls over HTTP — all three, from the same declaration.
A choice field avoids the whole class of failures where someone types "Finance" where the condition compares against finance.
The steps
There are thirteen, in four families:
| Family | Steps |
|---|---|
| Data | Call an API · Reshape data · Query corporate data · Run an automation · Prepare data |
| Intelligence | AI task · Generate with a model |
| Control | Condition · Choose a path · Combine results · For each item · Wait · Human approval · Call another agent |
| Output | Result |
Each one, with when to use it and what it produces, is in Step types.
The result
Every agent needs at least one Result step. It is what the API returns to whoever triggered it, and it is where you choose which fields to deliver.
The run finishes successfully the moment a Result completes.
The limits
Every agent declares three brakes, checked against the space's ceilings at publishing time:
| Limit | What it does |
|---|---|
| Timeout | The run's total deadline. Once exceeded, the run ends as expired |
| Maximum iterations | The work ceiling for AI steps |
| Subagent depth | How far the agent-calling-agent chain may go |
See Limits.
What publishing checks
Publishing refuses a structurally broken flow — and the message names the step:
- every step must be reachable from the start;
- every step that is not a Result must have an exit;
- there must be no cycle between steps;
- there must be at least one Result;
- a data item can only be referenced by a step that runs after the one producing it;
- every referenced step must exist.
This is deliberate: a dead end discovered at three in the morning costs far more than a refused deployment now.
In this section
The thirteen steps, with when to use each.
Open →AI taskThe most powerful step — and how to know whether it met its objective.
Open →Data between stepsHow a value leaves one step and reaches another.
Open →Branching and repetitionConditions, switches, joins, and loops.
Open →Approval and waitingPausing for a human decision or for time.
Open →Calling an APICalling an external system safely.
Open →Querying corporate dataReading governed data from Infinite Data.
Open →ConnectionsServer and credential under a name of their own, used by name.
Open →System componentsEmail, database, SSH, SFTP, storage and CSV.
Open →Calling another agentComposing agents without duplicating logic.
Open →When something failsRetries, the error path, and declared degradation.
Open →Testing before publishingTesting a single step and pinning sample data.
Open →Ready-made templatesTen agents ready to apply.
Open →Next steps
Was this page helpful?
Report a problem on this pageDo not send passwords, keys, tokens, or customer data.