Skip to main content

System nodes

Use built-in TaskJuice nodes for workflow logic, AI, HTTP requests, transformations, and reusable workflows.

System nodes are built into TaskJuice. They do not require choosing a third-party app.

User-facing system nodes

NodeCategoryUse it for
AI GenerateAIGenerate text from a prompt and selected model.
AI ExtractAIPull named fields out of text, a PDF, or an image.
AI ClassifyAISort content into categories you name and branch on the category.
BranchControl flowRoute to two or more paths using conditions.
CodeData and developerRun your own JavaScript on the run's data.
Create FileData and developerWrite a list of items to a CSV or JSON file.
DelayControl flowPause for a set time, or until a date and time.
Get WebpageData and developerRead a public web page as its title, description, plain text and Markdown.
HTTP RequestData and developerCall an arbitrary HTTP API with optional auth and retries.
LoopControl flowRepeat by count, array item, or condition.
ParallelControl flowRun multiple branches concurrently and merge their outputs.
Call WorkflowReusableInvoke another published workflow.
Read FileData and developerTurn a CSV, Excel, or PDF file into data the next steps can use.
RespondData and developerAnswer the caller of a Respond-mode webhook with an authored HTTP response.
SortData and developerOrder a batch by one or more fields, with an optional Top-N.
SwitchControl flowRoute by matching one selector value against cases.
TransformData and developerApply ordered data transformations.
Voice AgentAIAnswer a phone call with a realtime voice model (details).
Only implemented nodes appear in the Add Node panel

Disabled, incomplete, or future-facing catalog rows are intentionally hidden from the user-facing node picker.

AI Generate

Use AI Generate to produce text from a prompt. Configure the model, prompt, and any context values the prompt needs.

Best for summaries, drafts, and generated user-facing copy. To summarize a document or a long message, describe the summary you want in the prompt. To route on a category, use AI Classify. To pull out specific values, use AI Extract.

AI Extract

Use AI Extract when the workflow needs specific values out of unstructured content: an invoice total from a PDF, a contact's name and phone number from an email, the line items on a photographed receipt. You list the values you want as fields, and the step returns each one as its own value that later steps can map.

Attach a model on the node's Model port, then configure the step in its panel:

SettingWhat it does
System promptOptional. Sets the model's behavior before anything else.
InstructionsRequired. Tells the model what to extract and how to read the content, for example "This is a supplier invoice. Amounts are in the invoice currency."
Text to extract fromOptional. The text the values come from, usually data from an earlier step inserted with the {} button.
File to extract fromOptional. A file, or a list of files, from an earlier step, for example {{ $steps.download_attachment.data.file }}.
FieldsThe values to extract. Each field has a name, a type, an optional description, and a Required switch.

You can fill in Text to extract from, File to extract from, or both. With neither, the step extracts from whatever the Instructions contain.

Define the fields

The Fields tab opens on a list. Click Add field for each value you want, and give it:

  • A name, such as invoice_number or total_amount. Later steps use this name to read the value.
  • A type: Text, Number, True / false, Date, List, or Object. A List holds items of one type; a List of Objects and an Object can hold nested fields of their own.
  • A description (optional) that tells the model what to look for, such as "The amount due, after tax".
  • Required. A required field always gets a value. A field that is not required returns empty (null) when the value is not in the content, rather than the model guessing one.

Use the arrows on a row to change the field order. Your changes are not saved while any field name is invalid.

Nested fields start folded behind a count, such as 3 fields. Click it to open them. A nested list opens by itself while one of its fields needs fixing.

The Advanced tab shows the same fields as the JSON schema they produce, and lets you edit that schema directly. If you write a schema the field list cannot show, the step keeps it and the Fields tab is unavailable until the schema fits the list again.

Read the extracted values

Each field appears in the data picker of every later step, under the extract step's output:

$steps.extract_invoice.data.output.json.total_amount

A field that was not required and not found in the content is null, so check for it before you use it in a calculation or an app action.

Extract from a file

File to extract from accepts PDF, JPEG, PNG, GIF, and WEBP files produced by an earlier step, such as an email attachment, a form upload, or a file downloaded from a storage app.

LimitValue
PDF size20 MB
Image size5 MB
Total per step20 MB
Files per step5

