FlowTruxFlowTrux/Docs

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.

NodePalette nameColorPurpose
TriggerTriggerEmeraldHow a run starts: webhook, schedule, manual, app
AgentAgentVioletAn AI model with optional tools and knowledge bases
ActionActionBlueHTTP, MCP tool, transform, database, delay, RAG search, callbacks
LogicLogicAmberIf / Else, Switch, Loop, Parallel
AggregatorMergeCyanCombine 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:

TypeStarts when
WebhookAnother system sends an authenticated POST to the workflow's URL
ScheduleOne or more cron schedules fire, in the timezone you choose
ManualYou click Run in the editor
AppA 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.

SectionFieldDescription
AI ModelModelThe model that processes this step. The list shows models of the AI providers enabled for the workspace (see AI Providers).
InstructionsSystem PromptWhat the AI should do with the incoming data. Supports template variables, e.g. Classify this ticket: {{trigger.data.fields.message}}.
Built-in ToolsProvider ToolsOpenAI 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 ThresholdKnowledge bases whose relevant passages are added to the prompt.
AdvancedTemperatureHigher = more creative, lower = more focused (0-2). Shown only for models that accept it.
AdvancedOutput contractFree-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

FieldDescription
MethodGET, POST, PUT, DELETE
URLThe 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).

FieldDescription
ServerOne of the workspace's MCP servers
Tool NameA 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 PathOptional, 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'].response
  • trigger.data.field - the trigger data
  • global.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.

FieldDescription
Database TypePostgreSQL or MySQL
Connection Stringe.g. postgresql://user:pass@host:5432/db. Keep it in a workspace global variable and reference it as {{global.dbUrl}}.
QuerySQL; templates supported
Read-onlyOn 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 LimitMaximum 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.

FieldDescription
Knowledge BaseOne of the knowledge bases enabled for the workspace
QueryWhat to search for (templates supported)
Top K ResultsNumber of passages to return (1-50)
Score ThresholdMinimum similarity score (0-1)

Delay / Wait

Pauses the run before the next node.

FieldDescription
DurationA number
UnitMilliseconds, 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.

FieldDescription
TimeoutSeconds 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.

FieldDescription
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.

FieldDescription
Switch valueThe value to match, usually a template like {{steps.classify.output.response.category}}
CasesValues 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.

FieldDescription
Loop OverA 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.

TypeDescription
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):

FieldDescription
If this node failsStop 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 attemptsExtra 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 TypeBehavior
Auto / TextAutomatic (default): HTML previews, tables, file cards, markdown
MarkdownRender a text field as Markdown
HTMLRender an HTML document kept in a field (e.g. html from a Transform)
TableRender 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.