Node Types
Reference for the five FlowTrux workflow node types and their configuration options.
FlowTrux workflows are built from five node types. Each has its own color on the canvas. Drag a node from the Nodes palette onto the canvas, connect it to the others, and configure it in the Inspector on the right.
| Node | Palette name | Color | Purpose |
|---|---|---|---|
| Trigger | Trigger | Emerald | How a run starts: webhook, schedule, manual, app |
| Agent | Agent | Violet | An AI model with optional tools and knowledge bases |
| Action | Action | Blue | HTTP, MCP tool, transform, database, delay, RAG search, callbacks |
| Logic | Logic | Amber | If / Else, Switch, Loop, Parallel |
| Aggregator | Merge | Cyan | Combine the outputs of several branches or of a loop |
Canvas layout: use the toolbar buttons Layout top-to-bottom and Layout left-to-right to arrange the nodes automatically at any time.
Every node has a Node Name (used in the execution log and usable in templates) and an optional Description. Its output is available to later nodes as {{steps.<nodeId>.output}} - see Template Variables.
Trigger (Emerald)
The entry point of every workflow - each workflow has exactly one. The Trigger Type decides how a run starts:
| Type | Starts when |
|---|---|
| Webhook | Another system sends an authenticated POST to the workflow's URL |
| Schedule | One or more cron schedules fire, in the timezone you choose |
| Manual | You click Run in the editor |
| App | A visitor submits one of your apps, or the app's code calls FlowTrux.run |
Any trigger can carry Static Data (Optional) - JSON merged into {{trigger.data}} on every run.
Full configuration of each type: Triggers.
Agent (Violet)
The Agent node sends the incoming data to an AI model, together with your instructions, and returns the model's answer. It can call MCP tools and read knowledge bases while it works. Details: Agent Nodes.
| Section | Field | Description |
|---|---|---|
| AI Model | Model | The model that processes this step. The list shows models of the AI providers enabled for the workspace (see AI Providers). |
| Instructions | System Prompt | What the AI should do with the incoming data. Supports template variables, e.g. Classify this ticket: {{trigger.data.fields.message}}. |
| Built-in Tools | Provider Tools | OpenAI models only: Web Search, Code Interpreter, Image Generation. Claude and Gemini models use MCP tools instead. |
| MCP Tools (Optional) | Tools of the workspace's MCP servers the agent may call. | |
| Knowledge Bases (RAG) | Top K, Score Threshold | Knowledge bases whose relevant passages are added to the prompt. |
| Advanced | Temperature | Higher = more creative, lower = more focused (0-2). Shown only for models that accept it. |
| Advanced | Output contract | Free-form (default), or Handoff - structured JSON verdict (below). |
Input: the output of the node connected before it becomes the model's input message (as text or JSON).
Output: {{steps.<nodeId>.output.response}}. When the model answers with JSON, response is the parsed object, so fields can be addressed directly: {{steps.classify.output.response.priority}}. Files produced by Code Interpreter or Image Generation appear in output.files, and the credits the call cost in output._meta.creditsCharged.
Handoff contract: the agent must answer with a structured verdict (done, approved, changes_requested, needs_info, needs_human, blocked, failed) plus a summary, findings, artifacts and data - useful when a Switch or If / Else should branch on the agent's decision. An answer that cannot be read gets one repair attempt; after that the node fails.
Action (Blue)
Action nodes do the work: call APIs and tools, reshape data, wait. Pick one with Type.
HTTP Request
| Field | Description |
|---|---|
| Method | GET, POST, PUT, DELETE |
| URL | The endpoint (templates supported) |
| Headers (JSON) | e.g. {"Authorization": "Bearer {{global.apiToken}}"} (templates supported) |
| Body (JSON) | Request body (templates supported) |
| Timeout (s) | Under Request Options: how long to wait for the answer, up to 120 seconds (default 30) |
Only public internet addresses can be called; requests to private or internal networks are refused.
Output: { status, statusText, headers, data } - the parsed body is {{steps.<nodeId>.output.data}}. An answer outside the 2xx range fails the node (see On error below).
MCP Tool
Calls a tool of an MCP server enabled for the workspace (see MCP Servers).
| Field | Description |
|---|---|
| Server | One of the workspace's MCP servers |
| Tool Name | A tool of that server. The Help tab lists every tool with its parameters, an example and what it returns. |
| Parameters (JSON) | The tool's arguments. Picking a tool fills in a draft from its parameter list; Insert example does it again. Templates are resolved before the call, and whole-value templates keep their type. |
| Response Path | Optional, advanced: keep only part of the answer, e.g. quotes or data[0].price |
Output: the tool's answer is under response - {{steps.<nodeId>.output.response}} or {{steps.<nodeId>.output.response.items}}. If the tool reports warnings or a note (for example "the table is incomplete"), they appear on the node and in the run as Completed with warnings, and as {{steps.<nodeId>.output._meta.warnings}}.
Transform Data
Runs a short JavaScript expression or code block on the workflow's data - for reshaping data between nodes and for values a template can't produce (dates, time ranges, IDs). The code sees only workflow data: no network, files or other outside access.
// "last 24 hours" for a report
const to = Date.now();
const from = to - 24 * 60 * 60 * 1000;
return { from, to };
Inside the code, data is available as plain variables, without the .output level used in templates:
steps['nodeId'].field- a previous node's output, e.g.steps['http-1'].data,steps['mcp-1'].responsetrigger.data.field- the trigger dataglobal.KEY- workspace global variables
You can also write {{…}} templates in the code; values are inserted as proper JavaScript literals (a string arrives quoted).
Output: whatever the code returns - {{steps.<nodeId>.output.<field>}}.
Database Query
Runs SQL against your own PostgreSQL or MySQL database.
| Field | Description |
|---|---|
| Database Type | PostgreSQL or MySQL |
| Connection String | e.g. postgresql://user:pass@host:5432/db. Keep it in a workspace global variable and reference it as {{global.dbUrl}}. |
| Query | SQL; templates supported |
| Read-only | On by default: the query runs read-only and any write fails. Turn it off for INSERT / UPDATE / DELETE. |
| Timeout (s) | Query timeout, 1-120 (default 30) |
| Row Limit | Maximum rows returned, 1-10,000 (default 1,000) |
Output: { rows: [...], rowCount, fields: ["col1", "col2"], truncated }.
Templates are inserted into the SQL as text, not as query parameters. Don't put visitor-supplied values (an app's fields, a webhook body) straight into a query that writes.
Knowledge Base Search (RAG)
Searches one of the workspace's knowledge bases by meaning.
| Field | Description |
|---|---|
| Knowledge Base | One of the knowledge bases enabled for the workspace |
| Query | What to search for (templates supported) |
| Top K Results | Number of passages to return (1-50) |
| Score Threshold | Minimum similarity score (0-1) |
Delay / Wait
Pauses the run before the next node.
| Field | Description |
|---|---|
| Duration | A number |
| Unit | Milliseconds, Seconds, Minutes, Hours |
Up to 7 days. Very short delays wait in place; longer ones put the run into Paused and it continues by itself when the time is up. Output: { delayed: true, durationMs, ... }. See Long Delays & Callbacks.
Generate Callback URL
Creates a one-time URL that an outside system (or a person) calls to continue the workflow. Used with Wait for Callback for approvals and human-in-the-loop steps.
| Field | Description |
|---|---|
| Timeout | Seconds to wait for the callback, 60-86,400 (default 3,600) |
Output: { callbackUrl, token, timeout, expiresAt }
Wait for Callback
Pauses the run until the callback URL from a Generate Callback URL node receives a POST.
| Field | Description |
|---|---|
| Token | {{steps.<generate-node>.output.token}} |
The run shows Paused until the callback arrives. If it doesn't arrive before the timeout, the run fails.
Output after resume: { resumed: true, callbackData: { ...the POSTed body... }, resumedAt }
Logic (Amber)
Logic nodes decide which way the run goes. Pick one with Type.
If / Else
Evaluates a condition and continues on the true (green) or false (red) output.
- Builder - pick a variable, an operator (equals, not equals, contains, not contains, greater than, less than, greater or equal, less or equal, is empty, is not empty) and a value; join rules with AND or OR.
- Code - a JavaScript expression:
===,!==,&&,||,!,>,<,>=,<=.
{{steps.count.output.total}} > 0 && {{steps.api.output.status}} === 200
Template values are inserted as proper literals, so {{steps.check.output.result}} === "success" works for strings too. The execution log shows the condition as it was evaluated ("Resolved") and the verdict. A condition that can't be evaluated takes the false branch.
Switch
Routes the run to one of several outputs.
| Field | Description |
|---|---|
| Switch value | The value to match, usually a template like {{steps.classify.output.response.category}} |
| Cases | Values to compare with, in order, each with an optional label |
The first case whose value equals the switch value wins; if none matches, the default output is taken. Values are compared as text, so 200 matches "200".
Loop
Runs the nodes of the loop body once for every element of an array.
| Field | Description |
|---|---|
| Loop Over | A template that resolves to an array, e.g. {{steps.fetch.output.data.items}} |
Inside the body:
{{item}}- the current element ({{item.name}}for a field){{index}}- the position, starting at 0
The body can contain If / Else and Switch nodes, and loops can be nested: an inner loop has its own {{item}} and {{index}}, and the outer loop's values are back when it finishes. After the loop, the next node (typically a Merge node) receives the results of all iterations. A loop whose array doesn't resolve to an array fails with "Loop target is not an array".
Parallel
Splits the workflow into several branches that all run, and whose results you then combine with a Merge node. The branches run one after another within the same run, not at the same moment - use Parallel to structure independent steps, not to speed them up.
Aggregator (Cyan) - "Merge"
Combines the outputs of several branches, or of a loop's iterations, into one result. It runs once every connected input has finished.
| Type | Description |
|---|---|
| Merge (combine objects) | One object with the inputs' outputs |
| Concat (combine arrays) | One array |
| Filter (filter results) | Keep the items for which your JavaScript expression returns true |
| Reduce (to single value) | Fold the items into one value with your JavaScript expression |
If an input node failed but was set to Continue (see below), Merge keeps its empty result and lists it in _meta.failedInputs; Concat, Filter and Reduce leave it out.
On error
Agent nodes and the HTTP, MCP, Database and RAG actions have an On error section (advanced):
| Field | Description |
|---|---|
| If this node fails | Stop the run (default) - the run fails here. Continue with an empty result - the node is marked failed, its output becomes { response: null, _meta: { failed: true } }, and the rest of the workflow runs. |
| Retry attempts | Extra attempts (up to 5) before the choice above applies. Meant for temporary failures (network errors, 5xx answers). |
| Pause before retry (ms) | Doubles after each attempt, capped at 30 seconds. |
| Fallback output (JSON) | With Continue: what the failed node's output should be instead. |
Downstream nodes can check {{steps.<id>.output._meta.failed}}. A continued failure shows the run as Completed with warnings.
Don't retry a node that sends or writes (a message, an email, a database write, a POST) - a retry would send it twice. The inspector warns you when retries are set on such a node.
Output Display
Agent, Action and Merge nodes have an Output Display section that controls how the node's result is shown in the execution panel's Result section:
| Display Type | Behavior |
|---|---|
| Auto / Text | Automatic (default): HTML previews, tables, file cards, markdown |
| Markdown | Render a text field as Markdown |
| HTML | Render an HTML document kept in a field (e.g. html from a Transform) |
| Table | Render an array of objects as a table, with optional column selection |
Set the Data Path (e.g. response.items) to the part of the output to render. This only changes the display, never the data passed on. See Execution.