The model on the Model port must accept the file type: a model that cannot read images or PDF files fails the step before anything is sent.

A long PDF uses a large share of the step's token budget (100,000 tokens across the first answer and any retry after an invalid answer). If a step on a large file fails with AI_MAX_TOKENS, send a smaller file or fewer pages.

When a file is refused

A file the step cannot use fails the step with AI_FILE_INPUT_UNSUPPORTED before the model is called. The run shows one of these messages:

Message starts withWhat to do
The file input did not resolve to a file from an earlier step.Point File to extract from at a file field of an earlier step, not at text or a URL.
<file> is <type>. AI steps read PDF, JPEG, PNG, GIF and WEBP files.Convert the file to a supported type in an earlier step.
<file> is <size> MB.Send a smaller file. The message lists the limits above.
This step attaches <count> files. / The files on this step totalSend fewer or smaller files, up to 5 files and 20 MB per step.
<file> is labelled <type> but its contents areThe file's contents do not match its declared type. Give the file its real type.
<model> cannot read images / PDF files.Attach a model on the Model port that accepts that file type.

AI Classify

Use AI Classify to sort content into categories you name, and send each category down its own path. Typical uses: route a support ticket to billing, technical, or sales; mark a lead as qualified or not qualified; tag a review as positive, neutral, or negative.

Attach a model on the node's Model port, then configure the step in its panel:

SettingWhat it does
System promptOptional. Context for the model, for example "These are support emails sent to a software company."
User MessageRequired. The content to classify. Insert it from an earlier step with the {} button, such as the body of the incoming email.
CategoriesAt least two. Each has a name and an optional description that helps the model tell similar categories apart.
Add an Other branchEnabled by default for a new step. Content that fits none of your categories is labelled Other. When Disabled, that content fails the step.
Allow multiple labelsThe model may return more than one label. The step still takes one branch, the most confident label.

Category names must be unique and not blank. With Add an Other branch Enabled, no category can be named Other.

Branch on the category

Each category is an output on the node in the canvas, and so is Other when Add an Other branch is Enabled. Connect each output to the step that should run for that category. Renaming a category keeps its connection.

The node also has an Everything else output. Its connection runs for every category you have not connected on its own, so you can connect only the categories that need special handling and send the rest one way. Only one connection can leave from Everything else.

When a run reaches the step, only the matching category's path runs. Steps on the other category paths show as skipped.

Read the label

Later steps can read the chosen category:

$steps.classify_ticket.data.output.label

The label is returned in the spelling you gave the category, even when the model answers in a different case. output.labels lists every label the model returned with its confidence, which is useful with Allow multiple labels Enabled.

Remember the conversation (AI Agent memory)

An AI Agent can remember what each customer said in earlier runs. On the agent, click + on the Memory port to add a Memory sub-node. Open it and set Remember the conversation to Enabled.

Each customer gets their own memory, matched by a trigger field that is different for each customer, like their phone number. For a known messaging trigger, like Twilio Incoming SMS, that field is picked for you, and the panel reads Remembering per: Sender phone number. Click Change to pick a different trigger field.

Under a Chat trigger the panel reads Remembering per: Chat visitor, so each website visitor gets a separate memory for their chat session.

For any other trigger, pick the field yourself, like the customer's phone number or email. Pick a field the sender can't fake, like the phone number on a text, because anyone who types in someone else's email could see that person's past chats. You can't save or publish until you do. A fixed value, like 'shared', is refused, because it would put every customer in one conversation.

The agent reads back up to the last 20 messages, from the customer and the agent. It forgets each message 90 days after it was sent.

Two limits to know:

  • The agent only remembers messages it handled itself, so a first text sent by a plain Send SMS step or another workflow, or a reply your staff send by hand, is not in its memory. If your workflow opens the conversation, describe that opening message in the agent's instructions (its System Prompt), for example: "You texted new leads asking if they want a quote."
  • Deleting and re-adding the agent, or duplicating the workflow, starts with a fresh memory.

Included AI

AI Generate, AI Extract, AI Classify and AI Agent steps (including sub-agents) can run before you add a provider key. Every AI step still needs a model sub-node on its Model port. If no key is attached to that model, the step runs on Included AI, the monthly AI allowance your plan pays for, and uses the platform's small model. The model you pick on the node applies once you attach your own provider key.

