Every agent needs exactly one trigger to start it, and most pipeline agents end with an End step. AI steps and actions go in between.
Triggers
A trigger decides how an agent starts. Add one from the Triggers group; it becomes the start of the agent. See Triggers for setup details, including Run As for automated triggers.In the library, trigger filters label these as Chat message, Form submission, Scheduled event, Webhook, Email, and Manual. A Chat Trigger always makes the agent a Chat agent; Form and Schedule triggers are typical of Automation (pipeline) agents.
AI Steps
AI steps are where the model reasons, responds, loops, and branches. Add them from the AI Steps group.AI Code
Use AI Code for a deterministic transformation the model should not improvise: reshaping a payload, totalling lines, deriving a field. It takes one JSON object in and returns JSON out. It has two modes, set on the Code section of the step:- Run Code runs the exact script you saved. No model is called, so the step costs nothing and behaves identically every run. Reach for this by default.
- Write & Run has the AI write a fresh script each run from your instructions, then runs it. Use it when the work varies per run, or when the step sits inside AI Plan & Execute and the plan decides what the code should do. It needs instructions and a model. A saved script is optional here — it becomes a starting point the AI adapts. The script it actually wrote is kept with the run.
main(inputs, ctx) and returns JSON-serializable data. Choose JavaScript or Python on the step:
What the step receives
inputs is the JSON you mapped on the step. Leave the mapping empty and the step receives the previous step’s output instead — which is what you usually want in a straight-line agent. A mapped value that is exactly {{ … }} keeps its type, so a list stays a list rather than becoming text. A mapped reference that does not resolve stops the step.
ctx holds outputDir, the folder a script writes files to when it needs to return more than JSON — a rebuilt spreadsheet, say. Files written there are saved with the run and passed on to later steps.
Limits
In Write & Run, a candidate that fails is shown its own error and given another attempt, up to the repair limit. Run Code never retries — a failing script fails the step.
Actions (By Connector)
The By Connector group lists actions exposed by your connectors — read and write operations against external systems. The exact actions you see depend on which connectors are connected to your workspace.
See Tools overview, Tools by Erstan, and Tools by connector for the tool catalog.
An action step that runs its tool directly can carry an approval description (
actionApprovalDescription): text shown on the approval card above the buttons, so the approver reads what the step is about to do. It may reference the output of earlier steps only ({{nodes.<id>.output.field}}), not the start step, the form or the trigger, and a reference that does not resolve stops the step before any card appears.
Logic and Utility
The Utility group holds structural and logic steps that shape the flow without calling the model directly.Next steps
The visual builder
Place these steps on the canvas and connect them.
Triggers
Set up how each agent starts, including Run As.
Tools, skills & connections
Give actions the connectors and skills they need.
Choosing AI steps
Compare AI Think, AI Respond, AI Plan & Execute, AI Agent, approvals, branches, and loops.
Approvals
How human-in-the-loop checks gate NetSuite writes.