Skip to main content
When you build an agent in the visual builder, you assemble it from steps (also called nodes) on the canvas. The node library groups them into four categories: Triggers, AI Steps, By Connector (actions), and Utility. This page is a reference to what each step does so you can pick the right one.
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.
If you are choosing between AI steps rather than looking up a specific step, start with Choosing AI steps.

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.
Your script defines 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.
The sandbox has no connectors, credentials, internet access, or memory between runs. Read from NetSuite in an Action step, pass the result into AI Code, and write back in another Action step.
AI Approval is how you put a human in the loop before consequential work. Use it ahead of any step that writes to NetSuite, and keep it in place rather than relying on Auto-approve writes. See Approvals.

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.
NetSuite actions that create or update records are writes. Each write tool has a write policy of Allow, Require approval, or Deny, and runs use per-user authorization. Gate writes behind Require approval or an AI Approval step. See NetSuite and Tools, skills & connections.
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.
Use Rule-Based Decision when the choice is clear-cut and should always behave the same way, and AI Branch when the path depends on judgment about messy input.

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.