A step with a key attached always runs on that key and never draws on Included AI, even when allowance is left. A step set to use a key your client provides waits for that key and never runs on Included AI. If your account or workspace limits which models AI steps may use, testing or publishing a keyless step fails until the platform's model is on the allowed list or you attach your own key.

A keyless step that can't run on Included AI fails with one of these codes:

CodeWhat it means
AI_KEY_REQUIREDIncluded AI isn't available to this step or account (in a quality check, for example). Attach a key.
AI_INCLUDED_EXHAUSTEDThe allowance is used up. Attach your own key, or wait for the reset on the 1st (UTC). Free credits don't reset.
AI_INCLUDED_BUSYThe allowance is nearly used up and your other running steps hold the rest. The step waited and gave up; try again in a minute.
AI_INCLUDED_UNAVAILABLEIncluded AI can't be reached right now. Try again later, or attach your own key.

AI_KEY_REQUIRED, AI_INCLUDED_EXHAUSTED and AI_INCLUDED_UNAVAILABLE show Add your own key in the run view and the step test panel. You can list any of the four codes in an On Error rule, for example to send AI_INCLUDED_EXHAUSTED failures down a branch that posts to Slack.

Branch

Use Branch to route to two or more paths using conditions. Each condition should be clear enough that another builder can understand why a record enters that path.

Code

Use Code to run your own JavaScript when a Transform cannot express the logic, for example a calculation across several earlier steps or a custom reshaping of a list.

Read the run's data

Your code reads the run's data through these globals. input, context.trigger and context.steps also have the short names $input, $trigger and $steps, the same names you use in {{ }} fields. Code has no $meta or $vars: use context.meta and context.vars.

GlobalWhat it holds
input or $inputThe data this step receives.
context.trigger or $triggerThe trigger's payload, or undefined when the run has no trigger payload.
context.steps.<stepId>.data or $steps.<stepId>.dataThe output of an earlier step that has completed.
context.varsRun variables. Not active yet, so always empty ({}).
context.metastepId, workflowId, workflowRunId and tenantId.
helpersUtility functions, listed below.
consoleconsole.log, captured and shown in the step's Console section.

The run data is read-only. Changing a value, such as $steps.lookup.data.id = 1, fails the step. Build a new object and return it instead.

helpers has pick, omit, groupBy, sortBy, uniq, flatten, base64Encode, base64Decode, uuid, isArray, isObject, isString, isNumber and isEmpty.

Return a value

Return a value that can be written as JSON. A plain object becomes the step's output at $steps.<thisStepId>.data. Anything else, such as a list, a number or text, lands at $steps.<thisStepId>.data.value. With no return, the output is { value: null }. To hand a list to Sort or a Loop, return it as { items: [...] }.

// Trigger payload: { "email": "ada@example.com" }; an earlier step "lookup" returned { "id": 7 }
return {
  email: $trigger.email.toLowerCase(),
  customerId: $steps.lookup.data.id,
};

Limits

LimitValue
Code size100 KB
Timeout10 seconds by default. Set Timeout (ms) from 100 to 30,000; a value outside that range is moved to the nearest end.
Memory64 MB by default. Set Memory (MB) from 8 to 128; a value outside that range is moved to the nearest end.
Return value1 MB
Console output100 lines or 10 KB, whichever comes first

Code runs synchronously with no network or file access: await, fetch and require are not available. Call an API with an HTTP Request step.

Create File

Use Create File to write a list of items to a CSV or JSON file, for example to export the rows a workflow collected and send them somewhere as a file.

The node reads a list from the data it receives. By default that is items, the list a batch trigger or a Read File step produces. Set Source array to another path, such as data.records, when the list lives elsewhere.

SettingWhat it does
FormatCSV (the default) or JSON.
File nameThe file's name. You can map values into it. The extension always matches the format. Defaults to export.csv or export.json.
Source arrayWhere the list is. Defaults to items.
Include a header rowCSV only. Writes the column names as the first line. On by default.
DelimiterCSV only. Comma (the default), semicolon, tab, or pipe.
Protect against spreadsheet formulasCSV only. On by default. See below.

The step returns file, format, and rowCount. Map file into a later step to use it: a File Download URL step turns it into a short-lived link, an app action can upload it, and an HTTP Request can send it.

