Workflow nodes
An agent's workflow is a set of nodes joined by arrows. A message comes in at the Input node, moves along the arrows whose conditions match, and stops at an End node. Each node does one kind of work.
The two nodes that carry most workflows have a full page each: the Reasoning node, which decides, and the Instructions node, which acts. So do JavaScript, Webhook, and Google Search grounding, a setting of the Instructions node.
You add nodes on the Flow canvas of the agent builder: drag an arrow into empty space and pick a node from the menu. You can also describe the change to Build with AI and let it add the nodes.
All nodes at a glance
| Node | What it does | Uses a model |
|---|---|---|
| Input | Where every run starts | No |
| Reasoning | Scores the message against your reasonings and picks the arrows to follow | Yes |
| Instructions | Writes a reply or does a task, with the tools you allow | Yes |
| Tool Call | Runs one tool with the parameters you set | Optional |
| Webhook | Sends an HTTP request to another system | No |
| Sends an email | No | |
| Document Template | Generates a document from a template | Yes |
| Follow-up | Waits, then acts only when the person stayed silent | Depends on the action |
| JavaScript | Runs code you write on the workflow's data | No |
| For Each | Runs another node once per item of a list | Depends on that node |
| Sub-agent | Hands a task to another agent and gets its result back | Yes |
| State | Saves or reads a value | No |
| Hub | Joins several paths into one | No |
| Jump | Continues at another node of the same workflow | No |
| Clear Cache | Makes the next Reasoning nodes decide again from scratch | No |
| End | Where a path stops | No |
Start and stop
Input
Every workflow has one Input node. It holds the message, its attachments, and the context your systems sent with the request. Nothing to configure: draw the first arrow from it.
End
A path stops here. A workflow can have several End nodes, one per way the conversation can finish.
An End node can also reset the conversation history, so the person's next message starts a new conversation with nothing carried over. Use it after a finished order or a closed ticket.
Decide
Reasoning
A Reasoning node is how a workflow chooses its path. It runs the reasonings you enable on it, each one a question about the conversation that returns a score, a yes or no, a category, or extracted data. Each arrow leaving the node has a condition on those answers.
Yes/no answers and fixed categories are evaluated by a fast classification model, so routing adds little time to a reply.
Use one Reasoning node near the start to route the request, and another wherever the path depends on something only the conversation can tell you. See Reasoning node for outputs, evidence, the three routing settings, and patterns.
Talk and act
Instructions
The node that answers. You write what the step should do, and the model writes the reply or carries out the task. It can search the employee's knowledge, call the tools and integrations you allow, browse allowed websites, search Google, and return structured output when you give it a schema.
Each Instructions node chooses its own tools, model tier, and thinking level, and whether its output is shown to the person or kept for the next step. See Instructions node.
Tool Call
Runs one specific tool, without asking a model whether to. You set each parameter to a fixed value or let the model fill it from the conversation. Use it when a step must always happen, such as saving a record to a table or showing a list of options on WhatsApp.
Webhook
Sends an HTTP request to your system and keeps the response for the nodes that follow. See Webhook node.
Email
Sends an email to the recipients you set, from one of the application's email integrations. The subject and body can use values from the conversation and from earlier nodes.
Document Template
Generates a document from one of the application's document templates and can send the download link by email or WhatsApp.
Follow-up
Waits for the time you set, then checks the conversation. When the person has not written back, it runs one action: an Instructions step that writes a message, or a Tool Call. When they did reply, it does nothing.
Use it to bring back a conversation that went quiet, such as a reminder one hour after a quote. On WhatsApp, a message sent more than 24 hours after the person last wrote needs an approved template.
Sub-agent
Hands a task to another agent of the same application. That agent runs on its own and returns its result to this workflow. Use it to keep a large workflow in parts, or to reuse one skill, such as checking a contract, from several agents.
Sub-agent is in beta. Its behavior and settings may change.
Work with data
JavaScript
Runs a few lines of code you write, with no model involved: exact sums, parsing, reshaping a response. See JavaScript node.
For Each
Runs one other node once per item of a list, in parallel. Use it when you only know at run time how many things there are: one search per supplier, one request per invoice line. The results come back as one list.
State
Saves a value under a name, or reads one back. The scope decides how long it lives:
| Scope | Lives for | Example |
|---|---|---|
| Execution | This run only | A total computed in one step and used in the next |
| Session | This conversation | The order number the person gave three messages ago |
| Agent | Every conversation of this agent | What the agent found about a company last week |
Agent scope is shared by every run of the agent, so do not keep one person's private details there.
Shape the flow
Hub
Joins several incoming paths into one, so the steps after it are drawn once. Use it after a set of branches that end the same way.
Jump
Continues the run at another node of the same workflow, without drawing a long arrow across the canvas. Use it to loop back to an earlier step or to reach a shared ending.
Clear Cache
Clears what the Reasoning nodes remembered in this conversation, so the next ones decide again from scratch. Use it when the subject changes, such as after a finished request, and an earlier decision should not carry over. Values saved with Agent scope stay.
Choosing between similar nodes
- Instructions or Tool Call: use Instructions when the model should decide what to do. Use Tool Call when the step must always run the same tool.
- Instructions or JavaScript: use JavaScript for anything that must be exact, such as arithmetic or dates. Use Instructions for language and judgment.
- Webhook or Tool Call: use Webhook to call a URL you control. Use Tool Call for a tool that an integration or an MCP server already provides.
- Sub-agent or more nodes: use a Sub-agent when the task is reused or large enough to test on its own. Otherwise keep the steps in one workflow.
Next steps
- Creating an agent: build a workflow from the start
- Testing agents: check each path before you publish
- Conversation Insights: measure which nodes a conversation reached