System actions
This page is generated from the plugin registry. Do not edit it by hand.
System actions are built into the workflow engine and need no integration. Set the node’s actionType to the value shown under each heading.
Condition
Action type: Condition.
Conditional branch with dual output paths (true/false). Connect downstream nodes to the ‘true’ or ‘false’ source handles to create if/else logic in a single Condition node.
BRANCH - has two output handles (‘true’ and ‘false’). Edges from sourceHandle ‘true’ execute when condition is true; edges from sourceHandle ‘false’ execute when condition is false. For new workflows, always set sourceHandle on edges from Condition nodes.
Source handles: true, false.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
condition | string | Yes | JavaScript expression using {{@nodeId:Label.field}} syntax. Allowed: literals, === !== == != > >= < <=, + - * / % **, && || !, typeof, ternary, member access (a.b, a[0], .length), String(x), Array.isArray(x), Object.keys(x), matchesRegex(x, “pattern”), and the methods .includes() .startsWith() .endsWith() .toString() .toLowerCase() .toUpperCase() .trim(). Named operators such as contains or isEmpty are not expression syntax: write String(a).includes(b), or use conditionConfig. Use == for cross-type comparisons (e.g., string “0” vs number 0). matchesRegex takes a quoted RE2 pattern (no lookahead, lookbehind, back-references or \u escapes; (?i) ignores case); double each backslash inside the quotes, e.g. ”^\\d+$”. For “does not match”, write !matchesRegex(…): notMatchesRegex is a conditionConfig operator, not a function. A condition that uses matchesRegex may use it at most 16 times and be at most 10,000 characters long, each {{...}} reference counting as about 4; a workflow may have at most 32 such Conditions, 100,000 characters of them, and about 2,000 pattern characters in all. Examples: “{{@check-balance:Check Balance.balance}} == 0”, “Array.isArray({{@read:Read.items}}) && {{@read:Read.items}}.includes(true)“ |
conditionConfig | object | No | Visual condition builder config. Structure: { group: { id: “nanoid”, logic: “AND” | “OR”, rules: [{ id: “nanoid”, leftOperand: “{{@nodeId:Label.field}}”, operator: “<operator>”, rightOperand: “value” }] } }. Every group and rule MUST have a unique id. Operator must be the exact key listed here (e.g. ”===” not “equals”, “arrayContains” not “array_contains”). Operators: ”===”: Same value; numbers by magnitude (“1.0” equals 1); ”!==”: Different value; numbers by magnitude (“1.0” and 1 count as the same); ”==”: Loose equality with type coercion (“0” == 0 is true); ”!=”: Loose inequality with type coercion (a != b); “exists” (unary, leave rightOperand empty): Not null and not undefined; “doesNotExist” (unary, leave rightOperand empty): Null or undefined; “isNull” (unary, leave rightOperand empty): Strictly null (a === null); undefined does not match; “isNotNull” (unary, leave rightOperand empty): Anything except null (a !== null); undefined still matches; “isUndefined” (unary, leave rightOperand empty): Strictly undefined (a === undefined); null does not match; “isNotUndefined” (unary, leave rightOperand empty): Anything except undefined (a !== undefined); null still matches; “contains”: Substring match (String(a).includes(b)); “startsWith”: Text begins with the value (String(a).startsWith(b)); “endsWith”: Text ends with the value (String(a).endsWith(b)); “matchesRegex”: Text matches the regular expression anywhere; ^ start, $ end, (?i) ignore case. null is tested as “null”; “notMatchesRegex”: Text does not match the regular expression anywhere; ^ start, $ end, (?i) ignore case. null is tested as “null”: add is not null to leave it out; “isEmpty” (unary, leave rightOperand empty): Null, undefined, or empty string (""); “isNotEmpty” (unary, leave rightOperand empty): Has a value other than null, undefined, or ""; ”>”: Numerically greater than (a > b); ”>=”: Numerically greater than or equal (a >= b); ”<”: Numerically less than (a < b); ”<=”: Numerically less than or equal (a <= b); “isTrue” (unary, leave rightOperand empty): Strictly the boolean true (a === true); “isFalse” (unary, leave rightOperand empty): Strictly the boolean false (a === false); “arrayIsEmpty” (unary, leave rightOperand empty): An array with no elements (length === 0); “arrayIsNotEmpty” (unary, leave rightOperand empty): An array with at least one element (length > 0); “arrayContains”: Array includes the value (a.includes(b)); “arrayLength”: Array length equals the value (a.length === b); “objectIsEmpty” (unary, leave rightOperand empty): An object with no own keys (Object.keys(a).length === 0); “objectHasKey”: Object has the given key (Object.keys(a).includes(b)). For matchesRegex and notMatchesRegex, rightOperand is the RE2 pattern exactly as it should run, without surrounding quotes or slashes (single backslashes, e.g. ^\d+$), not a template reference; at most 16 per condition. arrayContains matches primitive items only; to test a field inside an array of objects, run Filter Array (data/filter) first and check its count or values. When provided, the condition expression is auto-generated from this visual config. |
Outputs
| Output | Type | Description |
|---|---|---|
result | boolean | Whether the condition evaluated to true |
HTTP Request
Action type: HTTP Request.
Make HTTP requests to external APIs
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
endpoint | string | Yes | Full URL to call |
httpMethod | string | Yes | GET, POST, PUT, DELETE, or PATCH |
httpHeaders | string | No | JSON object of headers |
httpBody | string | No | JSON request body (ignored for GET) |
timeout | number | No | Request timeout in seconds (default 5, min 1, max 30) |
failOnError | boolean | No | Default true. When false, a non-2xx response or timeout does not fail the step; instead the next node receives { status, data: null, error }. Use for aggregator workflows where one source being down should not fail the whole run. |
retryAttempts | number | No | Extra attempts after the first (default 0, min 0, max 5). Retries only transient failures: connection errors, timeouts, and status 408, 425, 429, 500, 502, 503 and 504. A 4xx other than 408/425/429, a blocked URL and a malformed URL are never retried. |
retryDelay | number | No | Base delay in seconds between attempts (default 1, min 0, max 30). Backs off linearly, so attempt N waits delay * N seconds. |
Outputs
| Output | Type | Description |
|---|---|---|
status | number | HTTP status code (null on timeout or connection error) |
data | object | Response body (parsed JSON), or null on a soft failure |
error | string | Present only on a soft failure (failOnError=false): the failure reason |
Database Query
Action type: Database Query.
Execute SQL queries against connected database
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
integrationId | string | Yes | ID of the database integration |
dbQuery | string | Yes | SQL query with inline template references for dynamic values. Use {{@nodeId:Label.field}} directly in the SQL string. Example: “INSERT INTO logs (vault, price) VALUES (‘{{@compute:Compare.bestVault}}’, ‘{{@compute:Compare.bestPrice}}’)” or “SELECT * FROM positions WHERE address = ‘{{@trigger-1:Trigger.address}}‘“ |
dbSchema | string | No | JSON schema for result typing |
connectTimeout | number | No | Connection timeout in seconds (default 30, min 1, max 60). Raise for serverless databases that scale to zero and need time to wake on a cold start. |
retries | number | No | Connection retries (default 1, min 0, max 3). Retries only pre-query connection failures (e.g. a cold-start connect timeout); never re-runs a query that already started, so writes are not duplicated. |
Outputs
| Output | Type | Description |
|---|---|---|
rows | array | Query result rows |
rowCount | number | Number of rows returned |
For Each
Action type: For Each.
Loop over an array - executes connected body nodes once per element. Optionally pair with a downstream Collect node to aggregate results. Without Collect, the loop runs as fire-and-forget (side effects only).
LOOP - executes all downstream nodes once per array element. Optionally end with a Collect node to aggregate results. Without Collect, all downstream nodes run as fire-and-forget.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
arraySource | string | Yes | Template reference to an array, e.g., “{{@db-query-1:Database Query.rows}}” or “{{@http-1:HTTP Request.data.items}}” |
maxIterations | number | No | Safety limit on iterations (default: processes entire array) |
mapExpression | string | No | Dot-path to extract from each element, e.g., “address” or “data.name”. When set, the iteration output is transformed before being collected. |
concurrency | "sequential" | "parallel" | "custom" | No | Execution mode for iterations (default: “sequential”). “parallel” runs all at once, “custom” uses concurrencyLimit. |
concurrencyLimit | number | No | Max concurrent iterations when concurrency is “custom” (min: 2) |
Outputs
| Output | Type | Description |
|---|---|---|
currentItem | unknown | Current array element (available inside loop body only via {{@forEachNodeId:For Each.currentItem}}) |
index | number | Current zero-based iteration index (available inside loop body only) |
totalItems | number | Total number of items being iterated (available inside loop body only) |
Collect
Action type: Collect.
Gathers results from a preceding For Each loop into an array. Place downstream of a For Each node to mark the end of the loop body and enable result aggregation.
Inputs
This node takes no configuration fields.
Outputs
| Output | Type | Description |
|---|---|---|
results | array | Array of outputs from each iteration (one entry per element) |
count | number | Number of iterations completed |
Trip Circuit Breaker
Action type: Trip Circuit Breaker.
Engage the organization’s incident circuit breaker. Once tripped, every value-moving workflow and protocol step in the organization fails closed (per write, including runs already in progress) and no new runs start, until an admin or owner resets it. Read-only actions keep running. Use this as an incident kill switch: have a monitoring workflow trip it when it detects a problem. Always affects the organization that owns the running workflow - there is no target field.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
reason | string | No | Free-text incident note recorded on the organization (e.g. why the breaker was tripped). |
Outputs
| Output | Type | Description |
|---|---|---|
halted | boolean | Always true; the breaker is engaged after this step. |
tripped | boolean | True if this step engaged the breaker; false if it was already engaged. |
haltedAt | string | ISO timestamp the breaker was (or had been) engaged. |
Reset Circuit Breaker
Action type: Reset Circuit Breaker.
Clear the organization’s incident circuit breaker so runs resume. Privileged: only succeeds when the workflow’s creator is a current admin or owner of the organization; otherwise the step fails. Always affects the organization that owns the running workflow - there is no target field.
Inputs
This node takes no configuration fields.
Outputs
| Output | Type | Description |
|---|---|---|
reset | boolean | Always true on success; the breaker is cleared. |
wasHalted | boolean | True if the breaker had been engaged; false if it was already clear. |
State Get
Action type: State Get.
Read one key from this workflow’s persistent state. State survives between runs and is scoped to this workflow only - use it for monitor cursors like ‘last block scanned’ or ‘transactions already alerted on’. Pair with State Set for read-modify-write: pass State Get’s version as State Set’s expectedVersion to fail instead of losing a race.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | The state key to read (e.g. “lastScannedBlock”) |
Outputs
| Output | Type | Description |
|---|---|---|
exists | boolean | Whether a live (non-expired) value exists for the key |
value | unknown | The stored value (null when the key does not exist) |
version | number | Current version of the key, 0 when it does not exist; pass it as expectedVersion to State Set for a race-free read-modify-write, including the first write |
State Set
Action type: State Set.
Write one key to this workflow’s persistent state. The write is an atomic upsert; pass expectedVersion (from State Get) to turn it into a compare-and-set when two overlapping executions could race on the same key - on mismatch the step fails with a conflict error instead of silently overwriting. Limits, enforced: values up to 8 KB serialized, 100 keys per workflow, ttl clamped to 365 days.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | The state key to write (e.g. “lastScannedBlock”) |
value | unknown | Yes | The value to store; must not be null or an empty string. Non-string values are stored as-is. A string is parsed when unambiguous: JSON object/array text is stored parsed, “true”/“false” as booleans, and a numeric string as a number only when it round-trips exactly (so a wei amount beyond 2^53 stays a string). Any other string is stored as-is. Max 8 KB serialized. |
ttl | number | No | Seconds until the key expires (min 1, clamped to 365 days). Omit for no expiry; expired keys read as not-existing and are evicted. |
expectedVersion | number | No | Compare-and-set: only write if the key’s current version matches this; 0 means only write if the key does not exist. On mismatch the step fails the run rather than overwriting; the next run re-reads the current version with State Get. |
Outputs
| Output | Type | Description |
|---|---|---|
success | boolean | Always true on a successful write |
created | boolean | True when this call created the key (including replacing an expired one) rather than overwriting a live value |
version | number | The key’s version after this write; feed it back as expectedVersion for the next compare-and-set |