How a CSV is written

  • Columns are every field found in the items, in the order they first appear. An item that lacks a field gets an empty cell.
  • Empty values (null or missing) are written as empty cells. Lists and nested objects are written as JSON text.
  • Formula protection. A spreadsheet runs any cell that starts with =, +, -, or @ as a formula, which is a known way to attack whoever opens an export. With protection on, text that starts with one of those characters (or with a tab or carriage return) gets a leading apostrophe, so =SUM(A1) is written as '=SUM(A1) and shows as text. Column names are protected the same way. Numbers are never changed: -5 stays -5. Turn protection off only when the file is read by a program, never opened in a spreadsheet.

Empty lists

  • JSON: an empty list writes a file containing [].
  • CSV: an empty list fails with "there are no rows and no columns to write", because there is nothing to put in the file.

Limits

LimitValue
Items50,000
Columns (CSV)500
File size25 MB, or your plan's file size limit if it is lower
File name length255 characters

A list past a limit fails the step with a message that names the limit. Nothing is written.

When you test Create File or Read File on its own, it works on real files: a file a test creates is stored like a file from a run and counts toward your file storage.

Delay

Use Delay to pause a run, then continue. Under Wait, choose one of two modes:

  • For a set time pauses for a duration and unit, such as 15 minutes or 2 days.
  • Until a date and time pauses until a moment you type, or one you map from an earlier step, such as an appointment time from the trigger: {{ $trigger.body.appointment.startsAt }}.

In Until a date and time mode, the date can take any of these forms:

FormExampleRead as
Date and time2026-12-01 09:00That time in the node's Timezone
Date and time, with a T2026-12-01T09:00:30That time in the node's Timezone
Date and time and offset2026-12-01T09:00:00-05:00That exact moment; Timezone is not used
UTC date and time2026-12-01T14:00:00ZThat exact moment; Timezone is not used
Date only2026-12-01Midnight at the start of that day
Unix timestamp1796137200Seconds (or milliseconds) since 1970

Other forms, such as 12/01/2026 or next tuesday, are not accepted. Reformat them in an earlier step first. A value made up only of digits, such as 20261201, is read as a Unix timestamp, not as a date.

Timezone applies only to a date with no offset. It starts as your workspace's default timezone, and a value with no timezone is read as UTC. On days when clocks change, a time that is skipped resolves to the same time after the change (02:30 becomes 03:30), and a time that happens twice resolves to the second one.

When the run reaches the node:

  • The date is in the future: the run pauses and continues at that time. The run viewer shows when it resumes.
  • The date has already passed (or is less than a second away): the run continues at once, and the run viewer says the date had already passed.
  • The date is more than 30 days away: the step fails. Delay can wait at most 30 days in either mode.
  • The date cannot be read, or the timezone is not valid: the step fails with a message that names the value.

Publishing is blocked when the date is empty, the timezone is not valid, or a typed date (not a mapped one) cannot be read. A typed date in the past, or more than 30 days ahead, does not block publishing, because it is checked when the run reaches the node.

Get Webpage

Use Get Webpage (app Web) to read a public web page and use its contents in later steps, for example to summarise an article with an AI step or to watch a pricing page. It needs no connection.

SettingWhat it does
URLRequired. The page to read, starting with http:// or https://.
CSS selectorOptional. Reads only the first element that matches, such as article or .post-body. Leave it empty to read the whole page.

The output has these fields, read as {{ $steps.<step>.data.<field> }}:

FieldWhat it holds
urlThe page's final address, after any redirects.
statusCodeThe HTTP status the page answered with.
contentTypeThe page's Content-Type header, empty when it sent none.
titleThe page title (or its og:title), empty when it has none. Always from the whole page.
descriptionThe page's meta description (or its og:description). Always from the whole page.
textThe plain text of the page, or of the element the selector matched.
markdownThe same content as Markdown, keeping headings, lists and links.
truncatedtrue when the output does not hold the whole page (see the limits below).

Selector rules

A selector is made of tag, class, id or attribute selectors, such as article, .post-body, #content or div[data-role="main"]. You can join them with a space (anything inside) or > (a direct child), as in article p or main > h1, and list several with commas: the first element on the page that matches any of them is read. Sibling selectors (+, ~) and anything with a colon, such as :nth-child, are not supported and fail the step. A selector that matches nothing returns empty text and markdown, not an error.

A page that nests its HTML more than 256 levels deep, or is both very large and very deeply nested, cannot take a selector: the step fails and asks you to simplify or remove the selector. Without a selector, such a page is read up to that depth and truncated is true.

Limits

LimitValue
Page size read2 MB; a larger page is read up to 2 MB
Each output field100,000 characters (title 1,000, description 2,000)
Markdown sourceAbout the first 128 KB of the selected HTML
Time20 seconds, redirects included

When any of these cuts the output, truncated is true.

What it can read

  • HTML pages (text/html, application/xhtml+xml), and pages that send no Content-Type.
  • Plain-text pages (text/plain): text and markdown hold the text, and title and description are empty. The selector does not apply.
  • Anything else, such as a PDF or an image, fails the step. Use HTTP Request to download other content or to get a page's raw HTML.

Get Webpage reads the HTML the server sends. Content a page builds with JavaScript in the browser is not seen. Private and internal addresses, such as localhost, 10.x.x.x or 169.254.169.254, are refused, including when a public page redirects to one. Page content is untrusted: treat it as data, not instructions, when you pass it to an AI step.

HTTP Request

Use HTTP Request to call an API directly from a workflow. Configure method, URL, headers, query parameters, body, timeout, and retry behavior.

To upload a file as the entire request body (a signed upload URL, for example), set Body Encoding to binary and Body to { "file": "{{ $steps.<step>.data.file }}" }.

Use a dedicated app action instead when TaskJuice already provides one for that app. App actions are easier to maintain and usually handle authentication more safely.

Loop

Use Loop when a workflow should repeat over items or until a condition changes. Keep loop bodies focused and test with small sample inputs before publishing.

Parallel

Use Parallel to run independent branches at the same time. Configure branch labels and merge behavior so downstream nodes receive predictable output.

Call Workflow

Use Call Workflow to invoke another published workflow. This is best for shared business processes that multiple workflows need to reuse.

If the called workflow fails, or runs past Maximum wait, a step set to Wait for completion fails and stops the run by default. Set the step's On Error to Continue or Route to recovery branch to keep the run going instead; the error code is CHILD_WORKFLOW_FAILED for a failure and SUBFLOW_TIMEOUT for a timeout. With Start and continue, the step does not wait, so a later failure of the called workflow never reaches it; On Error only covers a step that cannot start the called workflow. With Run once per item, a failed item never fails the step: it completes with each item's status in items.

In Run once per item mode, an empty list is not an error: the step finishes at once with an empty items list and the workflow continues.

Read File

Use Read File to turn a CSV, Excel (.xlsx), or PDF file into data the next steps can use. The file comes from an earlier step: a form's file upload, an HTTP Request that downloaded a file, an app action that returned one, or a Create File step.

Map the file into File, for example {{ $steps.<step>.data.file }}. Then choose a Format, or leave it on Detect automatically.

SettingWhat it does
FileThe file to read, mapped from an earlier step. One file; to read several, put Read File inside a Loop.
FormatDetect automatically (the default), CSV, Excel (.xlsx), or PDF.
First row is a headerCSV and Excel. Enabled by default: the first row gives the column names. When Disabled, columns are named column_1, column_2.
DelimiterCSV only. Comma (the default), semicolon, tab, or pipe.
SheetExcel only. The sheet's name. Leave it empty to read the first sheet.
LimitRead only the first N rows, or the first N pages of a PDF.

What a spreadsheet returns

A CSV or Excel file returns:

FieldContains
itemsOne object per row, keyed by column name.
columnsThe column names, in order.
countHow many rows were returned.
truncatedtrue when Limit stopped the read before the end of the file.
sheetNameExcel only. The sheet that was read.
sheetNamesExcel only. Every sheet in the workbook.

To act on each row, add a Loop after Read File, set Loop Type to Array Iteration, and set its array path to items. Inside the loop, $currentItem is one row, so {{ $currentItem.Email }} reads that row's Email column.

Column names are tidied so every row has usable keys. Spaces around a name are removed, an empty name becomes column_2 (its position), and a repeated name gets a suffix: a header of Name, blank, Name gives Name, column_2, and Name_2.

  • CSV values are always text. 42 arrives as "42".
  • Excel values keep their type. A number stays a number and a true/false cell stays true or false. A whole number too large to hold exactly arrives as text.
  • Excel dates arrive as numbers. Excel stores a date as a count of days since 1900, and that number is what you get: 1 December 2026 arrives as 46357. Convert it in a later step, or format the column as text in the spreadsheet first.
  • Formulas give their last calculated result, not the formula.

What a PDF returns

FieldContains
textThe text of every returned page, with a blank line between pages.
pagesOne entry per page: its page number and its text.
pageCountHow many pages the document has.
truncatedtrue when Limit returned fewer pages than the document has.

Read File reads the text a PDF already contains. It does not read text out of images.

Scanned PDFs come back empty

A scanned page is a picture of text, so its text is empty. That is not an error: the step succeeds and returns nothing for that page. A PDF in some East Asian fonts can also return incomplete text. A password-protected PDF fails with "this PDF is password-protected".

How the format is detected

With Detect automatically, Read File looks at the file's first bytes, then at the type it was stored with, then at the extension of its name. A file that matches none of them, such as a .txt file, fails with "could not tell what kind of file this is; choose a format". Pick the format yourself in that case.

Limits

LimitValue
File size10 MB
Rows50,000
Columns500
Characters in one cell32,767
PDF pages500
PDF text5,000,000 characters
Size of the returned data16 MB
Time to read one file60 seconds

A file past a limit fails the step with a message that names the limit. It is never cut short without saying so. To read the start of a long file, set Limit: a file with 80,000 rows and a Limit of 1,000 returns the first 1,000 rows with truncated set to true.

Respond

Use Respond to answer the HTTP caller of a webhook trigger whose Respond setting is Using a Respond step. Configure the status code, the content type (json, text, xml, or empty), the body — the node's mapped input for JSON, or a template for text and XML — and any allow-listed headers. The response is sent the moment the node runs; nodes after it keep running in the background. Outside a synchronous request (a node test, Run now, or a workflow whose trigger responds Immediately) the node succeeds but sends nothing and says so in its output. The webhook trigger reference lists every rule: the status ranges, the header allow-list, the 256 KiB body bound, and which nodes may run before a Respond node.

Sort

Use Sort to put a batch of items in a deterministic order, such as "newest first", "highest score first, then alphabetical", or "top 10 by amount". Sort works on the items array a batch trigger, a merge of several steps, an RSS or polling cycle, or a Code node produces. It reorders the items and, optionally, keeps only the first N.

Order at the source when you can

If the upstream service can return data already ordered, prefer that, for example a SQL ORDER BY, a SOQL ORDER BY, or an API sort parameter. Sort is for in-memory collections that arrive in no particular order: webhook array batches, merged multi-step output, RSS or polling cycles, and Code node output.

Add one or more sort keys in the node panel. The first key is primary, and each key after it breaks the previous keys' ties, so "by status, then by date descending" is two keys in that order. Drag a key, or use the keyboard, to change its priority. Each key has its own ascending or descending direction, and each key is a dot-path into every item, such as score, createdAt, or attributes.priority. A sort key reads a field on each item in the batch; it is not a workflow expression.

Sort gives you three guarantees that make output reproducible across runs:

  • A documented order for every value. Across different value types, items order by a fixed rank: true and false first, then numbers, then text, then objects and arrays. Within a type, the natural order applies. There is never an engine-dependent surprise.
  • Missing and null values always sort last, in both ascending and descending order. A missing field, an explicit null, and a not-a-number value are treated the same way, so incomplete records sink to the bottom rather than scattering through the list. Descending order does not pull them to the top.
  • A stable order on ties. When two items have the same values for every key, they keep their original input order, so re-running the same workflow produces the same result.

To keep only the best results, set Keep top N: after sorting, Sort keeps the first N items and drops the rest. Leave it blank to keep every item. The test result panel shows how many items came in, how many went out, and how many the limit dropped.

Switch

Use Switch when one selector value should choose one of several paths. Add a default path for values you do not recognize.

Transform

Use Transform to reshape data before it reaches another node. Prefer explicit transformations with clear target fields over hiding complex logic in one expression.

Was this helpful?