Uipath maestro flow
UiPath Maestro Flow, UiPath Flow and Maestro Automate (`.flow` / `.flow.ts` files): build, edit, run, debug, fix, or evaluate a flow. Author with the TypeScript builder SDK (`@uipath/maestro-builder-sdk`): nodes, triggers, schedules, connectors, document extraction (published IXP models, or the Extract document node with an inline taxonomy), inline agents, HITL, chat/voice flows, bindings, brownfield edits, and the check/compile/validate loop. Operate: upload, publish, deploy, debug a real run, trigger a process, job status/traces, pause/resume/cancel/retry an instance. Diagnose: faulted runs, incidents, runtime variables, why validate passed but the run failed. Evaluate: eval sets, evaluators, simulations, eval runs. Case plans (`caseplan.case` / `caseplan.json`)→uipath-maestro-case; BPMN (`.bpmn`, `.bpmn.ts`)→uipath-maestro-bpmn. For raw IXP labelling or prompt tuning outside a Flow→uipath-ixp; standalone agents→uipath-agents; C#/XAML→uipath-rpa.
By- name:
- uipath-maestro-flow
- description:
- UiPath Maestro Flow, UiPath Flow and Maestro Automate (`.flow` / `.flow.ts` files): build, edit, run, debug, fix, or evaluate a flow. Author with the TypeScript builder SDK (`@uipath/maestro-builder-sdk`): nodes, triggers, schedules, connectors, document extraction (published IXP models, or the Extract document node with an inline taxonomy), inline agents, HITL, chat/voice flows, bindings, brownfield edits, and the check/compile/validate loop. Operate: upload, publish, deploy, debug a real run, trigger a process, job status/traces, pause/resume/cancel/retry an instance. Diagnose: faulted runs, incidents, runtime variables, why validate passed but the run failed. Evaluate: eval sets, evaluators, simulations, eval runs. Case plans (`caseplan.case` / `caseplan.json`)→uipath-maestro-case; BPMN (`.bpmn`, `.bpmn.ts`)→uipath-maestro-bpmn. For raw IXP labelling or prompt tuning outside a Flow→uipath-ixp; standalone agents→uipath-agents; C#/XAML→uipath-rpa.
UiPath Flow — TypeScript Builder SDK
UiPath Flow uses @uipath/maestro-builder-sdk to build type-safe graphs compiled to executable Flow JSON; existing Flow JSON can be decompiled for editing.
Critical Rules
- Before writing or editing any flow source, read
references/author.mdin full. It contains separately numbered critical rules, the scope gate, and the required completion report. - Before writing a node, read its
Referencein Supported node types, including signature, example, and hazards. - Choose every node from a registry search, never a brand name.
- Ask when the request leaves a finite decision open, including an input value, range, or combination no stated rule covers; never fold it into a stated value. When the request says no one will answer (headless, CI), use the most defensible stated value and list it under Open questions as [REQUIRED].
- Handle an error only when the request specifies what should happen.
- Never re-run
flow debugto inspect a failed run. - Simulate every side-effecting component before an eval set; never
solution uploadin an eval workflow without asking. - Run the final pass with the workspace's selected Lifecycle loop after the last edit.
Project layout
<!--skill-flavor:sdk-project-layout:start-->Install @uipath/maestro-builder-sdk globally (npm install -g), unless present. Examples are in examples/; routed details are in references/.
A Flow source is .flow-sdk/<Name>.flow.ts under <Solution>/<Name>/; compiled <Name>.flow is not in .flow-sdk/. The SDK work directory contains source, bindings.json, connectors/, and connectors-local/, relative to the directory running uip; each project has its own. Studio Web does not read it, and uip solution pack/upload and flow debug omit it. Run SDK verbs (flow check, compile, decompile, merge, registry pull/prepare) from <Solution>/<Name>/, using ( cd "<Solution>/<Name>" && … ) when your shell does not keep its directory between commands; other commands run from the workspace root. Every .flow-sdk/ path is project-relative.
Scaffold first, seed from the scaffold, and emit into it; compile -o determines the emitted file. <Solution> and <Name> come from the request: one name given for both ("inside a solution of the same name"), or only the Flow's, serves both. Preserve <Solution> exactly, including spaces; normalize <Name> to letters, numbers, _, and - (Headcount report form → HeadcountReportForm).
Before uip solution init, run find . -maxdepth 2 -name '*.uipx'. If solutions exist and a user can answer, ask which one (one option per solution, then "Create a new solution", then "Something else") and scaffold only after the answer; never silently create another. Headless: use the named solution, otherwise the only existing one, otherwise create one named above, and record the choice in the final response.
uip solution init "<Solution>"
( cd "<Solution>" && uip maestro flow init <Name> --sdk-source )
# edit <Solution>/<Name>/.flow-sdk/<Name>.flow.ts, then run the Lifecycle loop below
Do not hand-write the skeleton. --sdk-source decompiles the trigger-only artifact into .flow-sdk/<Name>.flow.ts, creates the folder, and preserves the product-assigned flow id/name; a hand-written flow('<name>') invents an id. The first compile -o overwrites the stub. init answering "already exists and is not empty. Use --force to overwrite" means it exists: never pass --force; edit it. An Extract document node is dynamicExtract() (references/document-pipeline.md); it needs SDK 6.118.0 or later, else use the CLI.
When the request names Maestro Automate as the product, run ( cd "<Solution>" && uip maestro flow init <Name> --automate --sdk-source ); bare "automate invoice intake" means a plain Flow. Nothing after init changes: it writes runtimeOptions.profile to operate.json and a .maestro_automate marker; compile -o rewrites only .flow, so both survive.
When <Solution>/<Name>/ existed before this turn, skip init; edit its <Name>.flow via Editing an existing flow, never by compiling an earlier turn's source over it. Keep .flow-sdk/<Name>.flow.ts, the <Name> directory, and <Name>.flow aligned. Exactly one <Name>.flow may exist at <Solution>/<Name>/<Name>.flow, never at the workspace root. Root emission is only for packaged-SDK local gates, which do not scaffold; choose Lifecycle first and do not mix loops.
Install the SDK first, once per machine: npm install -g @uipath/maestro-builder-sdk; skip it when already installed, and see references/CLI-LOOP.md for the checks and failure handling.
For an external service or data (weather, Slack, a REST API), choose the node before writing it: run uip maestro registry search '<brand or service name>', unless the request names the transport itself ("over HTTP, not a connector" means http()). A hit is a connector; "total": 0 means http() (not for an external agent: see the table). With none pulled, registry search searches the tenant through uip. For capabilities outside the connector library (agent/process), run the family's uip maestro flow registry search (references/agent.md). For document extraction, default to a published IXP model (references/ixp.md); use the Extract document node only when named or already present (references/extract-document-node.md). Never replace such a step with fixed-value script(); mock() only marks a capability the search proved absent.
Connectors require .flow-sdk/bindings.json. uip maestro registry pull writes descriptors to .flow-sdk/connectors/<key>.ts and caches the library outside the project. If download fails, pull fetches through uip into connectors-local/; with none pulled, so do check and compile. Prepared modules are .flow-sdk/connectors-local/<key>.ts, with descriptors under .flow-sdk/connectors-local/descriptors/<key>/; because the source sits in .flow-sdk/ too, import pulled descriptors as ./connectors/<key>.ts and prepared modules as ./connectors-local/<key>.ts.
The connector loop: author → check → prepare → check → compile
Authoring never waits on prepare: after search selects the node, no further discovery command precedes the source; write from the task's words: intended fields, lookup() id tokens, and { object: '<name-as-the-task-said-it>' } for a generic operation. Then run uip maestro flow check .flow-sdk/<Name>.flow.ts --source.
check names every prepare you owe, with the exact command: OBJECT_UNPREPARED for an unmaterialized object, CUSTOM_FIELDS_UNPREPARED for an input outside the tenant-agnostic snapshot, LOOKUP_UNRESOLVED for a lookup token with no recorded value, CONNECTOR_INPUT for a field the operation does not declare. Run that one uip maestro registry prepare <connector-key> --action <action>; --object, --resolve, and -f compose in one invocation. It finds the connection, writes .flow-sdk/bindings.json, and repoints the import to ./connectors-local/<key>.ts; then re-run check and compile. Where two flows import the same connector, prepare names them instead of guessing and asks for --source.
What prepare binds or refuses: bindings.md. CONNECTOR_NOT_IN_LIBRARY, CONNECTOR_OBJECT_REQUIRED, and CONNECTOR_OBJECT_NOT_GENERIC require source fixes, not prepares: connector-params.md. Schema-dynamic operations (loadByDefault, dependent dropdowns, customFieldsRequestDetails) need the prepare check names with every required -f, and a post-compile cache check: references/connector-params.md.
Hello world Flow
import { flow, script, input, out, types } from '@uipath/maestro-builder-sdk';
export default flow('hello').name('Hello')
.input({ name: types.string }).output({ greeting: types.string })
.step('greet', script({ code: 'return `Hello ${$vars.start.output.name}`;' }))
.return({ greeting: out('greet') }).build();
Lifecycle
<!--skill-flavor:sdk-lifecycle:start-->Choose one loop before any build command; never mix loops or use one as the other's probe:
- Product-CLI loop (emit-only): use when product validate/debug evidence is requested or the workspace is emit-only: a
package.jsonwith{ "flowSdk": { "emitOnly": true } }(product-runtime eval sets it), orFLOW_SDK_EMIT_ONLY=1. Scaffold first (Project layout). - Packaged-SDK local gates: otherwise, run source
check, rootcompile, andvalidate—references/CLI-LOOP.md.
uip maestro flow delegates to the installed SDK. Emit-only is project-scoped: the nearest upward package.json declaring flowSdk.emitOnly decides it; a nested file without flowSdk inherits, and emitOnly: false opts out. In emit-only mode, compile only serializes source, both flow check modes refuse, and product validate verifies structure. A new flow's pass is emit, required artifact bindings, then validate:
( cd "<Solution>/<Name>" && uip maestro flow compile .flow-sdk/<Name>.flow.ts -o <Name>.flow )
uip maestro flow validate "<Solution>/<Name>/<Name>.flow" --output json
# Stated runtime claim; ask per references/operate.md
( cd "<Solution>" && uip solution resources refresh --solution-folder . --output json )
( cd "<Solution>" && uip maestro flow debug <Name> --log-level error \
--output-filter "{status:finalStatus,instance:instanceId,url:studioWebUrl,failed:elementExecutions[?status!='Completed'].{id:elementId,status:status},<Out>:variables.globals.<Out>,incidents:incidents}" \
--output json )
<Out> means each declared out variable, never all of variables.globals. Re-run from compile after the last source or binding edit. Valid means top-level Result plus Data.Status: "Valid"; treat Data.Warnings as failures except the reviewed shared-connection advisory and err() diagnostics. Runtime evidence requires Completed, expected globals, and empty failed; an exit code alone is insufficient. Debug inputs, attachments, other projections, and incidents per references/CLI-LOOP.md.
Editing an existing flow
<!--skill-flavor:sdk-editing:start-->Preserve supplied source, step names, and unaffected wiring. Insert a step by moving the old edge through it, not by creating a second path. Unless source was supplied, freshly decompile the .flow, edit narrowly, and merge back. Decompiling overwrites a supplied source: use its loop.
decompile stamps the source's first line; merge reads it, derives the baseline from the original, and writes over it:
( cd "<Solution>/<Name>" && [ ! -d .flow-sdk ] || find .flow-sdk -maxdepth 1 \( -name '<Name>.baseline' -o -name '<Name>.edited' -o -name '<Name>.merged.flow' -o -name baseline -o -name edited -o -name '????????-????-????-????-????????????' \) -exec rm -rf {} + )
uip maestro flow decompile <Name>.flow -o .flow-sdk/<Name>.flow.ts --no-pipeline
# edit .flow-sdk/<Name>.flow.ts narrowly; keep its first line; no .layout() for added steps (builder-sdk#1320)
uip maestro flow check .flow-sdk/<Name>.flow.ts --source --baseline <Name>.flow # fix each (edited) error; `unknown option`: brownfield.md
( head -n 1 .flow-sdk/<Name>.flow.ts | grep -q '^// @decompiled-from ' || { echo 'no stamp (SDK<6.96.0): NOT merged' >&2; exit 1; }; uip maestro flow merge .flow-sdk/<Name>.flow.ts --original <Name>.flow )
Only merge writes the .flow; a refusal writes nothing. Validate as in Lifecycle; on failure, fix the source, check and merge again (it is restamped). no stamp or MERGE_ORIGINAL_CHANGED: the stamp.
True-brownfield procedure: references/brownfield.md.
Builder frame
Use flow(id), declarations, nodes, .return(...), and .build(). The start step is the manual trigger's default name and carries the flow's inputs; outputs return to the caller only on success.
.var(name, types.*, default?)declares state written/read by multiple steps;.inputand.outputare the caller contract. A step writes a var with{ updates: { name: <expr> } }. Inputs, outputs and vars allow onlytypes.string,types.number,types.boolean,types.object,types.array, andtypes.file;float,double,date,datetime, andjsonSchemaare refused: variable types. There is no node for an Orchestrator asset; use a var default or input..return(...)ends a PATH;.terminate(...)ends the RUN. In a.parallelarm, terminate aborts sibling arms, while return lets them continue.- Expressions are how a step names something that is not a literal:
input(name)flow input;v(name)flow variable;out(step, path?)whole or field result;err(step, field?)failed-step error envelope only inside its handler;ran(step)whether a step ran;lit(value)a constant, where a raw value would be ambiguous;js`…`/tmpl`…`an authored expression/string. When arms converge, prefer one shared continuation over duplicating work per arm;rantells it whether the value it wants was produced.
API index
<!--skill-flavor:sdk-api-index:start-->Every signature, option shape and field is indexed in the installed @uipath/maestro-builder-sdk package, not this guide; paths are relative to the package root:
| you have | look in | a row gives |
|---|---|---|
a field or method — outcomePorts, stepToList |
dist/api-members.md |
declaring shape and declaration lines |
an exported symbol — HitlInputs, hitl, FlowBuilder |
dist/api-index.md |
kind, area, and declaration lines |
Match one name; do not read either file end to end. Read the whole declaration and doc comment at the indicated span (for example, dist/core/actions.d.ts:583-597) from .d.ts, never dist/*.js. A name in neither index is probably a RUNTIME output key covered by node references. More rules: references/author.md.
Supported node types
This table is authoritative; read each node's Reference before writing it (Critical Rule 2). Example names the one complete flow to copy from; paths under examples/ resolve inside this skill folder.
| Node or surface | Emitted node type | Builder | Reference | Example |
|---|---|---|---|---|
| Manual trigger | core.trigger.manual |
omit .trigger(...) |
manual-trigger.md | examples/GreenhouseWatering.flow.ts |
| Entry points (multiple triggers) | one trigger per extra root | .entryPoint(id, trigger, { inputs?, version?, default? }, prefixFn?); shared var: input { type, shared: '<var>' } |
manual-trigger.md | — |
| Scheduled trigger | core.trigger.scheduled |
scheduled(...) |
scheduled-trigger.md | examples/HerbariumDispatch.flow.ts |
| Connector event trigger; HTTP start | uipath.connector.trigger.<key>.<event> |
onEvent(...) |
event-trigger.md, HTTP call | examples/DoorbellLog.flow.ts |
| Connector event wait | uipath.connector.event.<key>.<event> |
waitForEvent(...) |
event-trigger.md | examples/PlanetariumConfirmation.flow.ts |
| Form trigger | core.trigger.form |
formTrigger(...) |
form-trigger.md | examples/BakeOffEntryForm.flow.ts |
| Conversation trigger | core.trigger.conversation |
conversationTrigger(...) |
conversational.md | examples/LibraryDeskChat.flow.ts |
| Voice trigger | core.trigger.voice |
voiceTrigger(...) |
voice.md | examples/HarbourRadioLine.flow.ts |
HTTP (managed: false no longer runs) |
core.action.http.v2 |
http({ managed: true, ... }) |
http.md | examples/ObservatorySeeing.flow.ts |
| Script | core.action.script |
script(fn) SDK ≥ 6.57.0 ($metadata ≥ 6.72.0); script({ code }) |
script.md | examples/GreenhouseWatering.flow.ts |
| Transform | core.action.transform |
transform(...) |
transform.md | examples/TrailLogSummary.flow.ts |
| Filter | core.action.transform.filter |
transform({ variant: 'filter', ... }) |
transform.md | examples/TrailLogSummary.flow.ts |
| Map | core.action.transform.map |
transform({ variant: 'map', ... }) |
transform.md | examples/TrailLogSummary.flow.ts |
| Group by | core.action.transform.group-by |
transform({ variant: 'group-by', ... }) |
transform.md | examples/TrailLogSummary.flow.ts |
| Integration Service action | uipath.connector.<key>.<action> (Data Fabric/Data Service native-family gaps include file fields/events: uipath.connector.uipath-uipath-dataservice.*) |
connector(...) |
connector-params.md | examples/ClubDirectory.flow.ts |
| Data Fabric read | core.datafabric.read (resultMode: 'multiple' selects 1.4; limit max 1000) |
dataFabricRead(...) |
data-fabric.md | examples/BeeHiveLedger.flow.ts |
| Data Fabric create | core.datafabric.create |
dataFabricCreate(...) |
data-fabric.md | examples/BeeHiveLedger.flow.ts |
| Data Fabric update | core.datafabric.update |
dataFabricUpdate(...) |
data-fabric.md | examples/BeeHiveLedger.flow.ts |
| Data Fabric delete | core.datafabric.delete (NO outputs) |
dataFabricDelete(...) |
data-fabric.md | examples/BeeHiveLedger.flow.ts |
| Subflow | core.subflow |
subflow(...) |
subflow.md | examples/RecipeScaler.flow.ts |
| Human task | uipath.human-in-the-loop |
hitl(...) |
hitl.md | examples/GallerySubmission.flow.ts |
| Human quick form | uipath.human-in-the-loop.quick-form (one exit per outcome: .stepSwitch routes them; a plain .step() continues every outcome) |
hitl({ variant: 'quick-form', ... }) |
hitl.md | examples/FieldTripQuickForm.flow.ts |
| Human action app | uipath.human-in-the-loop.coded-action-app |
hitl({ variant: 'action-app', ... }) |
hitl.md | examples/KilnReview.flow.ts |
| RPA workflow | uipath.core.rpa-workflow.<key> |
rpaWorkflow(...) |
rpa-workflow.md | examples/WorkshopInventory.flow.ts |
| Queue item | core.action.queue.create* |
queueItem(...) |
queue.md | examples/HerbariumDispatch.flow.ts |
| Summarize | uipath.pattern.deep-rag |
summarize(...) |
summarize.md | examples/OralHistoryDigest.flow.ts |
| Batch transform | uipath.pattern.batch-transform |
batchTransform(...) |
batch-transform.md | examples/FossilCatalogEnrich.flow.ts |
| Branch | core.logic.decision |
.branch(...) |
branch.md | examples/GreenhouseWatering.flow.ts |
| Switch | core.logic.switch |
.switch(...) |
switch.md | examples/BeltProgression.flow.ts |
| Parallel / Merge | core.logic.merge |
.parallel(...) |
parallel-merge.md | examples/ConcertSoundcheck.flow.ts |
| Loop | core.logic.loop |
.loop(...) |
loops.md | examples/ClubDirectory.flow.ts |
| Do while | core.logic.dowhile |
.doWhile(...) |
loops.md | examples/MeteorShowerPages.flow.ts |
| Return / End | core.control.end |
.return(...) |
return.md | examples/GreenhouseWatering.flow.ts |
| Terminate | core.logic.terminate |
.terminate(...) |
terminate.md | examples/AquariumSafetyStop.flow.ts |
| Placeholder | core.logic.mock |
mock() |
placeholder.md | examples/FestivalMapScaffold.flow.ts |
| Unknown node type | registry nodeType verbatim (never uipath.connector.*) |
rawNode(...) |
placeholder.md | — |
| Error handler | error handle on action |
.onError(...) |
error-handling.md | examples/ObservatorySeeing.flow.ts |
| Delay | core.logic.delay |
delay(...) |
delay.md | examples/LighthouseSignal.flow.ts |
| API workflow | uipath.core.api-workflow.<key> |
apiWorkflow(...) |
api-workflow.md | examples/BirdCountLookup.flow.ts |
| Agentic process | uipath.core.agentic-process.<key> |
agenticProcess(...) |
agentic-process.md | examples/NeighborhoodWalkPlanner.flow.ts |
| Agent resource | uipath.core.agent.<key> |
agent(...) |
agent.md | examples/PlantNameAdvisor.flow.ts |
| External agent or automation | uipath.connector.<key>.<operation> |
connector(...); registry prepare first when absent from library |
external-agent.md | — |
| Inline agent | uipath.agent.autonomous |
inlineAgent(...) |
inline-agent.md | examples/PostcardCaption.flow.ts |
| IxP extraction | uipath.ixp.<project>.<version>-<folder> |
ixpExtract(...) |
ixp.md | examples/ArchiveCardExtract.flow.ts |
| Document classify | uipath.document.classify |
documentClassify(...) |
document-pipeline.md | examples/SeedPacketReader.flow.ts |
| Extract document | uipath.ixp.extract-document-builder |
dynamicExtract(...) |
document-pipeline.md, extract-document-node.md | examples/SeedPacketReader.flow.ts |
| Published function | uipath.core.function.<key> |
publishedFunction(...) |
published-function.md | examples/TideTableConverter.flow.ts |
| Conversation message wait | uipath.conversational.wait-for-message |
waitForMessage(...) |
conversational.md | examples/LibraryDeskChat.flow.ts |
| Conversational agent | uipath.agent.conversational |
conversationalAgent(...) |
conversational.md | examples/LibraryDeskChat.flow.ts |
| Conversation send message | uipath.conversational.send-message |
sendMessage(...) |
conversational.md | examples/LibraryDeskChat.flow.ts |
| Voice outgoing call | uipath.conversational.voice.create-outgoing-call |
createOutgoingCall(...) |
voice.md | examples/PotteryStudioCallback.flow.ts |
| Voice agent | uipath.agent.voice |
voiceAgent(...) |
voice.md | examples/PotteryStudioCallback.flow.ts |
| Voice end call | uipath.conversational.voice.end-call |
endCall(...) |
voice.md | examples/PotteryStudioCallback.flow.ts |
Authoring a flow
Critical Rules govern node choice, open decisions, and errors; details are in references/author.md. A requested canvas arrangement uses .layout() with at()/dim(): references/operate.md.
Operating a deployed flow
<!--skill-flavor:sdk-operate:start-->Upload, deploy, debug, trigger, inspect jobs, and drive instance lifecycle only with uip login; run uip solution resources refresh before every upload, publish, or debug. flow debug is a REAL run, not a validation step: ask first, as it says. Read references/operate.md.
Diagnosing a failed run
Triage in order: existing debug response, incidents, runtime variables, deployed artifact, then traces. The builder removes some classic .flow defects but can leave expressions that are actually literals. Read references/diagnose.md.
Evaluating a flow
An inline agent creates no evaluators, eval sets, data points, or simulations; the Flow eval CLI manages them as project files. Read references/evaluate.md.
Final evidence
Product-resource truth is live evidence: confirm plausible ids, argument names, scenario-named optional inputs, and warnings against the tenant. Static diagnostics own mechanically checkable structure; fix causes rather than copying rules into this router.
Match proof to the request's acceptance bar. For one remaining wiring question, validate-only is complete when product validation is green and its required structural self-check passes; do not debug only for confidence. For each behavior claim the bar names, plan at most one bounded product debug that answers it. If one wiring question remains, run one bounded distinguishing experiment, apply the answer, and stop; do not create scratch-solution families or repeat equivalent variants.
Open this reference as its own page
Authoring and product-CLI loops
<!--skill-flavor:loop-choice:start-->Choose one loop before any build command, as SKILL.md — Lifecycle says:
- For product-CLI validation/debug, or when
flowSdk.emitOnly/FLOW_SDK_EMIT_ONLY=1is enabled, use only the eval/product-CLI loop. Its scaffold and full command block are in SKILL.md; the debug flags and projections here are only for runtime-evidence bars. - Otherwise use this file's packaged-SDK local gates.
In eval/product mode, create the solution/project scaffold immediately after choosing the loop, before authoring. After the source first compiles, emit it into that nested project artifact—not /tmp—and keep the artifact current after every source edit.
Tenant discovery is not a loop phase. First choose the node (SKILL.md, "Choose the node before writing it"); check cannot flag a node never written, so a script or mock() substitution goes unflagged. Author from the task's words; source check names every owed tenant call—unresolved lookup, unmaterialized object, and out-of-snapshot field—with its exact registry prepare command. Spend that one expensive registry prepare call once, after the cheap pass finds all other errors.
Do not mix loops or use one mode as the other's probe; their output layouts and evidence contracts differ.
Source-model and brownfield judgment
TypeScript runs while constructing the graph. Use Flow Branch, Switch, Loop, and action nodes for runtime decisions/work; use native if or for only for deliberate author-time graph generation.
When editing an existing Flow, edit the supplied .flow.ts, preserve existing step names and unaffected wiring, and route an edge through an inserted step rather than retaining the old bypass. If given only raw .flow JSON, reconstruct source, compile once to compare the emitted baseline, then edit; these before/after judgments cannot be established from the final artifact.
Installing the package
<!--skill-flavor:install-package:start-->Skip the install when the SDK is already installed: npm ls -g @uipath/maestro-builder-sdk lists it, or a prepared workspace has node_modules/@uipath/maestro-builder-sdk (a workspace copy is used before a global one).
Every uip maestro flow authoring verb — check, compile, decompile, merge — runs from the installed package, so all of them refuse until it is installed; the package cannot bootstrap itself.
Install globally once per machine, so the workspace needs no package.json or node_modules/:
npm install -g @uipath/maestro-builder-sdk
The public npm package needs no token and follows npm's configured registry/mirror. Only after E401 or E404 and npm config get @uipath:registry names GitHub Packages, retry once with --@uipath:registry=https://registry.npmjs.org appended. After EACCES, do not use sudo; run npm install --save-dev @uipath/maestro-builder-sdk in the workspace, which uip also finds. Report other failures (including timeout or mirror refusal) for the user's network/registry to fix; do not route around them.
When uip reports the SDK below minimum, run the command in its Instructions, which specifies -g or --save-dev for the discovered copy. Connector-definition fetching requires @uipath/maestro-builder-sdk 6.97.0 or later, through either uip or flow-sdk. When uip says the SDK cannot fetch definitions, run its named upgrade (npm install -g @uipath/maestro-builder-sdk@latest, or --save-dev for a workspace copy); on cloud, uip maestro registry pull also works.
Ask the SDK what it supports
Read this even when the SDK is already installed.
From @uipath/maestro-builder-sdk 6.101.0 the SDK can say which features it has: run npx --no flow-sdk capabilities.
--no stops npx from downloading anything: it runs the workspace copy, else the global one.
The command prints the name and version, then one feature name per line:
$ npx --no flow-sdk capabilities
@uipath/maestro-builder-sdk 6.101.0 (gitref 1a2b3c4)
json-result
flow-check-baseline
flow-pipeline-strict
...
--json prints one object instead: {"ok":true,"name":"@uipath/maestro-builder-sdk","version":"6.101.0","gitref":"1a2b3c4","capabilities":["json-result",...]}.
Test one feature with npx --no flow-sdk capabilities | grep -qx <name>.
Read the answer this way:
- The list prints and has the name: the feature is there.
- The list prints and lacks the name: the feature is not there. Upgrade the SDK, or use the fallback the reference gives.
error: unknown command 'capabilities': the SDK is older than 6.101.0. Forflow-entry-point-default, which shipped later, that means the feature is not there. For the other features below, which all shipped earlier, it says nothing: follow the version note in its reference (for example,check --baselineworks from 6.64.0).
The names are stable:
| Name | Feature |
|---|---|
flow-check-baseline |
check --baseline <original>.flow (brownfield.md) |
flow-pipeline-strict |
node .flow-sdk/<Name>.pipeline.mjs --strict |
flow-decompile-scripts |
decompile prints scripts as functions and takes --scripts string |
flow-script-metadata |
the $metadata parameter of a script function |
flow-merge-source |
merge <Name>.flow.ts --original <Name>.flow, from the // @decompiled-from stamp |
project-min-version |
flowSdk.minVersion, below |
flow-entry-point-default |
.entryPoint(id, spec, { default: true }) (manual-trigger.md); always absent when capabilities is unknown |
To pin one SDK floor for a project, add "flowSdk": { "minVersion": "<version>" } to its package.json.
From 6.101.0, compile, check, decompile and merge then refuse an older SDK with exit 2. The message names the copy that ran and the npm install ...@latest command that upgrades it (--save-dev in the project for a workspace copy, else -g).
Both need @uipath/maestro-builder-sdk 6.101.0 or later (UiPath/builder-sdk#2009). An older SDK ignores minVersion, so a floor only takes effect once the SDK in use is 6.101.0 or later; upgrade with npm install -g @uipath/maestro-builder-sdk@latest (or --save-dev for a workspace copy).
Local authoring hard gates
<!--skill-flavor:local-gates:start-->Use this section only with emit-only disabled. Use source check as the fast no-output loop; with a library and .flow-sdk/bindings.json beside the source it reports every connector-input and binding refusal that compile would raise. Compile to emit, then run product static check on the artifact. There is no compiled-artifact check; validate is that rung. validate judges connector and other tenant nodes against the node cache registry pull wrote for your login (CLI 1.206 and earlier judge built-in nodes against that cache too); after a stale-handle error, run uip maestro flow registry pull --force once and validate again. compile does not run check and writes any serializable flow, so never compile with a check error. Ignore only an error whose own message says to ignore it, when applicable (for example INLINE_AGENT_PROMPT_JSON_TEXT when JSON is mentioned only as data). For a brownfield edit, add --baseline <original.flow> (brownfield.md).
Run this sequence in order; run registry prepare only when check names it:
uip maestro flow check .flow-sdk/<Name>.flow.ts --source
# run each prepare the check names, with the exact command it prints:
uip maestro registry prepare <key> --action <action> [--object <name>] [--resolve <field>:<by>=<value>] [-f <parent>=<value>]
uip maestro flow check .flow-sdk/<Name>.flow.ts --source # re-check until clean
uip maestro flow compile .flow-sdk/<Name>.flow.ts -o <Name>.flow
uip maestro flow validate <Name>.flow --output json
Review warnings deliberately; task or release policy determines whether one blocks release.
Layout is not a step in this sequence. compile lays out a source with no
.layout() the way uip maestro flow format does, so the file is ready for
solution upload, flow debug, or a designer. Do not run format on a merged
brownfield file, or on one whose source sets .layout(): format re-lays out
every node, so it discards the positions the author chose. See
operate.md.
These authoring verbs require a prerelease of @uipath/cli that exposes them.
Product-CLI scaffold
<!--skill-flavor:product-cli-scaffold:start-->The scaffold (uip solution init, flow init --sdk-source for the seed, and --automate for a Maestro Automate project) is in SKILL.md — Project layout; keep it there so copies cannot drift.
Eval/product-CLI packaging: emit-only
Emit-only rules—mode selection by package.json, and compile/check behavior—and the compile → validate → format → refresh → debug block are in SKILL.md — Lifecycle. The following adds runtime-evidence detail.
Product validation and conditional bindings
Reading product validation
The JSON envelope has top-level Result; successful validation also reports Data.Status: "Valid" and may contain Data.Warnings. Treat warnings as failures except the reviewed shared-connection advisory and err() read diagnostics in error-handling.md. Preserve an exception's exact code/text and rationale; do not broaden the allowlist.
Bounded completion
Match final evidence to the acceptance bar after the last edit:
- Validate-only: require
Data.Status: "Valid"plus the required structural self-check, then stop; do not debug merely for confidence. - For each distinct behavior claim named by the bar, plan at most one bounded debug with inputs/attachments that exercise it; combine compatible claims and do not repeat equivalent inputs.
- If one unknown blocks final wiring, run one bounded experiment distinguishing the choices, apply its answer, and return to final emit/validate. Do not create scratch-solution families.
If evidence cannot be obtained within the bound, report the evidence boundary rather than repeating debug launches.
Managed HTTP: authored connection bindings
http({ managed: true, ... }) requires real connection and folder bindings for connector-authenticated product debug. Select an enabled HTTP connection:
uip is connections list --all-folders \
--output-filter "[?ConnectorKey=='uipath-uipath-http'].{Id:Id,FolderKey:FolderKey,Name:Name}"
Declare symbolic entries in bindings.json and pass both names to the node:
http({ managed: true, method: 'GET', url: '/me',
connection: 'spotifyHttp', folder: 'shared' })
Compilation resolves the names and writes connector-authenticated node detail and required product bindings into .flow. Do not patch them into the artifact after emission; compilation overwrites that edit. Omit both options only for manual/implicit authentication.
Refresh, debug, and preserve evidence
<!--skill-flavor:debug-flags:start-->flow debug takes the project directory, not the .flow file; run resource refresh first. From the solution directory, <Name> names the project. A 500 at prepare-custom-debug is transient: retry once. A 403/404 there comes from a folder flag: drop it unless the account has no personal workspace (operate.md). Use only flags required by the claim:
| Need | Exact form |
|---|---|
| JSON inputs | -i '{"name":"value"}' or --inputs @inputs.json |
| File input | --attachment <input-name>=<path>; repeat for multiple files |
| Folder | omit it; debug uses your personal workspace. With none (service-principal or CI token): --folder-id <number> |
| Start trigger | --entry-point <trigger-node-id>; omit to start at the default root |
| Poll bound | --timeout <seconds> --poll-interval <milliseconds>; keep the stated task bound |
| Compact read-back | --output-filter "<JMESPath>" --output json |
| Quiet logs | --log-level error, or --log-file <path> to move them off the stream entirely |
--output-filter is JMESPath, and three things about it are worth knowing
Use 'single-quoted' for a string literal, not `backticked`; backticks delimit a JSON literal, so `Completed` is invalid. Both forms below work; prefer the first (its failure is loud), wrapped in DOUBLE quotes so the inner '…' survives the shell:
--output-filter "elementExecutions[?status!='Completed']" # raw string literal
--output-filter 'elementExecutions[?status!=`"Completed"`]' # JSON literal
Project from Data, not the envelope: Result and Code remain top-level, so a filter naming finalStatus reads Data.finalStatus. Filter rather than pipe through jq; a rejected filter exits non-zero with a parse error, so fix it rather than falling back to --output json | jq.
Ready-made projections — copy one, do not compose your own
Use the narrowest verified projection that answers the claim:
# Did it finish? The cheapest possible check.
--output-filter "{status:finalStatus,instance:instanceId}"
# The standard read-back: status, where to look, what did NOT complete, the
# flow's declared outputs — one <Out>:variables.globals.<Out> pair per output —
# and incidents.
--output-filter "{status:finalStatus,instance:instanceId,url:studioWebUrl,\
failed:elementExecutions[?status!='Completed'].{id:elementId,status:status},\
weatherVerdict:variables.globals.weatherVerdict,incidents:incidents}"
# Every global, including each step's raw output — diagnosis only (see below).
--output-filter "variables.globals"
# Every element's status, when you need the path the run actually took.
--output-filter "elementExecutions[].{id:elementId,status:status}"
variables.globals is a flat map whose keys may contain dots. A step output is "<step>.output.<field>", alongside each declared global's bare name:
{ "product": 42, "start.output.a": 6, "multiply.output": 42, "multiply.error": null }
Read bare globals as variables.globals.product; quote dotted keys, flipping shell quoting:
--output-filter '{status:finalStatus,raw:variables.globals."multiply.output"}'
Name only globals needed by the claim; never project all for a verdict. Each step output is whole (HTTP response body/headers, or a connector's full record). One geocoding call can make hundreds of lines; tail/head can drop status and failed, requiring another flow debug run (~30 s against the cloud). Name each declared output and add a step output only when that step is the claim.
A completed envelope has no incidents; its Data carries finalStatus, entryPoint, instanceId, studioWebUrl, jobKey, runId, folderKey, solutionId, variables, and elementExecutions, plus variablesFetch when variable reading retried; variablesError replaces variables when it fails. Thus incidents:incidents is null. A fault usually carries Data.incidents (absent if PIMS returns none or fetching fails); --output-filter projects failure Data too, so add incidents:incidents to keep them. If missing, fetch with the separate debug-instance incidents command below using the returned instanceId. With variablesError, outputs are unknown, not empty: run the re-read command its Instructions give.
For direct-input evidence (a real run: ask first), refresh first and retain Result, status, instance, URL, failed executions, required declared outputs (<Out> is each direction: out global), and incidents:
( cd "<Solution>" && uip solution resources refresh --solution-folder . --output json )
( cd "<Solution>" && uip maestro flow debug <Name> --log-level error \
--inputs @inputs.json \
--output-filter "{status:finalStatus,instance:instanceId,url:studioWebUrl,failed:elementExecutions[?status!='Completed'].{id:elementId,status:status},<Out>:variables.globals.<Out>,incidents:incidents}" \
--output json )
The envelope still carries Result; the projection selects Data. Completed with expected globals and empty failed evidences the product-runtime path; process exit code alone does not. Omit the filter only to diagnose an unretained field. Fetch incidents by instance only when a failed run has no Data.incidents (null in a projection) or the projection dropped it:
uip maestro flow debug-instance incidents <instanceId> \
--output-filter "[*].{E:ElementId,C:ErrorCode,M:ErrorMessage,D:ErrorDetails}"
ErrorDetails commonly contains the service response or unresolved-resource value omitted by the summary.
CLI output conventions
Use --output json, not --format json; use --output-filter '<JMESPath>' for Data. Successful commands may print progress/update text to stderr, so judge success from structured Result, status, outputs, and incidents—not stderr.
Product debug creates real side effects. Use sandbox resources and serialize runs sharing queues, issues, mailboxes, or other mutable tenant state.
Open this reference as its own page
Agent resource families
Exact signatures, fields, and defaults: inlineAgent(). Prompting, inputs and the sidecar: inline-agent.md.
Inline-agent capabilities are ARTIFACT nodes on handles, not control-flow steps: tools on tool, a context index on context, and escalation on escalation. Author each on inlineAgent; the compiler emits its node and edge. voiceAgent and conversationalAgent accept the same tools, context, and escalation options under voice and conversational agents; only inline agents have memory. Context index: inline-agent.md.
.step('triage', inlineAgent({
model: 'gpt-5.4', systemPrompt: '…', userPrompt: '…',
tools: [
{ kind: 'mcp', name: 'Ticket MCP', key: '<guid>', slug: 'ticket-mcp', folderPath: 'Shared' },
{ kind: 'a2a', name: 'Research Agent', key: '<guid>', slug: 'research-agent' },
{ kind: 'clientside', name: 'pickFile', inputs: { prompt: 'string' }, returns: { path: 'string' } },
{ kind: 'httpRequest', url: 'https://api.example.test/items', method: 'GET' },
{ kind: 'function', key: '<guid>', name: 'acme-echo', folderPath: 'Shared/acme-echo' },
],
escalation: [{ variant: 'quick-form', name: 'Confirm', outcomes: ['Approve', 'Reject'],
fields: [{ id: 'approved', type: 'boolean', direction: 'output' }] }],
}))
Tool kinds
| Kind | What it is | Identity you must supply |
|---|---|---|
builtin |
Platform tool (summarize, analyzefiles, batchtransform) |
tool name |
connector |
Integration Service operation | connector + operation (needs a library), connection + folder (bindings.json labels); see inline-agent.md |
process / api / flow / maestro / agent / function |
Deployed resource or sibling project | key (GUID) + name + folderPath ('solution_folder' for a sibling); see inline-agent.md |
ixp |
Published IxP project | projectId + name |
mcp |
MCP server's tools | name + key; slug is what the runtime resolves |
a2a |
Remote agent delegation | name + key + required slug |
clientside |
Calling application runs it | name plus inputs/returns, or whole-JSON-schema inputSchema/outputSchema (property descriptions, items, required); not both |
httpRequest |
Built-in HTTP tool | nothing; see below |
For mcp, a2a, and per-instance resource kinds, the node TYPE is minted from supplied identity (…tool.mcp.<name-slug>.<key-slug>); a wrong key emits an unresolvable node. Read identities from the tenant.
HTTP fields are three-way. Each of url, method, headers, params, body, and timeout is FIXED (give a value) or MODEL-filled at call time (omit it, preserving the definition's prompt-mode default and field description). Fix scenario-pinned fields and leave the rest; fixing all defeats the tool's purpose, while fixing none gives no constraints.
Client-side tools declare only a CONTRACT. The flow declares the name and input/output contract; the calling application implements it and dispatches on the name. Nothing local runs it.
Escalation
The default variant is app-backed: app: { key, name, folderPath }, naming the deployed Action Center app that owns the form. folderPath is its Orchestrator folder ('Shared/Approvals'); omit it for an app shipped in this solution, and compile writes 'solution_folder'. variant: 'quick-form' puts the form INLINE: provide fields (the same rows as a human task) and no app. check refuses either mixed form.
Memory
Do not give inlineAgent a memory; check refuses it (AGENT_MEMORY_NOT_AUTHORABLE). Find the space, declare it in the solution, then attach it to the sidecar after the last compile. add attaches only an existing space; an empty list means stop and report it. --field takes a sidecar inputSchema key, e.g. start__output__userQuestion. <MEMORY_SPACE_NAME> and <MEMORY_SPACE_FOLDER> are the list row's Name and Folder:
uip solution resources list --source remote --kind MemorySpace --search "<MEMORY_SPACE_NAME>" --output json
uip solution resources add --source remote --kind MemorySpace --name "<MEMORY_SPACE_NAME>" \
--folder-path "<MEMORY_SPACE_FOLDER>" --solution-folder "<Solution>" --output json
uip agent memory add <FeatureName> --memory-space "<MEMORY_SPACE_NAME>" \
--folder-path "<MEMORY_SPACE_FOLDER>" --field <inputSchema-key>=1 \
--path "<Solution>/<Name>/<source>" --output json
uip agent refresh "<Solution>/<Name>/<source>" --inline-in-flow \
--bindings-target "<Solution>/<Name>/bindings_v2.json" --output json
If memory add reports SolutionResource.Status: NotDeclared, run the resources add line, then run memory add again. Check threshold, result count, and search mode with uip agent memory add --help. Do not add items: real runs add them after deploy (uip agent memory item add --help).
Evidence boundary
Every resource here is tenant data, runtime behavior, or both. No local rung calls an MCP server, delegates to a remote agent, or asks a client application to run a tool. Offline validate proves minted node types, correct-handle wiring, and declared contracts; resource existence and returned values require platform evidence.
Voice and conversational agents
<!--skill-flavor:voice-conversational-resources-sdk-version:start-->Needs @uipath/maestro-builder-sdk 6.88.2 or later. Older SDKs accept these options without findings and compile no tool, context, or escalation nodes. Upgrade the copy in use: run npm install @uipath/maestro-builder-sdk@latest in a workspace with its own node_modules copy (used before the global one), else run npm install -g @uipath/maestro-builder-sdk@latest.
checkcodes. All three agents share the inline rules underFLOW_AGENT_TOOL_*,FLOW_AGENT_ESCALATION_*,FLOW_AGENT_RESOURCE_*, andFLOW_AGENT_CONTEXT_*; messages name the kind (Voice agent step "a" …). SDKs older than 6.88.2 useINLINE_AGENT_TOOL_*,INLINE_AGENT_ESCALATION_*,INLINE_AGENT_RESOURCE_*, andAGENT_CONTEXT_*for an inline agent.- Voice definitions. Compile writes each resource definition with the voice agent as an allowed source, as the designer does; built-in tools and app escalation therefore use version 1.2.
- Decompile gaps. These receive a
TODOfor their edge: connector tools; built-in tools at versions other than the compile-written version for that agent; HTTP request tools other than 1.0; and escalations at versions compile does not write—quick-form other than 1.2, or app escalation other than 1.1 (1.2 on a voice agent). Recompiling that source drops the tool or escalation. Do not recompile such a flow from decompiled source; edit the.flowinstead.
Open this reference as its own page
Agent
Exact signatures, fields, and defaults: agent().
Start a coded or low-code agent and wait for its output. It may be published in Orchestrator or registered as a sibling project in this solution.
Signature: agent({ key?, name, folderPath?, location?, projectId?, inputs, inputSchema?, returns?, flavour? })
For a published process, leave key and returns out: check prints the registry prepare --kind Process command that records them, and compile fills both in (Orchestrator Processes). An in-solution sibling still takes key.
.step('count', agent({
name: 'CountLetters', folderPath: 'Shared',
inputs: { inputString: input('inputString') },
flavour: 'coded'
}))
See Orchestrator Processes and use the Agent process type to locate an agent process and determine its contract.
At a glance
agent() references a published or in-solution sibling agent; it does not create one. For a task-created sibling, scaffold and register it before calling it. Verify resource identity and answer quality live. .onError(...) is supported.
General
- flavour is either "coded" or "lowcode"; it affects presentation only, not the runtime contract.
uip or processes getreturns no equivalent field. .onError(...)is supported on agent steps.
Reuse a published agent, or create one in the solution
Two shapes; the request decides which. When the request names an agent that may already exist, look for it first:
uip maestro flow registry search "uipath.core.agent" --output json
uip maestro flow registry get "uipath.core.agent.<key>" --output json
Registry reads are cached for 30 minutes. If the agent is missing or redeployed with a new schema, run uip maestro flow registry pull --force once, then search again.
To learn a published agent's argument names and return shape, write name and
folderPath, leave key and returns out, and run the
uip maestro registry prepare --kind Process command check prints. It records
the key and both schemas; see
Orchestrator Processes.
uip maestro registry (the SDK's prepare) and uip maestro flow registry (node
manifests, above) are two command groups; both exist.
If prepare prints not recorded for a side, read it from registry get
instead: inputDefinition.properties and outputDefinition.
When asked to CREATE a coded agent in this solution, scaffold it as a sibling project; do not substitute an inline low-code agent. Creating one the tenant already publishes is duplication, and binding a pre-existing one when the request said to build it is a different task, so read the request; do not guess from what the registry happens to hold.
Never invent key or projectId. Tooling mints both; read them back. If no source below yields one, stop on that field rather than provide a plausible GUID: check and validate accept a well-formed GUID that resolves to nothing on the tenant, so a fabricated key fails at run time, not author time.
Task-created in-solution coded agent
<!--skill-flavor:agent-scaffold:start-->- Scaffold the solution and Flow project.
- Scaffold and implement the coded agent as a sibling directory.
- Register the sibling with
uip solution projects add. - Read both identifiers back, then author the Flow with
agent({ location: 'in-solution', ... }). - Compile into the nested Flow project, validate, refresh resources, and debug the Flow (ask first).
uip solution init <SolutionName> --output json
( cd <SolutionName> && uip maestro flow init <FlowName> --output json )
mkdir -p <SolutionName>/<AgentProject>
( cd <SolutionName>/<AgentProject> \
&& uv venv --python 3.13 \
&& uv pip install <framework-package> \
&& uip codedagent setup --force --output json \
&& uip codedagent new <AgentName> )
Install the framework package BEFORE new. new defaults to --type auto and selects the template from the active venv; without an installed framework it scaffolds a coded FUNCTION.
Verify the scaffold before continuing: <framework>.json beside main.py (langgraph.json for uipath-langchain) indicates the agent template. uipath.json with a functions map and no <framework>.json is the function fallback; install the package, delete the generated files, and re-run new.
Scaffold from INSIDE the agent directory, with its framework venv already present. From the solution root (the directory containing .uipx), uip codedagent new <AgentName> creates <AgentName>/; elsewhere it scaffolds in place.
Implement the project, then run these commands from that directory:
uv sync
uip codedagent init
uip codedagent review . --output json
Run uv sync before init: uip codedagent init imports the entry-point graph and fails when declared dependencies are absent; a failed init leaves uipath.json scaffolded without its entry-point map.
uip codedagent run is not part of this path. It executes the graph and requires UIPATH_ACCESS_TOKEN plus access to the LLM gateway. If either is absent, run fails at the platform client; the import and virtualenv errors it emits on the way there are environmental, not project defects; do not chase them. uip codedagent review is the offline check and does not run the model.
Register the sibling, refresh, and read both identifiers back:
( cd <SolutionName> && \
uip solution projects add <AgentProject> <SolutionName>.uipx --output json )
uip solution resources refresh --solution-folder <SolutionName> --output json
uip maestro flow registry list --local --output json
Run registry list --local from the Flow project directory; it is the authoritative source for the minted key. The generated resource file carries the same pair:
resource.key→keyresource.projectKey→projectId
Find that file; do not assume its path. uip solution projects add reads the project type from the manifest. A uipath.json without ProjectType falls back to Function when it has a functions map, including an empty scaffolded map, so the resource may be under process/function/<AgentProject>.json rather than process/agent/. Glob for it instead of hard-coding either:
ls <SolutionName>/resources/solution_folder/process/*/<AgentProject>.json
uip solution projects list --output json reports the type resolved from the manifest. Type: Function on a coded agent is this fallback, not a wiring error; re-adding the project or hand-editing uipath.json will not change it. Read the identifiers and wire the Flow instead.
.step('analyze', agent({
key: localResourceKey,
name: '<AgentProject>', location: 'in-solution',
projectId: localProjectKey,
inputs: { sentence: input('sentence') },
returns: { result: 'integer' }, flavour: 'coded',
}))
An in-solution agent has no folderPath: its generated binding uses the bare local resource key and its definition carries the sibling project id. The SDK checker rejects a missing project id or a published agent with a missing folder, so resource forms cannot silently collapse.
Name an in-solution sibling by project
Needs @uipath/maestro-builder-sdk 6.108.0 or later. Any of the five
process builders can then name a sibling of the solution by its project name
instead of copying the two ids:
.step('analyze', agent({
location: 'in-solution',
project: '<AgentProject>',
inputs: { sentence: input('sentence') },
flavour: 'coded',
}))
compile,checkandflow mergefind the sibling's resource file underresources/solution_folder/process/themselves, and write itskeyandprojectIdinto the.flow. Studio Web's Run node gets itsprojectIdwithout you setting it. Run them from inside the solution: they look for the nearest folder at or above the flow that holds the.uipx, and refuseprojectwithout one (IN_SOLUTION_NO_SOLUTION).- In a decompiled flow, the step keeps the
keyandprojectIddecompile wrote. Switching it toprojectis optional; both forms merge back. - When the step declares no
returns, they are read from the sibling'sentry-points.jsonoutput schema. An RPA project that was never built, or an API workflow whose entry point hasoutput: null, has none there: declarereturnsyourself, as before. - The sibling still needs its resource file, made by the register step of the recipe above.
- They refuse a name the solution does not have
(
IN_SOLUTION_PROJECT_NOT_FOUND, with the nearest name) and the wrong builder for the sibling's type (IN_SOLUTION_WRONG_BUILDER, which names the right call; for examplepublishedFunction()on a coded agent filed underprocess/function/). - An older SDK ignores
projectand refuses the step for its missing key (AGENT_NO_KEY,RPA_NO_KEY, …). Then use the id recipe above.
To type an argument differently from its value (for example an object filled
from an expression), add inputSchema; keep one a decompiled step carries. See
Orchestrator Processes.
Evidence boundary
A green live run proves only that a real job received inputs and returned the declared shape, not that the model answer is correct. Preserve the job identity, input/output witnesses, and a scenario-specific semantic assertion; offline seeds should also rule out a hard-coded answer.
Open this reference as its own page
Agentic Process
Exact signatures, fields, and defaults: agenticProcess().
Invoke a deployed Maestro agentic process.
Signature: agenticProcess({ key?, name, folderPath?, location?, projectId?, inputs?, inputSchema?, returns? })
folderPath is required for a published process; a sibling project of the same solution takes location: 'in-solution' and projectId instead (below).
For a published process, leave key and returns out: check prints the registry prepare --kind Process command that records them, and compile fills both in (Orchestrator Processes). An in-solution sibling still takes key.
.step('intake',
agenticProcess({
name: 'ProcurementProcess',
folderPath: 'Shared',
inputs: { productId: 1 },
}))
See Orchestrator Processes and use the ProcessOrchestration, CaseManagement, and/or Flow process types to locate an agentic process and determine its contract.
At a glance
Run a deployed Maestro agentic process synchronously.
Signature: agenticProcess({ key?, name, folderPath?, location?, projectId?, inputs?, inputSchema?, returns?, form?, completion? }).
.step('intake', agenticProcess({ name: 'ProcurementProcess', folderPath: 'Shared',
inputs: { productId: 1 } }))
Confirm identity and argument names live; declared outputs may still be null;
.onError(...) is supported. form: 'bpmn' | 'flow' | 'case' picks the published
form; completion: 'fire-and-forget' waits for nothing — details below.
Recording the key and contract: or-processes.md
General
- Declared outputs can be returned as
null
Forms and fire-and-forget completion
One agenticProcess() covers all three published forms; form selects the
wire identity: 'bpmn' (default — Maestro BPMN process orchestration),
'flow' (published Maestro Flow), 'case' (Case Management process).
completion: 'fire-and-forget' dispatches the process and continues
immediately: returns is forbidden, the step publishes no output (reading
$vars.<step>.output is a check error), and only dispatch failures route
through .onError(...). Local replay treats it as dispatch-only.
.step('launchReview', agenticProcess({ key: reviewKey, name: 'ClaimsReview',
folderPath: 'Shared', form: 'flow', completion: 'fire-and-forget',
inputs: { claimId: input('claimId') } }))
To type an argument differently from its value (for example an object filled
from an expression), add inputSchema; keep one a decompiled step carries. See
Orchestrator Processes.
In-solution sibling
To call a sibling project of the SAME solution — for example another Flow,
with form: 'flow' — set location: 'in-solution' and projectId, and omit
folderPath:
.step('notify', agenticProcess({ key: localResourceKey, name: 'Notifier',
form: 'flow', location: 'in-solution', projectId: localProjectKey,
inputs: { message: input('who') }, returns: { echoed: 'string' } }))
- Or name the sibling by project (
@uipath/maestro-builder-sdk6.108.0 or later):agenticProcess({ form: 'flow', location: 'in-solution', project: '<Project>', inputs }). See agent.md for what it fills in, what it refuses, and when to fall back to the ids below. - Where the two ids come from.<!--skill-flavor:agentic-sibling-register:start-->
Register the sibling and refresh resources
(
uip solution projects add, thenuip solution resources refresh), then<!--skill-flavor:agentic-sibling-register:end--> runuip maestro flow registry list --local --output jsonfrom the Flow project directory. The generatedresources/solution_folder/process/<type>/<Project>.jsoncarries the same pair:resource.key→key,resource.projectKey→projectId. Glob for the file (process/*/<Project>.json) rather than guessing<type>, and never invent either id; the full recipe is in agent.md. - No
folderPath. The sibling has no folder until the solution is deployed. - Inputs and returns are yours to declare, using the sibling's own
argument names and casing;
uip maestro flow registry get --localshows them when the sibling's manifest lists them.
check warns on AGENTIC_LOCAL_NO_PROJECT_ID (no projectId; the call
resolves by key, so a decompiled step without one is fine as is) and refuses
AGENTIC_LOCAL_PROJECT_ID_NOT_GUID (projectId is not the
project GUID), AGENTIC_LOCAL_HAS_FOLDER (folderPath set as well; drop it,
or drop location to call the published copy). AGENTIC_NO_FOLDER applies to
published steps only. If check reports AGENTIC_LOCAL_NO_PROJECT_ID as an error (an older SDK),
add projectId from resource.projectKey.
Still set projectId on a step you author: Studio Web's Run node reads it
to deploy the sibling first.
Open this reference as its own page
API Workflow
Exact signatures, fields, and defaults: apiWorkflow().
Run a coded API workflow, deployed or a sibling in the same solution, as a serverless Orchestrator job.
Signature: apiWorkflow({ key?, name, folderPath, inputs?, inputSchema?, returns? }), or
apiWorkflow({ key, name, location: 'in-solution', projectId, inputs?, inputSchema?, returns? })
for an API workflow in the same solution (see In the same solution).
For a published process, leave key and returns out: check prints the registry prepare --kind Process command that records them, and compile fills both in (Orchestrator Processes). An in-solution sibling still takes key.
Orchestrator often leaves an API workflow's contract blank, so prepare prints Outputs (not recorded …); then keep returns, as below.
.step('age', apiWorkflow({ name: 'NameToAge', folderPath: 'Shared',
inputs: { name: input('name') }, returns: { age: 'integer' } }))
At a glance
Run a coded API workflow and wait for its job result.
Published workflow: confirm identity and exact argument casing on the tenant.
In-solution sibling: read them from the sibling project
(In the same solution). .onError(...) is supported.
Recording the key and contract: or-processes.md
Tenant contract
For a published workflow, the key, name, and folder must describe one deployed
resource. Confirm its actual input/output names and casing from the tenant. See
Orchestrator Processes and use the Api process type for the
shared, pagination-safe resource-discovery procedure.
.onError(...) is supported on API workflow steps. Choose a handler only when
the scenario wants recovery; otherwise a faulted job may need to fault the Flow.
To type an argument differently from its value (for example an object filled
from an expression), add inputSchema; keep one a decompiled step carries. See
Orchestrator Processes.
In the same solution
An API workflow that is a sibling project of the Flow, in the same solution, is
not published yet, so it has no folder. Write it with location: 'in-solution'
and projectId instead of folderPath:
.step('notify', apiWorkflow({
key: localResourceKey,
name: '<ApiWorkflowProject>',
location: 'in-solution',
projectId: localProjectKey,
inputs: { name: input('name') },
}))
- Or name the sibling by project (
@uipath/maestro-builder-sdk6.108.0 or later):apiWorkflow({ location: 'in-solution', project: '<ApiWorkflowProject>', inputs, returns }). See agent.md for what it fills in, what it refuses, and when to fall back to the ids below. - Where the two ids come from. Same recipe as an in-solution function
(published-function.md), with
process/api/in place ofprocess/function/:resources/solution_folder/process/api/<ApiWorkflowProject>.json,resource.key→key,resource.projectKey→projectId. Never invent either. inputsandreturnscome from the sibling'sWorkflow.json:input.schema.document.propertiesandoutput.schema.document.properties, each field'stype. Itsentry-points.jsoninput/outputmay benull, so do not read them there. The sibling is not on the tenant yet; do not look it up there.checkwarns on an in-solution step with noprojectId(APIWF_LOCAL_NO_PROJECT_ID; the call resolves bykey, so a decompiled step without one is fine as is), and refuses aprojectIdthat is not a GUID (APIWF_LOCAL_PROJECT_ID_NOT_GUID) and afolderPathbesidelocation: 'in-solution'(APIWF_LOCAL_HAS_FOLDER): the in-solution binding's folder is'', filled in at deploy. IfcheckreportsAPIWF_LOCAL_NO_PROJECT_IDas an error (an older SDK), addprojectIdfromresource.projectKey. Still setprojectIdon a step you author: Studio Web's Run node reads it to deploy the sibling first.- A decompiled in-solution step (folder
'') comes back aslocation: 'in-solution'. Keep it that way when editing; never add afolderPath.
Needs @uipath/maestro-builder-sdk 6.71.1 or later: check that
dist/nodes/process/flow/spec.d.ts of the SDK copy in use declares projectId
on ApiWorkflowInputs. An older SDK has no location on apiWorkflow():
check reports APIWF_NO_FOLDER, but compile alone (6.64.0 on, it no longer
runs check) exits 0 and writes a binding keyed undefined.<name>. On an older
SDK, report the version instead of compiling the in-solution form.
Evidence boundary
Replay uses the authored contract. Live evidence should identify the real job, its input arguments, completion status, and returned output. Job completion does not by itself prove the coded workflow's business result is correct.
Open this reference as its own page
Author — build and edit a flow with the builder SDK
<!--skill-flavor:author-scope:start-->Everything on disk before a flow touches the cloud—scaffolding, node choice, <Name>.flow.ts, and the loop in CLI-LOOP.md—ends when the emitted .flow validates. Publishing, running, and debugging are operate.md; a failed run is diagnose.md.
The builder owns .flow JSON: compile emits node definitions, variables.nodes[] entries for $vars.<step>.output, resource bindings, the connector inputs.detail, and error flags. Author judgment remains: node, topology, output meaning, and questions.
Critical rules
- Choose the node before writing it, from a search, never from a brand name. For an external service run
uip maestro registry search '<service>'; prefer, in order: a curated connector, managed HTTP in connector mode, a connector built withuip is connectors builderfor an authenticated REST+JSON API without a connector, manual HTTP otherwise (its credential stays in the flow, outsideuip is connections list), and RPA only when no API exists (desktop app or terminal). For a tenant resource (agent, process, API workflow, IxP model), run the family'suip maestro flow registry search; it returns only published resources. Before calling it missing, runuip maestro flow registry list --local; if still missing, runuip maestro flow registry pull --forceonce and search again (registry reads cache for 30 minutes).mock()marks a capability both searches proved absent, never one they found. - Read the node's reference before writing the step. The router in SKILL.md gives one reference and example per node. Copy tenant identity fields (keys, model names, folder keys); never construct them.
- Read the Integration Service contract before any
uip iscall. Both are in /uipath:uipath-platform, underreferences/integration-service/.connections.mdcovers selection, folder scope, BYOA filtering, and empty-result recovery; if no healthy connection remains after recovery, stop and report an open question.resources.mdcovers reference-field lookups; complete pagination before reporting "not found".<!--skill-flavor:source-not-artifact:start--> - Edit the source, not the artifact. Change
<Name>.flow.tsand re-emit withcompile -ofor a new flow; for a non-empty.flowthat existed before this turn, use decompile and merge (brownfield.md).<!--skill-flavor:source-not-artifact:end--> Never hand-edit emitted.flow,content/*.bpmn,bindings_v2.json,entry-points.json,operate.json, orpackage-descriptor.json; the CLI regenerates them and compile undoes edits. Route brownfield JSON throughdecompile(brownfield.md). Non-interactive runs take the same route (nobody can approve a script over the.flow): write large node definitions into source; an inexpressible node is an SDK gap to report, not JSON to splice, unless its reference names a CLI route. - Run the loop once the source is complete. Use
check --sourcewhile writing; runcompileandvalidateon finished source and again after the last edit.compiledoes not runcheck: run a cleancheckbefore everycompile; for brownfield edits use--baseline <original.flow>(brownfield.md). Ignore an error only when its message says to do so and that case applies (for example, false-positiveINLINE_AGENT_PROMPT_JSON_TEXTwhen JSON is mentioned only as data). In emit-only modecheckrefuses andvalidateis the gate. Treat everyvalidatewarning as failure unless the loop reference names it reviewed. - Bind every declared output on every path. An output that only
.return()sets (nodefault,{ updates }or shared input) comes backnullfrom every.return({...})that leaves it out.checkreports that asRETURN_OUTPUT_MISSINGon@uipath/maestro-builder-sdk6.100.0 or later; an older SDK misses it. Writelit(null)when null is the answer.checkstill misses an output set with{ updates }on only some paths: a.return()on a path that skipped the update returns its default, ornull. Name the output in that.return(), or set it before the paths split. - Handle errors only when requested. Add
.onError(...)only for stated failure behavior ("if the call fails…", invalid-input return, or timeout handling); otherwise let failure fault the run. A handler must recover genuinely or reach a terminal the caller can tell apart from success: a distinct.returnor.terminate. Addhitlonly when the request says the run waits for a person; post-run review of output, such as a drafted reply, is not hitl. This overridesuipath-human-in-the-loopStep 2b and its pattern guide; put unstated signals under Open questions. - Never invent a named output's meaning or an uncovered input case—ask. If derivation, pass-through, or reformatting of a named output (
caseKey,severity,ticketId) is unspecified, ask or state and confirm an assumption; a guessed format compiles and validates and returns the wrong value. Check coverage over the valid values, ranges, and combinations of the inputs the stated rules read (Highfor refunds over $500 andLowunder $50 leave $50 to $500 unassigned;Expeditefor an overdue order from a Gold customer leaves overdue orders from every other tier unassigned); list each uncovered case and ask—never fold it into a stated value or an unprovided default. Invalid input remains under rule 7. When the request says no one will answer (headless, CI), the no-folding rule lifts: map each uncovered case to the most defensible stated value rather than stopping and list each under Open questions as [REQUIRED]. - Present finite decisions as options, with "Something else" last. For solution, connector, trigger, or resource choices, ask with enumerated options, never open-ended; without a structured-question tool, use a numbered chat list. If nobody can answer (CI, headless), choose the recommended option and record it prominently; without a recommendation, stop and report the open decision, except an uncovered rule-8 case, which you still decide. Never auto-answer consent gates (destructive operations or tenant writes).<!--skill-flavor:solution-lookup:start-->
- Look for an existing solution before
uip solution init. Runfind . -maxdepth 2 -name '*.uipx'. If one exists, ask which to use—one option per solution, "Create a new solution", then "Something else"—and do not silently adopt, re-initialize, or repair it. The scaffold is in SKILL.md.<!--skill-flavor:solution-lookup:end--> - Never invoke another skill on your own. When the flow needs an RPA process, an agent, or an app that does not exist, name the gap and hand the user what they need to switch skills.
- Batch independent calls; chain dependent ones. Put scaffold, install, and registry search in one turn. In the next, chain
check, each namedprepare, re-check,compile, andvalidate; split only when a later step needs earlier output.
Journeys
| Journey | Read |
|---|---|
| Create a new flow | SKILL.md — Project layout, then SKILL.md — Lifecycle (local gates: CLI-LOOP.md) |
Edit an existing flow (.flow.ts or raw .flow) |
brownfield.md |
| Add or change one node | Its row in SKILL.md — Supported node types |
| Connector with tenant-specific fields | connector-params.md + bindings.md |
Count what the request names before building
Count named services, systems, documents, decisions, approvals, schedules, and computations. A domain/outcome and the project name are not steps. With zero steps, scaffold, compile the stub, validate, and report desired behavior as open questions; that is the finished deliverable. Do not invent a pipeline. With one or more, build all named steps; an adjacent outcome does not cancel one: "Check the weather for the Bellevue office and tell me if it's a nice day" names a lookup and a threshold decision; build both.
Plan first only when the flow is complex
Plan before building when the flow has five or more nodes with branching/parallel paths, needs connector/resource discovery, or is ambiguous. Build directly for a single-node edit, linear pipeline, or specified topology; skipping a plan does not skip node choice. Use .branch for two outcomes, never a script ternary, and .switch for three or more; named external services follow rule 1.
A plan gives a one-line summary; node table (step, node, why); wiring; inputs/outputs; each connector and connection; and open questions. Get approval before building (rule 9, with "proceed" recommended).
A flow earns Maestro when it has several waits, branching/parallel paths, SLAs, cross-product composition, or per-case visibility. Say so before designing if a single-wait mostly linear process may be better as a queue plus Action Center.
Patterns
Read its guide before choosing nodes when a new or edited flow has one of these shapes, including one inserted by the canvas (brownfield.md); with two or more, also read composing-guide.md.
| Pattern | Reach for it when | Guide |
|---|---|---|
ai-decision-human-review |
An agent decides/proposes and a person reviews/approves before action | guide |
routing-triage |
Emails, tickets, or claims are classified/routed, with human handling of low-confidence/unmatched items | guide |
batch-ai |
An agent handles each list item and one bad item must not stop the rest | guide |
conversational-intake |
Chat gathers or answers a request over several turns | guide |
parallel-agents |
Several AI agents work one input concurrently and one merges them | guide |
voice-agents |
A phone call or call line is handled by voice agents | guide |
Do not use these for a linear pipeline, single node, human approval without an agent decision, agent classification without a requested person (inlineAgent() plus .branch() or .switch()), a field switch, or an edit adding none of them. summarize() and batchTransform() are single nodes, not patterns.
- Adapt counts and branches to the request while retaining the guide's "Why it works", or state that you are building something else.
- Shape tables mark steps Entry, Mechanism, or Placeholder. Entry is the pattern start/end: drop an Entry start if the flow already has one; drop an Entry End when steps follow and wire its inbound edge to them. Keep every Mechanism step. Choose a Placeholder by rule 1 or skip it when existing work covers it.
- An agent is a published agent found by search, otherwise
inlineAgent(); nevermock(). Write its prompt; never decide its runtime answer while authoring. - An omitted threshold is an open question (rule 8): ask, or headless, use the guide's value and list it as [REQUIRED].
Variable types
Inputs, outputs, and vars take one of the six types the Flow CLI and Workbench offer: types.string, types.number, types.boolean, types.object, types.array, types.file.
float,double,date,datetime, andjsonSchemaare Case-only. The Flow builder rejects them with a TypeScript error andDECLARATION_TYPE_NOT_FLOWat build. Usetypes.stringfor dates,types.numberfor decimals, andtypes.objectortypes.arrayforjsonSchema, with shape in{ schema }, e.g.{ type: types.object, schema: { type: 'object', properties: { id: { type: 'string' } } } }. For an existing decompiled.flow, see brownfield.types.integerbuilds and packs as integer but is unavailable in Workbench; prefertypes.number.types.anyis untyped; use only when no fixed type exists.- A
types.filevalue is a file reference{ ID, FullName, MimeType, Metadata }, never the content. Its file name is.FullName, not.name:$vars.<triggerNodeId>.output.<inputName>.FullName.
Anti-patterns
- Never replace a registered connector with
mock()or a script because it is not configured. Writeconnector(...), run thepreparenamed bycheck, and if no live connection exists, report "prepare pending" as an open question. Reviewers and Studio Web need the real connector. - Never reuse a reference id from another flow/session (mailbox folder, Slack channel, Jira project). IDs are scoped to the account behind the connection: a reused one compiles, validates, and faults at runtime. Resolve again with a
lookup()token and thepreparenamed bycheck. - Never write an unresolved reference field. On lookup failure (401/403 expired grant or 5xx), do not substitute display name, alias, or remembered value; stop and report the failed resolve.
- Never reference parent values inside a subflow. Pass them through
subflow(child, {...})and read withinput(...). On@uipath/maestro-builder-sdk6.100.0 or later,checkon the calling flow reports a child's$vars.start.output.<name>orinput('<name>')for any<name>the child does not declare, the parent's inputs included, asSUBFLOW_PARENT_SCOPE_READ; an older SDK compiles it, and it resolves to nothing. - Never debug a script with
console.log.console.logand its siblings exist but do nothing, so the output goes nowhere (script runtime). Return the value to inspect:return { debug: value }. - Never put every
$varsreference in an expression inside double quotes. An End-node=js:expression such as'No results for "' + $vars.start.output.topic + '".'evaluates to null without warning; keep at least one reference outside quotes. - Never rely on dotted JSON keys surviving
$vars.{"5.3.0":"x"}becomes{"5":{"3":{"0":"x"}}}; pass JSON as a string andJSON.parseit in a script. - Never treat green
validateas business-correctness proof. It checks structure. Named outputs, reference IDs, and connector values require evidence fromCLI-LOOP.md.
Completion output
When authoring ends, report:
- File paths —
.flow.tssource and emitted.flow. - What was built — steps, branches, and outputs in one or two sentences.
- Loop status — last
check,compile, andvalidateresults, including each accepted warning and why. - Placeholders — every
mock()and its capability. - Connections — for each connector, the
connection: <Name> (<id>)line printed byprepareand its folder (candidate line oruip is connections list <connector-key> --all-folders --output json), or what is missing/still to prepare. A guessed connection (bindings.md) also goes under Open questions as [REQUIRED]. - Open questions — every decision the request left open, marked [REQUIRED] or [OPTIONAL].<!--skill-flavor:completion-next:start-->
- What's next — if not specified, ask by rule 9: upload to Studio Web, debug, deploy to Orchestrator, or "Something else". Each hands off to
operate.md. If specified ("publish it", "debug it"), select and act on it.<!--skill-flavor:completion-next:end-->
Narration and progress
Be silent by default; surface decisions, failures, consent gates, and the final result. Narrate each logical step in one plain-English line, and keep a step-level progress list, only when requested (verbose, show steps, track progress) or required by standing preference. A logical step is the smallest user-valued outcome, not its commands.
API index lookups
The installed @uipath/maestro-builder-sdk package contains dist/api-members.md and dist/api-index.md. Rows look like:
| `outcomePorts` | property | `HitlInputs` | `dist/core/actions.d.ts:583-597` |
The path is package-root-relative. Each file header names its source repo/generator and says not to edit it; rows regenerate from declarations on every build.
Match one name, then read its full span—the declaration, doc comment, types, @remarks, and @example—to answer the question. Reading the span needs no search and no shell, so it works the same on Windows. Field/method names usually belong in api-members.md because it has one row per field. Both indexes cover all three entry points, including /case and /bpmn.
They live in the package, not SKILL.md, because spans are build-specific: declaration changes move lines, while the skill ships independently. An index beside the .d.ts files it points into cannot disagree with them. Read .d.ts, never dist/*.js; JavaScript has no types/comments and causes extra tool calls. A name absent from both indexes is probably a runtime output key (such as a human task's Action or error-envelope fields), documented in node references. Runtime-only decisions for sibling surfaces belong to uipath-maestro-case and uipath-maestro-bpmn; neither is needed to build a Flow.
Open this reference as its own page
Batch Transform
Exact signatures, fields, and defaults: batchTransform().
Adds AI-generated columns to a CSV and returns a new file attachment.
Signature: batchTransform({ attachment, prompt, outputColumns, enableWebSearchGrounding? })
.step('categorizeRows',
batchTransform({
attachment: out('start', 'csvFile'),
prompt: 'Classify each row by category and write a one-line summary.',
outputColumns: [
{ name: 'Category', description: 'One of: Utility, Software, Travel, Other' },
{ name: 'Summary', description: 'Plain-English one-line summary of the row' },
],
}))
At a glance
Batch transform enriches a CSV into a new file; Summarize (summarize.md) reads a document.
Request web grounding only when the scenario needs it.
General
- Error 460005 can be transient; retry it once before classifying the failure
Open this reference as its own page
Symbolic connector bindings
<!--skill-flavor:bindings-location:start-->bindings.json maps the short connection and folder names in authored
TypeScript to tenant resource keys. It lives in the SDK's work directory,
.flow-sdk/, beside the <Name>.flow.ts file.
Project layout
.flow-sdk/
<!--skill-flavor:source-file-name:start-->
<Name>.flow.ts
<!--skill-flavor:source-file-name:end-->
bindings.json
connectors/
<connector-key>.ts
connectors-local/
<connector-key>.ts
descriptors/
<connector-key>/
index.json
...generated descriptor data...
uip maestro registry prepare writes .flow-sdk/bindings.json and prints the
import for ./connectors-local/<connector-key>.ts, relative to the source.
The generated descriptor data lives below connectors-local/descriptors/; do
not import it directly. bindings.json is independent of that descriptor
overlay. Studio Web reads none of these files, and uip solution pack/upload
leave .flow-sdk/ out.
Schema
Use schemaVersion: "1" and a bindings array. Version 1 is the current
authored-file format marker. The current loader does not branch on this value,
but including it keeps the file explicit and compatible with shipped examples.
Each connector entry should carry the complete shape below. Resolution needs a
matching name or id and a resourceKey or default; the other fields keep
the resource kind and emitted binding purpose explicit.
| Field | Required for resolution | Meaning |
|---|---|---|
id |
one of id / name |
Stable binding identifier; may be used as the symbolic source name. |
name |
one of id / name |
Symbolic name normally passed to connection or folder. |
resource |
no | "Connection" for Integration Service connection and folder entries. |
resourceKey |
one of resourceKey / default |
Tenant connection id or folder key. This value wins when both value fields exist. |
default |
one of resourceKey / default |
Fallback when resourceKey is absent. Shipped examples repeat the resource key here. |
propertyAttribute |
no | "ConnectionId" for a connection or "FolderKey" for a folder. |
Where both values come from
Usually you do not fill these in at all.
uip maestro registry prepare <connector-key> --action <action> discovers the connection and writes both entries into bindings.json for you — see connector-params.md.
Reach for the manual route below only when you are authoring bindings without
running prepare.
If you are doing it by hand: uip is connections list --all-folders returns the
connection id and its folder key on the same record, so one call answers both.
Always pass --all-folders: the default listing is your own folder only, and a
connection shared from another folder (the usual case on a team tenant) is
invisible without it — an empty or unrelated default listing is not evidence
that the connection does not exist.
uip is connections list --all-folders --output json
{
"Name": "dustin.metzgar",
"Id": "c03a1967-f702-47d2-9ede-917aed159805",
"Folder": "dustin.metzgar@uipath.com's workspace",
"FolderKey": "b53217ce-25b2-46cd-a6b0-b73c6ba5894c",
"ConnectorKey": "uipath-salesforce-slack",
"State": "Enabled"
}
Id is the connection binding's resourceKey; FolderKey is the folder
binding's. Never fill either with a made-up GUID or with the binding's own
name. compile refuses two shapes, and check reports both first: a binding
whose resourceKey is its own name (BINDING_SELF_NAME), and a connection: /
folder: label that a bindings.json with entries does not declare
(BINDING_UNDECLARED — for example the source says mySlack while the file
declares slack and shared). It warns CONNECTION_STUB on an all-zero GUID,
an <angle-bracket> placeholder or any other non-GUID value, and on a label when
no bindings.json is loaded or it declares no entries (the run would fault at
dispatch — 'Connection' has an invalid GUID value or a 401 Invalid Organization or User secret). A plausible-looking but wrong GUID still compiles
and faults at run time. Only an id read from the tenant is right.
Several connections often share one name (a team tenant can hold three Slack
connections all named is-sandboxes, in different folders). A name then cannot
pick one: prepare … --connection <name> lists each candidate with its
--connection-id <id> and folder — pass the id of the one in the folder you mean,
and prepare still writes both entries into bindings.json.
prepare binds one connection from your own folder, --connection-folder or
the solution's record, and prints connection: <Name> (<id>) and why. When it
refuses with several candidates, ask a user who can answer. Headless, pass
--connection-folder for the folder the request names. With no folder named,
or when that refuses (no match or several), pass the first candidate line's
--connection-id: that connection is guessed. Do not debug on it, report the
flow unverified, and list the pick under Open questions as [REQUIRED]
(completion output).
Folder is the folder's own name, not its path. A requested
Shared/uipath-maestro-flow is the row whose Folder is uipath-maestro-flow,
not Shared. When the request names a folder, pass that last segment to
prepare as --connection-folder uipath-maestro-flow; by hand, pick that row.
If that name matches more than one of the connector's rows (prepare refuses
and lists them), get the requested folder's Data.Key with
uip or folders get "Shared/uipath-maestro-flow" --output json, then pass
--connection-folder <Key> or pick the row whose FolderKey equals it.
Do not go looking in Orchestrator for the folder beyond that one
folders get. A folder binding wants the folder the CONNECTION lives in, which
you already have. Measured on the eval corpus: an
agent that had already listed the connection went on to spend three to four
further calls on uip or --help, uip or folders --help and folders list,
searching for a folder matching the symbolic name in its prompt. The symbolic
name (slack, shared) is just the label you pass to connector(); it is never
something to search the tenant for.
Copy this two-connector, one-folder example and replace all three placeholders with values from the connection listing above:
{
"schemaVersion": "1",
"bindings": [
{
"id": "slack",
"name": "slack",
"resource": "Connection",
"resourceKey": "<slack-connection-id>",
"default": "<slack-connection-id>",
"propertyAttribute": "ConnectionId"
},
{
"id": "jira",
"name": "jira",
"resource": "Connection",
"resourceKey": "<jira-connection-id>",
"default": "<jira-connection-id>",
"propertyAttribute": "ConnectionId"
},
{
"id": "shared",
"name": "shared",
"resource": "Connection",
"resourceKey": "<folder-key>",
"default": "<folder-key>",
"propertyAttribute": "FolderKey"
}
]
}
Use unique id and name values. The resolver takes the first entry whose
name or id matches the authored symbol.
Give connection: and folder: different labels (slack / shared). With one
label for both, prepare writes one FolderKey entry, the connection resolves
to the folder key, and the run faults 401 Invalid Organization or User secret, although check, compile and validate pass. An emitted node whose
connectionId equals its connectionFolderKey is this collision: rename the
folder: label in the source and re-run prepare.
Resolution and precedence
The compile commands load --bindings <file> when supplied. Otherwise they
load .flow-sdk/bindings.json under the current directory when it exists. A
workspace laid out before .flow-sdk/ existed, with only a root-level
./bindings.json, keeps using that file; when both exist the .flow-sdk/ one
wins and stderr names the ignored root file. emitFlow() uses the same
default unless bindingsFile or a Bindings instance is supplied.
.step('notify', connector(SendMessage, {
channel: 'C123',
text: 'Ready',
}, { connection: 'slack', folder: 'shared' }))
During emission, connection: 'slack' matches the entry whose name or id
is slack; folder: 'shared' is resolved the same way. For each match,
resourceKey wins over default. An unmatched symbol is emitted unchanged, so
do not treat a successful compile as proof that an invented id exists.
Only compile/emission reads the authored file. uip maestro flow validate,
solution resource refresh, and product debug read the emitted .flow, not
.flow-sdk/bindings.json. A compile regenerates the artifact from the authored
mapping. A later direct edit to the artifact remains in effect only until the
next compile.
Emitted-artifact bindings
uip maestro flow binding add edits bindings inside an already emitted .flow;
it does not create or update .flow-sdk/bindings.json. SDK-authored Integration
Service actions and managed HTTP nodes should instead keep symbolic names in
source plus bindings.json, so recompilation deterministically restores the
same node detail and product bindings. Use direct artifact edits only for a
brownfield .flow with no source representation.
Open this reference as its own page
Branch
Branch makes a two-way runtime decision.
Signature: .branch(name, condition, thenFn, elseFn?). Each callback receives a
sub-builder and may use .label(text) for its edge label.
.branch('large', js`${input('amount')} > 1000`,
(yes) => yes.step('review', script({ code: 'return "review";' })),
(no) => no.step('approve', script({ code: 'return "approved";' })))
Use Branch when the scenario has two paths. Whether each arm should end locally or fall through to shared work is a business-flow choice.
The two sequence ports are true and false. Arm .label(text) values become
trueLabel and falseLabel, defaulting to True and False.
At a glance
Split runtime control into true and false paths.
Use branch for a two-way decision; decide whether arms return or ref back into shared work.
Open this reference as its own page
True-brownfield decompile, edit, and merge
Use this for an existing .flow unless the task supplied its .flow.ts; an earlier-turn .flow.ts is not supplied because the canvas may have changed the .flow.
Decompile fresh, after deleting any .flow an older loop left under .flow-sdk/
(The generated pipeline).
Never hand-transcribe the graph. Decompile to builder source, edit that source, and merge only its delta into the original.
An edit that adds a pattern (review gate, triage, batch loop, chat or voice front door, or panel of agents) reads its guide first and inserts only what the flow lacks, per "Adapting it"; inserting a pattern is still a narrow edit through this loop. A pattern the canvas inserted arrives unfinished; finishing it means: replace each core.logic.mock labelled "(replace with …)" with the real node, rewrite every PLACEHOLDER - prompt for the request, and do the setup sticky note's tasks. Put builder-impossible items (for example attaching a tool to a voice agent) under Open questions. Preserve every other inserted step, port, and name.
The safe project loop
<!--skill-flavor:safe-project-loop:start-->Run it from the project folder Solution/Deployed/, the source in
.flow-sdk/. decompile stamps the source's first line, and merge takes
that source: it compiles it, derives the baseline from the original in memory,
and writes the merged flow, and every agent file it carries, over the original.
It writes no compiled working artifact, so the project keeps exactly one
.flow file, which product validation needs when it discovers it recursively.
uip maestro flow decompile Deployed.flow -o .flow-sdk/Deployed.flow.ts --no-pipeline
# Edit .flow-sdk/Deployed.flow.ts narrowly; preserve existing step ids and its first line.
# Leave added steps out of .layout(...): merge places them (builder-sdk#1320).
# Check against the original until no (edited) error is left:
uip maestro flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow
# Merge only a stamped source (no stamp: the SDK is too old, below), then validate:
( head -n 1 .flow-sdk/Deployed.flow.ts | grep -q '^// @decompiled-from ' \
|| { echo "no stamp: SDK older than 6.96.0, the edit was NOT merged" >&2; exit 1; }
uip maestro flow merge .flow-sdk/Deployed.flow.ts --original Deployed.flow ) \
&& uip maestro flow validate Deployed.flow --output json
# Then delete each path merge listed as `flow-merge: remove <path> ...`.
For example, after an edit to one script step:
flow-merge: wrote Deployed.flow (10 nodes, 9 edges)
flow-merge: compiled Deployed.flow.ts and derived the baseline from Deployed.flow in memory; no intermediate file written
flow-merge: restamped Deployed.flow.ts for the merged Deployed.flow, so it merges again after the next edit
Only merge writes the .flow; never write, patch, or copy only a change into it. Merge may renumber edges (edge_0, edge_1, ...), reorder nodes, add default fields, or move original nodes right/down; accept these and follow merge warnings.
A refused merge writes nothing, so there is nothing to restore. A merge that
fails after it printed flow-merge: wrote Deployed.flow (an I/O error on an
agent file or bindings_v2.json) is not a refusal: the .flow already holds
the edit, the agent files may not, and the source is not restamped, so the
next merge refuses with MERGE_ORIGINAL_CHANGED. Decompile again and reapply
the edit, or git checkout the project
(builder-sdk#2043).
If validate fails after a merge, fix .flow-sdk/Deployed.flow.ts and run check and
merge again: merge restamped the source, so the same command merges the fix.
To drop the edit instead, revert it in the source and merge again. The result
is equivalent to the original, not byte-identical (edges renumbered, nodes
moved for the edit stay moved); for a byte-exact undo of a project under
version control, git checkout -- Deployed.flow.
The stamp, and when merge refuses
The first line is // @decompiled-from Deployed.flow sha256:<64 hex> scripts=function; sha256 is the decompile source digest and the remainder records decompilation. merge decompiles the original the same way and compares, so it knows the baseline it derives is the source you started from.
MERGE_ORIGINAL_CHANGED: the.flowchanged after decompile (a canvas save, another merge, a moved node); merging would revert that change, so nothing was written. Decompile again and redo the edit; never alter the first line.MERGE_SOURCE_STAMP_UNREADABLE: the first line was edited; decompile again.- A split original (
$refpart files) is written as one file; delete every part underremove. - After merge,
mergerewrites the source's first line for the merged.flow; further edits use the same command. - Needs
@uipath/maestro-builder-sdk6.96.0 or later. An olderdecompilewrites no first line, and an oldermergewritesmerged.flowbeside you and leaves the original unchanged while every later check passes. So the loop merges only a stamped source and otherwise exits 1 withno stamp: ... NOT merged: upgrade withnpm install -g @uipath/maestro-builder-sdk@latestand decompile again.<!--skill-flavor:safe-project-loop:end-->
Wherever you compile a baseline yourself (a supplied source), compile it before the edit, never after: merge diffs edited against it, so a baseline of the edited source drops your change.
With an edited .flow.ts and --baseline-from, merge checks the edited source and refuses an error in a changed node/subflow (N error(s) in nodes merge takes from the edited flow) or an unplaceable error introduced by the edit. An untouched-node/subflow error prints DRAFT_NODE_KEPT and the original is kept; an untouched node the SDK cannot compile is kept as saved too, printing LOWERING_NODE_KEPT (probable SDK defect; tell the user; 6.64.0 or later); an unplaceable finding also reported by the original round trip is CHECK_FINDING_UNPLACED. Fix findings in edited nodes. Require @uipath/maestro-builder-sdk 6.44.4 or later; older SDKs refuse writes for any unplaceable error on an untouched root node,
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
Do not leave a compiled .flow below the project directory (an earlier
*.merged.flow, baseline/ or edited/): the project validator treats every
.flow there, hidden folders included, as a deliverable.
Check only what you changed: check --baseline
compile does not run check: it writes any flow it can serialize. So run
check after each edit, before the merge, and treat its errors as the gate.
Pass the original .flow (not a compiled baseline) as --baseline, and each
finding says whether your edit caused it. In emit-only mode check refuses:
skip it there, validate is the gate.
Require @uipath/maestro-builder-sdk 6.64.0 or later. If baseline compile stops on a check code (for example pre-existing HTTP_READ_WITHOUT_RETURNS), uip reports --baseline on flow check needs @uipath/maestro-builder-sdk >= 6.64.0; found <version>, or older uip reports error: unknown option '--baseline', the SDK is too old,
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
For unknown option '--baseline', check the SDK with npm ls -g @uipath/maestro-builder-sdk or the project's node_modules. Below 6.64.0, upgrade it. With 6.64.0+ and the same error, uip is too old (1.205.0 is): run the same check through the SDK's own bin, which takes the same flags and exits the same way:
flow-sdk flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow (global SDK), or npx --no-install flow-sdk flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow when the SDK is in the project's node_modules.
The bin finds the connector library itself (--library, FLOW_SDK_LIBRARY_JSON, or the cache uip maestro registry pull fills), not through uip, so a library only uip passes is not used and connector findings (CONNECTOR_INPUT, LOOKUP_UNRESOLVED) can be missing. If you used a library other than the pulled one, pass it: --library <dir>.
$ uip maestro flow check <Name>.flow.ts --source --baseline <original>.flow
✗ [UNKNOWN_REF] Reference to undeclared variable/step "lookup" in "report". (edited)
⚠ [HTTP_READ_WITHOUT_RETURNS] ... (pre-existing, not counted)
⚠ [CONNECTOR_INPUT] Connector step "notify": ... unknown input "designerOnly". ... (pre-existing)
This node is unchanged from the baseline, so this is probably an SDK defect: ...
1 error(s) in edited nodes, 1 pre-existing SDK defect(s), 1 pre-existing warning(s)
(edited)(JSONorigin: "edited"): fix it, including an untouched node broken by the edit (likereportabove, which reads the deletedlookupstep). Exit code is 1 only while one is left.(pre-existing, not counted): leave it unless requested; deployed HTTP nodes without body schemas can produceHTTP_READ_WITHOUT_RETURNS(builder-sdk#1319).<!--skill-flavor:check-baseline-lowering:start-->(pre-existing)worded as a probable SDK defect (JSONclass: "lowering"):compilerefuses that node, so the baseline compile of a supplied source stops on it. Do not edit the node to get around it. The safe project loop's merge compiles without stopping and keeps the node as saved (LOWERING_NODE_KEPT); tell the user it is a probable SDK defect to report at https://github.com/UiPath/builder-sdk/issues.<!--skill-flavor:check-baseline-lowering:end-->CHECK_INCOMPLETE: fix the whole-flow refusal first (for example two Ends whose names produce one node id), even if pre-existing, then check again.
Inline agents: merge carries agent.json
An inline agent is two files: the node in the .flow, and its prompts, model
and run settings in <source>/agent.json beside it. An edit to a prompt
changes only that file. Merge compares the baseline's copy with the edited
copy, applies only your change to the project's agent.json, and writes the
result beside the merged .flow:
flow-merge: wrote Deployed.flow (12 nodes, 13 edges)
flow-merge: wrote <source-uuid>/agent.json (carries messages[0].content)
To add an instruction to a prompt, write it as a new line. Keep every existing line exactly as it is: add no words to it, and do not re-wrap it.
<!--skill-flavor:install-agent-files:start-->Merge writes the .flow and every agent file it carried into the project;
there is nothing to copy. Fields the round trip does not reproduce (such as
maxIterations, or a description on an agent input) keep the project's values.
Merge warns, omits carrying, and refuses with --strict when:
- a
--baselinefile and the edited flow were compiled into ONE directory. The second compile overwrote the baseline'sagent.json, so merge cannot tell your edit from the round trip's own changes (the edited <source>/agent.json differs from the original's ... The change is NOT carried). Keep a baseline file in a directory of its own, as a supplied source does. - an agent resource changed/removed cannot pair with a project resource because the canvas gave its node an id compile does not reproduce and its
resource.jsonhas fields compile does not write; make the change on the canvas; - with an SDK older than 6.117.2, an older canvas save embeds prompts on the agent node, so an
agent.jsonedit would not change runtime behavior; edit on the canvas. From 6.117.2, merge carries a prompt, model or settings edit onto such a node; see the embedded-agent warning.
Never copy a compiled <source>/ directory into the project by hand: it
carries the round trip's changes along with yours.
Agent resources: added, changed, removed
An agent context index or tool is <source>/resources/<dir>/resource.json.
flow-merge: wrote <source-uuid>/resources/<new-dir>/resource.json (carries added resource)
flow-merge: wrote <source-uuid>/resources/<dir>/resource.json (carries settings.resultCount)
flow-merge: remove <project>/<source-uuid>/resources/<dir> from the project: the edit removed this agent resource, and copying the candidate cannot delete it
flow-merge: wrote bindings_v2.json (connection and agent resource rows, re-derived as compile does)
<!--skill-flavor:resource-install:start-->
- Merge writes an added or changed resource into the project. A changed one keeps its original directory.
- A removed resource is not deleted automatically: delete every directory listed under
remove(Data.Removedin--output json), or the agent retains it.<!--skill-flavor:resource-install:end--> - Keep a resource used by another project
.flow(flow-merge: kept <source>/resources/<dir>: <Other>.flow still references it); do not delete it. - In a Flow project, copy
bindings_v2.jsonwith the merged.flow; it contains re-derived connection and agent rows, so removed indexes or swapped connections are no longer declared. - A stub connection label (
connection: "jira") resolves through edited-sourcebindings.json. Edit it to the connection id or fillbindings.json; merge writes the id and drops stub rows.
Flows with draft nodes: let merge compile
<!--skill-flavor:draft-nodes:start-->A canvas flow may contain draft nodes: connector without connection, empty required input, generic operation without object, waitForEvent without connection, Transform without collection, or decision without condition. A draft trigger or connector tool still must be finished. Decompile carries each saved definition and marks { draft: true }; compile warns ⚠ [CONNECTOR_INPUT_MISSING] ... Written as a draft. Leave drafts unless requested. Examples: decision becomes .branch("decision1", undefined, (t) => ..., (e) => ..., { draft: true }); Transform becomes transform({ operations: [] }) with { draft: true }. waitForEvent, Transform, and decision drafts require SDK 6.86.5+; older SDKs refuse with BINDING_MISSING, TRANSFORM_COLLECTION_LITERAL, or EXPR_SYNTAX.
Three cases still stop compile, and with it
the baseline compile of a supplied source: a generic operation with no object
(CONNECTOR_OBJECT_REQUIRED), a draft you wrote yourself (no carried
definition), and an untouched node the SDK cannot compile (check --baseline
prints it as a probable SDK defect). The safe project loop
runs no compile: merge compiles the edited source and the baseline it derives
itself, and both compiles tolerate drafts.
- For a supplied source whose baseline compile stops, pass
--baseline-from <original>.flowto its merge in place of--baseline, and merge runs both compiles itself (6.28.0 or later). - An untouched draft is restored exactly with
[DRAFT_NODE_KEPT]; the same applies inside an untouched subflow (6.44.4+; older SDKs take every subflow from edited source and refuse it). - A changed draft gets normal compile refusal (
[BINDING_MISSING],[CONNECTOR_INPUT_MISSING], or[CONNECTOR_OBJECT_REQUIRED]); finish or revert it. - An untouched lowering failure is kept with
⚠ [LOWERING_NODE_KEPT] "<node>" is untouched, so the original node is kept as is, but the SDK cannot compile it (<CODE>); tell the user it is a probable SDK defect that should be filed at https://github.com/UiPath/builder-sdk/issues. A changed/new failure is✗ [<CODE>] "<node>" is changed or new; revert or fix it. An untouched node failing because an edit elsewhere deleted a referenced step also stops the write. Require SDK 6.64.0+. - Pass
--bindingstomergeas tocompile; pass--libraryonly to name a library other than the pulled one (with none, merge fetches throughuip);--strictalso works.<!--skill-flavor:draft-nodes:end-->
The generated pipeline
<!--skill-flavor:generated-pipeline:start-->Pass --no-pipeline to decompile. Without it, decompile also writes
.flow-sdk/<Name>.pipeline.mjs, a helper for the older loop that compiled a
baseline and an edited copy and merged them into .flow-sdk/<Name>.merged.flow.
The safe project loop needs none of it. Do not run it: the .flow files it
writes under .flow-sdk/ are extra deliverables to the project validator.
Delete any it, or an earlier turn, left there before you decompile:
[ ! -d .flow-sdk ] || find .flow-sdk -maxdepth 1 \( -name 'Deployed.baseline' -o -name 'Deployed.edited' -o -name baseline -o -name edited -o -name 'Deployed.merged.flow' -o -name '????????-????-????-????-????????????' \) -exec rm -rf {} +.
A supplied source
<!--skill-flavor:supplied-source:start-->When the task supplied .flow-sdk/Deployed.flow.ts, do not decompile: it
overwrites that source. A supplied source has no stamp, so compile its baseline
before the edit, outside the project, and pass it to merge:
[ ! -d .flow-sdk ] || find .flow-sdk -maxdepth 1 \( -name 'Deployed.baseline' -o -name 'Deployed.edited' -o -name baseline -o -name edited -o -name 'Deployed.merged.flow' -o -name '????????-????-????-????-????????????' \) -exec rm -rf {} +
rm -rf /tmp/flow-baseline-Deployed && mkdir -p /tmp/flow-baseline-Deployed
uip maestro flow compile .flow-sdk/Deployed.flow.ts -o /tmp/flow-baseline-Deployed/Deployed.flow
# Edit .flow-sdk/Deployed.flow.ts narrowly; preserve existing step ids.
uip maestro flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow
uip maestro flow merge .flow-sdk/Deployed.flow.ts --original Deployed.flow \
--baseline /tmp/flow-baseline-Deployed/Deployed.flow -o Deployed.flow \
&& uip maestro flow validate Deployed.flow --output json && rm -rf /tmp/flow-baseline-Deployed
Merge compiles the edited source itself and writes over the original, agent
files included, as in the safe project loop. The
baseline directory is a fixed path, so it survives the separate shell calls
before and after the edit. Keep it outside the project: a .flow there is a
second deliverable.
What decompile reconstructs
Decompile reconstructs branches, switches, loops, parallels, error/ref, and subflows while preserving node ids. Every SDK-authorable family uses its factory, including human tasks, agents/resources, published resources, queue items, AI patterns, document, conversational/voice, and connector event subscription steps. Recovered agents retain source UUIDs so agent.json resolves.
An agent context index, tool, or escalation retains identity through nodeId (the resource node's id), source (its resources/<source>/ directory), or label (a context index's canvas label) in decompiled entries. Leave these unchanged. Removing them makes compile rename nodes <agent>Context / Tool / Escalation (then 2, 3, ...) and create a new directory, causing merge to drop the old node and add another. Do not add them to newly created or copied resources. check reports FLOW_AGENT_RESOURCE_NODE_ID (blank or duplicate nodeId), FLOW_AGENT_RESOURCE_SOURCE_NOT_GUID (non-uuid source), and FLOW_AGENT_RESOURCE_SOURCE_DUP (two resources on one agent share source: both would write one resource.json); older than 6.88.2 names them INLINE_AGENT_RESOURCE_*. Delete both nodeId and source from a copied entry. Require SDK 6.33.0+; older decompile omits these fields and compile renames nodes with new directories,
so upgrade with
npm install -g @uipath/maestro-builder-sdk@latest.
A step id is its name with non-letter/digit/_ characters replaced by _ (a b → a_b); compile never uniquifies it. Duplicate names give DUP_STEP; colliding ids (a b/a_b or trigger id) give STEP_ID_COLLISION; give the new step a name of its own. Child-flow ids are checked separately and copied ids are prefixed <caller>_<step>. Route another path to an existing step with .stepToRef('<name>'). Require SDK 6.32.4+; older SDKs silently rename duplicates <name>2,
so upgrade with
npm install -g @uipath/maestro-builder-sdk@latest.
Unsupported factory types round-trip as rawNode({ nodeType, version, manifest, inputs }); preserve them unless requested and edit inputs, not the hoisted …Definition manifest. If all declared exits are wired, a multi-exit definition (for example core.logic.agentic-switch, with case-<id> per inputs.criteria plus default) becomes .stepSwitch('<id>', rawNode(…), [{ value: 'case-returns', body: … }, …]), one arm per port; add/remove arms when choices change. If only some exits are wired, it becomes .step('<id>', rawNode(…)) on the main port (default for agentic switch), with other wired exits as .stepToList('case-<id>', …) and unwired exits unwired. mock() means the flow really contains core.logic.mock, except one case: a node whose definition is missing from the file lowers to mock() /* TODO: unsupported node type … */; leave it untouched and merge restores the original.
Merge warnings: what the round trip changed
Merge prints flow-merge: warning: … for each change the merged file gets
although you did not make it. It also compares the baseline (the round trip
with no edit) with the original. For example:
flow-merge: warning: the round trip rewires logFailure1@success from forEachItem1@continue to callApi1ErrorEnd@input; merge will write the new target.
flow-merge: warning: the merged edge route1@case-case_1 -> review1@input leaves handle "case-case_1", which node "route1" (core.logic.switch) does not declare …
- Each warning names a change you did not author: a node or edge added,
dropped or rewired, a node's type changed, a switch case id or human-task
outcome id renamed, or a binding row added, dropped or duplicated. Merge has
already written it: if the spot is one you did not mean to change, fix the
.flow.tsand merge again, or merge with--strictto refuse before writing. A warning about a merged edge's handle meansvalidatewill refuse the merged file.
the round trip appends End "<id>" after … is benign: compile caps a path that simply stops and does not change behavior. A .openTails() flow gets it only after a human task; see A path without an End stays open.
agent "<id>" carries its prompts, model and settings on the node (embedded) … means configuration is in .flow, not <source>/agent.json; merge keeps it embedded and applies node edits (input, output, label).
From SDK 6.117.2, merge also writes a prompt, model or settings edit to an embedded agent onto the node and prints flow-merge: carried the agent.json edit onto embedded agent "<id>".
If merge prints no such line for your edit, the SDK does not carry it; edit it on the canvas.
Deleting a setting from the source is carried as its default value when compile writes one (for example maxTokenPerResponse becomes 16384); to keep a value, leave the setting in the source.
A deletion merge cannot carry, such as model, warns NOT carried, and the node keeps its value.
--strict refuses an edit merge cannot carry onto the node, a merged node that drops or changes configuration you did not edit, a prompt you edited that uses a new {{input.X}} the node does not declare, or a prompt that still uses an input your edit removed.
An undeclared placeholder the original prompt already had is not refused.
- Pass
--strictto make merge refuse (exit 1, no file written) instead of warning. The benign End line never refuses. Every merge on this page has a baseline, which--strictneeds:uip maestro flow merge .flow-sdk/Deployed.flow.ts --original Deployed.flow --strict. Ifuiprejects--strict, run the same command asflow-sdk flow merge, the globally installed SDK's bin.<!--skill-flavor:strict-merge:end-->
Scripts come back as functions
decompile prints script steps as named TypeScript functions after the flow and passes them by name. Edit the function body; its braces contain exactly the node script, so an untouched script recompiles byte-for-byte. A script reading $metadata gets $metadata: FlowMetadata; reading a key outside the five engine keys gives FlowMetadata & Record<string, any>. SDK older than 6.72.0 lacks FlowMetadata in dist/api-index.md and keeps a $metadata-reading script as script({ code: "…" }), warning about $metadata. Apply script.md: the function may read only what the script runtime has.
Scripts that cannot print as functions remain script({ code: "…" }), with one warning per script: flow-decompile: warning: step "<id>": script kept as a string: <why>. Reasons are unparsable body, TypeScript-only syntax, non-runtime name, trailing line comment, or module-loading error. This is informational; --strict does not make it an error. Edit the string. To print every script as a string, run uip maestro flow decompile <file> -o <file>.flow.ts --scripts string. With an SDK older than 6.57.0, uip refuses the option and names the version to install. Needs SDK 6.57.0+ (its dist/api-index.md lists ScriptValue); an older SDK's decompile prints every script as script({ code }).
A Case-only variable type
A .flow written by Studio Web or an older SDK can carry a global typed date, datetime, float, double or jsonSchema.
None of them needs a retype: decompile prints a Flow type, and compile and merge take it.
float/double: nothing to do. Decompile prints the file's own width,{ type: types.number, format: "float" }orformat: "double", and the recompile writes that type back ("type":"float"/"type":"double"). No warning: nothing changes. Keep theformatas decompile printed it when you edit the variable, and never change"float"to"double":flow packwrites it into the entry point's schema ("format":"float"/"format":"double").date/datetime: nothing to do. Decompile printstypes.stringand warns... The source declares it types.string, so a recompile writes "type":"string" in its place.flow packwrites a date as a plain string either way.jsonSchema: nothing to do. Decompile printstypes.object(ortypes.arraywhen the schema is an array's) with the file's schema in{ schema }, and warns that a recompile writes"type":"object". The engine reads both as JSON.
Merge goes through for all five and keeps an untouched variable's own type.
Needs @uipath/maestro-builder-sdk 6.107.0 or later (its dist/api-index.md lists NumberFormat); an older SDK keeps types.float / types.double / types.jsonSchema instead, and compile/merge stop with DECLARATION_TYPE_NOT_FLOW until you retype that declaration (types.number; for jsonSchema, types.object or types.array with { schema }).
The file's schema version comes back out
decompile emits .schemaVersion("<the file's version>") as the chain's first line, preserving file version rather than the SDK floor. Most deployed flows are 1.8; writable band is 1.6–1.10. Leave it unless intentionally retargeting. check warns outside the 1.9 floor: SCHEMA_VERSION_ABOVE_FLOOR means a lower-pinned reader refuses it; SCHEMA_VERSION_BELOW_FLOOR means readers migrate it on open. Use uip maestro flow migrate, not this call, to change versions.
Designer shapes decompile keeps
Leave each shape below as decompile writes it. SDK 6.44.0+ is required; older versions write js\[object Object]`for envelopes, drop fork arms andvariablerows withhas no spelling/cannot write back`, and compile refuses,
— upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
Preserved shapes include:
- decision/switch conditions as
jsExpressionenvelopes or=js: …; - quick-form asked-field
variable(hitl.md); { fork },.stepToRefarms, and pass-throughrawNodemerge (parallel-merge.md);core.logic.loop@1.0output/loopBackhandles through its carried definition;- subflow reads of its Start node as
input('<name>')and subflow.onError(); - a process step's
inputSchema(its saved argument schema; edit apropertiesentry only when you change that argument's type).
Findings the source cannot carry print on stderr as flow-decompile: warning: …; --strict turns each into an error. Edit .flow JSON directly only when decompile printed one of these warnings and its case below says to; otherwise edit through merge:
- Unreachable node: source omits it and marks
// TODO: node "<id>" … is not reachable; recompilation drops it. If it is your edit target, connect it in.flowfirst or edit its JSON directly. - Unbundled
(type, typeVersion)of a type bundled at other versions, with no file definition: source omits{ version }, so edited nodes compile at SDK default;mergepreserves untouched file versions but warns edited nodesnode "<id>" moved <type>@<old> -> <new>. If it is your edit target, edit its.flowJSON directly, or tell the user the edit moves it to the SDK's default. A type bundled at no version (connector, published process, agent) keeps its pin. When the file has a definition (the normal case), decompile copies it to aconst, passes it to.definitions([...]), and preserves the pin even when you edit the node; leave both intact or compile refuses and lists resolvable versions (registered families first reportNODE_VERSION_UNREGISTERED). For carried definitions whose inputs differ from the SDK factory, warning isnode "<id>" keeps <type>@<version> from the file's definitions[]; its inputs differ from <sdk-version> (<fields>); edit merged JSON if that node is the target.rawNodecannot route a human-task outcome. - File version below
1.6: source omits.schemaVersion(), marks// TODO:, and recompilation writes1.9; migrate first or merge into the original, which preserves its declared version. - Unspellable edge: for example two edges leave one port while one path stops without successor/End. Other fan-outs become
.parallel(parallel-merge.md); converging arms use.stepToRef(<step>)(SDK 6.44.0+), and arms ending in End/Terminate use a<node>Forkwith all arms ending (SDK 6.46.6+). An arm with a step before Terminate (TERMINATE_NOT_ARM_HEAD) or fan-out inside a loop whose arms use.break()/.continue()keeps only its first arm behind/* TODO: unstructured fan-out … */. Warning names<source>@<port> -> <target>@<port>and source marks/* TODO: edge(s) … are NOT in this source */or a top// TODO: edge …; recompilation drops it, andmergewrites the loss into the original. If your edit touches that part of the flow, edit its.flowJSON directly instead of round-tripping it. - Unexpressible context-index
context: [...]setting: retrieval settings (mode, query, threshold, result count, file extension) come from<agent source>/resources/<source>/resource.json; retain that folder beside the.flow. Static plain-text query, agent-argument query, disabled deeprag citations, and folder-path prefix may lack fields. Warning names the setting; compiled output writes SDK values beside-o; merge does not update the project copy. Do not copy the compiled file over it; if already done, tell the user to set the setting again in Studio Web. - Fire-and-forget process output schema:
agenticProcess()refusesreturnsbesidecompletion: 'fire-and-forget', so source omits fields and warns. Require SDK 6.44.0+; older decompile writesreturnsand compile refuses,<!--skill-flavor:fire-and-forget-sdk-upgrade:start--> — upgrade withnpm install -g @uipath/maestro-builder-sdk@latest.<!--skill-flavor:fire-and-forget-sdk-upgrade:end--> Recompile drops the schema; merge keeps the original's definition row, so a no-edit round trip loses nothing. To read output, usecompletion: 'wait'and declarereturns.
Pin added steps with { version } used by another non-warned node of that type. If all nodes warned, leave unpinned; if none retains the file version, merge drops its definition silently. An added End needs a fresh name; see A path without an End stays open.
Validate the merged .flow as in the safe project loop.
Do not run uip maestro flow format on the merged file; it discards author layout.
Decompiled source carries that layout as a .layout({ nodes }) block, one long-hand entry per node.
Keep it.
A step the edit adds has no entry, so compile places it on its placeholder row and merge moves it next to its neighbours; to choose the spot yourself, add <step>: at(x, y) beside the neighbouring entries (import { at } from '@uipath/maestro-builder-sdk'); merge keeps a step you placed and moves only the ones compile left unplaced (@uipath/maestro-builder-sdk 6.114.0 or later; an older SDK also moves an at() where (x − 256) is a multiple of 288 on y = 144 or 304, so avoid those spots,
or upgrade with npm install -g @uipath/maestro-builder-sdk@latest).
A container the edit grows can still push that spot aside, so keep where it lands.
To move or resize an existing node, change or add its entry in the source (decompile writes none while every node of that flow or subflow is still where compile put it) and merge again: merge applies an entry whose position, size or collapsed state differs from the baseline to the original node, at the root and in subflows, and every other node keeps the original's geometry. For example, review: at(640, 144) changed to at(640, 304) moves only review. No hand edit of the merged .flow is needed.
This needs @uipath/maestro-builder-sdk 6.115.0 or later. An older SDK keeps the original's position and size whatever the source says;
with it, set layout.nodes.<id>.position or .size in the merged .flow instead (the node's ui only when the file has no layout.nodes map), or upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
merge still shifts later nodes and grows a container to fit added steps. A subflow the edit changed is taken from the edited compile whole; any other subflow keeps the original, plus the entries you changed (6.44.4 or later; an older SDK takes every subflow from the edited compile,
so upgrade with
npm install -g @uipath/maestro-builder-sdk@latest.
Remove the entry of a step the edit removes. A leftover key does not fail compile: compile drops it and warns LAYOUT_UNKNOWN_KEY, and check reports the same warning (@uipath/maestro-builder-sdk 6.115.0 or later; an older SDK fails compile on it).
Grid and rules: operate.md.
A path without an End stays open
Designer or uip maestro flow node add flows may end at a step without an End. decompile emits .openTails() near the top of the root and every subflow chain; leave it. It preserves open paths; removing it adds End nodes. Adding after an open tail makes the new step the open tail. To return outputs, end with .return({ ... }); an open path maps no outputs. Human-task exits always receive an End.
Name added Ends uniquely and use existing End { version }: .return({ ... }, { name: 'endSummary', version: '<END_VERSION>' }). name: 'end' collides with an unnamed existing End, which becomes end2 without warning.
Split ($ref) artifacts
A deployed .flow may split definitions, layout, or subflows into sibling files, such as "definitions": { "$ref": "./definitions.json" }. Point decompile at the main file; it resolves sidecars. Do not inline or edit sidecars first. Only relative paths resolve. Absolute paths, Windows drive letters, protocol URIs (https://, file:///), and traversal above the referencing root are refused because .flow is untrusted input. Same-document pointers ({"$ref": "#/definitions/…"}) remain. Missing/unreadable targets error by filename.
Compile always writes one file; write-through splitting is unsupported. Recompiled output contains sidecar content inline and no $ref; this is correct.
Open this reference as its own page
Integration Service Connectors
Exact signatures, fields, and defaults: connector().
Call a curated or generic Integration Service operation.
Some Data Fabric entity operations are Integration Service connector actions. "Data Fabric" and "Data Service" name one product; the tenant displays connector key uipath-uipath-dataservice as UiPath Data Fabric. CRUD is NATIVE: core.datafabric.* has dataFabricRead(), dataFabricCreate(), dataFabricUpdate(), and dataFabricDelete(); read covers filters, paging, and sort. Route here only get-by-id when the whole long-text value is needed (native reads, including Id filters, return a 10,000-character preview), file record fields, and Record Created / Updated events; see data-fabric.md.
Signatures:
connector(descriptor, inputs, opts?)connector(key, action, inputs?, { connection, folder, object?, version? });connectionandfolderare required:checkreportsBINDING_MISSINGwithout them.
.step('issue', connector('uipath-atlassian-jira', 'get-issue',
{ issueId: input('issueId'), project: 'IN', issuetype: 'Task' },
{ connection: 'jira', folder: 'shared' }))
At a glance
Call a curated or generic operation through a generated descriptor or key/action pair. Use connector uipath-uipath-dataservice for file record fields, Record Created/Updated events, or scenarios naming the connector; record CRUD is native (Data Fabric). Discover tenant-specific fields and ids and preserve every scenario-named input.
Bindings: bindings.md
Author first — check names every prepare you owe
Authoring never waits on prepare, and no discovery command precedes the source:
- Search the library and read the operation page.
- Author intended fields,
lookup()id tokens, and{ object: '<name-as-the-task-said-it>' }for generic operations.<!--skill-flavor:check-source:start--> - Run
uip maestro flow check .flow-sdk/<Name>.flow.ts --source. It names each<!--skill-flavor:check-source:end--> gap with the exact command —LOOKUP_UNRESOLVED,OBJECT_UNPREPARED,CUSTOM_FIELDS_UNPREPARED,CONNECTOR_INPUT.CONNECTOR_NOT_IN_LIBRARY,CONNECTOR_OBJECT_REQUIRED, andCONNECTOR_OBJECT_NOT_GENERICmean the operation itself does not resolve; no prepare fixes them. Edit the source and re-runcheck:CONNECTOR_NOT_IN_LIBRARY: no library layer has the operation, connector, or version, and with no library pulled neither does the tenant. The message lists operations and aClosest:match. Use the node type slug, not tenantobjectName(send-email, notsend-mail-v2).<!--skill-flavor:not-in-library-pull:start--> With no library pulled,checkandcompilealready ask the tenant throughuip; the last sentence says what it answered. With a pulled library they do not ask; refresh a newer operation withuip maestro registry pull. "The tenant was asked … and does not serve it" means the name is wrong or the connector is not available on this tenant: fix the name or usehttp(). Otherwise the sentence givesuip's reason: runuip loginonly when it saysuipis not logged in or the session expired; for anything else reportuip's reason and stop.<!--skill-flavor:not-in-library-pull:end-->CONNECTOR_OBJECT_REQUIRED: add{ object: '<name>' }; the message lists objects.CONNECTOR_OBJECT_NOT_GENERIC: removeobjectfrom a single, non-generic operation.
- Prepare once: run one invocation composing
--object,--resolve, and-f; it finds the connection and writesbindings.json. It repoints the import and asks only when two flows import the same connector or--no-source-rewritewas passed. - Run
checkagain, then compile.
Every prepare command below is the command check prints at step 3, documented here rather than prescribed before source authoring.
Three contracts to settle before authoring
- Runtime strings use
tmpl, notjs:where: tmpl`invoiceNumber = '${input('invoiceNumber')}'`builds a string;js`invoiceNumber = '${input('invoiceNumber')}'`evaluates to only the assigned value. See Structured filters. - Schema-dynamic fields require a prepared descriptor; parent values alone are insufficient. Run
registry preparewith them and import its generated descriptor so schema-replay metadata remains. See the parent-field loop. - Paged reference lookups use exactly
nextPage: whenPagination.HasMoreis true, passPagination.NextPageTokenas--query "nextPage=<token>"; never usepage,pageToken, ornextPageToken. See Resolving connection-scoped reference values.
Discovering operations and fields
<!--skill-flavor:library-discovery:start-->uip maestro registry pull downloads the published library to ~/.uipath/cache/flow-sdk/library/current/; compile, check, and registry search resolve it without a flag. The project receives only .flow-sdk/connectors/, one descriptor per referenced connector.
uip maestro registry pull
If download fails or none is published (Automation Suite), pull is optional: pull fetches referenced connectors through uip into .flow-sdk/connectors-local/ (use --connector <key> for a key not yet in source); registry search searches the tenant catalog; check, compile, decompile, merge, and registry describe fetch missing operations through uip into .flow-sdk/connectors-local/ and continue. These require logged-in uip and an SDK recent enough to fetch; see CLI-LOOP.md. With neither a library nor a working uip, connector work stops at a message giving the reason; fix what it names (uip login only for a session problem). $FLOW_SDK_LIBRARY_JSON, when set, overrides the cache.
Library verbs are pull, search, describe, path, and prepare; they require prerelease @uipath/cli and run the installed @uipath/maestro-builder-sdk. uip is the entry point and is present here. The package also exposes flow-sdk; printed remedies use it when FLOW_SDK_INVOKED_AS is unset.
uip maestro registry is not uip maestro flow registry. The names are one
word apart and the jobs are unrelated: this one is the connector library the
compilers resolve operations against, while uip maestro flow registry pull|search|get syncs the tenant's node manifests — the node types other
references reach for (uipath.core.function, uipath.core.agent.<name>).
Connectors are never node-registry entries and nodes are never library entries, so a miss in one is not evidence about the other.
Search static contracts, then read an operation page:
uip maestro registry search 'send email'
uip maestro registry describe uipath.connector.uipath-microsoft-outlook365.send-email
describe renders from the operation entry with or without a pulled library; tenant-fetched pages identify that on their first line.
When check rejects a connection-specific field or warns that schema is unprepared, materialize live schema with the diagnostic command; do not guess or edit emitted Flow. It needs a live Integration Service connection and logged-in uip; otherwise author only fields listed by registry describe.
uip maestro registry prepare <connector-key> --action <action>
# Generic operation: materialize the one connected object the task uses.
uip maestro registry prepare <connector-key> --action <action> --object <api-object-name>
# Use --all-objects only when the task truly needs the full connected catalog.
Results land in .flow-sdk/connectors-local/, which compilers union over the library; calls accumulate. prepare chooses a connection. Pass --connection-id <id> only to pin one; non-Enabled connections are refused with enabled alternatives. A Failed connection returns an empty schema, so preparing through it would write a no-field overlay and the next compile would reject every input as unknown; the refusal is the only signal that says "connection", not "field".
Import descriptors from either tree with the real .ts extension (a .js specifier does not resolve); paths are relative to the source in .flow-sdk/:
import { CreateInvoiceShare } from './connectors-local/uipath-salesforce-sfdc.ts';
import { SendMessageToChannel } from './connectors/uipath-salesforce-slack.ts';
<!--skill-flavor:descriptor-imports:end-->
Older environments expose bare prepare-connector with identical arguments except connector version is --connector-version (not Commander's --version). For many connectors the first prepare is insufficient; use the parent-field loop before concluding a field does not exist.
A Generic operation is authored from the LIBRARY, not through registry prepare
Use the library action id and object option directly:
.step('users', connector('uipath-servicenow-servicenow', 'list-records',
{}, { connection: 'sn', folder: 'shared', object: 'acr_user' }))
This generic form needs no live resolution and compiles from the baked library. registry prepare is for curated schema-dynamic operations; for a generic operation use it only when a needed field is genuinely missing (a generic list usually has none, so preparing resolves nothing). The library and the registry use the same id, list-records. Older libraries called it list-all-records; against the current library that id is CONNECTOR_NOT_IN_LIBRARY. ServiceNow's list-records is one object-less entry, so object: 'acr_user' is accepted with a warning and the tenant resolves it at dispatch; a connector with static objects (Coupa) has one list-records entry per object.
Finding the object id for a Generic operation
Author { object: '<name-as-the-task-said-it>' } and let check name the OBJECT_UNPREPARED command. --object matches exact, then case-insensitive API/display names, narrowed to objects supporting the action verb:
uip maestro registry prepare <connector-key> --action <action> --object Company__C
# object: matched "Company__C" -> Company__c
Multiple matches are refused with API name, display name, custom, and operations; Custom: yes marks tenant-only objects; a task that says "custom" means one of those rows. Pick by the task's wording, or present the candidates and let the user choose—never pick for them—then re-run with the chosen Name. No match after catalog refresh means the object is not on that connection; report it. Do not use uip is resources list plus --output-filter; prepare performs matching, verb narrowing, retry, and records it in .flow-sdk/connectors-local/resolutions.json under objects.
Structured filters (CEQL)
List operations accept a server-side FilterBuilder parameter, usually where, sometimes q. Write the CEQL string; the SDK derives the tree.
connector('uipath-microsoft-azureactivedirectory', 'list-groups',
{ where: "displayName = 'active' AND createdDateTime >= '2026-01-01T00:00:00Z'" },
{ connection: 'entra', folder: 'shared' })
The artifact must contain both runtime inputs.detail.queryParameters.where and design-time configuration.essentialConfiguration.savedFilterTrees.where. Studio Web renders the FilterBuilder from the tree; product
validation rejects a literal filter that has only one of the two, so a
hand-written literal without its tree fails validate even though the run
would have worked (a runtime tmpl filter is exempt; see below). If the task asks for the filter tree as a separate review artifact, compile first and copy configuration.essentialConfiguration.savedFilterTrees.<parameter> verbatim, directly or under a named top-level property, never an ad hoc { field, operator, value } object or only the CEQL string; retain numeric groupOperator and filters.
Supported operators: = != < <= > >=, Contains, Starts With, Ends With, Like, their Not forms, and Is Null / Is Not Null; combine with AND or OR, and parenthesise to nest — (a = 1 OR b = 2) AND c = 'x'. Mixing AND and OR at one level is refused.
Three spellings are compile errors here rather than a tenant-side
[102003] Integration Services bad request:
| Wrong | Why | Right |
|---|---|---|
'accountNumber' = 'ACC123' |
a quoted token is a VALUE to CEQL | accountNumber = 'ACC123' |
accountNumber = "ACC123" |
double quotes mark a COLUMN reference | accountNumber = 'ACC123' |
status eq 'Open' |
eq/ne/gt/ge/lt/le are OData |
status = 'Open' |
A filter built from a runtime value has no filter tree, and that is valid.
The tree holds literals only, so a runtime-expression (tmpl) filter in where
(for example tmpl`displayName = '${input('name')}'` ) emits the query with no tree.
validate accepts it, and the runtime resolves the whole value. The only cost is
at design time: the Studio Web filter widget shows no tree for that step. If the
widget must show the constant terms, put them in a literal filter and narrow the
rest downstream.
Schema-dynamic operations: the parent-field loop
For loadByDefault, dependent dropdowns, and customFieldsRequestDetails, the static descriptor is insufficient. Run the prepare named by check, including every -f NAME=VALUE; it creates schema-replay metadata. Do not substitute manual resources run list lookups plus a static ./connectors/<key>.ts import (lookups do not create that cache), nor rawNode, emitted-flow edits, or hand-written connectors-local/ overlays; each produces a node the platform cannot run. After compile, inspect connector configuration: completion requires non-null customFieldsRequestDetails whose parent values match runtime inputs, even though flow validate may accept a missing cache.
Field sets depend on parent values, not merely connection, and fields.summary — required — appears in none of Jira create-issue's static inputs. Parent ids recorded by --resolve are exactly the values -f needs; combine them:
uip maestro registry prepare uipath-atlassian-jira --action create-issue \
--resolve fields.project.key:key=UIP --resolve fields.issuetype.id:name=Bug \
-f fields.project.key=UIP -f fields.issuetype.id=10732
If all parents were resolved separately, paste the exact -f NAME=VALUE re-run printed by prepare. Missing parents are refused (No api-type ObjectAction matched for fields [fields.project.key]); a value absent from the connection passes the describe silently and yields only parent fields, so treat "I passed -f and still got only the parents" as a wrong value, never as "this operation has no other inputs". prepare fails in both cases rather than writing the overlay.
1. Find parents. Describe with no values and inspect each input's reference. A parent has Reference.Path containing a {placeholder} naming another field; resolve the field a placeholder names first (fields.project.key before fields.issuetype.id):
uip is resources describe <connector-key> <object> \
--connection-id <connection-id> --operation <Operation> --output json
{ "Name": "fields.issuetype.id",
"Reference": { "ObjectName": "project",
"Path": "/project/{fields.project.key}/issuetypes" } }
Data Service (uipath-uipath-dataservice) actions such as create-entity-record, update-entity-record, and file-record-field operations instead use GenerateSchema over entityName; no-value describe returns only the static inputs (entityName, expansionLevel), so compile refuses the entity's fields (title, …) as unknown; the fix is always the entity name:
uip maestro registry prepare uipath-uipath-dataservice --action create-entity-record \
-f entityName=FlowCodeEvalEntity
# → 8 input field(s): entityName, expansionLevel + the entity's own fields
Do not work around the refusal — not with rawNode, not by editing the emitted .flow, not by hand-writing a connectors-local/ overlay. Each produces a node the platform cannot run.
Copy parent names exactly from this operation's describe; they are operation-specific (Jira get-issue uses project and issuetype).
2. Resolve each value outermost first. Match Reference.Path, not Reference.ObjectName; find the object whose path covers it when the subcollection is not listable:
uip is resources list <connector-key> --connection-id <connection-id> --output json # find the object
uip is resources describe <connector-key> <object> --connection-id <connection-id> # confirm its Path
uip is resources run list <connector-key> <object> --connection-id <connection-id> \
--query "<path-param>=<value-from-the-previous-parent>" --output json
For Jira, /project/{key}/issuetypes is covered by project_statuses (/project/{projectIdOrKey}/statuses).
3. Prepare with every parent.
uip maestro registry prepare <connector-key> --action <action> \
-f fields.project.key=IN -f fields.issuetype.id=10620
Prepare separately reports service rejection and accepted values that resolve only to parents. Values are parent-scoped (Jira Task is 10620 in IN, 10005 in AP): never copy ids between projects, connections, or tasks; resolve against the connection bound by the flow. Standard summary and description are portable; custom fields such as fields.storyPointEstimate_Customfield10016 may not be.
Use the generated descriptor import and connector(...) call; it carries connection-resolved operation/object identity even when action ids differ. connectors-local/ is authoring input; emitted Flow is self-contained. Prefer curated operations. For a raw call the curated surface lacks, use the managed HTTP node (core.action.http.v2) with the connector's connection and targetConnector: '<connector-key>' (http.md); the library has no per-connector *-http-request operation.
Preparation needs a live connection. For explicitly offline/validate-only evidence without connection-specific fields, use the baked descriptor and published static inputs; do not invent fields or use placeholder discovery. If the published list is empty, pass {}; offline evidence then proves operation identity/control-flow routing, not provider payload/dispatch.
bindings.json defines symbolic connection/folder bindings and compile-time resolution; populate resource keys from live connection/folder listings. A plausible GUID is not evidence of existence or tenant membership; resource refresh and product debug are the evidence.
File uploads are multipart Flow inputs
If the catalog omits an upload field, prepare against its connection and pass the upstream file as a connector input:
.step('upload', connector(SendFileToChannel, {
file: out('download', 'Response'),
channels: channelId,
send_as: 'user',
}, { connection: 'slack', folder: 'shared' }))
The compiler emits multipartParameters; uip is resources run has no multipart flag and is not the execution surface. Only a file part is an input. String-typed parts (Teams body, Gmail body, GenAI RagRequest) are containers; pass body fields ('body.content', Body, prompt), never the part itself.
.step('notify', connector(SendChannelMessage, {
team_id: lookup(SendChannelMessage, 'team_id').byDisplayName('Sales'),
channel_id: lookup(SendChannelMessage, 'channel_id').byDisplayName('alerts'),
body: { content: 'A request was routed to Sales.' }, // or 'body.content': …
}, { connection: 'teams', folder: 'shared' }))
Resolving connection-scoped reference values
Lookup fields store ids, not display names. If marked LOOKUP, author its helper and do not guess or manually resolve it:
channel: lookup(SendMessageToUser, 'channel').byRealName('Ada Lovelace')
Slack omits profile.email unless the connection's app may read emails, so .byEmail(…) can match no one; prefer .byRealName(…) or .byId(…). When prepare says none carries '<field>' (an SDK with builder-sdk#2096), the value is not wrong: search by a field the message lists after Search by. A real name need not be unique; prepare takes the first exact match without warning, so use .byId(…) when two users may share it.
| form | when | helpers |
|---|---|---|
lookup(SendMessageToUser, 'channel') |
prepared descriptor | .byEmail(v), .byRealName(v), … (as the descriptor's LOOKUP: header lists them) and .by(name, v) |
lookup('uipath-salesforce-slack', 'send-message-to-user', 'channel') |
generic CRUD/no descriptor | .by(name, v) only |
Never use an alias (.byEmail, .byRealName, generated onto the descriptor) in the second form; it throws. Use .by('profile.real_name', …) there. Searchable names are in the descriptor LOOKUP: header and check diagnostics.
A folder-tree lookup (OneDrive's referenceID by FullName) matches a bare name only at the top or one level below; deeper paths start at the root picker's top entry, not drive root:
referenceID: lookup(DownloadFile, 'referenceID').by('FullName', 'OneDrive/<folder>/<file>')
Expect a walk to take four to six minutes; a wrong first segment fails quickly, but a wrong file name fails only after the walk, naming its stopping segment. So confirm the name first with:
uip is resources run list uipath-microsoft-onedrive EventFolderPicker --connection-id <connection-id> --query '{"parentReference":"<folder ReferenceID>","includeFiles":"true"}' --output json
Drop parentReference at top level. When source contains unresolved tokens, run the one prepare command check prints; it records every lookup and writes connection and folder to bindings.json; it is the only tenant call the loop needs:
uip maestro registry prepare uipath-salesforce-slack --action send-message-to-user \
--resolve 'channel:profile.real_name=Ada Lovelace'
Do not find the connection first: prepare searches uip is connections list (own folder then tenant), writes connection id and folder key, and accepts --connection <name> only to disambiguate candidates. If a value is absent, it tries other enabled connections and re-runs itself against the one that resolves (which bindings.json then names), unless --connection-id or --connection pinned one; it does not retry transport/permission failures or choose between two resolving connections. When one was pinned or two resolve, the message names alternatives; choose and re-run with the printed --connection-id.
Do not crawl Integration Service after lookup failure: the message names the connection read and, once every candidate is tried, the one command that shows what the collection holds. When the candidates share a name or several resolve, choose as bindings.md says, and pass the --connection-id <id> its candidate line prints. bindings.json entries take the source's connection: and folder: labels, which must differ; a source with none gets the connector's last segment (for example slack) and shared; --bind-connection / --bind-folder override. If a label cannot be traced from source, prepare prints bindings: and binds the readable label or default. It refuses multiple labels for one connector or one connection label shared by two connectors, and prints bound names on next:. compile refuses a label that a bindings.json with entries does not declare (BINDING_UNDECLARED) and warns unresolved declared entries (CONNECTION_STUB).
check reports unresolved lookups as LOOKUP_UNRESOLVED, warns on literal ids, and warns runtime expressions as LOOKUP_RUNTIME_VALUE with the sent id (for example reporter.accountId); it errors when an e-mail expression feeds a lookup that neither sends nor searches by e-mail. Resolve a required lookup field you have no value for with its helper, never from a look-alike input. Run check before compile so the one expensive prepare call is last.
When the task names nobody for a person-shaped required field (reporter, requester, owner), use the connection's own user: take the account from uip login status and resolve by display name. Search only names declared by the field's "matches on" list; do not query raw collections. Jira user search hides e-mail addresses, so emailAddress= returns nothing while displayName= finds the user; the spec (matches on displayName | accountId) excludes e-mail.
Operation pages and generated-descriptor comments list lookup helpers and searchable fields; grep -B6 'export const SendMessageToUser' finds the latter. Plain strings are correct for enumerated legal values and tenant-invariant collections (country lists, timezones) when the page says so and supplies the accepted-value command.
Use this manual route only when a field carries no lookup, or to inspect a collection; resolve against the same bound connection, never by copying an id from another connection or session. Prepare first, then read the target input's reference in .flow-sdk/connectors-local/*.v1def.json: reference.path identifies the exact collection and placeholders; reference.objectName is only a starting point. Use objectName only when uip is resources describe <connector-key> <objectName> reports a matching Path; otherwise find the object whose Path covers it and pass placeholders as query parameters. Never substitute a similar collection.
uip is resources run list <connector-key> <object-name> \
--connection-id <connection-id> \
--output-filter '{items:items[].{Id:Id,Name:Name},page:Pagination.{HasMore:HasMore,NextPageToken:NextPageToken}}' \
--output json
--output-filter selects from Data; replace Id and Name with exact prepared-reference fields and retain pagination fields. When Data.Pagination.HasMore is "true", keep operation/connection and pass the token as nextPage:
uip is resources run list <connector-key> <object-name> \
--connection-id <connection-id> \
--query "nextPage=<value-from-NextPageToken>" \
--output-filter '{items:items[].{Id:Id,Name:Name},page:Pagination.{HasMore:HasMore,NextPageToken:NextPageToken}}' \
--output json
Stop when the target appears; otherwise continue until Data.Pagination.HasMore is "false". A first-page miss proves nothing; the parameter is nextPage, not nextPageToken.
Response judgments
A get-by-id not-found is a service error. Add .onError(...) when the scenario wants a not-found answer; otherwise failing loud may be intentional.
Output field names are case-sensitive and check does not verify them: out('upload', 'WebUrl') compiles but reads null when the field is webUrl. Copy names from the operation's ## Outputs in uip maestro registry describe <nodeType>.
For responses without declared fields, read the whole output into a script local before inspecting service properties:
.step('report', script({ code: `
const issue = $vars.issue.output;
return { key: issue.key, status: issue.fields.status.name };
` }))
Measured list operations return bare arrays; prefer that for unmeasured lists while allowing live evidence to disprove it. Add genuine wrappers found in product debug to the list-envelope ledger. One call is one page; use operation filtering/paging for narrower or later pages.
Scenario and evidence boundary
Include every scenario-named input even when provider schema marks it optional; replay proves threading. Integration Service live mode proves dispatch and service response. Only product Flow debug proves deployed bindings and whole-graph execution.
Generated descriptors provide the typed alternative: connector(CreateIssue, inputs, opts). Use opts.object to disambiguate a generic operation covering several objects.
Open this reference as its own page
Conversational
Exact signatures, fields, and defaults: conversationTrigger(), waitForMessage(), sendMessage(), conversationContext(), conversationalAgent().
A chat-driven flow. A person opens a conversation; the flow waits for their
message, answers it, and can post messages of its own. Every step is keyed by a
conversationId, which the conversation TRIGGER publishes as
out('start', 'conversationId').
export default flow('support-chat')
.trigger(conversationTrigger())
.step('listen', waitForMessage({ conversationId: out('start', 'conversationId') }))
.step('reply', conversationalAgent({
model: 'gpt-5.4',
systemPrompt: 'You are a support agent. Be brief.',
settings: { context: out('listen', 'conversationContext') },
}))
.step('closing', sendMessage({
conversationId: out('start', 'conversationId'),
exchangeId: out('listen', 'conversationContext.latestExchangeId'),
content: 'Anything else I can help with?',
}))
.build();
At a glance
Work a live CHAT: wait for the person's message, answer it, post a reply. Every
step is keyed by a conversationId — the conversation trigger publishes it.
Signatures: .trigger(conversationTrigger({ welcomeTitle?, welcomeDescription?, startingPrompts?, personalWorkspaceConnectionsOnly? })); waitForMessage({ conversationId, numExchanges? }); conversationalAgent({ model, systemPrompt, settings, tools?, context?, escalation? }); sendMessage({ conversationId, exchangeId, content, endExchange? }); conversationContext({ conversationId, exchangeLimit? }).
.trigger(conversationTrigger())
.step('listen', waitForMessage({ conversationId: out('start', 'conversationId') }))
.step('reply', conversationalAgent({ model: 'gpt-5.4', systemPrompt: 'Answer briefly.',
settings: { context: out('listen', 'conversationContext') } }))
waitForMessage SUSPENDS the flow (a catch event), it does not poll. Use sendMessage when the flow decides what to say, an agent when the model does.
The chat's appearance
Needs @uipath/maestro-builder-sdk 6.88.0 or later; an older SDK's conversationTrigger() takes no argument and writes the 1.0 trigger,
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
What the chat shows before the user types is set on the trigger.
Every field is optional; conversationTrigger() with no argument is a chat with no welcome text or prompts, and the switch below is still on.
.trigger(conversationTrigger({
welcomeTitle: 'Library desk',
welcomeDescription: 'Ask about loans, renewals and holds.',
startingPrompts: [
'Renew my loans',
{ displayPrompt: 'Place a hold', actualPrompt: 'I want to place a hold on a book.' },
],
}))
A starting prompt is a chip: the user sees displayPrompt, and the agent receives actualPrompt.
A string sets both displayPrompt and actualPrompt.
Leave id out; compile mints a stable one, and decompile prints it back so a recompile keeps it.
check refuses a prompt with no display prompt (CONVERSATION_TRIGGER_DISPLAY_PROMPT_REQUIRED), because the chat drops it.
personalWorkspaceConnectionsOnly limits the chat's connection settings menu to personal workspace connections.
It defaults to true, as the designer sets on a new trigger; set false to show every connection.
The appearance is the trigger's 1.3 definition, which conversationTrigger() writes by default.
Decompiled source of an older flow pins { version: '1.0' }, which has no appearance, and compile refuses one there (CONVERSATION_TRIGGER_APPEARANCE_VERSION); drop the pin to add one, and set personalWorkspaceConnectionsOnly: false to keep the chat's full connection menu as it was.
Conversations, exchanges, and messages
Three nested things, and the field names follow them:
- a conversation is the whole thread (
conversationId); - an exchange is one user turn plus the answers to it (
exchangeId); - a message is one utterance inside an exchange.
waitForMessage returns the conversation CONTEXT, so the exchange to answer is
a path inside it: out('<waitStep>', 'conversationContext.latestExchangeId'),
and the transcript is …conversationContext.messages. (out(step, path)
already inserts .output — do not write it again.)
Waiting versus reading
waitForMessage suspends the flow — it is a bpmn:IntermediateCatchEvent
on Maestro.ReceiveMessageEvent, the same mechanism as waitForEvent, so the
run parks until the person speaks. conversationContext does NOT wait: it reads
the transcript so far and continues. Reach for the first when the flow's next
step depends on what the person says next, the second when it only needs
history. Both cap how much history they return (numExchanges /
exchangeLimit, 1–40, platform default 20).
Saying something: agent or flow
sendMessage posts a message the FLOW composed — the role is always
assistant and the content is Markdown (the node's only supported type), so
neither is authored. conversationalAgent posts what a MODEL composed, reading
the turn from settings:
'simple'mode (the default) takes ONE binding,context, and the platform derives the conversation id, exchange id, transcript and user settings from it. This is what you want almost always.'custom'mode binds each field yourself, for a turn assembled from more than one source;conversationIdis then required.
Either way the four derived fields are what the runtime reads — the platform's
own editor calls them the source of truth and its validator rejects a node
without conversationId, so the SDK emits them from your context binding
rather than leaving them out. The agent's reply is
out('<step>', 'uipath__agent_response_messages'), and compile writes a stable
<source>/agent.json sidecar beside the .flow as it does for inlineAgent.
Tools, context and escalations
conversationalAgent takes the same tools, context and escalation options
as inlineAgent (agent-resources.md). For instance a tool
the chat client runs:
conversationalAgent({
model: 'gpt-5.4', systemPrompt: 'Help the customer.',
settings: { context: out('wait', 'conversationContext') },
tools: [{ kind: 'clientside', name: 'showOrder', inputs: { orderId: 'string' } }],
})
The SDK version these options need, their check codes, and what decompile
does not carry back yet:
agent-resources.md.
Evidence boundary
The whole family is AvailableOnTenant: false today — the definitions are
bundled from the workbench manifests, so a flow compiles and validates
offline, but nothing local starts a conversation or delivers a message. A green
ladder proves the node types, the conversation/exchange wiring and the derived
turn settings. A real thread, a real reply, and the agent's answer quality are
platform evidence.
Open this reference as its own page
Data Fabric
Exact signatures, fields, and defaults: dataFabricRead(), dataFabricCreate(), dataFabricUpdate() and dataFabricDelete() for native CRUD, and connector() for operations the native family does not cover.
At a glance
.step('open', dataFabricRead({ entity: 'Invoices', resultMode: 'multiple',
filters: [{ field: 'Status', value: 'Open' }], limit: 200, sort: { field: 'CreateTime' } }))
resultMode: 'multiple' publishes matches under output.results and selects read 1.4; plain dataFabricRead() reads one record on SDK-pinned 1.0. Wrong columns are dropped SILENTLY; validate passing is not evidence, so resolve columns with uip df entities get first. Delete publishes nothing. Id, CreateTime, CreatedBy, UpdateTime, and UpdatedBy are never writable. fromRead requires a single-record read. Folder-scoped entities use entity: { name, folder: '<folder path>' }; check prints the prepare command that records their keys (below).
Still connector-only: get-by-id when the whole long-text value is needed (native reads return a 10,000-character preview, see below), file record fields, and Record Created/Updated events. Use connector('uipath-uipath-dataservice', …) plus registry prepare -f entityName=<Entity>.
One product, two surfaces
"Data Fabric" and "Data Service" are the same product: the tenant lists connector key uipath-uipath-dataservice as UiPath Data Fabric, and uip df entities manages both. Native core.datafabric.* covers all four CRUD verbs and needs neither connection binding nor prepare; use the connector only for unsupported operations.
| Operation | Surface |
|---|---|
| Query records, filters, limit, paging, sort | dataFabricRead({ entity, filters, resultMode, limit, skip, sort, fields }) |
| Create | dataFabricCreate({ entity, values }) |
| Update | dataFabricUpdate({ entity, record, set }) |
| Delete | dataFabricDelete({ entity, record }) |
| Get by id, whole field values | connector('uipath-uipath-dataservice', 'get-entity-record-by-id', …) (Long text) |
| File record field upload/download/delete | connector('uipath-uipath-dataservice', 'upload-file-to-record-field' / 'download-file-from-record-field' / 'delete-file-from-record-field', …) (example) |
| Record Created/Updated events | onEvent(…) on the same connector |
Only the bottom three are connector work. Route an entity needing one through the connector rather than mixing surfaces: mixing requires connection binding, a second payload shape, and separate debugging.
Data Fabric events (Record Created / Record Updated on an entity) are
Integration Service connector events on uipath-uipath-dataservice, not this
node family. They are curated events with the object built in, so do not pass
object: the registry serves them as record-created-preview- and
record-updated-preview-, and the entity is picked through the where lookups
that uip maestro registry prepare uipath-uipath-dataservice --action record-updated-preview- prints (entityScope, tenantEntityName,
folderEntityName). See
event-trigger.md.
Long text: queries return a 10,000-character preview
dataFabricRead is a query, including read-one with an Id filter. For MULTILINE_MAX, it returns the first 10,000 characters plus ...[Truncated]; nothing flags this, and check, validate, the run, and downstream steps succeed on cut text. dataFabricCreate's output is also the preview. Never write that preview through dataFabricUpdate; omit the field from set, or the stored value becomes truncated and includes ...[Truncated].
For a 15,551-character value:
| Read path | Characters |
|---|---|
$vars.<create step>.output.<field> |
10,014 (preview) |
dataFabricRead({ resultMode: 'multiple' }) → output.results[i].<field> |
10,014 (preview) |
dataFabricRead({ filters: [{ field: 'Id', value: … }] }) → output.<field> |
10,014 (preview) |
connector('uipath-uipath-dataservice', 'get-entity-record-by-id', …) → output.<field> |
15,551 (whole) |
Read potentially long fields with connector get-entity-record-by-id (The connector path); short fields are whole through every path.
The four verbs
.step('lookup', dataFabricRead({ entity: 'Invoices', filters: [
{ field: 'InvoiceId', value: input('invoiceId') },
{ field: 'Status', operator: '!=', value: 'Paid', or: true }, ] }))
.step('markPaid', dataFabricUpdate({ entity: 'Invoices',
record: { fromRead: 'lookup' }, set: { Status: 'Paid', PaidBy: js`$vars.lookup.output.Approver` } }))
.step('logIt', dataFabricCreate({ entity: 'PaymentLog', values: { InvoiceId: input('invoiceId'), PaidOn: js`new Date().toISOString()` } }))
.step('purge', dataFabricDelete({ entity: 'Drafts', record: { byId: input('draftId') } }))
Filters and targeting
A filter is { field, operator?, value, or? }; operator defaults to '=' and must be exactly one of = != > >= < <= contains starts with ends with in. There is no not in, not contains, or null check; unsupported serialization takes down the whole query. in works only with resultMode: 'multiple'.
The query is disjunctive: or: true starts an alternative rather than joining one row to the one before it (ignored on the first row), each alternative ANDs its rows, and results are alt1 OR alt2 OR …. Express (A OR B) AND C as (A AND C) OR (B AND C). Filter values cannot be blank or reference $self; either makes serialization refuse the whole query, publishes nothing, and strands downstream $vars reads; check rejects both. Choice-set filters require numeric numberId, never the label; labels silently match nothing.
record targets update and delete and takes exactly one of { byId: '<record id>' } (literal or expression) or { fromRead: '<step name>' } (the preceding single-record dataFabricRead result). A multiple-record query is refused as a write target as a no-op: validation and run are green, but nothing writes. check reports DATAFABRIC_FROMREAD_UNKNOWN for a nonexistent read step and DATAFABRIC_FROMREAD_MULTIPLE for a multiple read.
set and values map fields to literals or expressions and are rejected when empty. values is also rejected when every value is BLANK. Blank create values are omitted so defaults apply; an all-blank create writes nothing and runs green. Use a real value, not a placeholder.
Type each flow input by its destination field. Run uip df entities get <id> --output json; types are at Data.Fields[].FieldDataType.Name, and use input('<name>'):
| Field type | Flow input |
|---|---|
STRING, MULTILINE_TEXT, UUID, DATE, DATETIME |
types.string |
DECIMAL, INTEGER |
types.number |
BOOLEAN |
types.boolean |
FILE |
none — declare types.file and upload with connector upload-file-to-record-field (example) |
System columns Id, CreateTime, CreatedBy, UpdateTime, and UpdatedBy are never writable. Writes to them are rejected, logged only, leave the row unchanged, and run green; check reports DATAFABRIC_SYSTEM_COLUMN. Blank create values are omitted; blank update values write explicit null, which non-nullable columns reject. Check nullability with uip df entities get.
Query-many needs resultMode, and resultMode needs 1.4
core.datafabric.read began as read-one ("Read entity") and became read-one-or-many at 1.4 ("Query entity records"). resultMode: 'single' publishes one record under output; resultMode: 'multiple' publishes records under output.results. Plain dataFabricRead() emits SDK-pinned 1.0; passing resultMode selects 1.4. dataFabricRead({ resultMode }, { version: '1.0' }) is refused at compile time.
.step('open', dataFabricRead({ entity: 'Invoices', resultMode: 'multiple',
filters: [{ field: 'Status', value: 'Open' }] })) // → core.datafabric.read@1.4
.loop('each', js`$vars.open.output.results`, (b) => b./* … */)
Paging a list query
limit is always applied — omitting it resolves to 100 — and 1000 is a
hard ceiling: check refuses a larger value (DATAFABRIC_LIMIT_RANGE),
because the run would silently return only 1000. Cover a bigger entity by
paging with skip, and pair any limit with sort or the slice is arbitrary.
limit, skip, sort, and fields are list-query options; check refuses them on single-record reads.
.step('page1', dataFabricRead({ entity: 'Invoices', resultMode: 'multiple',
limit: 1000, skip: 0, sort: { field: 'CreateTime', direction: 'desc' },
fields: ['Id', 'Status'] }))
Audit columns are Id, CreateTime, CreatedBy, UpdateTime, UpdatedBy; there is no CreatedAt. validate does not catch a nonexistent sort column.
A folder-scoped entity: name it and its folder
Tenant-scoped entities use entity: '<Name>'; folder-scoped entities use the Orchestrator folder path, never keys:
.step('read', dataFabricRead({ entity: { name: 'Orders', folder: 'Finance/Prod' }, resultMode: 'multiple' }))
SDK 6.73.0 or later is required. An older SDK refuses { name, folder } and has no key-less prepare,
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
If uip maestro registry prepare --entity … says missing required argument 'connector-key', run the same command as npx flow-sdk registry prepare --entity ….
check reports RESOURCE_UNRESOLVED and prints the command recording keys. Run it, then run check again:
uip maestro registry prepare --entity Orders --folder-path Finance/Prod
# Entity Orders (Finance/Prod, remote)
# Recorded ./.flow-sdk/resources.json
compile writes the folder key, resource key, two resource: 'Entity' binding rows, and the entity row in bindings_v2.json; uip solution resources refresh then declares it in the solution. Do not type keys; compile refuses an unrecorded entity.
Run prepare from the directory used for check and compile, normally <Solution>/<Name>/; it records ./.flow-sdk/resources.json. Within a solution (a .uipx in that folder or above), it searches the solution before the tenant.
prepare lists and stops; it never picks:
- No
folder: it searches every folder. One match records the folder and names it to pin in source. Multiple matches list eachfolder:; write the intended one and runprepareagain. - Tenant-level match: no
prepare; writeentity: '<Name>'as output says. - Matching: a name matches exactly, case included; a
folderpath ignores case and a leading or trailing slash. A folder without that entity returnsRESOURCE_NOT_IN_FOLDERand lists folders containing it. - No match: it lists near misses and listings to check. If none is intended, ask the user; never create an entity unless the user asks. Creating one in the requested scope follows /uipath:uipath-platform — local-entities.md, then run
prepareagain. - Recorded row older than a day: it counts as missing;
checkasks forprepareagain.
An entity the solution authors itself
An entity from uip df entities create <Name> --local exists only in the solution until deployment and resolves the same way. Write { name: '<Name>' }; from the Flow project folder, run the prepare printed by check. It reads the solution, records the entity in placeholder folder 99999999-9999-9999-9999-999999999999 (replaced by flow debug and solution deploy), and names folder: 'solution_folder' to pin.
Do not look it up on the tenant before deploy. Skipping that prepare leaves the keys out and makes it tenant-scoped; the run fails with Entity <Name> does not exist, naming an entity that does exist, and flow validate reports INLINE_ENTITY_UNBOUND. Although its message suggests uip maestro flow node configure (which edits compiled .flow), fix .flow.ts in a builder-SDK project or the next compile reverts it. Creating and modelling follows /uipath:uipath-platform — local-entities.md.
A decompiled flow uses folderKey and resourceKey; leave that form unless the entity changes.
Debugging: uip maestro flow debug works once for a solution with a local entity and fails from the second run because each later run overwrites the same Studio Web solution, which Studio Web cannot do for one holding an Entity project. Tell the user up front and recommend the UiPath extension for VS Code for repeated debugging. pack / publish / deploy run are unaffected.
A delete publishes nothing
core.datafabric.delete declares no outputs. $vars.<delete>.output is undefined, and check rejects that read with DATAFABRIC_DELETE_HAS_NO_OUTPUT. Take needed data from the dataFabricRead step that found the record, before deletion.
The connector path, end to end
Connector entity-operation body fields come from the entity, so the static library cannot carry them. Resolve the schema once; otherwise compile refuses unknown inputs:
uip maestro registry prepare uipath-uipath-dataservice --action get-entity-record-by-id \
-f entityName=ContractRegistry
# → .flow-sdk/connectors-local/ + .flow-sdk/bindings.json, with the entity's own fields as inputs
.step('byId', connector('uipath-uipath-dataservice', 'get-entity-record-by-id',
{ entityName: 'ContractRegistry', recordId: input('id') },
{ connection: 'dataservice', folder: 'shared' }))
Full rules, including parent-field (GenerateSchema over entityName) shapes: connector-params.md.
A file field: connector example
File-record-field operations take a Flow file input (connector-params.md § file uploads):
uip maestro registry prepare uipath-uipath-dataservice \
--action upload-file-to-record-field \
--resolve entityName:displayName=LoanApplication
# → .flow-sdk/connectors-local/uipath-uipath-dataservice.ts with typed descriptors
import { UploadFileToRecordField, DownloadFileFromRecordField }
from './connectors-local/uipath-uipath-dataservice.ts';
const BIND = { connection: 'dataservice', folder: 'shared' } as const;
.input({ recordId: types.string, doc: types.file })
.step('attach', connector(UploadFileToRecordField, {
entityName: lookup(UploadFileToRecordField, 'entityName').byDisplayName('LoanApplication'),
recordId: input('recordId'), _fieldName: 'Contract', file: input('doc'),
}, BIND))
.step('fetch', connector(DownloadFileFromRecordField, {
entityName: lookup(DownloadFileFromRecordField, 'entityName').byDisplayName('LoanApplication'),
recordId: input('recordId'), _fieldName: 'Contract',
}, BIND))
entityName is a LOOKUP through lookup(...).byDisplayName(...); do not paste a system name. The FILE column is _fieldName (leading underscore required); fieldName fails check. Debug CLI uploads with --attachment doc=<path> (operate.md § types.file); download publishes the file reference under output.Response. Delete has the same shape with only the action name changed.
file: accepts any upstream file reference, including out('fetch', 'Response'):
.step('mirror', connector(UploadFileToRecordField, {
entityName: lookup(UploadFileToRecordField, 'entityName').byDisplayName('LoanApplication'),
recordId: input('mirrorId'), _fieldName: 'Contract', file: out('fetch', 'Response'),
}, BIND))
The same source rule applies to documentClassify, dynamicExtract, ixpExtract, summarize, and batchTransform: the file field accepts a types.file input, out('<step>', '<fileField>'), or any step whose declared output is a file. Runtime values are file references, never bytes.
Read the operation's own doc before guessing anything. Run:
uip maestro registry describe uipath.connector.uipath-uipath-dataservice.create-entity-record
It prints the connector page (UiPath Data Fabric), HTTP route POST /v2/{entityName}/CreateEntityRecord, and exact prepare-connector … -f entityName=<value> line before anything is inferred.
Evidence boundary
Entity and field names are tenant data: copy them from the scenario or tenant, never invent them. Names are case-sensitive; unmatched columns are dropped rather than rejected, so a wrong name validates green and writes nothing. Resolve first:
uip df entities list --native-only --include-folders --output json # writes need a NATIVE entity
uip df entities get <entity-id> --output json # exact column names and types
The platform documents limit/skip/sort, but the local engine's converter does not apply them; they reach the file as _recordLimit/_skip/_sort and are read at run time, so flow-debug is not evidence either way.
Offline validate proves only emitted entityConfig shape. It does not verify column existence, writability, value type, native versus federated entity, or whether a byId id matches; all validate clean and can fail silently at runtime. The tenant is evidence.
Typed columns also need the canvas _outputSchema snapshot for coercion, and dotted related paths need _entityFields. SDK authors provide neither: keep from-scratch nodes to the entity's own columns with string or expression values, and let the designer populate snapshots on first open.
Open this reference as its own page
Delay
Exact signatures, fields, and defaults: delay().
Delay pauses the current path for a duration.
Signature: delay({ duration: string }) or delay({ until: string }) —
exactly one of the two arms.
.step('cooldown', delay({ duration: 'PT30S' }))
.step('embargo', delay({ until: '2026-09-01T09:00:00Z' }))
.step('resumedAt', script({ code: 'return new Date().toISOString();' }))
When the scenario needs a resume timestamp, compute it after the wait as shown.
until is an ISO-8601 date-time and emits the node's absolute-date arm
(timerType: 'timeDate'); an until in the past resumes immediately at run
time, so compute future dates from the scenario, not from authoring day.
Normal replay may skip real elapsed time. When timing is itself part of the requirement, use the real-time wait rung with a deliberately short fixture duration and measure before/after timestamps; product scheduling behavior still requires platform evidence.
The duration is ISO-8601: PT30S, PT15M, PT2H, P1D, P1W.
At a glance
Pause this path for a duration — or until an absolute date-time — then continue.
Use a real-time rung when elapsed time itself is the requirement.
Open this reference as its own page
Diagnose — why a run failed
Triage order matters. Each step is cheaper and more specific than the next, and starting at the wrong end is how a diagnosis turns into twenty tool calls.
- The debug response you already have. A faulted run carries its own cause.
- Incidents on the instance.
- Runtime variables at the point of failure.
- The deployed artifact — what is actually on the tenant, not what is on disk.
- Traces, last. They are the whole execution timeline.
Never start at traces, and never re-run flow debug to "get a better look" — a
re-run executes the flow again for real and returns the same information the
first one did.
Step 0 — read the cause in the output you already have
<!--skill-flavor:diagnose-step-0:start-->Data.finalStatus: "Faulted" means the response in hand holds the reason.
A projection can drop Data.incidents, but --output-filter never filters
Message and Instructions: they summarize the incidents, when PIMS returned
any, and name the uip maestro flow debug-instance incidents <instanceId>
command. If Data.incidents is missing, or null in a projection, run that
command. Do not re-run the flow. On the next run, add incidents:incidents to the projection,
or redirect the unfiltered output to a file and search it:
UIP_LOG_LEVEL=info uip maestro flow debug <project-dir> --output json > /tmp/flow-debug.json
<!--skill-flavor:debug-redirect:end-->
Look for the faulted element and its message. The node id in the fault maps
back to the .step('<id>', …) that produced it, so the fix is usually a source
edit rather than a platform question. For a .flow that existed before this
turn, make the fix through Editing an existing flow.
Incidents, variables, and the deployed artifact
# what went wrong
uip maestro flow instance incidents <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow incident get <INCIDENT_ID> -f <FOLDER_KEY> --output json
uip maestro flow incident summary --output json # across instances
# state at the point of failure
uip maestro flow instance variables <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance variables <INSTANCE_ID> -f <FOLDER_KEY> \
--parent-element-id <ELEMENT_ID> --output json # scoped to one element
uip maestro flow instance element-executions <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance cursors <INSTANCE_ID> -f <FOLDER_KEY> --output json
# what is deployed, and which instances exist
uip maestro flow instance asset <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance list -f <FOLDER_KEY> --output json
uip maestro flow instance get <INSTANCE_ID> -f <FOLDER_KEY> --output json
# last resort
uip maestro flow job status <job-key> --output json
uip maestro flow job traces <job-key> --output json
<!--skill-flavor:diagnose-auth:start-->
All of these need uip login. Every instance command and incident get also
needs --folder-key (-f) or it is rejected before reaching the API. Get the key from
uip or folders list --output json, or from the job or process context.
Use these commands, never the underlying APIs. The CLI applies the tenant and folder resolution the raw endpoints do not, so a direct call that appears to work is reading a different scope from the one the run used.
When local and deployed disagree, the deployed artifact is the one that ran. A flow edited but not re-uploaded is the most common explanation for "I fixed that already".
Failure modes that survive the SDK path
The builder makes several classic .flow defects unreachable — see the next
section. These are the ones it does NOT:
An expression that is really a literal. The builder does not force a $vars
reference through js\…`orout(). A plain string containing $vars.step.outputcompiles to a bare literal with no=js:prefix,checkreports no issues, and the node receives the text"$vars.step.output"at run time instead of the value. Symptom: a downstream node acting on a string that looks like an expression. Fix:out('step') or `` js${out('step')}` ``.
A HITL outcome with no route. More than one outcome routes per outcome by
default, and an outcome with no arm leaves the run stalled when a reviewer picks
it. check warns HITL_OUTCOME_UNROUTED; the warning is the diagnosis. Fix:
.stepSwitch with an arm per outcome.
Completed with the work not done. A node with error handling enabled and
no handler, or an error edge routed back into the happy path, lets a failed step
report success upward. Symptom: green run, absent side effect. Read the node's
own status, not the run's.
A reused connection or resource key. A key copied from another flow is
well formed, so check and validate both accept it and the node faults at run
time against a connection this tenant does not have. Read keys from
registry list --local or the generated resource file, never from another
project.
A single-nested project that upload rejects. uip maestro flow init with
--skip-solution-registration opts out of auto-scaffold and registration and
leaves <Project>/<Project>.flow where <Solution>/<Project>/<Project>.flow is
required; Data.SolutionRegistration.Status comes back OptedOut or
NotInSolution, and upload and packaging both fail on structure. Without the
flag, flow init outside a solution scaffolds and registers on its own, so this
is opt-in rather than accidental. Fix by deleting the partial scaffold and
running uip solution init then flow init from inside the solution; add
uip solution projects add only if Status is not Registered. Carry
--automate on the rebuild if the original was a Maestro Automate project — a
.maestro_automate file in the project root says it was, and rebuilding without
the flag silently returns a plain Flow.
Misshapen nodes on the canvas. Symptom: the flow behaves correctly and is
unreadable: nodes overlap, or a node is drawn at the wrong size. This is not a
run-time fault and no check reports it — validate passes, because layout is
not an authoring concern. A source with no .layout() is not the cause:
compile lays it out the way uip maestro flow format does and gives every
node its canvas size. The exception is an SDK older than 6.113.0, which
leaves every node on one row; the fallback is in
operate.md.
Do not run format on a merged brownfield file; it re-lays out the author's
canvas.
When the source sets .layout(), the misshapen node is the one with no entry, an entry at the wrong coordinates, or a container whose dim() no longer holds a body that grew.
In a greenfield source: add or move its at(x, y), resize with dim(width, height), and recompile rather than running format, which would discard every other entry too.
In a brownfield edit, fix it the same way in the decompiled source and merge again; merge applies a changed entry to the original node (operate.md). This needs @uipath/maestro-builder-sdk 6.115.0 or later; the older-SDK fallback is in brownfield.md.
Green validate, faulted debug. Structural correctness and runtime
correctness are different claims. validate proves the emitted .flow is well
formed; only a run proves the tenant resolves what it references. Start at
step 0.
Failure modes the builder removes
Do not spend triage on these — the compiler emits the structure that used to be missing. Verified against the SDK rather than assumed:
Classic .flow defect |
Why it cannot happen here |
|---|---|
variables.nodes[] missing, so $vars.X.output is undefined downstream |
compile emits the node variable declarations unasked — a four-step flow gets eight entries |
bindings[] missing on a resource node, giving "Folder does not exist or the user does not have access" |
compile derives the bindings from the node spec — an agent(…) step emits its name and folderPath bindings on its own |
A defect in this table showing up in a real run means the artifact was
hand-edited after compile, which is its own answer.
Evidence boundary
A diagnosis is only as good as what was read. Name the artifact the conclusion came from — the debug envelope, the incident, the deployed flow — and say when a cause is inferred rather than observed. "The connector is misconfigured" read off a timeout is a guess; the same claim read off an incident's message is not.
Open this reference as its own page
Document classify and Extract document
Exact signatures, fields, and defaults: documentClassify() and dynamicExtract().
The Extract document node (uipath.ixp.extract-document-builder) is opt-in:
add it only when the user names it. "We don't have a trained model yet" does
not name it. Every other extraction request, including one with no model yet,
goes to a published IXP model or an IXP project (ixp.md), never to
this node.
Two document steps that need no trained IxP fields: classification
(uipath.document.classify) labels a document, and the Extract document node
pulls fields against a taxonomy you author INLINE
(Two ways to author it).
Signatures: documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? });
dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? }).
.input({ file: types.file })
.step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
.step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
{ label: 'Extract invoice' })
.step('total', script({ code: 'return $vars.extract.output.result.output;' }))
At a glance
Classify a document (uipath.document.classify), or extract fields against an
INLINE taxonomy (uipath.ixp.extract-document-builder) instead of a published
IxP project's trained fields.
Signatures: documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? });
dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? }).
.step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
.step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
{ label: 'Extract invoice' })
Two ways to author it
The SDK factory, dynamicExtract(), takes no model argument. Compile
gives each step its processor, as uip maestro flow nodes create does:
- it writes
inputs.processorKey, one per step, the same on every recompile; - when it compiles the project's main flow inside a local solution (a folder
whose
.uipxlists the project), it writes the processor's resource file (resources/solution_folder/idpProcessor/extraction/<Label>.json), keeps it in step with the node on every compile, and declares it inbindings_v2.json. A compile with no.uipxabove it, such as Studio Web's candidates under/tmp, writes no file: the designer creates it.
So validate and packing pass with no CLI step after compile, and
decompile -> compile keeps the node and its key. Give the
step a label that says what it extracts: the processor is named after it.
.step('extract', dynamicExtract({ fileRef: input('invoice'), schema: invoiceTaxonomy }),
{ label: 'Extract invoice' })
Needs @uipath/maestro-builder-sdk 6.118.0 or later. An older SDK requires
model (compile fails reading modelName without it) and writes no
inputs.processorKey.
Upgrade the copy in use: npm install @uipath/maestro-builder-sdk@latest in a
workspace that has its own node_modules copy, else
npm install -g @uipath/maestro-builder-sdk@latest. Where that is not
possible, use the CLI.
The CLI commands author the same node in a flow that has no TypeScript
source: add it and wire fileRef per
extract-document-node.md. Never mix the two on
one flow: the next compile overwrites what the commands wrote.
Both routes need the same taxonomy, and
extract-document-taxonomy.md is where it is designed and
written. Write it without ids on either route: every field group and field
must carry a stable id, and both nodes schema set and compile mint them.
Compile keeps an id the source carries. For an entry with none it takes the
id the .flow it overwrites has for the same name (a group by its key, a field
by its name within that group), else mints one from that name, so a recompile
or an unrelated edit keeps it. It prints what it kept and minted:
compile: "extract" taxonomy ids: 1 group and 2 field id(s) kept, 0 group and 1 field id(s) minted
Matching is by name, so a rename mints a new id and detaches what is stored
against the old one. Before a rename, copy the entry's x-uipath-field-id
(or x-uipath-field-group-id) from the compiled .flow onto the renamed entry
in the source; decompile prints them, so a decompiled source already has them.
Treat a minted count after a rename as a dropped id, as set's
FieldIdsMinted (Reading the output):
restore the id and recompile. On an SDK
without builder-sdk#2054, the factory emits the schema verbatim and flow validate warns about every missing id; author with the CLI there.
Schema and outputs
schema is the extraction taxonomy: an object with prompt (the overall
instructions) and outputSchema (the field groups and the field types they
reference). It is emitted as the node's schemaDocument. check refuses the
content problems nodes schema set refuses, each under its own code. A bare
JSON-Schema object (properties alone) or the legacy {taxonomy, fieldTypes}
form is only a warning there (EXTRACT_TAXONOMY_BARE, _LEGACY), as in flow validate, but set refuses both and the processor gets no fields: fix either
warning before compiling. The codes are in
When it refuses. When check
reports none of these for a broken taxonomy, the SDK is older (no
builder-sdk#2055) and flow validate only warns about a wrong shape. The format, with a worked example, is
in extract-document-taxonomy.md.
Classification lands at out('classify', ...). What the node emits at run time
is a processed document, with the extracted values at result.output, one
property per field group holding its fields, and their page provenance under
result.attribution (Reading what it extracts).
Read a value with out('extract', 'result.output.<group>.<field>'). check
verifies the processed document's fixed keys (version, type, result,
taxonomy, metadata and the keys under them): a read of a key the document
does not have is EXTRACT_READ_UNKNOWN_FIELD, with the spelling to use.
ExtractionResult is one of those keys: it is the published-model node's
shape (ixp.md), not this one. Group and field names under
result.output are not checked against the taxonomy, so a misspelt one
(result.output.Invoice.Totl) still passes check. Copy them from the
taxonomy.
Evidence boundary
Both calls hit real document-understanding services — no local rung runs a
model. Offline validate proves the emitted shape (fileRef wiring, the
taxonomy, the classify success port); classification quality and extraction
values are platform evidence.
Open this reference as its own page
Error Handling
An error handler is separate from the preceding action: .step(name, action).onError(handler => ...). Read failures with h.err(field) or err(step, field), where field is code, message, detail, category, or status; response and element also exist at runtime. A handler may run recovery steps with h.step(...), then .return(...), .terminate(...), or .stepToRef(target).
element is the failing step's canvas label (display.label), not its id; the two are equal only when the step sets no label ({ label: 'Fail A' } fails with element: "Fail A"). A label is display text anyone editing the canvas can change, so route on code or message, never element.
At a glance
Route the immediately preceding action's failure through a handler. .stepToList(port, fn) runs a path from any port; .stepToRef(port, target) is a side exit that leaves success running. Never read the failed step's out(...) inside its handler: success output was never written. Choose deliberately among handling, rejoining, returning, terminating, and failing loud; test success and failure.
Reading the failure
err() writes $vars.<step>.error.<field>, while the compiler resolves where that family publishes its envelope; do not hand-write either prefix. Bare err(step) tests whether the step failed, is never rewritten, and is truthy for every family, including an envelope object.
Measured one debug run per family (2026-09-10):
| family | envelope in | <step>.error is |
|---|---|---|
| connector (every one) | <step>.error |
the envelope |
core.action.script |
<step>.error |
the envelope |
uipath.pattern.deep-rag |
<step>.error |
the envelope |
core.subflow |
<step>.error |
the envelope |
core.action.queue.create |
<step>.error |
the envelope |
core.action.http.v2 (managed: true) |
<step>.output |
the boolean true |
serialize rewrites exception-family reads so authored source stays uniform; a family move requires only a table edit. Never read a failed step's out(...) in its own handler (ERROR_ENVELOPE_VIA_OUTPUT).
flow validate warns EXPRESSION_DIAGNOSTIC for runtime-filled but undeclared element and response on any family (Property 'element' does not exist on type '<Step>_Error'), and for every managed HTTP envelope field whose rewritten <step>.output read is typed only as { error } (Property 'output' does not exist on type '{ error: <Step>_Error; }'). Accept exactly these diagnostics on reads written with err() or h.err(); any other EXPRESSION_DIAGNOSTIC is a read that resolves to nothing.
A handled script failure still applies its own { updates }; a sub-flow step and .loop() container do not. Put success-only updates on the following step.
Plain http({ managed: false }) no longer runs: the tenant returns 500 No handler registered for extension type 'Intsvc.HttpExecution', and its registry serves only core.action.http.v2. check warns HTTP_V1_RETIRED and refuses a handler there (HTTP_ONERROR_V1). Moving to the managed node is a behaviour change, not a rename: non-2xx responses fail the step instead of reaching success with statusCode, so a status branch becomes a handler reading err(step, 'status').
A .loop() can carry a handler: .onError() after .loop(...) wires the container error port, and body failure routes there. Its measured container envelope has the body's message in detail, the failing body's canvas label in element, and the instance completes; read it with h.err('detail'). Inside a loop body, end a step handler with .continue() to skip the item and continue to the next (loops.md).
A sub-flow handler catches failure in any child step. Measured fields are detail (inner step's message), element (the failing inner step's canvas label), and message (the family's generic text, Error invoking script task); the instance completes. To give a run one failure path, put its steps in one child flow, call it as the parent's single step, and attach one .onError() there instead of handling every step.
A .doWhile() can carry a handler like .loop(): .onError() after .doWhile(...) wires the container error port, and body failure reaches it with detail as the body's message and element as the failing body step's canvas label. Although core.logic.dowhile@1.0 lists no error handle, it sets supportsErrorHandling: true, so the product adds the handle from that flag.
.onError(...) is the error-port case of .stepToList(port, handler), which runs a path from any named port. If failure needs no work, name the target directly with .stepToRef('error', 'refund'); this is a SIDE EXIT, so success continues and chaining carries on.
.stepToRef(target) without a port leaves the default output port and HANDS THE PATH OFF; nothing may follow it in that list. Its target may be anywhere in the same scope, including BACKWARD of the naming step, because Flow JSON can express that.
Choosing the path
Do not add recovery merely because an error port exists. Decide whether the operation should fail loud, return an alternate answer, stop all work, or compensate and rejoin. An exhausted handler ends separately; use .stepToRef(...) only when failure should deliberately resume shared success-path work.
That separate End maps each flow output from its variable, like every End. A handler that sets outputs with { updates } still answers with them; an unset output produces a NO_RETURN warning naming it. Set it with { updates }, end with .return({ … }), or hand back with .stepToRef(...).
check refuses a ref to an unknown target, a target inside another port's path, or a target inside a LOOP BODY: each iteration reads currentItem / currentIteration, while an outside edge carries no iteration. It WARNS when a ref leaves a loop body (a break, which Flow has no node for) or crosses a parallel-arm boundary (Merge waits for every forked branch). These are best effort; run uip maestro flow validate to verify them.
Evidence
Test both sides. The failure case must prove the handler receives the expected service error and reaches its intended terminal or ref behavior; the success case must prove normal continuation bypasses the handler. One green case cannot establish both paths.
Open this reference as its own page
Evaluate — evaluators, eval sets, simulations, runs
Manage evaluators, eval sets, data points, and simulations with uip maestro flow eval; defining an inlineAgent(...) node does not create them. Every eval command takes --path <project-dir>, the directory containing project.uiproj.
Local add / list / remove edit project files and need no login. Starting a run does — run uip login first, and it needs a matching solution in Studio Web.
Probe the installed CLI once, then let it write the JSON formats and generated file references rather than hand-authoring them:
uip maestro flow eval --help --output json
Evaluators — how an output is scored
uip maestro flow eval evaluator add response-quality \
--type llm-judge-output \
--model gpt-4.1-2025-04-14 \
--description "Score the response against the expected result" \
--target-key '*' \
--path ./MySolution/MyFlow --output json
uip maestro flow eval evaluator list --path ./MySolution/MyFlow --output json
uip maestro flow eval evaluator remove <id> --path ./MySolution/MyFlow --output json
llm-judge-output produces evaluatorTypeId: "uipath-llm-judge-output-semantic-similarity"; always pin its model. Prefer exact-match, json-similarity, or contains for deterministic values.
Evals and eval sets
uip maestro flow eval set add "Smoke Tests" \
--entry-point start \
--path ./MySolution/MyFlow --output json
uip maestro flow eval add "basic case" \
--set "Smoke Tests" \
--inputs '{"request":"hello"}' \
--expected '{"reply":"hello"}' \
--path ./MySolution/MyFlow --output json
uip maestro flow eval list --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval remove <id> --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval set list --path ./MySolution/MyFlow --output json
uip maestro flow eval set remove <id> --path ./MySolution/MyFlow --output json
Most resources are addressed through their set. --set is required on eval list, eval remove, all three simulation commands, and every run verb including status and results; omission fails before execution with required option '--set <name>' not specified. Only set and evaluator commands omit it.
For --evaluators, use the generated evaluator id or filename, not its display name. Omitting --evaluators on eval set add links all existing evaluators.
Data-point input keys must match declared flow inputs. Declare them with .input({ … }) in source and compile before eval add; the command reads the compiled .flow and fails with Input "<name>" is not declared as an input variable in the flow when missing. Do not use uip maestro flow variable add: the next compile -o rewrites the .flow, making the edit disappear or collide with Variable '<name>' already exists. Inspect declarations in the .flow; variable takes no --path:
uip maestro flow variable list ./MySolution/MyFlow/MyFlow.flow --output json
Build expected outputs from real records; invented keys match no record and score a fault instead of an answer.
Simulations — stop an eval from really sending
A simulation stands in for a component, keyed by component id: its source step id, or the tool name for an inline agent's tool. It is scoped to one data point in one set; all three commands require --set and --data-point. add also requires --strategy: Static returns --mock-value verbatim, while Llm generates from --simulation-instructions. add also requires --component-type (connector, agent, hitl, or Node) unless --parent <agent-id> adds a child-tool simulation, which defaults to Node.
uip maestro flow eval simulation add <component-id> \
--set "Smoke Tests" --data-point <id> \
--strategy Static --component-type connector --mock-value '{"response":{"ok":true}}' \
--path ./MySolution/MyFlow --output json
uip maestro flow eval simulation list \
--set "Smoke Tests" --data-point <id> --path ./MySolution/MyFlow --output json
uip maestro flow eval simulation remove <component-id> \
--set "Smoke Tests" --data-point <id> --path ./MySolution/MyFlow --output json
--mock-value is the component's raw result; its top-level keys are the ones the node's outputs read as =result.<key>; open the node and match them:
- Connector and inline-agent nodes read
=result.response; pass{"response": <value>}. - A
hitlquick form mapsoutputto=resultandstatusto=result.Action; pass{"Action":"<outcome name>", "<fieldId>": <value>}.Actionis the outcome'sname, not its id.
{"status":"Approve","output":{…}} is wrong for a quick form: both status and output return null.
Before running a set more than once, simulate every side-effecting component. An unsimulated connector really sends once per eval, every run.
Running a set
uip maestro flow eval run start --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval run status <evalSetRunId> --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval run results <evalSetRunId> --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval run list --set "Smoke Tests" --path ./MySolution/MyFlow --output json
uip maestro flow eval run compare <evalSetRunId> --compare-to <evalSetRunId> \
--set "Smoke Tests" --path ./MySolution/MyFlow --output json
run start returns evalSetRunId and does not block. Poll run status until settled, then read run results. run compare takes both ids—the subject and --compare-to—to show whether a prompt or guidance change helped.
Never upload as part of an eval workflow
<!--skill-flavor:eval-no-upload:start-->Never run uip solution upload automatically here. Always ask first.
eval run start needs the solution in Studio Web. If it cannot resolve one, it fails with solution-id could not be resolved or a variant; never treat that as permission to upload. eval run start itself re-uploads and overwrites the matching Studio Web solution unless --solution-id and --project-id are passed, so ask before it too. If Studio Web assigns another id, eval run start and flow debug repoint local .uipx SolutionId and report Data.LocalSolutionIdUpdated (Path, From, To); keep and commit that change, or the next upload creates a second solution.
uip solution upload writes to Studio Web, creating or overwriting the solution matching local .uipx SolutionId; it needs no flag and raises no prompt. It can push work in progress to where teammates and triggers pick it up, send partial local state from a uip solution download back over whatever else moved, or discard divergent remote state. The overwrite is restorable only through the browser and only if --no-snapshot was not passed; recovery is after the fact, by the user, and does not undo work in progress already pushed to teammates and triggers.
Ask and offer either upload now with the user's acknowledgement, or pass --solution-id and --project-id for an existing Studio Web solution and plumb them through to eval run start.
Confirm what was written
After authoring, list the evaluator and eval set and read the generated JSON. Confirm the evaluator has the requested evaluatorTypeId, the set contains its generated file reference, and the entry point matches the flow.
Evidence boundary
A score is evidence about this flow's output on these inputs under these evaluators, not evidence that the flow is correct. An llm-judge-output score has model variance; one run moving a point or two is noise. Compare runs rather than reading one, and name the eval set and evaluator behind every reported number.
Open this reference as its own page
Connector Events
Exact signatures, fields, and defaults: onEvent(), waitForEvent().
A subscription starts a Flow or pauses a running path:
.trigger(onEvent({ connector, event, where?, filters?, connection, folder, version? })).step(name, waitForEvent({ connector, event, where?, filters?, connection, folder, version? }))- Both accept a generated trigger descriptor plus options.
connection and folder are required bindings.json labels. Without them, the node compiles to connectionId: null; uip maestro flow validate refuses it and check reports BINDING_MISSING first.
At a glance
Use an Integration Service event subscription to start or pause a Flow. Every id-valued where parameter must be a lookup() token. Run registry prepare <key> --action <event> to resolve it, write bindings, and store the vocabulary validated by check. Wrong-case filter fields are errors because the platform silently drops them. Generic record-created/record-updated events require object: '<Entity>', never object in where.
Follow the completion contract before debugging: an injected start payload tests downstream wiring, not subscription delivery.
Tenant discovery — check names it, prepare does it
Author the subscription with lookup() for every id-valued parameter, then run one prepare:
.trigger(onEvent({
connector: 'uipath-microsoft-outlook365', event: 'email-received',
where: {
parentFolderId: lookup({ connector: 'uipath-microsoft-outlook365', event: 'email-received' },
'parentFolderId').by('displayName', 'Inbox'),
},
filters: [{ field: 'subject', contains: 'Approval' }],
connection: 'outlook', folder: 'shared',
}))
uip maestro registry prepare uipath-microsoft-outlook365 --action email-received \
--resolve parentFolderId:displayName=Inbox
That one command replaces the manual sequence: it discovers the connection; writes both bindings.json entries (connection id and folder key, as connector-action prepare does); fetches the connection-scoped event definition; records a generic event's object decision (--object <name>, using the same matching ladder as actions); stores where/filter vocabulary in .flow-sdk/connectors-local/ for offline check; and records each --resolve in resolutions.json for compile.
check validates every where key and filters[].field against the prepared vocabulary. An unknown filter leaf is an ERROR, EVENT_FILTER_UNKNOWN_FIELD, because the platform would silently drop it and the deployed trigger would fire on events the filter should exclude. Prepare refuses an event object requiring a BYOA (bring-your-own-app) connection and reports usable connections, instead of a runtime fault with an unrelated webhook error. For a webhooks-mode event, it prints the URL-registration step; it cannot be tested locally, so deploy to test it.
Do not run uip is triggers objects / triggers describe / resources run list manually or paste ids into where: prepare performs the same calls deterministically, and pasted ids become invalid after a connection move. Before finishing, inspect inputs.detail.eventParameters and confirm it contains the selected id and that connection/folder bindings use the discovery connection.
contains is case-sensitive substring matching; preserve scenario casing. If a known tenant event is absent after refreshing the registry/cache, report a cache-generation gap. Do not invent a node type, binding, or field, or patch a prebuilt sample/cache entry to make the event appear.
Generic events: name the object
Most connectors expose their record events generically — record-created,
record-updated (Salesforce, ServiceNow, Jira, Dynamics, …). Data Fabric is
not one of them: its record events are curated, with the object built in.
One node type covers every object of the connection, so the subscription must
say which one with object. It is not an event parameter: these operations
take none, so where stays empty and check refuses a subscription that
omits object (EVENT_GENERIC_NO_OBJECT) or puts the object in where.
<!--skill-flavor:generic-event-import:start-->
import { RecordCreated, RecordUpdated } from './connectors/uipath-salesforce-sfdc.ts';
<!--skill-flavor:generic-event-import:end-->
// Start when an Opportunity is created with CloseDate before 2026-08-04.
.trigger(onEvent(RecordCreated, {
object: 'Opportunity',
filters: [{ field: 'CloseDate', lessThan: '2026-08-04' }],
connection: 'salesforce', folder: 'shared',
}))
// Pause until an Account record is updated.
.step('updated', waitForEvent(RecordUpdated, {
object: 'Account', connection: 'salesforce', folder: 'shared',
}))
The objects come from the bound connection, never from a guess. Prepare the
event for the object, as for any event (above); prepare matches the name
against the connection's objects. Without --object it refuses with
EVENT_OBJECT_REQUIRED and lists the objects the connection has:
uip maestro registry prepare uipath-salesforce-sfdc --action record-updated \
--object Account
The emitted node carries the object in inputs.detail.objectName and configuration, its event in eventType, and the platform-declared eventMode. Curated events such as Outlook email-received and OneDrive file-created have built-in objects; passing object to them is an error.
Started by an HTTP call
A caller that starts the flow over HTTP, such as another webhook or script, reaches it through the HTTP Webhook connector: onEvent({ connector: 'uipath-http-webhook', event: 'http-webhook', connection, folder }). Caller authentication is set on the connection when it is created in Integration Service; with header authentication, a missing or wrong header returns 401 and starts no run.
The event is webhook-mode. Read its URL with:
uip is webhooks config uipath-http-webhook --connection-id <CONNECTION_ID> --element-instance-id <ELEMENT_INSTANCE_ID> --output json
Both ids come from uip is connections list --all-folders --output json (Id, ElementInstanceId). The URL returns 404 until the flow is deployed with its trigger active.
Read the request from out('start', …):
- JSON-body top-level fields directly;
- parsed
bodyandheaders(header names lower-case); request_bodyandrequest_headersas JSON text, which are the fieldsfilterstake;eventType.
Query-string parameters are not delivered. Headers include the authentication header: never log or return headers whole. The caller receives only acceptance (200 with a webhookEventId), not flow output; a caller that needs the run's result is not served by this trigger.
Filter operators
A filter is { field, <operator>: value } with exactly one operator. The designer vocabulary compiles to the canvas's filterExpression:
| Operator | Value | Emitted expression |
|---|---|---|
contains, startsWith, endsWith |
text | contains(subject,'Invoice') |
equals, notEquals |
text, number or boolean | status=='open', priority==`3` |
lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual |
number, or an ISO date string | priority>`3` , to_number(dueDate)<to_number('2026-08-04') |
is, isNot |
always true |
hasAttachments==`true` , isRead!=`true` |
is/isNot are the canvas's "Is"/"Is not" tests and always compare with true; isNot: true also matches a missing field. For "is false," use equals: false. Any other is/isNot value is refused with EVENT_FILTER_BAD_VALUE.
Ordering a plain string is refused with EVENT_FILTER_BAD_VALUE: JMESPath compares numbers only, so the subscription would match nothing. Use a number, an ISO-8601 date, or a text operator. A backslash at the end of a filter or where value, or before another \ or a ', is refused with EVENT_FILTER_BACKSLASH, because JMESPath engines interpret \\ differently (the specification as one backslash, reference libraries as two), so the subscription could silently never match. A backslash before another character, such as C:\tmp or Finance\Q3, is retained and reads consistently.
Evidence boundary
A local start-trigger run injects a payload; it does not fire a subscription. For a wait, seed matching and nonmatching payloads to establish routing. Only a real platform event proves connection, scope, and subscription delivery.
Completion contract
Unless the request explicitly requires a live subscription witness, a connector-event start is done after the last edit when both hold:
uip maestro flow validatereturnsValidfor the emitted Flow.- The emitted
.flowhas the intended start-trigger type, scope/filter inputs, bindings, and downstream edges.
At most one bounded direct-input debug may be used for a downstream behavior question; stop when answered; it is not subscription proof. Do not poll or sleep on debug instances, create a scratch solution, or upload seed content solely to manufacture a trigger event.
If the stated acceptance bar requires live delivery, cause one real platform event and record that witness once. If the environment cannot provide it, report that boundary instead of repeating debug launches.
Open this reference as its own page
External agent and automation
An agent or automation hosted outside UiPath (CrewAI, Snowflake Cortex, Salesforce Agentforce, Power Automate) is a connector node: identify it by its node type, uipath.connector.<connector-key>.<operation>. The registry's Category (external-agent / external-workflow) is only a hint; a tenant may list the node as connector. It runs on a connection of that connector.
Find it
uip maestro flow registry search '<agent or connector name>' --output json # the uipath.connector.<key>.<operation> node type
uip maestro registry search '<agent or connector name>' --output json # is it in the connector library, or the tenant's catalog when none was pulled?
uip is connections list <connector-key> --all-folders --output json # an enabled connection and its FolderKey
Search a short name ('Cortex', not 'Snowflake Cortex'): a full product name can match only a connector's HTTP-request tool.
- In the connector library (Snowflake Cortex is): author it with
connector(...)like any connector (connector-params.md).<!--skill-flavor:external-agent-cli:start--> - Not in the library (CrewAI returns
"total": 0): prepare it, then author it withconnector(...)like a library operation.rawNodeis not an option for auipath.connector.*type.
Prepare it when the library lacks it
uip maestro registry prepare <connector-key> --action <operation>
prepare reads the tenant's node (uip maestro flow registry get) and the object's request fields (uip is resources describe). It writes the operation to ./.flow-sdk/connectors-local/, adds the connection to .flow-sdk/bindings.json, and prints the connector(...) call to paste. The source in .flow-sdk/ imports the module as ./connectors-local/<connector-key>.ts. For example, Salesforce Agentforce's Execute Salesforce Agent:
import { ExecuteSalesforceAgent } from './connectors-local/uipath-salesforce-agent.ts';
.step('ask', connector(ExecuteSalesforceAgent, { message: { text: input('question') }, agent_id: lookup(ExecuteSalesforceAgent, 'agent_id').byDeveloperName('<agent name>') },
{ connection: 'agent', folder: 'shared' }))
- Required inputs are the describe's
RequestFieldswithRequired: true, and the descriptor types them as required;registry getmay not list them (CrewAI'sinputs.email_content). A dotted field is a nested object in the source (inputs: { email_content: ... }); compile writes it back as the one keyinputs.email_content. - A picker input such as
agent_idis a lookup: authorlookup(...)as above, and record its id with the--resolve agent_id:DeveloperName=<agent name>thatprepareprints, rather than pasting an id (connector-params.md). - The node runs as the connector object says (
sync,asyncorhybrid). With@uipath/maestro-builder-sdk6.116.0 or later, compile writes that asinputs.detail.executionType, asnodes configuredoes, and the runtime picks the sync or async service type from it. Leave the definition's service type alone (Intsvc.AsyncAgentExecutioneven for a sync agent). Ifpreparewarns that Integration Service reported no execution type, runuip updateand prepare again. If it warns that an async or hybrid object names no event, the node has nothing to wait on: tell the user it may never finish. An older SDK writes no execution type, so the node runs under the definition's service type: upgrade withnpm install -g @uipath/maestro-builder-sdk@latest. - To run it,
uip solution resources refreshanduip maestro flow debug <Name>(CLI-LOOP.md); ask first (operate.md).<!--skill-flavor:external-agent-cli:end-->
Open this reference as its own page
Extract document node
Commands: uip maestro flow extraction check, uip maestro flow nodes create, uip maestro flow edges create, uip maestro flow validate.
Add this node to a new flow only when the user names it (Which extraction node the user wants). "We don't have a trained model yet" does not name it; that request goes to ixp.md.
An Extract document node (uipath.ixp.extract-document-builder) extracts named fields using taxonomy embedded in the .flow; it has no trained model or IXP project. Add, wire, and validate it; design taxonomy in extract-document-taxonomy.md.
uip maestro flow extraction check --output json
uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label '<name>' --input '{"fileRef":"=js:$vars.<upstream>.output.<field>"}' --position <x>,<y> --output json
uip maestro flow validate <file> --output json
Support for this node is new. If the CLI refuses the type, or an older CLI answers error: unknown command for nodes, say uip is outdated and ask the user to update.
Which extraction node the user wants
In a new flow, document extraction is a published IXP model, covered in ixp.md: the IXP project is built and deployed first, and the flow then runs against it. That holds when no model exists yet (ixp.md). Add the Extract document node to a new flow only when the user asks for it by name, or offer it when uipath-ixp reports IXP not enabled. In an existing flow, keep the extraction node it has (uip maestro flow nodes list <file> --output json shows its type); a builder node or its inline taxonomy stays on this guide. A published-model taxonomy belongs to uipath-ixp.
| Node | Node type | Where covered |
|---|---|---|
| Extract document | uipath.ixp.extract-document-builder |
this guide |
| Published IXP model — default | uipath.ixp.<project>.<version>-<folder> |
ixp.md |
| IDP processor resource | uipath.ixp.processor.<resource-key> |
not covered; add it in Studio Web |
The three uipath.ixp. families are not interchangeable. The processor variant looks the same and uses the same definition, but points to a solution processor resource and is a different type. The conveniences below apply only to uipath.ixp.extract-document-builder; a CLI-created processor node is incomplete and must be left to Studio Web.
At a glance
Add a descriptive node, wire its file, write taxonomy, bind the result, and validate. fileRef is the only author-supplied input and is required for validation. The processor arrives with the node; packing keeps it synchronized (Making it actually extract).
The loop
<!--skill-flavor:extract-find-flow:start-->- Find the flow. Edit a
.flowon disk. If the user describes a flow they are already building and none exists locally, it may live in Studio Web and need pulling down first; ask for its URL or solution id; nothing lists them (Starting from a flow in Studio Web).<!--skill-flavor:extract-find-flow:end--> - Check the tenant: run
uip maestro flow extraction check --output json. Any settled answer other thanAvailablestops the loop; an unsettled check is a question for the user (Check the tenant can run it). - Declare the input if absent: run
uip maestro flow variables create <file> invoice -d in -t file --description '<what the document is>'. ItsTriggerNodeIdis<trigger>in$vars.<trigger>.output.invoice. - Add the node with
--labelnaming what it extracts,--inputcarryingfileRef, and--positionon the canvas grid (operate.md, rule 1). Same model as an existing Extract document node:--inputalso carries that node'sprocessorKeyand"processorReadOnly":true, and step 5 is skipped (Making it actually extract). - Connect it with
edges create(Wiring the file it reads). - Write the taxonomy: extract-document-taxonomy.md.
- Bind the result to a flow output (Returning the result).
- Validate: run
uip maestro flow validate <file> --output json; it must returnValid. - Report what was added, where it reads its file from, which fields it extracts, and
nodes create's processor result: in a solution the resource is underresources/and travels with the.flow; otherwise it remains to be created (Making it actually extract). Taking the flow live is the user's step.
Check the tenant can run it
Before adding a new node, run:
uip maestro flow extraction check --output json
The check answers, for the signed-in tenant, whether extraction is on and whether any model exists. Data.Status is the result and Data.Reason explains it:
| Status | Meaning |
|---|---|
Available |
both gates open |
FeatureDisabled |
extraction is off; a tenant administrator must enable it |
ModelUnavailable |
extraction is on but no model is available |
ServiceUnavailable |
no document-extraction service is available |
Unknown |
the service answered without settling either gate |
Continue on Available; use When Extract document is not available for the other three settled failures. Unknown, non-zero exit, expired login, and old CLI do not establish unavailability: report the command result and ask whether to try adding the node; if nobody can answer, add it and report that the check settled nothing.
This gates only adding a new node. Local .flow and taxonomy edits, nodes provision, and validation go ahead whatever the status says; report the status alongside them.
Available proves only its two gates. Deploy or run may still refuse the configured model, a cluster-wide switch, model-based attribution, full layout parsing, OCR language packs, or target-folder permissions. Take the fallback in When Extract document is not available when one arrives. Do not call the node working after such a refusal and do not try folders in turn. If the refusal names the model, say which one the node carries and direct the user to Switching from one model to another; changing it is the user's step. If the user requested that model by name, say instead that this tenant cannot run it.
No other CLI command answers this question. registry search reports AvailableOnTenant: false for this node on every tenant because it comes from a builder, not the tenant node catalogue.
Adding the node
<!--skill-flavor:extract-sdk-mixing:start-->These commands edit the .flow file, so they do not mix with a project built from TypeScript source. A project initialized with --sdk-source compiles .flow.ts over CLI edits. Check for .flow-sdk/; if present, author the node in the source with dynamicExtract(): compile gives it its processor as nodes create does (document-pipeline.md). On an SDK older than 6.118.0 (compile fails reading modelName with no model, or writes no processorKey), build this flow in a separate project without source and use only the CLI. Do not alternate between the two and re-apply CLI edits after each compile.
--label sets the canvas name and seeds the node id; name the document and fields, not "Extract", since flows often have two extraction nodes. Run uip maestro flow nodes list <file> --output json to obtain the minted id; later commands use it. nodes create supplies inputs.schemaDocument (empty taxonomy with six built-in field types), inputs.modelConfig (working model defaults), inputs.source (minted extraction identifier), inputs.processorKey and inputs.processorName (processor; in a solution its resource file is written, otherwise output says ResourcePending and pack creates it later (Making it actually extract)), and outputs.output and outputs.error (named instance ports for downstream $vars). It has no top-level model block: the slim manifest model belongs in definitions[]; validation rejects an instance copy.
Keep modelName, folderKey, and other deployment fields under inputs as empty strings. They identify a trained IXP deployment and belong to ixp.md; this node requires only fileRef.
Wiring the file it reads
fileRef is a runtime reference to an upstream output or flow variable, not a value:
"fileRef": "=js:$vars.<trigger>.output.invoice"
Set it at creation when the upstream node already exists:
uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract Invoice' --input '{"fileRef":"=js:$vars.<trigger>.output.invoice"}' --position <x>,<y> --output json
Use the plain =js:$vars.… string. The structured form {"type":"jsExpression","expression":"$vars.…","fieldType":"object"} validates only when fieldType is present. A literal filename or hand-built attachment object remains literal and does not resolve upstream.
Use the trigger's declared file field; for a SharePoint-backed event declaring ReferenceID, wire $vars.<trigger>.output.ReferenceID. Read the trigger contract; do not guess or insert a download step.
For direct document input, run:
uip maestro flow variables create <file> invoice -d in -t file --description 'The invoice document to extract' --output json
This makes $vars.<trigger>.output.invoice resolvable; declaration and wiring are separate. A fileRef to an undeclared input still validates, with an EXPRESSION_DIAGNOSTIC warning naming the missing input; treat that fileRef warning as an error.
Connect the graph:
uip maestro flow edges create <file> <upstream-id> <extract-id> --output json
uip maestro flow edges create <file> <extract-id> <downstream-id> --output json
edges create uses the default source port, so an outgoing edge without a flag leaves on success. Graph ports (success, error) differ from variable outputs (output, error). Repeating an edge is safe and reports the existing edge.
Reading what it extracts
Read values at $vars.<extract-node-id>.output.result.output. The output port carries a whole processed document with top-level version, type, result, taxonomy, and metadata; result contains output (values keyed by taxonomy field), attribution (page locations keyed by JSON Pointer into output), and traceContext. Use result.output for values and the port itself for the whole document.
The embedded definition is authoritative: read definitions[] for this node type at outputDefinition.output.schema.properties. (registry get answers Node not found because no tenant manifest carries this type.)
ExtractionResult is the published-model node's output, not this one. Its ExtractionResult.ResultsDocument.Fields[] belongs to ixp.md, and the shapes are not interchangeable.
The error port carries failures. Wire it with edges create --source-port error only when an unreadable document should follow a recovery path; leaving it unwired makes the flow fail loudly, often the right behaviour.
Returning the result
Declare an output, add an End node, connect the extract node, then bind the output directly in the End node:
uip maestro flow variables create <file> extractedData -d out -t object --description 'The structured data extracted from the document' --output json
uip maestro flow nodes create <file> core.control.end --label 'End' --position <x>,<y> --output json
uip maestro flow edges create <file> <extract-id> <end-id> --output json
Write this into the End node's outputs block; there is no CLI command for the binding:
{
"id": "end1",
"type": "core.control.end",
"typeVersion": "1.0",
"display": { "label": "End" },
"inputs": {},
"outputs": {
"extractedData": {
"type": "object",
"description": "",
"source": "=js:$vars.<extract-id>.output.result.output",
"var": "extractedData"
}
}
}
var names the global and source fills it. For a subset or reshaped result, put a script between the extract node and End and bind that script's output. There is no variableUpdates block on an End node; validation rejects that shape.
Validating
Run:
uip maestro flow validate <file> --output json
Validation requires fileRef to be a $vars reference, both output ports to be named on the instance, and no top-level model block. A newly created node fails only on unwired fileRef; that is expected.
Making it actually extract
<!--skill-flavor:extract-processor-sync:start-->At runtime, the service resolves inputs.processorKey to a solution resource containing its taxonomy. The CLI provisions it while you author: nodes create mints the key and writes the resource; nodes schema set writes it for a node without a processor or updates it in place; uip solution pack regenerates it from the node so the deployed processor matches the latest taxonomy. Keep the .flow and resources/ file together when storing, uploading, or versioning the solution.
A node from before CLI provisioning, written by hand, or compiled by an SDK older than 6.118.0 (no inputs.processorKey after compile) arrives without a processor; validate reports an error. Repair the whole file by running:
uip maestro flow nodes provision <file> --output json
Never hand-write processorKey or give a node another node's key as its own. Each processor holds one node's definition; duplicate authorship makes pack or publish refuse. Deliberate sharing requires the reader to take the author's processorKey and set inputs.processorReadOnly: true; neither half works alone and validation rejects a read-only node without a key.
A node's model is its processor: its taxonomy and model settings together. A second node that uses the same model as an existing one reads that node's processor rather than getting a copy of its own; never a new processor synced to the same taxonomy and model. Supply both inputs at creation, since nothing adds them later:
uip maestro flow nodes create <file> uipath.ixp.extract-document-builder --label 'Extract credit note' --input '{"fileRef":"=js:$vars.start.output.creditNote","processorKey":"<the authoring node key>","processorReadOnly":true}' --position <x>,<y> --output json
A read-only node has no resource or taxonomy; it runs the author's processor. nodes schema set changes nothing that deploys when run on it.
A package without a processor faults at runtime:
errorCode 461008 — Invalid IDP.Extraction node input
'processorKey' is required and must be a GUID, unless a processor name and folder are provided to resolve one
It may first complete in a fraction of a second and publish an empty object. Treat that as a missing processor, not a taxonomy that matched nothing: provision, then pack or publish again.
<!--skill-flavor:extract-after-save:start-->After a pulled-down flow has been through Studio Web, pull the solution again before further CLI edits so the designer's saved changes are not overwritten; it saves continuously. The node retains its type, processorKey, and resource file. A Studio Web processor variant (uipath.ixp.processor.<key>) is a different type: nodes schema set refuses it and its taxonomy must be edited in Studio Web.
When Extract document is not available
uipath-ixp reporting IXP not enabled is not this case; extraction check decides. Report the reason from Data.Reason or the deploy/run message, even when it names something this guide does not describe. Never add the node anyway, and never substitute a placeholder when working extraction was requested.
First, look for a published IXP model:
uip maestro flow registry search 'uipath.ixp' -f 'type:startsWith=uipath.ixp' --output json
If a suitable model exists, verify its taxonomy covers the request, then report the tenant result, identify and justify the replacement, and build it via ixp.md. State what it does not cover: published models extract only trained fields.
If none exists, stop. State the tenant, reported reason, absence of a trained model, and that enabling extraction is a tenant administrator action covered in UiPath product documentation. Do not scaffold a solution, write a flow, or put mock() in the extraction position. A placeholder is permitted only for a validate-only topology explicitly showing where extraction belongs, never as expected extraction.
Unsupported Capabilities
These requests are outside the skill. Recognize them, give the standard response, and route the user. Do NOT enter discovery (uip --help, grep, source reading). For uncovered settings or resources, do not seek a CLI path or edit .flow, .flow.ts, or project files. Say it is unavailable here and link Extract document documentation.
| User request | Standard response |
|---|---|
| "Pick the best model settings for these documents" / "tune the node for speed or accuracy" | "I can't change the node's model configuration from here. See Model configuration." |
| "Use GPT-5 / Gemini Pro" / "change the extraction model" | "I can't change the extraction model of this node from here. See Choosing the most suitable model and Switching from one model to another." |
| "Change the extraction strategy" / "use the Standard / Advanced strategy" | "I can't change the extraction strategy from here. See Configuring the model." |
| "Switch the language to Arabic / Japanese" / "set language to Auto-detect / Latin-based / Extended" | "I can't change language support from here. See Language support." |
| "Set layout parsing to None / Full" / "turn layout parsing on / off" | "I can't change layout parsing from here. See Layout parsing." |
| "Use Rules-based / Model-based attribution" | "I can't change attribution from here. See Attribution." |
| "Add model overrides" / "set the overrides JSON" | "I can't set model configuration overrides from here. See Overrides." |
"Import this IXP taxonomy file" (a file with entity_defs and label_groups) / "Export the taxonomy as an IXP file" |
"I can't import or export IXP taxonomy files from here. Use Import/Export in the flow designer: Importing and exporting taxonomies. I can show the taxonomy, replace it from a flow-format file, or copy it from another Extract document node." |
| "Upload these documents" / "delete a test file" / "tag these documents" / "show the documents not annotated yet" / "reuse the other Extract node's documents" | "I can't manage the node's test documents from here. See Uploading sample documents." |
| "What would it extract from this file?" / "refresh the predictions" | "I can't run or refresh predictions for this node. See Reviewing predictions." |
| "Confirm these values" / "annotate the documents" | "I can't annotate test documents. See Validating predicted values." |
| "Set up the evaluators" / "how should this field be scored?" | "I can't configure the node's evaluators. See Running an evaluation." |
| "Run an eval" / "evaluate on this one file" / "what's my score?" / "compare the eval runs" / "improve the accuracy" | "I can't run or read evaluations for this node. See Running an evaluation and Evaluating model performance." |
Evidence boundary
This is offline file authoring except the tenant registry lookup. validate proves wiring and shape: resolvable upstream fileRef, named ports, valid taxonomy, and a processor. It does not prove extraction: that takes a deploy and a run against real documents, which usually sends the taxonomy back for tightening.
Open this reference as its own page
Extract document taxonomy
Commands: uip maestro flow nodes schema get and uip maestro flow nodes schema set.
An Extract document node (uipath.ixp.extract-document-builder) extracts from the inline taxonomy at inputs.schemaDocument in the .flow: groups, fields, field types, and model instructions. Read or replace it with:
uip maestro flow nodes schema get <file> --node-id <id> --output json
uip maestro flow nodes schema set <file> --node-id <id> --schema @<taxonomy.json> --output json
Both commands edit the .flow without login. --schema accepts JSON or a file when its value starts with @.
These commands are new. If the CLI returns error: unknown command 'schema' with "Result": "ValidationError", tell the user to update uip; this is not a bad node or flow.
This guide assumes the node exists. For adding it, wiring fileRef, when it applies over a published IXP model, and why these commands do not survive a .flow-sdk/ project (the next compile overwrites the taxonomy), see extract-document-node.md.
Starting from a flow in Studio Web
<!--skill-flavor:extract-brownfield:start-->For a Studio Web flow, work on a local copy: download, edit, and upload it. Identify it by solution id or the Studio Web URL's solutionId query parameter. If neither was provided, ask for either; if Studio Web was not mentioned and no local .flow exists, ask whether the flow is in Studio Web. When in doubt, ask, rather than working it out. Nothing lists Studio Web: uip solution downloads, uploads, and deletes only by id. Search endpoints and stored CLI credentials are not ways around asking; say either a link or an id works, and continue once it arrives.
Run:
uip login status --output json
uip solution download <solution-id>
The download creates a directory named for the id containing the flow project. Run this guide's commands against its .flow. If login expired, report it and ask the user to log in with uip login.
Push the finished taxonomy with uip solution upload from the downloaded solution root and tell the user where to find the updated flow.
The documents uploaded to the node
<!--skill-flavor:extract-eval-files-path:start-->Studio Web sample documents are downloaded under:
<Project>/evals/<dataset-id>/eval-files/
<!--skill-flavor:extract-eval-files-path:end-->
List evals/ rather than guessing its GUID dataset directory. Files retain their extensions but contain:
BINARY_FILE:application/pdf:2073
---BASE64---
JVBERi0xLjMKJe…
Drop the first two lines and decode before reading:
mkdir -p decoded
for f in <Project>/evals/*/eval-files/*; do
tail -n +3 "$f" | base64 -d > "decoded/$(basename "$f")"
done
Decode per dataset directory when multiple datasets contain duplicate filenames, then read the decoded copies.
At a glance
Read sample documents, design and write the taxonomy, fix rejections, and validate:
uip maestro flow nodes schema get Flow/Flow.flow --node-id extractDocument1 --output json # what is there now
uip maestro flow nodes schema set Flow/Flow.flow --node-id extractDocument1 --schema @taxonomy.json --output json
uip maestro flow validate Flow/Flow.flow --output json
set replaces the whole document, not a patch (What set does for you). Read documents first: relying only on the user's sentence misses actual fields and invents absent ones.
The loop
- Collect samples. Check and decode uploaded documents (The documents uploaded to the node). Without samples, ask for representative documents even if fields were listed; if none are supplied, design from the stated fields and say so in the report.
- Read them. Perform one full
Readper decoded document; it returns text and image for digital and scanned files, so PDF tooling is unnecessary. - Design the taxonomy under the rules below and write it to a JSON file.
- Write: run
uip maestro flow nodes schema set <file> --node-id <id> --schema @<path> --output json. - Fix rejections. Exit 3 means a rule-violating schema; fix each problem
Data.Issueslists at its path and rerun the same command. - Validate: run
uip maestro flow validate <file> --output json; it must returnValid. - Report what was created,
Data.ProcessorSync, andData.ResourceFile. The write stores the schema in that file too; keep it with the.flow. Taking the node live is the user's decision.
The document
The written document has prompt (overall extraction instructions) and outputSchema (an OpenAI structured-outputs JSON Schema whose top-level properties are groups and $defs are field types). Do not write config: set rebuilds it from inputs.modelConfig, so supplied config is discarded.
Here's a worked invoice taxonomy example, which illustrates the format specification:
{
"prompt": "Extract the header of the invoice and every billed line. Values are on the page; do not compute totals yourself.",
"outputSchema": {
"type": "object",
"additionalProperties": false,
"required": ["Invoice", "Invoice > Line Items"],
"properties": {
"Invoice": {
"type": ["object", "null"],
"description": "The invoice header, which appears once per document.",
"additionalProperties": false,
"required": ["Invoice Number", "Invoice Date", "Total"],
"properties": {
"Invoice Number": {
"$ref": "#/$defs/ft-exact-text",
"description": "The invoice number as printed, without a leading # or the word 'Invoice'."
},
"Invoice Date": {
"$ref": "#/$defs/ft-date",
"description": "The date the invoice was issued, not the due date and not the delivery date."
},
"Total": {
"$ref": "#/$defs/ft-monetary-quantity",
"description": "The amount payable including tax, usually the last line of the summary block."
}
}
},
"Invoice > Line Items": {
"type": "array",
"description": "One entry per billed line in the table of charges.",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["Description", "Quantity", "Amount"],
"properties": {
"Description": {
"$ref": "#/$defs/ft-inferred-text",
"description": "What was billed, from the line's description column."
},
"Quantity": {
"$ref": "#/$defs/ft-number",
"description": "How many units the line bills for. Leave empty where the line has no quantity."
},
"Amount": {
"$ref": "#/$defs/ft-monetary-quantity",
"description": "The line total, not the unit price."
}
}
}
}
},
"$defs": {
"ft-exact-text": { "title": "Exact Text", "type": ["string", "null"], "format": "verbatim" },
"ft-inferred-text": { "title": "Inferred Text", "type": ["string", "null"] },
"ft-date": { "title": "Date", "type": ["string", "null"], "format": "date" },
"ft-number": { "title": "Number", "type": ["string", "null"], "format": "decimal" },
"ft-monetary-quantity": { "title": "Monetary Quantity", "type": ["string", "null"], "format": "monetary" },
"ft-boolean": { "title": "Boolean", "type": ["boolean", "null"] }
}
}
}
Field groups
Each outputSchema.properties entry is a group. A single-occurrence group is "type": ["object", "null"] with fields directly under properties; a repeating group is "type": "array" with fields under items.properties. Model repeating tables as arrays.
Nesting is by property name: Invoice > Line Items is a child of Invoice; both remain top-level properties, separated by space-greater-than-space. set derives and stores the parent back-reference, so do not write it. A top-level group names no parent. Start with one document-type group and put each table or section beneath it.
Field types
Fields use $ref entries in outputSchema.$defs; the node initially provides:
| Use it for | $defs key |
Returns |
|---|---|---|
| Exact printed value | ft-exact-text |
verbatim text |
| Derived, summarized, ambiguous, or plain text | ft-inferred-text |
text |
| Date | ft-date |
calendar date |
| Non-money count or quantity | ft-number |
decimal, preserving printed scale |
| Currency amount | ft-monetary-quantity |
amount with currency |
| Yes/no | ft-boolean |
true or false |
Carry the whole $defs block through unchanged. set replaces the document; omitting an entry removes that type, and every $ref must resolve within the same block. Prefer a stricter type only when certain; otherwise use ft-inferred-text.
A Choice is the only type you add; add one only when its complete set of allowed values is small, fixed, and evident from documents or user instructions — a status column, not a description column. Use an ft- key with a URL-safe suffix (letters, digits, ., _ or - only, so the $ref naming it needs no escaping) and give every entry a title, for example:
"ft-payment-status": { "title": "Payment Status", "type": ["string", "null"], "enum": ["Paid", "Unpaid", "Partially paid"] }
Never infer enum values from what appears in the samples: a value they did not show still extracts, and an enum that omits it loses it. For large or open sets, use ft-inferred-text and list likely values in field instructions.
Names
Group and field property keys, and field-type title values, must be 64 characters or fewer, counting spaces. The entire nested key, including >, counts. Names must not be empty, begin with punctuation, a symbol, or a space, and must be unique among siblings. Prefer short wording from the document.
Instructions
The document prompt, every group description, and every field description must be 4096 characters or fewer. Write all three: types describe value shape; instructions identify the correct value on the page. "The date the invoice was issued, not the due date" earns its place; "The invoice date" repeats the field name and tells the model nothing. User instructions for a field outrank document inference; record them even if every sample contradicts them (e.g. a reference number said to exclude a branch prefix).
Size
These limits are not CLI-enforced but improve extraction:
- Keep groups to a readable number of fields; 25 is a reasonable ceiling (the IXP taxonomy quota, which this node does not share, caps groups at 25).
- Keep distinct field types few; each distinct Choice is another type.
- A long Choice is usually a text field in disguise.
What set does for you
- Stable ids: Groups and fields carry
x-uipath-field-group-idandx-uipath-field-id, used by annotations, evaluator settings, and taxonomy history. First writes mint ids; later writes preserve supplied ids and assign a missing entry the id of the same-named replaced entry. An id belongs to one entry: never copy one onto a second group or field. - Model settings: It rebuilds them from
inputs.modelConfig. - Validation: A non-schema or limit violation returns exit 3 and changes nothing on disk.
- Draft protection: When someone left an editing session open in Studio Web, the node carries that draft and
setstops.--discard-draftproceeds and throws the draft away; pass it only when the user asked in this conversation. Headless or CI: leave the node unchanged, report the draft andDraftIssueMessages, and stop; the request is not done. Run nonodes provisioneither: it writesinputs.processorKeyinto the node. Report a missing processor instead. Never hand-editinputs.schemaDocumentto bypass this.
Editing a taxonomy that already exists
Run get first, then send the complete document back. Preserve every existing id, including through renames, because ids connect annotations and evaluator settings; missing ids cause position-based fallback and can repoint annotations. Preserve every existing group and field's description, type, and id exactly as returned; add information only in new groups, fields, or prompt. Send all groups, $defs, and the overall prompt because set replaces rather than patches. Never write from scratch over existing content; if the user wants a fresh start, first say what will be lost.
Reading the output
get returns the stored document under Data.Schema with original key casing, so it can be edited and sent straight back. Data.HasDraft reports an unsaved Studio Web edit; Data.DraftIssueMessages says what the editor found wrong with the draft.
set returns:
| Field | Means |
|---|---|
Groups, Fields, FieldTypes |
counts in the written taxonomy |
GroupIdsPreserved, FieldIdsPreserved |
entries retaining existing ids |
GroupIdsMinted, FieldIdsMinted |
new entries receiving ids |
BusinessChecksDropped |
checks attached to removed ids |
DraftDiscarded |
whether an unsaved draft was discarded |
ReplacedLegacyDocument |
superseded {taxonomy, fieldTypes} form was replaced, so no id was retained |
ProcessorKey |
processor through which the schema deploys |
ResourceFile |
processor file under the solution containing the deployable schema; this write creates or updates it, and it belongs in the same change as the .flow |
ResourcePending |
why a newly gained processor has no resource file; pass on what creates it |
ProcessorSync |
whether packing rebuilds that processor; it does not for a read-only mirror (inputs.processorReadOnly) or tenant-published processor (inputs.processorFolderPath), whose deployed schema this write does not reach |
On an edit, check FieldIdsMinted and BusinessChecksDropped before reporting success. A minted id where a rename was intended means the id was dropped: its annotations no longer point at the field, and its business checks are gone.
When it refuses
| Exit | Message | What to do |
|---|---|---|
| 3 | Schema document failed validation |
Read Data.Issues for paths and problems. A missing parent is included: Nested field group "<key>" has no parent group "<parent>". Parent > Child needs Parent in the same document; if an existing group was clearly meant as parent, rename one key to match—never add an empty parent. |
| 3 | Invalid schema document |
Send prompt and outputSchema; the document is not a schema. |
| 3 | Legacy schema document shape |
Send { prompt, outputSchema }, not {taxonomy, fieldTypes}. An existing legacy node document is replaced and reports ReplacedLegacyDocument: true. |
| 1 | Node "<id>" carries an unsaved Schema Editor draft |
Someone's unfinished editor session is on the node. Ask before passing --discard-draft; it throws their work away. Headless: stop and report. |
| 1 | Invalid --schema JSON |
The argument did not parse; prefer --schema @<file> for sizeable JSON. |
| 1 | Cannot read the schema file |
The @ path is absent or unreadable; this is a path error, not malformed schema. |
| 1 | node not found, or wrong node type | Run uip maestro flow nodes list <file> for ids and types. Only Extract document nodes carry a taxonomy. |
On the SDK route, check reports the same content problems before compile, one code per rule, with the path and the problem in the message (SDK with builder-sdk#2055):
| Code | Rule it enforces |
|---|---|
EXTRACT_TAXONOMY_NESTING |
nesting by name: A > B needs a group A, and a top-level group names no parent (Field groups) |
EXTRACT_TAXONOMY_REF |
every field names a field type, and every $ref resolves inside $defs (Field types) |
EXTRACT_TAXONOMY_LIMIT |
names within 64 characters, a nested group's whole composed key included; instructions within 4096 (Names, Instructions) |
EXTRACT_TAXONOMY_DUPLICATE_ID |
no id on two groups or two fields (What set does for you) |
EXTRACT_TAXONOMY_FIELD_TYPE |
a $defs key needs no escaping in a $ref; every field type has a title (Field types) |
EXTRACT_TAXONOMY_STRUCTURE |
every group, field and container is the shape the Schema Editor reads |
EXTRACT_TAXONOMY_BARE, EXTRACT_TAXONOMY_LEGACY (warnings) |
a bare JSON Schema, or the {taxonomy, fieldTypes} form, in place of { prompt, outputSchema }; set refuses both, so treat either as an error |
No code checks sibling-name uniqueness (Names): each name is a property key, so JSON already makes siblings unique.
Evidence boundary
Everything here is offline. set and flow validate prove schema shape, resolved references, and name/instruction limits—not extraction accuracy. Only running the node on real documents shows that; expect a round of tightening afterwards, mostly in the instructions.
When Data.ResourceFile is present, the write landed in both the .flow node and the processor copy; debug runs and deployed extraction read that copy, so carry it with the .flow. Data.ResourcePending means no second file was written. Data.ProcessorSync identifies cases where the schema never reaches deployed extraction. Report these values. Taking the node live remains the user's decision.
Open this reference as its own page
Form trigger
Exact signatures, fields, and defaults: formTrigger().
A person starts the flow by submitting a form (core.trigger.form). The
submitted values ARE the flow's inputs — read them exactly like any other
input (input('name') / $vars.start.output.name).
Signature: .trigger(formTrigger()) — the factory takes no arguments.
export default flow('expense-request')
.input({
invoiceAmount: types.number,
reason: types.string,
urgent: { type: types.boolean, default: false },
})
.trigger(formTrigger())
.step('assess', script({ code: 'return $vars.start.output.invoiceAmount > 500;' }))
.return({})
.build();
At a glance
A person starts the flow by submitting a form (core.trigger.form); the
submitted values ARE the flow's inputs.
export default flow('expense')
.input({ amount: types.number, reason: types.string })
.trigger(formTrigger())
.step('log', script({ code: 'return $vars.start.output.amount;' }))
.build();
Locally --input supplies the values; no rung renders a form.
The derived schema
The form's fields are derived from .input() at compile time, the same rule
the designer applies to a flow's arguments: one field per input, the field id
IS the input's name (so submitted values line up by name), the label is the
name sentence-cased (invoiceAmount → "Invoice amount"), the field type
follows the input's type, and a field is required exactly when its input
declares no default. There is nothing to author on the trigger itself —
shape the form by shaping the inputs.
check warns (FORM_TRIGGER_NO_INPUTS) when the flow declares no inputs: the
person would get an empty form with only a submit button.
A types.file input becomes an upload field whose value is a reference to the
file, not its content (author.md).
The form takes no title, description or accepted file types.
Evidence boundary
No local rung renders a form — --input supplies the values locally, so a
green ladder proves the trigger type, the derived schema, and that the graph
runs. A person actually seeing and submitting the form is platform evidence.
Open this reference as its own page
Human-in-the-Loop
Exact signatures, fields, and defaults: hitl().
Pause a Flow for a person with the default inline form, quick-form node, deployed Action App, or document-validation station.
Signature: hitl({ variant?: 'quick-form' | 'action-app' | 'document-validation', app?, document?, title?, priority?, labels?, recipient?, fields?, outcomes, outcomePorts?, exposeError?, legacyCompleted? }).
.var('status', types.string)
.stepSwitch('review', hitl({ title: 'Review invoice',
fields: [{ id: 'comment', type: 'text', direction: 'output' }],
outcomes: ['Approve', 'Reject'] }), [
{ value: 'Approve', body: (b) => b.step('pay', script({ … }), { updates: { status: lit('approved') } }) },
{ value: 'Reject', body: (b) => b.step('notify', script({ … }), { updates: { status: lit('rejected') } }) },
])
.return({ status: v('status') })
Each outcome exits as outcome-<slug>; a task with outcomes never emits completed. On the default node, multiple outcomes route automatically. .stepSwitch provides one arm per outcome on the default node, quick-form, or pinned task; do not combine it with outcomePorts: false (STEP_SWITCH_NO_EXITS); drop the flag, or keep it and route on out('<step>', 'Action'), sending every outcome value somewhere: an unhandled Reject continues down the main path. Arms behave like .switch() arms: terminal .return() arms end, others CONVERGE, so later steps fan in. That is what makes the single .return() above correct, and what a flow VARIABLE is for: each arm assigns it with { updates } and the one return reads it. Wire every outcome. A missing arm compiles to an End that leaves outputs unset (STEP_SWITCH_EXIT_UNROUTED); an unhandled .stepToList outcome stalls the run when picked (HITL_OUTCOME_UNROUTED); action: 'End' ends it instead but still needs an edge.
At a glance
Use .stepSwitch for per-outcome routing. Use .step() followed by .switch() on out('<step>', 'Action') when the decision is deliberately data (recorded in an output, compared in one place); ask for it with quick-form or outcomePorts: false on the default node. Every outcome continuing to one step with nothing reading Action is the unreachable-outcomes case, not a third shape. A plain .step() continues the FIRST outcome on a default task that routes per outcome, and the others need routes; otherwise it continues EVERY outcome on separate edges. The latter applies only with outcomePorts: false, variant: 'quick-form', { version: '1.0' }, one outcome, or all outcomes having action: 'End'. Quick-form defaults to it; outcomePorts: true or .stepSwitch enables per-outcome routing while version remains 1.0. A default multi-outcome task otherwise uses definition 1.1. An explicit { version: '1.0' } pin wins, keeping decompile → compile exact on a deployed flow; outcomePorts: true still routes per outcome on 1.0.
When .step() continues every outcome, an action: 'End' outcome goes to its own End (or joins the .return() when that is the next step); the runtime never reads action, so only the graph ends the run. If every outcome is action: 'End', nothing may follow except .return() (HITL_UNREACHABLE_AFTER). Do not route the FIRST outcome with .stepToList; its port is already the main path (flow-builder-sdk#741). On a task that does not route per outcome, .stepToList('outcome-…') is refused (HITL_OUTCOME_PORTS_OFF); use outcomePorts: true or .stepSwitch, never with outcomePorts: false.
Delivery, fields, and routing
recipientis{ channels?, assignee: { type, value? }, connections? }. Channels:'Slack' | 'teams' | 'Email' | 'ActionCenter'; assignee types:user,group,staticEmail,staticGroupName,workload,roundRobin,custom. Omit it for default channels: Email + Action Center on default and'quick-form'; Action Center only on'action-app'and'document-validation'. Omitted recipients and assignees withoutvaluecreate an unassigned task.userandstaticEmailrequirevalue; otherwisecheckwarnsHITL_RECIPIENT_NO_USERwith@uipath/maestro-builder-sdk6.61.1 or later; absence of an older-SDK warning does not prove validity.labelsis one comma-separated string shown in Action Center.- Field
directionis'input'(shown),'output'(asked), or'inOut'(pre-filled/editable; providevalue). The reviewed value returns at its field id. An asked field writes to Flow variablevariable(name only, novars.prefix), defaulting to its field id; read it withv('<variable>'), or bind a shown field withvalue: v('<variable>'). Studio Web names it<Step>_<field>;variable: 'P_comments'writesvars.P_comments. Preserve decompiled names or downstream reads failEXPR_UNDECLARED_REF.checkreportsHITL_FIELD_VARIABLEfor avars.prefix, dotted path, orvariableon a non-direction: 'output'field. The answer is also alwaysout('<step>', '<id>'). SDK 6.44.0+ is required; older SDKs ignorevariable, writevars.<id>, causeEXPR_UNDECLARED_REF, and decompile warns it cannot write the designer row back<!--skill-flavor:field-variable-sdk-upgrade:start--> — upgrade withnpm install -g @uipath/maestro-builder-sdk@latest.<!--skill-flavor:field-variable-sdk-upgrade:end--> - Field
typeis one of 11 quick-form types:'string','number','integer','float','double','boolean','date','datetime','file','object','array'.'text'and'date-time'are accepted as older spellings of'string'/'datetime'; leave them as they are in existing source; bound-variable types such as'string[]'and'string | null'decompile as'array'and'string'. - Picker types are
'singleSelect'and'enum'(single-choice dropdown,stringanswer) or'multiSelect'(multi-select,arrayanswer), withoptions: [{ id, value, label }]and all three keys required. Never replace them with'string'or'array'; preserve spellings and options in decompiled forms. SDK 6.31.9+ is required; older SDKs reportHITL_FIELD_TYPE_UNKNOWN(ignore itstype: 'string'hint),<!--skill-flavor:field-type-sdk-upgrade:start--> so upgrade withnpm install -g @uipath/maestro-builder-sdk@latest.<!--skill-flavor:field-type-sdk-upgrade:end--> - A field also takes the platform's settings keys, with the platform's names and shapes:
controlType('text','textarea','numberInput','datePicker','dateAndTimePicker','checkbox','dropdown','radioGroup','multiSelect','checkboxGroup','fileUpload'),defaultValue(string or multi-select list),colSpan(1 to 12),rules({ id, conditions: [{ when, is?, ... }], operator?, effects }),requiredMessage, anddescription. Preservetype: 'string', controlType: 'dropdown'and itsoptions; removingcontrolTypemakes a text box. Decompiled canvas forms keep these keys and stay editable.checkreports invalid values asHITL_FIELD_SETTING_INVALID,FLOW_AGENT_ESCALATION_FIELD_SETTING_INVALIDon an agent quick-form escalation, orINLINE_AGENT_ESCALATION_FIELD_SETTING_INVALIDon an SDK older than 6.88.2. SDK 6.35.0+ is required; older SDKs drop these on decompile and omit them on compile,<!--skill-flavor:field-settings-sdk-upgrade:start--> so upgrade withnpm install -g @uipath/maestro-builder-sdk@latest.<!--skill-flavor:field-settings-sdk-upgrade:end--> A row key the SDK has no option for (avariableother thanvars.<id>, a key the platform's schema does not define, abindingon an asked field) comes back in the field'sextra, for instanceextra: { variable: 'vars.order.note' }. Compile writes it back as it was, so you can edit the node; keepextraas decompile printed it. To change a key that rides inextra, change it inextra: setting the typed option of the same name next to it is refused (HITL_FIELD_EXTRA_CONFLICT). Never addextrato a field you write: use the typed keys above.flow decompilestill warns that a key "cannot write back" for a value the platform refuses or drops itself (acolSpanoff the grid, an unknown key insideoptions); editing that node drops that key. Needs@uipath/maestro-builder-sdk6.104.1 or later (itsdist/api-index.mdlistsFormFieldRowExtra); an older SDK warns for every such key instead: leave that node untouched so merge keeps the original, or edit its JSON in the.flowdirectly.
Each outcome gets outcome-<slug> (lowercase; non-alphanumerics become -) on the default node and quick-form at every definition version. The designer derives handles from inputs.schema.outcomes and shows manifest completed only when none exist (flow-workbench, getEffectiveHitlHandleCustomization). A completed edge on a task with outcomes is stale and is remapped to the PRIMARY outcome by Studio Web and the converter, losing other paths; check refuses it (HITL_COMPLETED_PORT_GONE). The only exception is existing legacyCompleted: true: decompile writes it when the task already leaves on completed, no-edit round trips preserve it, and check warns HITL_LEGACY_COMPLETED; never add it. If the task asks you to fix that task's routing, replace it with outcomePorts: false or explicit outcome routes. A decompiled outcome may be { name: 'Reject', id: 'outcome-1778015958049' }; preserve it, route its port as outcome-outcome-1778015958049 with .stepToList, and use the name for .stepSwitch. New outcomes need no id. exposeError: true additionally exposes out('<step>', 'error') and selects definition 1.2 (default node only).
Wire every outcome:
| Shape | Behavior |
|---|---|
.stepSwitch(name, hitl({…}), arms) |
One arm per outcome, value naming it; no tacit exit; arms converge; missing arms warn STEP_SWITCH_EXIT_UNROUTED. |
.step() + .stepToList('outcome-<slug>', …) on a per-outcome task |
FIRST outcome is the main path; other arms do not converge and each gets its own End, mapping every output from its variable (NO_RETURN warns if an arm leaves one unset). |
.step() on a non-per-outcome task |
Every outcome continues to the next step on its own edge; route later with out('<step>', 'Action'). |
A default multi-outcome task routes per outcome unless one of the five conditions in ## At a glance applies. In .parallel(), the task must not be the arm's last step and no outcome may be action: 'End'; only one outcome fires, so the join would wait forever. check refuses these as HITL_FAN_OUT_INTO_JOIN (last step) and HITL_END_OUTCOME_IN_PARALLEL (End outcome). Add a step after it inside the arm so all outcomes reach that step, including after .stepSwitch; do not end an arm with .return(), and put .return() after .parallel(). An empty switch arm plus another arm ending in a step is also refused as HITL_FAN_OUT_INTO_JOIN; a missing switch arm, or one ending in .return(), is refused as HITL_END_OUTCOME_IN_PARALLEL; give every outcome an arm.
Action-app and document-validation outcomes live in the app; completed is their only designer handle and .step() leaves on it. Route downstream with out('<step>', 'Action'). An approve/reject task whose outcomes all lead to one place still compiles and flow validate answers Valid, so the mistake surfaces only at runtime; check warns HITL_OUTCOMES_UNREACHABLE when all outcomes continue to one step and nothing reads Action; warnings do not replace routing. flow validate accepts a declared outcome-<id> edge on every version and refuses undeclared handles with Edge references undeclared source handle "outcome-nope". On a 1.1/1.2 node with outcomes, flow validate refuses completed, but not on 1.0 or quick-form; use check and the SDK rules.
variant: 'document-validation' takes document: { extractionResult, storageBucket?, documentId?, render?, taxonomy? }, no fields; bind extractionResult to the upstream extract step's ExtractionResult. render: 'custom' requires taxonomy and takes app.
Action App inputs and answers
For variant: 'action-app', pass the app schema as app.actionSchema, beside name, key, folderPath, and inputs (keys matching the schema's inputs), using either spelling unchanged:
- Coded action app
action-schema.json: eachinputs,outputs,inOuts, andoutcomessection is{ type: 'object', properties: { <name>: { type, required? } } }. - Platform action schema from solution resource
spec.actionSchema(resources/solution_folder/app/codedAction/<App>.json): each section is an array of{ name, type: 'System.String', required, isList }. It is a JSON string; parse and pass the object orcheckrefuses it (HITL_APP_SCHEMA_INVALID).
If neither file exists, ask the user for the schema; never write one by hand. Without a schema, every app.inputs value reaches the app as a string, and check warns HITL_APP_NO_SCHEMA. check errors on undeclared inputs (HITL_APP_INPUT_UNKNOWN), unbound required inputs (HITL_APP_INPUT_REQUIRED), unknown outcomes (HITL_APP_OUTCOME_UNKNOWN), or invalid schema (HITL_APP_SCHEMA_INVALID). Schema outputs and inOuts are typed answer fields readable via out('<step>', '<field>'); without the schema, such reads fail HITL_READ_UNKNOWN_FIELD. Nested object properties are not checked.
Decompile preserves the schema: it prints app.actionSchema when it compiles exactly to the node's inputSchema; otherwise, including hand-edited titles, it prints the node schema as app.inputSchema. Preserve that form and provide actionSchema or inputSchema, not both.
SDK 6.59.1+ is required; older SDKs lack actionSchema on app, so TypeScript rejects it (check that dist/api-index.md lists PlatformActionSchema),
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
Variant judgment
Use the scenario's explicit variant. Default and quick-form own fields in the Flow; action-app delegates to a deployed app or an app in this solution. For app tasks, resolve key, name, folder, and argument names from the same tenant resource and pass its schema as app.actionSchema (Action App inputs and answers).
A coded Action App in the SAME solution is not yet deployed to a folder. Use location: 'in-solution' and omit folderPath:
.step('review', hitl({
variant: 'action-app',
app: { name: '<App>', key: '<APP_RESOURCE_KEY>', location: 'in-solution' },
outcomes: ['Approve', 'Reject'],
}))
- Where the key comes from.<!--skill-flavor:app-sibling-register:start-->
Register the app project and refresh resources (
uip solution projects add, thenuip solution resources refresh). The<!--skill-flavor:app-sibling-register:end--> generatedresources/solution_folder/app/codedAction/<App>.jsoncarriesresource.key→keyandresource.name→name. Never invent the key; the full recipe is in agent.md. - Never give
folderPathwithlocation: 'in-solution'; a literal'solution_folder'reaches the engine and is refused;checkrefuses any non-emptyfolderPath(HITL_APP_LOCAL_HAS_FOLDER). Decompiled in-solution tasks with folder''or'solution_folder'return aslocation: 'in-solution'. Do not transfer this rule to an agent escalation's app, which is an agent resource and does carry'solution_folder'(agent-resources.md). - SDK 6.66.2+ is required; older SDKs reject
locationonappandcheckasks for missingfolderPath,<!--skill-flavor:inso-app-sdk-upgrade:start--> so upgrade withnpm install -g @uipath/maestro-builder-sdk@latest.<!--skill-flavor:inso-app-sdk-upgrade:end--> <!--skill-flavor:inso-app-uip-floor:start--> Nouipbuild checked so far preserves the app folder when packing this task (1.204.0 and 1.205.0-preview.269 both drop it), causing runtime170004 Invalid input for the HITL task. Tell the user an in-solution app task needs auiprelease carrying the fix; do not retry the run.<!--skill-flavor:inso-app-uip-floor:end-->
Evidence boundary
Offline execution scripts the selected action and output fields; it proves wiring and downstream routing, not that a real task appeared or a person participated. Live evidence should preserve the Action Center task identity, human-selected outcome, supplied answers, and resumed path.
Open this reference as its own page
HTTP
Exact signatures, fields, and defaults: http().
Always author http({ managed: true, ... }); non-2xx responses take the error
path. managed: false (core.action.http) no longer runs: the tenant answers 500
No handler registered for extension type 'Intsvc.HttpExecution', even though
check only warns (HTTP_V1_RETIRED). A managed: false step you edit gets
the same switch, and every read of its statusCode becomes an .onError()
handler (error-handling.md); leave an untouched one alone.
An older SDK's HTTP_V1_RETIRED text saying to "keep managed: false" for a URL without a connection is outdated; still use managed: true.
At a glance
Managed HTTP routes non-2xx responses through its error port and exposes a JSON
response body as a parsed value. Its success output is { code, headers, body }
with code a number; there is no statusCode. Reading output.code needs
@uipath/maestro-builder-sdk 6.90.1 or later; an older SDK's check rejects it
(HTTP_READ_UNKNOWN_FIELD), so on it read neither field and route a status with
.onError() + err(step, 'status'),
or upgrade the copy uip uses:
npm install -g @uipath/maestro-builder-sdk@latest, or
npm install --save-dev @uipath/maestro-builder-sdk@latest for a workspace copy.
A status check is an .onError() handler reading err(step, 'status'), not a
branches condition on statusCode.
Signature: http({ method?, url, managed, connection?, folder?, targetConnector?, headers?, query?, body?, contentType?, timeout?, retryCount?, returns?, branches? }).
.step('getPolicy', http({ method: 'GET', url: policyUrl,
managed: true, returns: { limit: 'number' } }))
.onError((h) => h.return({ status: err('getPolicy', 'status') }))
.step('limit', script({ code: 'return $vars.getPolicy.output.body.limit;' }))
Connector auth needs both connection and folder from .flow-sdk/bindings.json; omit both bindings for manual/implicit mode.
A branch-<name> side exit uses .stepToList.
Choosing the node
Use managed for every request. A scenario that says “standalone” or
core.action.http still gets managed: true.
Live product evidence shows that the node exposes an application/json body as
a parsed value. Declare its top-level fields with returns and read them
directly; do not apply JSON.parse to a body declared by returns. A non-JSON
body remains opaque unless its live media type establishes a scalar contract. An
offline local run is not evidence for the product-CLI contract either way: follow
the task's named evidence mode and use live debug for product response shape.
The definitions default timeout to PT15M and retryCount to 0. Override
them only when the scenario calls for different operational behavior.
Managed authentication
Managed HTTP has two authentication modes. Omit connection and folder for
manual/implicit mode, which a URL that needs no connection uses. Implicit managed
HTTP goes out through Integration Service's shared egress, which public APIs may
rate-limit (429 Daily API request limit exceeded); that is infrastructure, not
a reason to switch to managed: false. CLI builds before cli#5384 also refuse
implicit managed HTTP in uip maestro flow debug (Connection ImplicitConnection not found in Resource Catalog).
To reuse an Integration Service HTTP connection, provide both symbolic names
from bindings.json; the compiler resolves them into the
node detail and the emitted flow's resource bindings:
.step('profile', http({
managed: true,
method: 'GET',
url: '/me',
connection: 'spotifyHttp',
folder: 'shared',
returns: { display_name: 'string' },
}))
{
"bindings": [
{ "name": "spotifyHttp", "resourceKey": "<uipath-uipath-http connection id>" },
{ "name": "shared", "resourceKey": "<folder key>" }
]
}
Connection mode emits authentication: "connector", targets
uipath-uipath-http, and treats url as a path relative to the connection's
configured base URL. Supplying only one of connection or folder is an error.
A secret the call needs, such as a header token or basic credentials, belongs in
that connection. The builder has no node that reads an Orchestrator asset or
credential, so a token written into headers sits in the flow source as plain
text.
For an HTTP fallback authenticated by another connector, set its connector key
as targetConnector. The node remains the managed HTTP wrapper, while the
proxied request reuses that connector's authentication:
url is the vendor's own API path (/emoji.list, /chat.postMessage), not the
resource Path from uip is resources list (/emoji_list returns a vendor 404).
Use the plain method, not an admin.* variant, unless asked:
.step('emoji', http({
managed: true,
method: 'GET',
url: '/emoji.list',
connection: 'slack',
folder: 'shared',
targetConnector: 'uipath-salesforce-slack',
}))
targetConnector requires both bindings.
Failure fields
The envelope shape and how to read it: error-handling.md.
On managed HTTP code is a string and status a number. The server's body and
headers are not parsed; they appear only as text inside detail. An unhandled
non-2xx raises incident 102001 (observed for 404).
Response branches
branches: [{ name, condition }] declares extra branch-<name> exits routed
with .stepToList('branch-<name>', …). A managed branch fires only with SDK
6.90.1 or later; an older SDK writes the condition without =js: and no branch
fires, not even on a 200. A non-2xx fails the step and never reaches a branch:
route it with .onError() + err(step, 'status'). Names must be unique and
constant conditions are rejected by check.
Evidence
An offline replay proves the graph and chosen response shape. A live request is the evidence for endpoint reachability, response media type, authentication, and the service's actual status/body behavior.
The node defaults to timeout: 'PT15M' and retryCount: 0 when omitted.
It deserializes the response body, so read out('fetch', 'body.items')
and let returns declare the body's top-level fields.
Open this reference as its own page
Inline Agent
Exact signatures, fields, and defaults: inlineAgent().
An inline agent is defined in this Flow project and may use tenant context, callable tools, and human escalation.
Signature: inlineAgent({ model, systemPrompt, userPrompt, inputs?, returns?, source?, temperature?, maxTokenPerResponse?, modelMaxTokens?, maxIterations?, mode?, guardrails?, context?, tools?, escalation? }).
At a glance
Define an autonomous agent with optional resources.
.step('triage', inlineAgent({ model: 'gpt-5.4', systemPrompt: 'Return a result conforming to the output schema. category: billing | technical | account.',
userPrompt: 'Classify {{input.body}}', inputs: { body: input('body') },
returns: { category: 'string' },
guardrails: [{ id: 'no-pii', $guardrailType: 'custom', name: 'Block PII', selector: { scopes: ['Agent'] },
enabledForEvals: true, action: { $actionType: 'block', reason: 'PII detected' },
rules: [{ $ruleType: 'always', applyTo: 'inputAndOutput' }] }] }))
tools also accepts mcp, a2a, clientside, httpRequest, and function kinds (agent-resources.md); attach memory with the CLI, not inlineAgent (agent-resources.md); use escalation with variant: 'quick-form' for an inline form. Set mode: 'advanced' to select the Advanced harness.
Model and answer judgment
returns is the typed answer contract: prompts must make the requested decision explicit and describe every field ("Return a result conforming to the output schema. <field>: <how to fill it>.") and must not request JSON text, which makes the model pack its whole answer into one string field. Select a tenant-available model; run uip agent model list. Static checks validate wiring and output shape, not semantic quality.
Context grounding
Context signature: { name, id, folderPath?, folderKey?, query?, retrievalMode?, resultCount?, threshold?, fileExtension? }.
Resolve the tenant index. If you know its name, use solution resources list below.
Discover what exists with the uip context-grounding bridge, which reports every index with its folder.
To resolve an index, do not use uip maestro flow registry (node manifests), uip maestro registry (connector library), or uip or folders list.
uip solution resources list --kind Index --source remote --search "<index-name>" --output json
Map Key → id, Name → name, Folder → folderPath, and FolderKey → folderKey. id is the index GUID (Key), the resource node type's tail. check reports FLOW_AGENT_CONTEXT_NO_ID for blank or non-GUID id, and compile refuses it too (SDKs older than 6.88.2 spell it AGENT_CONTEXT_NO_ID). Give folderPath: the resource file has no index id, so type plus folder locates the index. Decompile entries may include nodeId / source / label; see brownfield.md. Omit them in new flows.
Local execution has no semantic retrieval service: answers are ungrounded even when wiring exists. Platform evidence must establish that the intended index was used and its retrieved knowledge influenced the answer.
<!--skill-flavor:cg-bridge:start-->Activate the existing Python environment and run setup once before list/search; setup is the command itself, not a setup --help probe:
source .venv/bin/activate
uip context-grounding setup
uip context-grounding list --folder-path "<folder-path>" --format json
uip context-grounding search \
--index-name "<index-name>" --query "<one bounded evidence query>" \
--folder-path "<folder-path>" --limit 5 --format json
Use --folder-key instead of --folder-path when that is the known identity. The delegated command uses --format json, not the outer CLI's --output json spelling. One search answering the grounding claim is enough; do not repeat paraphrases solely for confidence.
Tools
Tool signatures:
{ kind: 'builtin', tool: 'analyzefiles' | 'summarize' | 'batchtransform', ... }{ kind: 'connector', connector, operation, connection, folder, version?, object?, name?, description? }{ kind: 'process' | 'agent' | 'api' | 'flow' | 'maestro', key, name, folderPath, inputs?, returns? }{ kind: 'ixp', projectId, name, description?, versionTag?, attachment? }
For a sibling project, a process / agent / api / flow / maestro / function tool uses key = resource.key from resources/solution_folder/process/*/<Project>.json (the tail of its uip maestro flow registry list --local tool type) and folderPath: 'solution_folder'. A ProcessOrchestration project (folder processOrchestration, tool type …tool.processorchestration.*) is kind: 'maestro', never 'process'; every other kind is its tool type's namespace. A tool has no location or projectId. Declare it on inlineAgent so compile writes its resource.json; a node created with uip maestro flow nodes create gets none.
A connector tool needs connection and folder, with bindings.json labels resolved like connector()'s (see bindings.md). Missing either produces FLOW_AGENT_TOOL_CONNECTOR_NO_CONNECTION from check (INLINE_AGENT_TOOL_CONNECTOR_NO_CONNECTION on SDKs older than 6.88.2). Write the
labels on the tool, then run
uip maestro registry prepare <connector-key> --action <operation>: it reads the
tool's connection / folder from the source and writes both entries under them.
A connector tool's description overrides the text the model is told the tool does; otherwise the library's operation description is used.
A tool is invoked by the model, not by a control-flow edge. Local execution skips tool resources, proving wiring but not invocation. A live test needs a tool-specific side effect or returned witness.
Human escalation
Escalation signature: { name, description?, app: { key, name, folderPath?, inputs?, outputs? }, recipients?, outcomes?, taskTitle?, priority?, labels? }.
Whether and when to escalate is model judgment; completion also requires a deployed app and a human. Local execution proves only resource and contract wiring. Live evidence must show the task, reviewer outcome, and resumed-agent behavior.
Live-evidence limit
Headless local live mode calls a real model but substitutes a reachable model and remains ungrounded: it has no tenant tool loop or human escalation. Treat it as evidence that a real prompt produced the declared shape. Product debug is evidence for the configured model and cloud resources.
Compile emits the node plus a stable <source>/agent.json sidecar. Prompt variables use {{input.<name>}}; inputs binds those names to flow references and returns declares what the agent hands back.
Guardrails and harness mode
guardrails is Agent Builder's own array, carried on the node and sidecar. Each rail is $guardrailType: 'custom' (with rules) or 'builtInValidator' (with validatorType + validatorParameters), plus id, name, selector: { scopes: ['Agent'|'Llm'|'Tool'] }, an action (block with a reason, filter over fields, or log with a severity), and enabledForEvals.
Custom rules are $ruleType: 'word' | 'number' | 'boolean' over a field selector, or 'always'. A rail without scopes or with an empty rules array can never fire; check rejects both. File-capable built-in validators take an extra validatorParameters entry { $parameterType: 'enum', id: 'detectionScope', value: 'Text' | 'Files' | 'Both' }, determining whether the validator reads text, run files, or both. Inline agents inherit standalone low-code behavior unchanged; the sidecar is a projected agent.json. Scope coverage, caps, and recipes live in the low-code guardrails files guide of /uipath:uipath-agents.
mode: 'standard' | 'advanced' selects the harness; naming it selects the node's 1.3 definition (omitting it keeps 1.2 byte-identically) and sets the sidecar's settings.mode. Guardrail/harness behavior is runtime-side; offline rungs prove only emitted shape.
Open this reference as its own page
IxP Extraction
Exact signatures, fields, and defaults: ixpExtract().
Run a published Intelligent eXtraction Platform project on a Flow attachment.
Signature:
ixpExtract({ project, modelName, name, folderName, fileRef, pageRange?, versionTag?, folderPath?, description? }).
.step('extract', ixpExtract({ project: ixpNodeType,
modelName: 'invoice-model', name: 'Invoice Extractor',
folderName: 'Shared', fileRef: out('start', 'invoiceFile') }))
At a glance
Copy project, modelName, folderName, folderPath, and versionTag from the tenant registry; never construct them. For read-only model questions, run one registry search 'uipath.ixp'; never fan out registry get across hits.
Listing published models
For "What document extractors can I add to this flow?", "what IxP models can I use here?", "list published extractors", or "what extraction nodes are in the registry?" (read-only Q&A, not build requests), run:
<!--skill-flavor:ixp-list-commands:start-->uip login status --output json # without login, tenant IxP nodes are hidden
uip maestro flow registry search 'uipath.ixp' -f 'type:startsWith=uipath.ixp' --output json
<!--skill-flavor:ixp-list-commands:end-->
Present each Data[] entry's DisplayName, NodeType, and Version as a table, then stop.
- Do NOT call
registry geton search hits: search contains the answer. Useregistry getonly when authoring one specific node; it resolves ONE node's authoring identity. - Do NOT scaffold, run
uip maestro flow init, write a.flow.tsor.flowfile, or mock. IfData: [], runuip maestro flow registry pull --forceonce and search again (reads are cached for 30 minutes). If still empty, state that no IxP models are published.mock()is for build-time planning, not listing Q&A.<!--skill-flavor:ixp-no-login:start--> - Do NOT log in for the user. If
uip login statusshows logged-out, tell the user to runuip loginand stop; listing without auth returns OOTB-only results and is misleading.<!--skill-flavor:ixp-no-login:end--> - Search only
uipath.ixp(lowercase), neverruntime,document extractor,extractor, or uppercaseIXP. - Do NOT switch to the
uipath-ixpskill:uip ixp projects ...lists IxP-product projects, not Maestro wiring. - Do NOT use
uip maestro flow process listor Orchestrator folder iteration; they enumerate deployed flow process instances, not published models. - Do NOT guess
uip maestro flow list-*oruip maestro ixp list-*subcommands; none exist and there is no fallback. - A
uipath.agent.resource.tool.ixp.*hit from a broaderixpsearch is the agent-tool variant, not a flow extraction node. Treat it as no extraction model published and stop after that one broader check; do not iterate registry searches.
Resource identity
This is the AUTHORING path, for the one model a step will run; for listings, use Listing published models. Copy the complete node type and its companion defaults. The node type is tenant/version identity, not a string to reconstruct:
uip maestro flow registry search '<project hint>' \
-f 'type:startsWith=uipath.ixp' \
--output-filter '[?AvailableOnTenant].NodeType' --output json
uip maestro flow registry get '<node-type>' \
--output-filter '{project:Node.nodeType,modelName:Node.inputDefaults.modelName,folderName:Node.inputDefaults.folderName,folderPath:Node.inputDefaults.model.folderPath,versionTag:Node.inputDefaults.versionTag,taxonomyProject:Node.inputDefaults.projectName}' \
--output json
Registry reads are cached for 30 minutes. If the model is missing, run uip maestro flow registry pull --force once and search again. registry get is the authoring source of truth for ONE node. Copy project, modelName, folderName, folderPath, and versionTag from that response; do not switch to uip ixp projects ... or reconstruct the deployment through other IxP APIs. --output-filter runs against Data, so get paths start at Node; the projection avoids the full schema.
To read selected extraction fields, inspect only these two result-item schemas:
uip maestro flow registry get '<node-type>' \
--output-filter '{scalarResultMembers:keys(Node.outputDefinition.output.schema.properties.ExtractionResult.properties.ResultsDocument.properties.Fields.items.properties),tableResultMembers:keys(Node.outputDefinition.output.schema.properties.ExtractionResult.properties.ResultsDocument.properties.Tables.items.properties)}' \
--output json
Scalar results are ExtractionResult.ResultsDocument.Fields[]; table results are ExtractionResult.ResultsDocument.Tables[]. In both, FieldName identifies the model field and Values carries extracted values.
If no suitable published extractor exists: for a runtime or published-model requirement, report the missing capability and ask whether to build one with uipath-ixp; for a validate-only topology showing where extraction belongs, put mock() in the extraction position, complete and validate the surrounding flow, and report the placeholder as the capability gap. Do not block validate-only topology on unavailable extractors or downstream endpoints when placeholders preserve the requested graph. pageRange is a product string; 1-5 is illustrative because no local grammar is published.
File input from a connector event
Read the trigger's outputResponseDefinition and pass its exact file-reference field to fileRef; for example, a SharePoint-backed event that declares ReferenceID is wired as fileRef: out('start', 'ReferenceID'). This direct connector-event-to-IxP shape passes product validation; do not add a download action merely to change it in a validate-only flow.
The SDK emits that out(...) handoff in the one envelope the IxP validator accepts, a plain expression string:
"fileRef": "=js:$vars.start.output.ReferenceID"
Do not replace it with { "type": "jsExpression", ... } or a hand-built attachment object. Add a download action only when the discovered trigger contract has no file-reference field and requested runtime behavior requires file bytes.
Joined document-event recipe
For a joined document event, resolve documentCreated from its live connection, copy the identity object extractor from registry get (see Resource identity), pass the trigger field directly to extraction, and pass the whole result directly to delivery:
const documentCreated = {
connector: 'uipath-microsoft-onedrive', event: 'file-created',
connection: 'documents', folder: 'documentsFolder',
};
export default flow('archive-card-intake')
.trigger(onEvent(documentCreated))
.step('extract', ixpExtract({
...extractor,
fileRef: out('start', 'ReferenceID'),
}))
.step('deliver', http({
method: 'POST', url: 'https://catalog.example.test/cards', managed: true,
body: out('extract'), contentType: 'application/json',
}))
.build();
Downstream output
out('<ixp-step>') is the extraction result object and may be forwarded whole, including as an HTTP request body. Pass it directly; no serializer inspection or taxonomy lookup is needed for that shape.
A model taxonomy is needed only to select named fields. If the trained model version is known, run uip ixp deployments get-taxonomy '<taxonomyProject>' --version <number> once. Retry the same command at most once, only for RetryLater or transient 5xx; do not retry validation errors or RetryWillNotFix, and do not use uip ixp projects ... to reconstruct deployment. If that retry fails, use defensive reads from Fields[] or Tables[], state assumed field names, and finish the compile/validation loop. This is interim guidance for UiPath/cli#3512.
Recovery and evidence
Wire .onError(...) when unreadable documents or no-match results need recovery; otherwise failing loudly may be correct. Local execution uses an extraction fixture and proves wiring only. Require product debugging only when the acceptance bar requires proof that the chosen model processed a real file or returned semantically correct fields. For validate-only bars, green product validation plus intended emitted wiring is complete.
The compiler also emits the project's ixpDeployment bindings.
Open this reference as its own page
Loops
Run a body once per collection member: .loop(name, collection, bodyFn, options?). Keep per-item dispatch and decisions in the body. Write values needed after the loop to a .var() via a body step's { updates }; parallel results differ (parallel: true in Loop options).
Loops are sequential by default (parallel: false). In the body, read $vars.<loop>.currentItem and $vars.<loop>.currentIteration, or v('<loop>.currentItem') from the builder. The item is named after the LOOP, never the collection: there is no $vars.item, $vars.currentItem, or $vars.<collection>; a branch or step deciding on the item names the loop, so loop eachIssue reads $vars.eachIssue.currentItem.priority, never $vars.item.priority, which resolves to nothing and takes the false arm on every iteration without erroring. A one-armed branch (rest of the iteration in its yes arm) skips the rest of one iteration without terminating the run: when its condition is false, that iteration completes and the loop advances. A non-2xx HTTP result fails its step and faults the loop; end an .onError() handler on that step with .continue() to skip that item (Loop options).
currentIndex is legacy loop 1.0.0 only. On default 2.4 it is undefined; check rejects it with UNKNOWN_LOOP_FIELD and suggests currentIteration - 1 for a 0-based index. Do not rely on currentIteration's exact base: 2.4 documents 1-based, but local flow-debug currently reads 0 for the first item and the cloud runtime is unverified (flow-builder-sdk#874). If the result depends on the number, confirm it with a live uip maestro flow debug run (ask first).
At a glance
Every .loop() emits core.logic.loop 2.4. Body writes use { updates }, never a mutation node. Read $vars.<loop>.currentItem and $vars.<loop>.currentIteration, not legacy currentIndex. Options are parallel: true, completionCondition (checked after each iteration), body.break() (exits the loop), and body.continue() (advances to the next item).
Loop options
.loop() emits the 2.4 definition with inner start/continue/break handles, matching the registry and designer. Emit legacy 1.0.0 only with { version: '1.0.0' }; it uses body from output, a back-edge into loopBack, and currentIndex. On 1.0.0, body.continue() works; breakEnabled and body.break() fail check with LOOP_VERSION_UNSUPPORTED. completionCondition passes check on 1.0.0 with @uipath/maestro-builder-sdk 6.86.25 or later; older SDKs fail check with LOOP_VERSION_UNSUPPORTED. parallel: true on 1.0.0 compiles only to round-trip a canvas 1.0.0 loop and check warns LOOP_PARALLEL_LEGACY; 1.0.0 is not confirmed to run iterations in parallel. For a new parallel loop, omit version (2.4).
parallel: trueruns iterations concurrently. Their{ updates }writes overwrite one another in no fixed order, so a.var()updated by all iterations retains only some writes. Read results after the loop from$vars.<loop>.outputinstead: one entry per item in collection order, each{ <bodyStep>: { output } }. Do not use parallel when a body step readscurrentItem; iterations do not isolate it (30 items produced 26 distinct values, runCompleted, no warning), so run that loop sequentially. Entries omit HTTP steps, and a step that did not run in a pass carries the previous pass's value; therefore do not read either from$vars.<loop>.output.completionConditionis checked after each iteration and stops the loop when true. It requires@uipath/maestro-builder-sdk6.87.2 or later; older SDKs compile it but ignore it, run every item, and reportCompleted, no warning,<!--skill-flavor:completion-condition-sdk-upgrade:start--> so upgrade the copyuipuses by running:npm install -g @uipath/maestro-builder-sdk@latest, ornpm install --save-dev @uipath/maestro-builder-sdk@latestfor a workspace copy.<!--skill-flavor:completion-condition-sdk-upgrade:end-->body.break()exits the whole loop from inside an arm; its path is terminal, like.terminate()but loop-scoped, and automatically shows the loop'sbreakEnabledhandle.body.continue()advances to the next iteration from an arm or.onError()handler through the loop's continue handle; its path is terminal. Without it, a handler inside the body ends the whole run on its own End. Do not use.stepToRef('<the loop>'): it re-enters from the outer input and restarts the loop, andcheckrejects it withREF_TO_OWN_LOOP.body.continue()also works on 1.0.0 throughloopBack. On any version it requires@uipath/maestro-builder-sdk6.20.0 or later; older SDKs fail withcontinue is not a function,<!--skill-flavor:continue-sdk-upgrade:start--> so upgrade the copyuipuses by running:npm install -g @uipath/maestro-builder-sdk@latest, ornpm install --save-dev @uipath/maestro-builder-sdk@latestfor a workspace copy.<!--skill-flavor:continue-sdk-upgrade:end-->
.loop('each', input('items'), (body) => body
.step('call', http({ url: 'https://api.example.test/items', method: 'POST', managed: true }))
.onError((h) => h
.step('logFailure', script({ code: 'return "logged";' }))
.continue()))
.var('found', types.string, '')
.loop('scan', input('items'), (body) => body
.step('probe', script({ code: 'return $vars.scan.currentItem;', returns: 'object' }),
{ updates: { found: js`$vars.probe.output.id` } })
.branch('hit', js`$vars.probe.output.score > 90`, (t) => t.break()),
{ completionCondition: js`$vars.found !== ""` })
Do while
.doWhile(name, condition, bodyFn, { limit?, breakEnabled? }) runs the body, then repeats while the condition is true; the condition is checked AFTER each pass, so the body always runs at least once (core.logic.dowhile). The container publishes no data output: write results to a .var() inside the body with { updates }. limit caps iterations at 1–10,000; blank means the platform default of 10,000. body.break() and body.continue() work exactly as in .loop(). A body-step failure can route to .onError() after .doWhile(...), as with .loop() (error-handling.md).
.var('page', types.number, 1)
.doWhile('paginate', js`$vars.fetch.output.body.hasNextPage === true`, (body) => body
.step('fetch', http({ url: tmpl`https://api.example.test/items?page=${v('page')}`,
method: 'GET', managed: true, returns: { hasNextPage: 'boolean' } }),
{ updates: { page: js`$vars.page + 1` } }),
{ limit: 50 })
Open this reference as its own page
Manual Trigger
The manual trigger is the default start node. It represents an on-demand call from a person, test, API, or parent automation; there is no factory call.
Signature: omit .trigger(...) and declare caller values with .input(...).
Pass .trigger(manual(), { updates }) only when the default root needs its own
variable rows (below).
export default flow('lookup').input({ id: types.string }).output({ value: types.string })
.step('read', script({ code: 'return $vars.start.output.id;' }))
.return({ value: out('read') }).build();
Choose this trigger only when something will supply each run's inputs. A local run is a valid execution of that contract, but it does not prove that any external caller or deployment integration exists.
A flow's declared inputs are published as the trigger node's OUTPUT, so
input('name') reads $vars.start.output.name — out('start', 'name') is the
same reference spelled the long way. Do not read an input as a bare $vars.name.
It resolves only by accident — a manual trigger also emits a process-level copy of
each input — and is null under any other trigger. The designer reports it as
"Property 'name' does not exist", and check, compile and uip maestro flow validate all refuse it. $vars.name is the spelling for a .var() or an output.
This holds for EVERY trigger kind, not just the manual one. A declared input is
bound to whichever node starts the flow (that binding is the triggerNodeId on
the emitted variable), so an onEvent(...) flow reads its inputs through its
trigger too. The difference is only in what ELSE is there: an event trigger's
output carries the connector's payload alongside the declared inputs, so
$vars.start.output.subject and $vars.start.output.queueName can both be
live references on the same node.
The node's id is start by default and is addressable. Rename it with
.triggerId('intake') and every input reference follows
($vars.intake.output.name).
Inside a subflow body the same form addresses the CHILD's own start node,
which the compiler names <callerStepId>Start — input() renders it for you,
so this matters only if you hand-write a $vars.… string in a child script.
At a glance
The default start node accepts on-demand caller input; omit .trigger(...).
Signature: flow(id).input({...}).step(...).build().
Choose it when a caller, test, or another process should start each run.
Multiple entry points
A flow may have more than one root. .trigger() / .input() stay the DEFAULT
root unless an entry point says default: true;
.entryPoint(id, trigger, { inputs?, version?, updates?, default? }, prefixFn?) adds another
— its own trigger node, its own scoped inputs (read them with
entryInput('<id>', '<name>'), i.e. $vars.<id>.output.<name>), and an
optional prefix that runs before the root joins the first shared step. A prefix
that ends terminally (or hands off with .stepToRef(...)) joins nothing.
{ default: true } on one .entryPoint() makes that root the default
(isDefaultEntryPoint) instead of .trigger(). .trigger() keeps its id, its
inputs and every input() read. Decompile writes it when the .flow has a root
named start and marks a different root as the default, for instance a trigger
added to the .flow outside the SDK source. A .flow with no root named
start opens with its marked root as .trigger() and needs no default. Keep
the option when you edit the source. Two entry points with default: true are
refused (ENTRY_POINT_DEFAULT).
The option needs an SDK that lists the flow-entry-point-default capability.
An older SDK refuses the option when it compiles. Do not delete it to get
past that: without it, .trigger() becomes the default and the flow starts
from a different trigger. Leave the original .flow unchanged and report that
the SDK in use is too old for this flow.
Every root's inputs need their own names. Inputs, outputs and vars share one
namespace, uip maestro flow validate refuses two globals with the same id even
on different triggers, and each entry point's caller-facing input is keyed by
that id. So two roots cannot both take amount; check reports
ENTRY_POINT_INPUT_COLLISION.
To run a root other than the default, pass --entry-point <id> (the id you
gave .entryPoint; the default root's trigger is start unless the flow sets
.triggerId(...)) to uip maestro flow debug or uip maestro flow process run.
One input, whichever root fired: { shared }
This is the default way to hand the shared body "the input, whichever root started the run". Mark each root's input with the variable it feeds, and read that variable in the body:
export default flow('refund-intake')
.input({ amount: { type: types.number, shared: 'refundAmount' } }) // default root
.entryPoint('review', manual(), {
inputs: { reviewedAmount: { type: types.number, shared: 'refundAmount' } }, // second root
})
.output({ summary: types.string })
.step('summarize', script({ code: 'return "refund of " + $vars.refundAmount;', returns: 'string' }))
.return({ summary: out('summarize') })
.build();
manual() is the factory .entryPoint takes for an on-demand root; the
default root still omits .trigger(...) unless it needs its own { updates }.
- The SDK declares the variable once, unless a
.var('refundAmount', …)or.output({ refundAmount })already exists. Declare the.var()yourself to give it a default. When the input feeds an output, the copy writes the output's backing Variable,refundAmountValue(return.md). - The copy is one row per root on its TRIGGER node, in
variables.variableUpdates[<triggerId>]. This is the same construct{ updates }writes for a step. HerestartgetsrefundAmount ← $vars.start.output.amountandreviewgetsrefundAmount ← $vars.review.output.reviewedAmount. - The copy runs before that root's prefix, so a prefix can read
$vars.refundAmounttoo. - Read it as a var:
v('refundAmount')in an Expr slot,$vars.refundAmountin script code. For a plain copy useshared, not a copy step or a hand-written trigger{ updates }row: decompile gives back only the copy shape as{ shared }. - A root that feeds nothing leaves the variable at its default, or null.
check codes (compile throws on the errors even when its check pass is skipped):
| code | level | means |
|---|---|---|
SHARED_INPUT_TYPE_MISMATCH |
error | an input's type differs from the variable's |
SHARED_INPUT_TARGET_IS_INPUT |
error | the variable is named after an input |
SHARED_INPUT_SAME_ROOT |
error | one root feeds the variable from two inputs |
SHARED_INPUT_IN_SUBFLOW |
error | shared on a subflow child's input (a subflow has one root, its caller) |
SHARED_INPUT_ROOT_MISSING |
warning | some root feeds nothing and the variable has no default |
Decompile turns a trigger-level copy of exactly this shape back into
{ shared }; any other update on a trigger node comes back as that trigger's
own { updates } (below).
Other variable updates on a trigger
<!--skill-flavor:trigger-updates-sdk-version:start-->Needs @uipath/maestro-builder-sdk 6.85.7 or later: check that
entryPoint( in dist/flow-sdk.d.ts of the SDK copy in use takes
'version' | 'label' | 'updates'. An older SDK refuses .trigger(spec, { updates })
(UPDATES_NOT_SUPPORTED) and compiles .entryPoint(id, spec, { updates })
with no row at all. Upgrade the copy in use: npm install @uipath/maestro-builder-sdk@latest in a workspace that has its own
node_modules copy (it is used before the global one), else npm install -g @uipath/maestro-builder-sdk@latest. If you can't upgrade, set the variable in
the first step's { updates } instead.
.trigger(spec, { updates }) and .entryPoint(id, spec, { updates }) write any
other row on that root's trigger node. The rows run when the root fires, after
its { shared } copies, in the order written, and can read what the trigger
published. For instance, take a field of the payload and keep the variable's
own value when the field is missing:
flow('investigate')
.input({ payload: types.object })
.var('doc', types.object)
.trigger(manual(), { updates: { doc: js`${input('payload')}.document ?? ${v('doc')}` } })
This writes doc ← $vars.start.output.payload.document ?? $vars.doc under
variableUpdates.start. check judges the targets as it does a step's
(UPDATE_INPUT_READONLY, UPDATE_UNKNOWN_VAR). A subflow child's
.trigger(manual(), { updates }) writes the rows on its Start node.
Reshaping per root: a prefix
When a root's input needs reshaping before the body can use it (a lookup, a default, a different shape), not a plain copy, give that root a prefix. The prefix runs on that root only, then joins the first shared step:
flow('order-intake')
.input({ order: types.object }) // default (manual) root
.entryPoint('nightly', scheduled({ every: 'R/P1D' }), {
inputs: { batchDate: types.string },
}, (b) => b.step('loadBatch', script({
code: 'return { note: $vars.nightly.output.batchDate };', returns: 'object' })))
.step('normalize', script({ code: 'return 1;' })) // shared body
The two combine: shared copies what is the same on every root, and a prefix
reshapes the rest.
Open this reference as its own page
Operate — ship, run, and manage a deployed flow
<!--skill-flavor:operate-auth:start-->Everything that touches the cloud—upload, deploy, debug, trigger, inspect, and instance lifecycle—needs uip login; check with uip login status --output json.
Authoring is upstream. Do not ship source until it completes the loop in CLI-LOOP.md: check the source, compile it, and validate the emitted .flow.
Layout of the emitted flow
<!--skill-flavor:operate-format:start-->compile lays out the flow. For a flow or subflow whose source has no
.layout(), each node gets the position uip maestro flow format would give
it. Running format on the compiled file moves nothing; skip it.
Every node also gets its canvas-shape size, unless .layout() sets one: a
container (a loop, for example) is 560 × 320, an agent node (inlineAgent,
conversationalAgent, voiceAgent) 288 × 96, and every other node 96 × 96.
Never format a merged brownfield file. The original's layout already
holds the canvas author's positions, and merge keeps them, moving later
nodes right or down and growing containers only to fit added ones. format
re-lays out every node and discards them. Upload or debug the merged file as
merge wrote it.
This needs @uipath/maestro-builder-sdk 6.113.0 or later. An older SDK
writes every node 96 × 96 on one row at y = 144 (an agent node's ui.size is
96 × 96, not 288 × 96). With such an SDK, run
uip maestro flow format <Name>.flow --output json once on a greenfield file
(never on a merged or .layout() file), and in a .layout() give each agent
node dim(288, 96) and each container at least dim(560, 320);
or upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
nodes create without --position, or a hand edit adding nodes, leaves new nodes at layout.nodes[<id>].position 0,0. After such an edit to a file without an author-chosen layout, run format and confirm every layout.nodes entry has a distinct position. With an author-chosen layout, skip format and pass --position <x>,<y> to every nodes create.
Lay out from source instead: .layout(), at(), dim()
.layout() replaces compile's layout with positions you choose.
.layout({ nodes }) on the flow takes one entry per node, keyed by node id; at(x, y) writes an entry, and dim(width, height) the size a container needs.
A step's id is its name.
The trigger's is start unless .triggerId() renamed it.
An End's is the name its .return gave it, and an unnamed End is end, then end2, end3, … in emission order, so a flow with several unnamed Ends has that many keys to write.
Use it when the request asks for a particular arrangement, or when a decompiled source already carries one (brownfield.md).
Otherwise leave it out: compile lays out the flow itself.
import { at, dim, flow } from '@uipath/maestro-builder-sdk';
export default flow('invoice-intake')
// …steps…
.layout({
nodes: {
start: at(256, 144), fetch: at(448, 144), eachInvoice: at(640, 144, dim(576, 320)),
extract: at(144, 96), route: at(336, 96), // inside eachInvoice, relative to it
review: at(1312, 144), // an agent node: compile gives it 288 × 96
done: at(1696, 144),
onFailure: at(448, 528), end: at(640, 528), // below the container, not beside its body
},
})
.build();
Rules:
- Use the canvas grid. A node is 96 px square; a column is 192 px, a row 160 px:
x = 256 + 192 × column,y = 144 + 160 × row. The main path goes on row 0 left to right; an error handler or a side arm takes the row below. Compile gives a node withoutdim()its canvas-shape size: an agent node (inlineAgent,conversationalAgent,voiceAgent) is 288 × 96, so the next column starts 384 px to its right; a container is 560 × 320 unless itsdim()makes it larger (rule 2), and the row below it starts one row gap (64 px) under its bottom edge, not at the next 160 px row. - A child's position is relative to its container. A loop or do-while body starts at
at(144, 96)inside the container's padding. The container's 560 × 320 holds a small body; give it adim()only when the body needs more: the right edge of its rightmost child plus 144, by the bottom edge of its lowest child plus 96. For one row of 96 px nodes that isdim(192 × bodyNodes + 192, 320)from two body nodes on (two nodes:dim(576, 320), aseachInvoiceabove); a body with an inline agent, a second row or a nested container is measured from its own entries, not from the node count. - Name every node, or none. A missing entry falls back to compile's one-row placeholder, which lands on top of your layout. A key that names no node is dropped with a
LAYOUT_UNKNOWN_KEYwarning (an SDK older than 6.115.0 failscompileon it); remove it. - Never
formata file whose source sets.layout().formatre-lays out every node and discards the source's positions, exactly as it does to a merged brownfield file.<!--skill-flavor:layout-sdk-version:start--> atanddimneed@uipath/maestro-builder-sdk6.36.0 or later — check thatdist/api-index.mdin the SDK copy in use lists them. If not, upgrade that copy: runnpm install @uipath/maestro-builder-sdk@latestin a workspace with its ownnode_modulescopy (used before the global one), else runnpm install -g @uipath/maestro-builder-sdk@latest; or write{ position: { x, y } }with optionalsize: { width, height }.<!--skill-flavor:layout-sdk-version:end-->
Refresh solution resources first
<!--skill-flavor:refresh-command:start-->uip solution resources refresh --solution-folder <SolutionDir> --output json
<!--skill-flavor:refresh-command:end-->
<!--skill-flavor:refresh-when:start-->
Run this before solution upload, solution publish or flow debug, every time. It syncs connection and process declarations from bindings_v2.json; stale declarations cause runtime binding errors even when the .flow is correct.
There is no positional solution argument. Omit --solution-folder only from the solution root.
Publish
<!--skill-flavor:operate-publish:start-->"Publish", without a target, means Studio Web:
uip solution upload <SolutionDir> --output json
Pass the solution root containing the .uipx, or . from inside it. From a nested project folder pass .. or an absolute path, never the solution name again. Report the Studio Web URL on success.
Use Orchestrator only when explicitly requested because it bypasses Studio Web:
uip maestro flow pack <project-path> <OutputDir>
Then run uip solution publish—see the uipath-solution skill. uip maestro flow publish <project-path> packs and uploads the .nupkg to Orchestrator packages in one step; --folder-key or --folder-path selects a folder feed. When the target is genuinely ambiguous, ask before packing.
Debug — a real end-to-end run
<!--skill-flavor:operate-debug:start-->UIP_LOG_LEVEL=info uip maestro flow debug <project-dir> --output json
Pass the PROJECT directory containing project.uiproj. flow debug executes the flow for real; it is not validation (validate is). If the user can answer and did not request a run, ask once before the first run, even when the request is for a flow that works; that yes covers the fix-and-re-run loop on the flow the user asked to get working this turn. With nobody to ask, run it when the request is for a flow that works, unless a connection was guessed (bindings.md); otherwise report the flow as unverified rather than letting a passing validate stand as the result. Debug overwrites the Studio Web solution whose SolutionId matches local .uipx; for a solution not scaffolded this turn, debug only on a yes to a question that names that overwrite, and headless, never debug it.
Operational constraints:
<!--skill-flavor:operate-debug-wait:start-->- Foreground, with a tool timeout of 10 minutes or more. It takes 1-5 minutes and prints JSON only at exit.
- Poll the same process if the tool reports it still running. An empty output file means unfinished, not failed.
- Never start a second debug while one is running. It re-uploads and re-executes.
- Re-run only after changing the flow. Do not rerun to reread or reshape completed output.
Debug polling timed out after <N>sis not a failure. The run continues server-side. TakeinstanceIdfrom stderr and polluip maestro flow debug-instance status <INSTANCE_ID> --output json.<!--skill-flavor:operate-debug-wait:end-->- An RPA step does not run under a headless debug (rpa-workflow.md).<!--skill-flavor:operate-debug-scratch-copy:start-->
- Every process and connection node must resolve. Missing tenant resources (a placeholder process key, a stub connection) prevent provisioning and starting;
Data.missingResourcesnames them althoughcheckandvalidatepass. To debug the rest, debug a scratch copy without those nodes, delete it afterward, and report the run as the copy's.<!--skill-flavor:operate-debug-scratch-copy:end--> - Do not pass
--folder-pathor--folder-key. Debug provisions into the personal workspace; another folder fails403atStage: prepare-custom-debug, and a personal-workspace--folder-keygives404. No instance starts.<!--skill-flavor:debug-shared-resources:start--> Shared resources reach the run throughresources refresh, not the debug folder.<!--skill-flavor:debug-shared-resources:end-->
Exception to the folder rule: an account without a personal workspace (service-principal or CI token, 403 at get-personal-folder) passes --folder-id <number> to skip that lookup. prepare-custom-debug may still 403 for a non-personal folder; tell the user if it does.
Inputs for flows with .input(...) parameters:
UIP_LOG_LEVEL=info uip maestro flow debug <project-dir> --output json \
--inputs '{"numberA": 5, "numberB": 7}'
<!--skill-flavor:operate-debug-inputs:end-->
Build inputs from real records, never invented values: an invented key matches no record, the lookup returns [], and the run faults on empty data. Read an entity id with uip df entities list --output json, then a live record with uip df records list <ENTITY_ID> --output json.
A types.file input takes a repeatable local file; the left side is the input name:
--attachment <inputName>=<localPath>
At runtime the variable is a file reference, not a path and never content: its shape and name field. A flow that parses the file passes that reference to a file-reading step, such as an RPA process taking it as its file argument (rpa-workflow.md).
<!--skill-flavor:operate-debug-attachment:end--> <!--skill-flavor:operate-debug-entry-point:start-->A flow with more than one root starts at the default root. It is the trigger marked isDefaultEntryPoint, else the first trigger. To run another root, pass its trigger node id:
uip maestro flow debug <project-dir> --output json --entry-point <triggerNodeId>
A wrong id exits 3 and lists valid trigger ids. Data.entryPoint names the starting trigger.
A conversational flow cannot be debugged headlessly. If the start root is a conversationTrigger() (default or selected by --entry-point), debug uploads, returns Code: FlowDebugStudioWebHandoff with Data.studioWebUrl, and starts no run; --timeout does nothing. Chat from Studio Web (--open-in-browser opens it) or the Maestro VS Code extension.
An inbound voice flow cannot be debugged at all. Do not run debug on a voiceTrigger() flow; voice.md has the test loop.
Reporting a debug run
<!--skill-flavor:operate-debug-report:start-->Data.studioWebUrl and Data.instanceId are the first two summary lines:
Studio Web URL: <url>
Instance ID: <instanceId>
Emit the label with <not returned by CLI> rather than dropping a line. Data.finalStatus: "Faulted" means the response contains the cause. --output-filter never filters Message or Instructions; they summarize incidents when PIMS returned any and name uip maestro flow debug-instance incidents <instanceId>. If Data.incidents is missing or null in a projection, run that command. Do not rerun the flow. On the next run, add incidents:incidents to the projection, or redirect unfiltered output to a file and search it:
UIP_LOG_LEVEL=info uip maestro flow debug <project-dir> --output json > /tmp/flow-debug.json
<!--skill-flavor:operate-debug-redirect:end-->
Trigger a deployed process
uip maestro flow process list --folder-key <folder-key> --output json
uip maestro flow process run <process-key> <folder-key> --output json \
--inputs '{"numberA": 5}' --attachment <inputName>=<localPath>
process list also accepts --folder-path <path> instead of --folder-key. For process list, take <folder-key> from the user or Key in uip or folders list --output json; for process run, its list entry's folderKey also works.
Only process run lets --attachment override --inputs on key collision. Its --validate accepts pre-uploaded attachment references for file slots and is not a dry run: after validation it starts a real job. Give types.file inputs with flow process run --attachment, never uip or jobs start --attachment.
--entry-point <triggerNodeId> starts that root and makes --validate check its schema. A wrong id exits 3 and lists process trigger ids. Without it, the job starts at the release's default entry point. flow pack or solution pack sets that to the first trigger (the SDK-built default root); other packaging may differ. Pass --entry-point whenever the root matters. You do not need --feed-id; the CLI reads the release feed.
Inspect a job
uip maestro flow job status <job-key> --output json
uip maestro flow job traces <job-key> --output json
Traces are verbose, full timelines, and a last resort except per-iteration timing: elementExecutions aggregates per element, so a loop body has one row. Spans stream to stderr, one JSON line each; use --pretty for readable lines.
Instance lifecycle
<!--skill-flavor:operate-instance-id:start-->Every instance command needs --folder-key (-f) or is rejected before the API. Get it from uip or folders list --output json or the job/process context. An instance id comes from debug Data.instanceId, job status, or instance list.
uip maestro flow instance pause <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance resume <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance cancel <INSTANCE_ID> -f <FOLDER_KEY> --output json
uip maestro flow instance retry <INSTANCE_ID> -f <FOLDER_KEY> --output json
-f does not filter instance list; do not assume every listed instance is in that folder. Never retry a faulted instance before reading why it faulted in its debug response or incident; retrying without the cause repeats the failure. When each takes effect and what is recoverable is Orchestrator's lifecycle model, not this skill's; consult uip maestro flow instance <sub> --help for flags.
Evidence boundary
A green validate proves only that the emitted .flow is well formed. Only a run proves operation, and only against its tenant: successful upload does not prove connections resolve, and a completed debug does not prove correctness. Report the instance identity and CLI-returned status, never an inference.
Open this reference as its own page
Orchestrator Processes
Orchestrator has several process types:
- Agent - see Agent
- Api - see API Workflow
- CaseManagement
- Flow
- Function
- Process
- ProcessOrchestration - see Agentic Process
- TestAutomationProcess
- WebApp
Finding a process
List the available processes with the process type using either of the following commands, depending on if you know the folder:
uip or processes list --all-folders --process-type !!ProcessType!! --limit 200 --output json
uip or processes list --folder-path '<folder>' --process-type !!ProcessType!! --limit 200 --output json
Replace !!ProcessType!! with the process type, e.g. Agent or ProcessOrchestration.
The list command is paginated.
If the output field Pagination.HasMore flag is true, there are more results available.
Use --offset to move to the next set of results.
The resulting list will have Name, ProcessKey, and sometimes Description fields that may help identify the process you need. Note that there is a flag IsLatestVersion in case there are multiple published versions with the same process key. The Key field (GUID) is the unique id for the process.
Getting the inputs and outputs
Do not copy the key or the argument schema by hand.
Write the step with name and folderPath only, and leave key and returns out.
Needs @uipath/maestro-builder-sdk 6.109.0 or later: prepare --kind Process then prints Type, Inputs and Outputs lines.
An older SDK records only the catalogue row (no Type line), and its compile refuses a step with no key (*_NO_KEY).
Upgrade the copy in use: npm install @uipath/maestro-builder-sdk@latest in a workspace that has its own node_modules copy, else npm install -g @uipath/maestro-builder-sdk@latest.
.step('intake',
agenticProcess({
name: 'ProcurementProcess',
folderPath: '<FOLDER_PATH>',
inputs: { productId: 1 },
}))
check reports the missing key with the factory's *_NO_KEY code (RPA_NO_KEY, APIWF_NO_KEY, FUNCTION_NO_KEY, AGENTIC_NO_KEY, AGENT_NO_KEY) and prints the command that records the process.
Run it:
uip maestro registry prepare --kind Process --name ProcurementProcess --folder-path '<FOLDER_PATH>'
If uip answers unknown option '--kind', the uip in use predates key-less prepare: run the same command as npx flow-sdk registry prepare --kind Process ….
prepare prints the process's inputs and outputs:
Type ProcessOrchestration
Inputs productId: integer
Outputs status: boolean
Re-run check and fix what it reports:
PROCESS_INPUT_UNKNOWN: an input the process does not declare (it names the nearest real one);PROCESS_INPUT_MISSING: a required input left out;PROCESS_INPUT_TYPE: a literal of the wrong type;PROCESS_RETURNS_UNKNOWN: areturnsfield the process does not return;PROCESS_TYPE_MISMATCH: the wrong factory for the process type.
Then compile writes the key and the output schema (returns) from that record.
Read out('<step>', '<field>') with the names prepare printed.
Orchestrator often leaves a process's contract blank (common for API workflows and some RPA processes).
prepare then prints (not recorded …) for that side, or Arguments not recorded.
check does not validate that side, and compile still writes the key.
Keep your inputs, and declare returns for the fields you read; to see the contract, use uip maestro flow registry get <node type> (inputDefinition, outputDefinition).
A record more than 24 hours old still compiles; check warns PROCESS_RECORD_STALE and prints the prepare that refreshes it.
Argument types (inputSchema)
Compile declares each passed input with a type taken from its value: a number,
boolean, array or object literal by its shape, and anything else (an expression,
input(), out()) as string. When the process types an argument differently
(an object filled from an expression, or an argument the step does not pass),
write the argument JSON Schema as inputSchema on the step. Compile writes it
verbatim as the definition's inputDefinition:
inputs: { payload: input('request') },
inputSchema: { type: 'object', properties: { payload: { type: 'object' } } },
- A decompiled step carries
inputSchemawhen its saved definition holds more than compile would infer (titles, enums, an argument the step does not pass); keep it. - A
preparerecord does not change what compile writes: the record drives thePROCESS_INPUT_*checks above, andinputSchema(or the inference) is theinputDefinition. Declaring an argument ininputSchemadoes not satisfyPROCESS_INPUT_MISSING; pass the argument ininputs. checkreports:PROCESS_INPUT_SCHEMA_TYPE: an object or array literal whose declared type does not allow it (flow validatereports the same value asTYPE_MISMATCH);PROCESS_INPUT_SCHEMA_INVALID: aninputSchemathat is not a plain object (compile refuses it too).
- Needs
@uipath/maestro-builder-sdk6.122.6 or later. An older SDK refuses the option asFLOW_UNKNOWN_OPTION.
Notes
Sometimes you need to search across multiple process types.
For example, the ProcessOrchestration, CaseManagement, and Flow process types could all be considered "Agentic Processes".
The --process-type filter does not accept multiple entries.
When performing a list command, the default fields returned do not include ProcessType so you will need either to use the --all-fields option or run multiple list commands with each process type.
Open this reference as its own page
Parallel / Merge
Parallel fans control into two or more arms and joins them on a Merge.
Signature: .parallel(name, [armFn, armFn, ...]); name identifies the Merge.
.parallel('ready', [
(a) => a.step('weather', http({ url: weatherUrl, managed: true })),
(b) => b.step('news', http({ url: newsUrl, managed: true })),
])
.step('combine', script({ code: 'return "ready";' }))
Use parallel only when the arms are independent: neither arm may require the other's result before the join. It expresses graph independence, not a promise that every executor schedules work concurrently; the local executor processes arms in authored order.
Work after .parallel(...) continues from its output port and can read the
outputs of each arm.
When every arm ends, with .return, .terminate, or a .stepToRef into an
End another arm wrote, there is nothing to join. No Merge is emitted, name
names no node, and nothing may follow the .parallel:
.step('prepare', script({ code: 'return 1;' }))
.parallel('prepareFork', [
(a) => a.step('notifyA', script({ code: 'return "a";' })).return({}, { name: 'done' }),
(b) => b.step('notifyB', script({ code: 'return "b";' })).stepToRef('done'),
])
A .terminate must be the arm's first call: check refuses one behind a step
in a .parallel arm (TERMINATE_NOT_ARM_HEAD).
Decompile (SDK 6.46.6 or later) writes a canvas fan-out whose arms never meet
again this way, naming the .parallel <node>Fork after the node the arms
leave. A canvas arm that runs a step before its Terminate is the exception: it
stays an unstructured fan-out (see brownfield.md).
A Merge after a branch never completes
A Merge waits for every edge into it, and a .branch() or .switch() takes one arm.
So a Merge that only one Decision's or Switch's arms reach stops the run there: check refuses it (MERGE_NEVER_COMPLETES), and so does uip maestro flow validate.
Do not put a Merge after a .branch(): its arms meet at the next step on their own.
Inside a .parallel arm, put a step after the .branch() so its arms meet there before the join.
.branch('d', cond, (t) => t.step('A', work), (e) => e.step('B', work))
.step('after', work) // A and B both lead here; no Merge
Decompile keeps a canvas Merge drawn after a Decision as a rawNode('core.logic.merge') step, so a brownfield file with one reports this finding on an unchanged node.
The run of the original never finishes either; tell the user, and remove the Merge step only if they ask for the fix.
At a glance
Fan out independent arms and join them at a Merge.
Use it only for independent arms; do not assume the local executor runs them concurrently.
Options
.parallel(name, arms, options) takes version and label for the Merge, as .branch() does, plus fork.
Both below need @uipath/maestro-builder-sdk 6.44.0 or later; an older SDK ignores fork (no fork node is written, and the TypeScript types reject the option),
so upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
A fork node
Studio Web draws a parallel split as a core.logic.merge node with one edge in and one edge per arm (its "Parallel" gateway).
fork writes that node; without it the arms leave from the previous step's own port, one edge per arm, and the platform runs both shapes the same way.
Use it to keep a canvas flow's shape.
A decompiled canvas fork comes back with it, so leave it as written: dropping it deletes the fork node and rewires every arm.
.parallel('J1', [
(a) => a.step('T1', work),
(b) => b.step('T2', work),
], { fork: { name: 'PAR', label: 'Parallel: run the applicable tasks together' }, label: 'Join: wait for every branch' })
The fork's name is a node id like a step's; check reports DUP_STEP when a step already has it.
Arms that join at a step instead of a Merge
The canvas also lets two steps feed one step directly, with no Merge node anywhere.
Spell that with arms that each end in .stepToRef('<step>'), and that step after the .parallel.
When no arm hands the join a tail, compile writes no Merge node, and the refs are the join.
That step then has one incoming edge per arm, and the runtime starts a step once per arriving token (only a gateway waits for every incoming flow), so it runs once per arm — not once after all arms, as a Merge would.
check says so (PARALLEL_REF_JOIN, a warning); for one run, end each arm on a step of its own and put the shared step after the .parallel.
.parallel('prepareFork', [
(a) => a.step('script1', work).stepToRef('sendMessage'),
(b) => b.step('script2', work).stepToRef('sendMessage'),
])
.step('sendMessage', script({ code: 'return [$vars.script1.output, $vars.script2.output];' }))
prepareFork creates no node, but do not reuse it as a step or variable name: check treats $vars.prepareFork as a Merge read (PARALLEL_HAS_NO_OUTPUT).
Decompile writes this shape as <source>Fork, and a merge node with one edge in and one out (a pass-through the designer left behind) as the rawNode of its own definition; leave both as written, warning included.
Open this reference as its own page
Placeholder
Exact signatures, fields, and defaults: mock().
A placeholder says that a real capability belongs at this point in the graph but does not exist yet.
Signature: mock().
.step('extractInvoice', mock())
.step('continueWithInput', script({
code: 'return $vars.assumedInvoiceId;' }))
Use a real script when downstream work needs temporary fixed data; that script
has the same behavior locally and after deployment. A script is never a
stand-in for the capability itself (an extraction, an external service, a
connector action). Search first, as SKILL.md, "Choose the node before
writing it" says, and use the node it finds; for extraction, an
agent, or a process, run the search exactly as the family reference gives it
(ixp.md, agent.md). Use a placeholder only when that
search comes back empty; it makes the missing capability visible. Do not use it
merely to disable a step or as the only work in a finished Flow.
When check reports MOCK_HAS_NO_OUTPUT because a later step reads the mock,
keep the mock and feed that step from a separate step, as in the example above;
never replace the mock with a script that fakes its output.
At a glance
Mark where a real capability will be inserted later.
Use a script for local fixed data, never in place of a capability the request needs; use a placeholder only to expose a capability gap the search proved.
Unknown node types
mock() is a deliberate placeholder — a node that stands in for work not yet
decided. It is NOT the way to carry a node the SDK has no factory for: it
compiles to core.logic.mock, so the original type is gone.
For that, use rawNode({ nodeType, version, inputs?, outputs? }). It carries
the definition the platform serves for that nodeType@version, so the node
keeps its identity and its inputs:
.step('exotic', rawNode({
nodeType: 'uipath.exotic.thing', version: '2.1',
inputs: { where: input('scope') },
}))
When authoring, omit manifest. check and compile read it from the local
registry cache by nodeType + version. When the cache lacks it they report
RAW_NODE_MANIFEST_NOT_CACHED and name the commands to run
(uip maestro flow registry pull, then registry get <nodeType> to see the
versions the tenant serves). Use the version registry get shows. If the
resource was redeployed with a changed schema, the cache still holds the old
definition: run uip maestro flow registry pull --force first.
Needs @uipath/maestro-builder-sdk 6.100.0 or later. An older SDK requires
manifest, so leaving it out is a type error: on an older SDK, pass the
Data.Node that uip maestro flow registry get <nodeType> --output json
prints, unchanged.
Never hand-write a manifest: it validates locally and fails on the tenant,
which resolves the node against its own catalog. A manifest that decompile
emitted stays as written; it wins over the cache.
Prefer a typed factory whenever one exists: it carries the family's check rules, its defaults and its output contract, none of which a raw node can know.
Never for a connector. A uipath.connector.* node type is refused by
check (RAW_NODE_CONNECTOR) and by compile. A raw node keeps its inputs
verbatim, so the emitted connector node has no inputs.detail and no
connection binding: uip maestro flow validate only warns ("Connector is not
configured") and the run can never reach Integration Service. Measured on the
eval archive, every Data Fabric flow authored this way failed its checker. The
situation that tempts it — compile refusing a body field as unknown input
because the static library does not carry it — is what
uip maestro registry prepare <key> --action <action> exists for (add
-f entityName=<Entity> for a Data Service operation); see the
parent-field loop.
decompile emits rawNode(...) for any node type it cannot name, hoisting the
manifest to a const beside the flow, so an unknown node keeps its type and
version through a round trip. So mock() in decompiled source means
the flow really contains a placeholder.
Open this reference as its own page
Published function
Exact signatures, fields, and defaults: publishedFunction().
A Function is a small, single-purpose unit of code deployed to Orchestrator
as its own resource. publishedFunction() invokes one as a single step
(uipath.core.function.<key>, dispatched as
Orchestrator.ExecuteFunctionAsync).
Signature: publishedFunction({ key, name, folderPath, inputs?, inputSchema?, returns? }), or
publishedFunction({ key, name, location: 'in-solution', projectId, inputs?, inputSchema?, returns? })
for a coded function in the same solution (see In the same solution).
.step('echo', publishedFunction({
key: '7059bdb5-fdd7-4e13-9d7b-1748aaeb129d',
name: 'acme-echo',
folderPath: 'Shared/acme-echo',
inputs: { message: input('message') },
returns: { echoed: 'string' },
}))
.step('relay', script({ code: 'return $vars.echo.output.echoed;' }))
At a glance
Run a deployed Orchestrator Function — a small unit of code published as its own resource — as one step.
.step('echo', publishedFunction({ key: functionKey,
name: 'acme-echo', folderPath: 'Shared/acme-echo',
inputs: { message: input('message') }, returns: { echoed: 'string' } }))
A function is usually deployed into a folder of its OWN name — read folderPath
from the tenant rather than assuming 'Shared', since the binding's resourceKey
is <folderPath>.<name>.
Identity
Three fields, none of them derivable:
key— the function's GUID; it becomes the node type's suffix, so a wrong one emits a node the tenant cannot resolve. Find it withuip maestro flow registry search "uipath.core.function". Registry reads are cached for 30 minutes: if the function is missing, runregistry pull --forceonce and search again.name— the function's own name in Orchestrator.folderPath— the folder it is deployed in. A function is usually deployed into a folder of its OWN name ('Shared/acme-echo', not'Shared'). The binding'sresourceKeyis<folderPath>.<name>, so assuming'Shared'points the dispatch at nothing while still validating.
Two steps on the same function share ONE binding pair, exactly as the other published families do.
In the same solution
A coded function that is a sibling project of the Flow, in the same solution,
is not published yet, so it has no folder. Write it with
location: 'in-solution' and projectId instead of folderPath:
.step('math', publishedFunction({
key: localResourceKey,
name: '<FunctionProject>',
location: 'in-solution',
projectId: localProjectKey,
inputs: { invoice_amount: input('invoice_amount') },
returns: { variance_pct: 'number', summary: 'string' },
}))
- Or name the sibling by project (
@uipath/maestro-builder-sdk6.108.0 or later):publishedFunction({ location: 'in-solution', project: '<FunctionProject>', inputs, returns }). See agent.md for what it fills in, what it refuses, and when to fall back to the ids below. - Where the two ids come from.<!--skill-flavor:function-sibling-register:start-->
Register the sibling and refresh resources
(
uip solution projects add, thenuip solution resources refresh), then<!--skill-flavor:function-sibling-register:end--> runuip maestro flow registry list --local --output jsonfrom the Flow project directory. The generatedresources/solution_folder/process/function/<FunctionProject>.jsoncarries the same pair:resource.key→key,resource.projectKey→projectId. Never invent either; the full recipe is in agent.md. - A coded agent can land under
process/function/too (see agent.md). Check the sibling's ownentry-points.json:entryPoints[0].typeis"function"for a coded function. If it is"agent", useagent({ location: 'in-solution', flavour: 'coded', … }), notpublishedFunction(): the wrong factory validates and dispatches the wrong service type. returnscomes from the sameentry-points.json:entryPoints[0].output.properties, each field'stype. The resource file'sspec.entryPointsholds the same schema as a JSON string. The rule in Declaring what it returns still applies.checkwarns on an in-solution step with noprojectId(FUNCTION_LOCAL_NO_PROJECT_ID; the call resolves bykey, so a decompiled step without one is fine as is), and refuses aprojectIdthat is not a GUID (FUNCTION_LOCAL_PROJECT_ID_NOT_GUID) and afolderPathbesidelocation: 'in-solution'(FUNCTION_LOCAL_HAS_FOLDER): the in-solution binding's folder is'', filled in at deploy. IfcheckreportsFUNCTION_LOCAL_NO_PROJECT_IDas an error (an older SDK), addprojectIdfromresource.projectKey. Still setprojectIdon a step you author: Studio Web's Run node reads it to deploy the sibling first.
Needs @uipath/maestro-builder-sdk 6.59.0 or later; an older SDK
has no location on publishedFunction() and refuses the step as having no
folderPath (FUNCTION_NO_FOLDER).
Declaring what it returns
returns is required if anything reads the step's output. The function's real
output arguments live on the tenant and authoring is offline, so an undeclared
read is rejected (FUNCTION_READ_WITHOUT_RETURNS) — nothing here could tell a
real field from a typo. registry get uipath.core.function.<key> shows what the
platform synthesizes for a deployed one.
To type an argument differently from its value (for example an object filled
from an expression), add inputSchema; keep one a decompiled step carries. See
Orchestrator Processes.
Which family to reach for
| The deployed thing | Factory |
|---|---|
| A Function (a unit of code, its own resource) | publishedFunction() |
| A coded API workflow | apiWorkflow() |
| An RPA process | rpaWorkflow() |
| A Maestro process orchestration | agenticProcess() |
They share one emit path and differ only in service type and binding subtype, so picking the wrong one produces a flow that validates and dispatches nothing. Match the family the scenario names.
Evidence boundary
Offline validate proves the node type, the binding pair and the declared
output schema. That the function exists, accepts those arguments, and returns
those fields is platform evidence — .onError(...) is supported for the
dispatch failing.
Open this reference as its own page
Queue Item
Exact signatures, fields, and defaults: queueItem().
Create work on an Orchestrator queue, optionally waiting for another automation to process it.
Signature:
queueItem({ queue, folderPath, key, item, priority?, reference?, deferDate?, dueDate?, wait?, returns? }).
.step('enqueue', queueItem({ queue: 'Invoices', folderPath: 'Shared',
key: queueKey, item: { InvoiceId: input('invoiceId') },
reference: input('invoiceId'), wait: false }))
At a glance
Create an Orchestrator queue item, optionally waiting for its consumer.
Check tenant uniqueness/schema settings; wait only when a consumer exists and its result is needed.
Reading what the create returned
The node's output carries the Orchestrator record of the item it created — Id,
Key, UniqueKey, Reference, Status and the rest of the queue-item schema.
Read a field with out('<step>', '<Field>'); do NOT add a script step to
re-derive it, and do not invent a variable for the item:
.step('enqueue', queueItem({ queue: 'Invoices', folderPath: 'Shared',
key: queueKey, item: { InvoiceId: input('invoiceId') } }))
.return({ itemKey: out('enqueue', 'Key') })
out('enqueue', 'Key') is the whole read. It serializes to
$vars.enqueue.output.Key, the spelling the runtime resolves. A script() step
that reads the node and republishes the key is longer and adds nothing.
Tenant settings
Queue-level settings are not present in source. A queue may require unique
references or enforce an item schema. Inspect it with
uip or queues list --all-folders; derive a required reference from run input
rather than using a constant that works only once.
Whether to wait
Use wait: true only when the current Flow needs the consumer's result and a
real automation drains the queue. Otherwise enqueue and let a separate process
own consumption. For a waiting step, decide whether failed/abandoned processing
should be handled or should fault this Flow.
Evidence boundary
Replay uses a synthesized item/result. Live mode creates a real item and, for a wait, polls its real state. A green create proves the producer side only; a green wait also depends on the external consumer and should preserve its item key and terminal state as evidence.
Open this reference as its own page
Return / End
Return ends the current path and binds the Flow's declared outputs.
Signature: .return({ outputName: expression, ... }).
.branch('valid', out('check'),
(yes) => yes.return({ status: 'accepted' }),
(no) => no.return({ status: 'rejected' }))
Returning in each arm is appropriate when those paths are complete. Let arms
fall through to a shared successor when they need common work before the final
answer. This is different from .terminate(...): Return completes its path
with values; Terminate aborts the whole run.
Any dangling tail gets an End automatically, unless the flow calls
.openTails() (decompile writes it; see
brownfield.md). An explicit
.return(...) is required only when values must be bound. Multiple path ends are emitted as end, end2,
end3, and so on.
Only an End sets a flow output. When a step sets an output with { updates },
code reads it as $vars.<output>, or a { shared } input or a default feeds
it, the SDK holds the value in a Variable named <output>Value, and every End
maps the output from it. You still write the output's own name:
.output({ summary: types.string })
.step('work', script({ code: 'return "hi";', returns: 'string' }), { updates: { summary: out('work') } })
// emits: summaryValue (inout) = $vars.work.output; each End: summary <- $vars.summaryValue
- Read the result by the output's name:
variables.globals.summaryin the debug read-back.summaryValuecan appear beside it; ignore it. - Do not give anything else the name
<output>Value: an input, output,.var(), step, entry point, or trigger id.checkreportsOUTPUT_BACKING_COLLISION; rename yours. - An End that does not name an output, and has no such Variable behind it,
returns
nullfor it.
Ending another path at the same End
Give the End a name, and another path can end there with .stepToRef(name)
instead of getting an End of its own. The flow then has ONE End with several
incoming edges, as the canvas draws it.
Needs @uipath/maestro-builder-sdk
6.32.0 or later; an older SDK refuses the ref with REF_UNKNOWN_TARGET,
so
upgrade with npm install -g @uipath/maestro-builder-sdk@latest.
.step('fetch', http({ url, managed: true }))
.onError((h) => h.step('reportFailure', script({ code })).stepToRef('done'))
.step('useResult', script({ code }))
.return({}, { name: 'done' }) // reportFailure -> done, useResult -> done
Only a NAMED End is a target. An unnamed
.return()getsend,end2, ... in emission order, so.stepToRef('end')isREF_UNKNOWN_TARGETunless an End says{ name: 'end' }.The End may sit inside another port's path. Two side paths that the main path never reaches can share one End. Needs
<!--skill-flavor:port-end-sdk-upgrade:start-->@uipath/maestro-builder-sdk6.32.1 or later; an older SDK refuses the ref (REF_INTO_PORT_LIST) and renames a differing duplicate Endfailed2,so upgrade with
<!--skill-flavor:port-end-sdk-upgrade:end-->npm install -g @uipath/maestro-builder-sdk@latest:.stepToList('branch-missing', (b) => b.step('reportMissing', script({ code })).return({}, { name: 'failed' })) .stepToList('branch-throttled', (b) => b.step('reportThrottled', script({ code })).stepToRef('failed'))Two
.returns with the same name and different values, label, version or updates, or in different scopes (a loop body and the main path), are refused (DUP_END_NAME, bycheckand bycompile). They are not renamedfailed2. Identical repeats in one scope are one End. Prefer one.returnand.stepToRef('<name>')on the other paths.An End's
<!--skill-flavor:end-name-sdk-upgrade:start-->nameis its node id and is never renamed. A name that a step, the trigger or an entry point already uses is refused (STEP_ID_COLLISION, bycheckand bycompile). For example,.step('x', ...).return({}, { name: 'x' })failscheck. Give the End its own name, such asendX. Needs@uipath/maestro-builder-sdk6.32.3 or later; an older SDK renames the Endx2with no error,so upgrade with
<!--skill-flavor:end-name-sdk-upgrade:end-->npm install -g @uipath/maestro-builder-sdk@latest.A decompiled brownfield flow uses this form when a path (an HTTP
branch-*, a human-taskoutcome-*, a.stepSwitcharm, an error handler, an.entryPointprefix) runs into an End another path already ends at. Keep the.stepToRef('<end id>')and the End'snamewhen you edit.
At a glance
End the current path and bind declared Flow outputs.
Choose between arm-local returns and a shared continuation based on the graph the scenario needs.
Open this reference as its own page
RPA Workflow
Exact signatures, fields, and defaults: rpaWorkflow().
Run a published robotic process and wait for its output arguments.
Signature: rpaWorkflow({ key?, name, folderPath?, location?, projectId?, inputs?, inputSchema?, returns? }).
folderPath is required for a published process; a sibling project of the same solution takes location: 'in-solution' and projectId instead (below).
For a published process, leave key out: check prints the registry prepare --kind Process command that records it, and compile fills it in (Orchestrator Processes). An in-solution sibling still takes key.
Keep returns for every output you read: Orchestrator usually leaves an RPA process's ArgumentsV2 blank, so prepare prints Arguments not recorded and compile does not fill returns. Without it a read of the output is RPA_READ_WITHOUT_RETURNS.
.step('title', rpaWorkflow({ name: 'RPA Workflow', folderPath: 'Shared',
inputs: { problemId: 123 }, returns: { title: 'string' } }))
At a glance
Run a deployed robotic process and wait for its job result.
Confirm identity and argument names against the same deployed tenant resource.
Finding the key: or-processes.md
In-solution sibling
To call an RPA project that sits in the SAME solution as the Flow (not a
deployed process), set location: 'in-solution' and projectId, and omit
folderPath:
.step('title', rpaWorkflow({ key: localResourceKey, name: '<RpaProject>',
location: 'in-solution', projectId: localProjectKey,
inputs: { problemId: 123 }, returns: { title: 'string' } }))
- Or name the sibling by project (
@uipath/maestro-builder-sdk6.108.0 or later):rpaWorkflow({ location: 'in-solution', project: '<RpaProject>', inputs, returns }). See agent.md for what it fills in, what it refuses, and when to fall back to the ids below. - Where the two ids come from.<!--skill-flavor:rpa-sibling-register:start-->
Register the sibling and refresh resources
(
uip solution projects add, thenuip solution resources refresh), then<!--skill-flavor:rpa-sibling-register:end--> runuip maestro flow registry list --local --output jsonfrom the Flow project directory. The generatedresources/solution_folder/process/process/<RpaProject>.jsoncarries the same pair:resource.key→key,resource.projectKey→projectId. Never invent either; the full recipe is in agent.md. - No
folderPath. The sibling has no folder until the solution is deployed. - Inputs and returns are yours to declare. The local manifest of an RPA sibling may list no arguments, so write the names and casing the RPA project's own arguments use.
check warns on RPA_LOCAL_NO_PROJECT_ID (no projectId; the call resolves by
key, so a decompiled step without one is fine as is) and refuses
RPA_LOCAL_PROJECT_ID_NOT_GUID (projectId is not the project GUID — often
the key or the name pasted by mistake), RPA_LOCAL_HAS_FOLDER (folderPath
set as well; drop it, or drop location to call the published copy).
RPA_NO_FOLDER applies to published steps only. If check reports RPA_LOCAL_NO_PROJECT_ID as an error (an older SDK),
add projectId from resource.projectKey.
Still set projectId on a step you author: Studio Web's Run node reads it
to deploy the sibling first.
Tenant contract
The release key, name, and folder must identify the same deployed process. Inputs and returns are that process's own argument names and exact casing; the offline SDK cannot discover their truth. Inspect the registry/process listing and the deployed contract rather than copying values from a different folder.
To type an argument differently from its value (for example an object filled
from an expression), add inputSchema; keep one a decompiled step carries. See
Orchestrator Processes.
Where the job runs
The step starts an Orchestrator job on a robot of the process's folder, and the
project's target framework, fixed when the project is created, decides which
robots can take it: a serverless cloud robot runs only background,
cross-platform processes
(Serverless robots).
So create a process a Flow starts as cross-platform unless the folder's robots
are known to be Windows. A process meant to be edited in Studio Web beside the
Flow is also XAML with VB expressions: Studio Web opens no project holding coded
workflows or C# expressions, and lists such a process with errors 20042 and
20021 instead.
Evidence boundary
Replay proves the graph with synthesized job output. Live evidence should show a real Orchestrator job, the intended input arguments, completion, and the returned values. Whether the robot performed the right UI/business work is a separate assertion from job completion.
A headless flow debug cannot give that evidence: it starts the step as a debug
job of the solution's own project, not the deployed process, and that job fails
at start with exit code 0x33 (Signalr agent missing protocol versions) when
no Studio Web debugger attaches. Run the deployed flow
(operate.md) to prove the step.
Open this reference as its own page
Scheduled Trigger
Exact signatures, fields, and defaults: scheduled().
A scheduled trigger asks the platform scheduler to start a Flow repeatedly.
Signature: .trigger(scheduled({ every: string })).
export default flow('nightly')
.trigger(scheduled({ every: 'R/P1D' }))
.step('rollup', script({ code: 'return { ok: true };' }))
.build();
At a glance
A platform timer starts the flow on a recurring interval.
Signature: .trigger(scheduled({ every: string })). every takes an ISO-8601
repeating interval or a Quartz cron expression (e.g. '0 0 2 * * ?').
Prefer self-contained variables because there may be no caller supplying inputs.
Authoring judgment
A timer usually has no caller, so prefer .var(...) defaults or tenant-backed
steps over required caller inputs unless the deployment supplies configured
values. Pick the interval from the business requirement rather than from what
is convenient to test.
every is the trigger's only field: there is no time-zone setting. When the
requirement ties the run to local hours, state that time zone in the final
response.
A cron expression taken from another scheduler is usually Unix cron: five
fields (some schedulers allow a leading seconds field), Sunday as 0 or 7.
Rewrite it in Quartz before passing it to every: add a seconds field in front
when it has none, write ? in day-of-month when day-of-week is given
(Quartz takes only one of the two), and write weekdays as names (MON-FRI),
since Quartz numbers them 1–7 from Sunday (Quartz CronTrigger
tutorial).
30 9 * * 1-5 becomes 0 30 9 ? * MON-FRI. check and validate refuse the
five-field form, but neither refuses a missing ?; only the deploy does, with
[1600] … Invalid cron expression syntax, and installs nothing.
Evidence boundary
Local execution starts the graph directly. It proves the scheduled node was emitted with the authored interval and that the downstream graph runs; it does not prove the platform scheduler fired. The scheduling claim requires a deployed run observed at the requested cadence.
every is an ISO-8601 repeating interval (R/PT30M, R/PT1H, R/P1W) or a
Quartz cron expression (0 0 2 * * ?, 0 30 9 ? * MON-FRI). Cron and a
single-unit interval are written at the trigger's 1.2 definition, in
timerValue. 1.2 takes exactly one unit within these ranges: PT1S–PT59S,
PT1M–PT59M, PT1H–PT23H, P1D–P31D, P1W–P52W, P1M–P12M, or
P1Y–P9999Y (so R/PT45M, R/PT2H and R/P2W are 1.2). Any other ISO
interval, such as R/PT90M, R/PT24H or R/P1DT12H, is written at 1.1.
Pinning { version: '1.2' } with such an interval is a compile error
(SCHEDULE_INTERVAL_VERSION), and so is pinning { version: '1.1' } with cron.
A decompiled node keeps its version, e.g. { version: '1.1' }.
Open this reference as its own page
Script
Exact signatures, fields, and defaults: script().
script runs inline JavaScript without a first-class Flow node. Read upstream data through $vars; read results with out(step, path?). Flow inputs are $vars.start.output.<name> (what input('<name>') lowers to), and .var() values are $vars.<name>.
Use the named first-class node whenever the scenario needs a connector or HTTP for external data or an API call, Transform, Delay, or another product capability, whether or not the request names it. Use script for local calculation, reshaping that needs arbitrary code, or computing a value before passing a bare reference to another node. Return an object literal for named fields (out('parse', 'tag')) or a scalar (out('parse')).
At a glance
Run inline JavaScript for computation that is not a first-class Flow node. Signatures are script({ code: string }) and script(fn, { returns }) for a function; read results with out(step, path?). Use a first-class action when the scenario names one; use script for computation.
What the step publishes
A node TYPE declares only a generic output (object on 1.0.0, any on 1.1), so the designer would reject mapping a script read into a string flow output. The compiler reads the body and declares an evident return type; typing does not enumerate fields, so an object remains open, and nothing is declared unless every return agrees. A body returning a runtime read or a call declares nothing; provide returns:
.step('policyLimit', script({
code: 'return $vars.fetchPolicy.output.body.limit;',
returns: 'number',
}))
returns always wins over the body. It accepts 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any', or an object-field map such as returns: { total: 'number', currency: 'string' }. 'any' is valid only as the top-level returns of a script@1.1 step, never on 1.0.0 or as a field type (check reports SCRIPT_RETURNS_UNKNOWN_TYPE); it leaves the output untyped even when the body has one evident type.
Writing the script as a function
For new scripts (the examples write every script this way), pass a TypeScript function so the editor and tsc check it. The string form remains necessary when a body splices an out() reference with js`` or the SDK is older than 6.57.0.
import { script, type FlowVars } from '@uipath/maestro-builder-sdk';
// … flow(…) chain
.step('normalize', script(normalize, { returns: { amount: 'number', valid: 'boolean' } }))
function normalize($vars: FlowVars) {
const amount = Number($vars.start.output.amount);
return { amount, valid: Number.isFinite(amount) };
}
- The function is never called: its body becomes the script exactly as written. Parameter one is runtime
$vars; parameter two is$metadata(below). Name them$varsand$metadatato avoid renaming; other names are renamed. Parameters bind by position, so take them in that order: a parameter named like the other one (($metadata) => …) is refused. - Read parameters only with dots (
$vars.start.output.amount). Destructuring, aliases (const v = $vars),$vars['start'],$vars?.start, and passing$varsto a helper are refused becausecheckcannot see the step read.<!--skill-flavor:script-function-returns-check:start--> returnsis the.flowdeclaration and is checked against the function return;returns: { amount: 'string' }for the example is a type error.compiledoes not type-check. In a workspace copy, runnpm install --save-dev @uipath/maestro-builder-sdk typescript, then runnpx tsc --noEmit --strict --module nodenext --moduleResolution nodenext --skipLibCheck <file>.flow.ts; with only the global SDK copy, nothing checks it, so matchreturnsfields by hand. Withoutreturns, the body's type is inferred as for a string body.<!--skill-flavor:script-function-returns-check:end-->- The function may read only the runtime. External values, module constants, imports, and module helpers named like runtime globals (such as
parseInt) are refused: each throws when the flow loads (script(normalize) cannot be a script: it reads LIMIT, …), andcompileandcheckalso refuse such a helper. Move values inside the function or declare them with.var()and read$vars.<name>. Pass the function by name or inline from a.tsfile;compileandcheckrefuse any other shape (script(h.check), a wrapper aroundscript). - Refused with a function-naming message:
async, generators, more than two parameters (more than one on an SDK older than 6.72.0, which lacks the metadata parameter), default or rest parameters,thisorargumentsoutside a nested function, a reference to the function's own name, and avaror function declaration reusing a parameter name. - With an SDK containing
dist/script-globals.d.ts, these are also refused, each because it fails in the run: top-level declaration or assignment ofconsole,uipath,aggregate,_aggregate, or_pipe, and acryptoorconsolemember the engine lacks (crypto.getRandomValues,console.table). - A script function may read
console, but notuipath,aggregate,_aggregate, or_pipe; these undocumented helpers makecompilerefuse the function.
To type-check a function using randomUUID, btoa, or atob, add /// <reference types="@uipath/maestro-builder-sdk/script-globals" /> when the SDK has dist/script-globals.d.ts; older SDKs refuse those names. Do not import an implementation: the engine provides them and compile refuses module reads. The reference does not declare crypto; crypto.randomUUID() requires @types/node or the DOM library, or call bare randomUUID().
The function form requires @uipath/maestro-builder-sdk 6.57.0 or later. Check that the SDK copy's dist/api-index.md lists ScriptValue. An older SDK fails with compile: Cannot read properties of undefined (reading 'matchAll'). Upgrade it by running npm install @uipath/maestro-builder-sdk@latest in a workspace with its own node_modules copy (used before the global one); else run npm install -g @uipath/maestro-builder-sdk@latest; otherwise write script({ code }).
Reading the instance metadata
A script can read $metadata: InstanceId, FolderKey, ProcessKey, ExternalId (the external id a case gives the instance; unset when no case started the flow), and ElementCount (the count for each element id). In a function, take it as the second FlowMetadata parameter. Name it $metadata or use another name, which is renamed; read the key after it only with a dot ($metadata.InstanceId, not $metadata['InstanceId']). After that key, bracket an element id that is not a JavaScript name: $metadata.ElementCount?.['my-step'].
ElementCount and ExternalId can be unset (ElementCount until its first count). Read through either with ?.; strict tsc refuses plain . or […], and the run throws TypeError when the key is unset.
import { script, type FlowVars, type FlowMetadata } from '@uipath/maestro-builder-sdk';
// … flow(…) chain
.step('tag', script(tag, { returns: 'string' }))
function tag($vars: FlowVars, $metadata: FlowMetadata) {
return $metadata.InstanceId + ':' + $vars.start.output.id;
}
These five keys are all the engine sets. check warns UNKNOWN_METADATA_KEY for any other key, including misspellings ($metadata.instanceId reads undefined); the suggestion names the correct key. A case that starts the flow may set its own instance keys. When the flow is meant to read one of those, keep the read and warning, and widen the parameter type: $metadata: FlowMetadata & { Region?: string }. Decompile instead widens it to FlowMetadata & Record<string, any>; these forms are interchangeable, so leave either.
The metadata parameter requires @uipath/maestro-builder-sdk 6.72.0 or later. Check that the SDK copy's dist/api-index.md lists FlowMetadata. An older SDK refuses two parameters and any function reading $metadata. Upgrade as above, or read $metadata from script({ code }).
The JavaScript runtime
A script has modern syntax (?., ??, arrow functions), built-in objects, console, and exactly four provided extras: btoa, atob (UTF-8, unlike Node/browser Latin-1), randomUUID(), and crypto.randomUUID(). Nothing else is provided: require, fetch, Luxon's DateTime, moment, lodash, Intl, URL, TextEncoder, Buffer, and structuredClone are undefined at runtime, and crypto has no other member. Rewrite Node or low-code code-step code accordingly.
console only has debug, error, info, log, and warn, all no-ops. Other methods such as console.table and console.assert are undefined and calling them fails the run. The execution envelope is ~64 MB; exceeding it fails with Script has allocated <n> but is limited to 67108864 (incident 300501, no variable named). Copying a large $vars value counts, including connector output with attachment contentBytes; copy only needed fields. toLocaleDateString always returns the long English form regardless of locale/options; format dates from getUTC… parts.
The engine declares console, uipath, aggregate, _aggregate, and _pipe with const before the body. Do not declare any at top level with const, let, var, function, or class, or assign to it: the run fails with Identifier '…' has already been declared or Assignment to constant variable. A let, const, function, or class in a nested block/function, and a var inside a nested function, is your own. A var in a plain block hoists and fails; assigning one of these names anywhere also fails unless your own declaration is in scope.
flow validate types scripts against ES2020 and warns EXPRESSION_DIAGNOSTIC for later members such as replaceAll, although the run executes them. Use replace with a global regular expression (s.replace(/-/g, '+')). It also warns EXPRESSION_DIAGNOSTIC Cannot find name 'randomUUID' and Cannot find name 'crypto' because its library does not declare them (btoa and atob are known). The randomUUID and crypto warnings are expected: the flow remains Valid, the run provides the names, and the script should remain unchanged.
The Studio Web canvas also type-checks each script body as TypeScript and marks a type error red, although the run executes the body as JavaScript. The common case is an object built up after an empty literal: const t = {}; t.field = 1 is marked Property 'field' does not exist on type '{}'. flow validate reports it as the warning EXPRESSION_DIAGNOSTIC, and flow check as the warning SCRIPT_TYPE_DIAGNOSTIC (an SDK that includes builder-sdk#2100; an older check reports nothing). Build the object in one literal (const t = { field: 1 }), or add fields with a spread (t = { ...t, field: 1 } on a let). A type annotation does not help: in a script({ code }) string, const t: any = {} fails the run; in a function, compile erases it, so the canvas still sees const t = {}.
Open this reference as its own page
Subflow
Exact signatures, fields, and defaults: subflow().
Subflow packages a child Flow authored in the same source file as one parent step.
Signature: subflow(childFlow, { childInput: expression, ... }).
const child = flow('normalize').input({ raw: types.string })
.output({ clean: types.string })
.step('trim', script({ code: js`return ${input('raw')}.trim();`.js, returns: { clean: 'string' } }))
.return({ clean: out('trim', 'clean') }).build();
export default flow('parent').input({ text: types.string }).output({ clean: types.string })
.step('normalized', subflow(child, { raw: input('text') })).return({ clean: out('normalized', 'clean') }).build();
Read the child's own inputs with input(...), not a hand-written $vars.raw. A
declared input is bound to the node that starts its flow, and a child's start
node is named after the CALLER — <callerStepId>Start. The script above emits
return $vars.normalizedStart.output.raw.trim();, so hand-writing the reference
would both be wrong and break the moment the parent step is renamed. See
manual-trigger.md.
Use a child for a meaningful contract or a unit of reuse, not as a speed optimization or an arbitrary split. Local instrumentation observes the parent step's data path; it does not turn that boundary into a separate deployed job.
Read a child output by its declared name — out('reverse', 'reversed'), never a bare
out('reverse'). The compiler serializes each call's body under top-level subflows.
The same child can be reused at any nesting depth; copied node ids and references
are re-keyed together so every call site remains isolated.
At a glance
Run a child Flow authored in the same file as one parent step.
Use a child for a meaningful contract or reuse boundary, not arbitrary splitting or speed; children can be reused at any nesting depth.
Read a child's inputs with input(...): its start node is named <callerStepId>Start, so a bare $vars.raw is wrong.
Open this reference as its own page
Summarize
Exact signatures, fields, and defaults: summarize().
Reads an attachment and produces a summary given a prompt.
Signature: summarize({ attachment, prompt, returnCitations? })
.step('digest',
summarize({
attachment: out('previousNode', 'document'),
prompt: 'Summarize decisions and owners.',
returnCitations: true
}))
At a glance
Summarize reads a document; Batch transform (batch-transform.md) enriches a CSV into a new file.
.step('digest', summarize({ attachment: out('start', 'document'),
prompt: 'Summarize the decisions and owners.',
returnCitations: true }))
Request citations only when the scenario needs them.
General
- Error 460005 can be transient; retry it once before classifying the failure
Open this reference as its own page
Switch
Switch routes one value among several cases.
Signature:
.switch(name, on, [{ value: string | number | boolean, label?, body }], defaultFn?);
a case may use when: Expr instead of value (below).
.switch('priority', input('priority'), [
{ value: 'high', body: (b) => b.step('page', script({ code: 'return 1;' })) },
{ value: 'low', body: (b) => b.step('queue', script({ code: 'return 2;' })) },
], (other) => other.step('normal', script({ code: 'return 3;' })))
Prefer Switch when one discriminant selects three or more paths; Branch is usually clearer for two. Decide whether cases end independently or rejoin a shared successor.
Cases are tried top to bottom; a value case compares strictly (===) with
on. Each case gets a generated case-<id> port; the optional final callback
uses default.
A case can carry its own condition instead of a value: { when: js`...`, label?, body }. The switch takes the first case whose condition is true. Pass
undefined for on when every case uses when:
.switch('route', undefined, [
{ when: js`$vars.start.output.amount > 100`, label: 'High', body: (b) => b.step('review', script({ code: 'return 1;' })) },
{ when: js`$vars.start.output.amount <= 100`, label: 'Low', body: (b) => b.step('auto', script({ code: 'return 2;' })) },
])
A case has exactly one of value or when (SWITCH_CASE_FORM otherwise), and
a value case needs an on. Decompile writes when cases for a designer-drawn
switch whose cases are not one shared <discriminant> === <value>; keep them.
In a new flow, use when cases when each path needs its own condition (ranges,
different fields) and there are three or more paths; two conditions are still a
.branch.
A decompiled switch the designer drew may carry id: "default-1" (and so on) on
its cases. That keeps the case ids the original file has, so the merged edges
match the original switch node. Leave those ids as they are; do not add one to
a case you write yourself.
At a glance
Split runtime control among cases of one discriminant.
Signature: .switch(name, on, [{ value, label?, body }], defaultFn?); a case may use
when: Expr instead of value, with on = undefined when every case does.
.switch('priority', input('priority'), [
{ value: 'high', body: (b) => b.step('page', script({ code: 'return 1;' })) },
{ value: 'low', body: (b) => b.step('queue', script({ code: 'return 2;' })) },
])
Prefer switch when one value selects three or more paths; use branch for two.
Open this reference as its own page
Terminate
Terminate stops the entire run. In a parallel arm it aborts sibling work; it does not complete the Flow with output values.
Signature: .terminate(name, label?).
.branch('fatal', input('fatal'),
(yes) => yes.terminate('abort', 'Abort run'),
(no) => no.step('continue', script({ code: 'return "ok";' })))
Choose Terminate only when the requirement is stop-all rather than return an
answer from one path. A green run alone is weak evidence for this node. Use an
abort-specific witness: for example, show that a sibling side effect never
happened. Do not use the instance status: a terminated run ends Completed, and
.terminate() outputs come back null.
Inside a parallel arm it aborts sibling arms, whereas .return(...) only ends its
own path. Its mappings are terminal metadata, not a readable action result:
out('<terminate>') remains invalid.
Stopping another path at the same Terminate
A Terminate's name is a step name, so another path can stop there with
.stepToRef(name) instead of getting a Terminate of its own. The flow then has
ONE Terminate with several incoming edges, as the canvas draws it.
Needs @uipath/maestro-builder-sdk 6.32.2 or later; an older SDK refuses the
ref as REF_INTO_PORT_LIST,
so upgrade with
npm install -g @uipath/maestro-builder-sdk@latest.
.stepToList('branch-missing', (b) => b.step('reportMissing', script({ code })).terminate('stopFailed'))
.stepToList('branch-throttled', (b) => b.step('reportThrottled', script({ code })).stepToRef('stopFailed'))
- The Terminate may sit inside another path (an HTTP
branch-*, a human-taskoutcome-*, a.stepSwitcharm, an.entryPointprefix). A ref into a STEP inside abranch-*oroutcome-*list is stillREF_INTO_PORT_LIST; a Terminate runs nothing after itself, so it is allowed. - Spell each Terminate ONCE. Two
.terminates asking for the same name are refused (DUP_STEP, bycheckand bycompile). They are not renamedstopFailed2. Stop the other paths with.stepToRef('<name>'). A step and a Terminate with one name areDUP_STEPtoo: rename one of them. - A decompiled brownfield flow uses this form when a second path runs into a
Terminate another path already stops at. Keep the
.stepToRef('<terminate id>')when you edit.
At a glance
Stop the entire Flow run, including sibling parallel arms.
Use it only for stop-all intent; prove cancellation with an abort-specific witness.
Open this reference as its own page
Transform
Exact signatures, fields, and defaults: transform().
Transform applies filter, map, or group-by operations to an array.
Signature:
transform({ collection, operations, variant?: 'filter' | 'map' | 'group-by' }).
Operations are the SDK's filter, map, and groupBy discriminated shapes.
.step('active', transform({ variant: 'filter', collection: input('rows'),
operations: [{ type: 'filter', filters: [
{ field: 'status', condition: 'equals', value: 'active' },
] }] }))
At a glance
Filter, map, group, or chain operations over an array without custom JavaScript.
Prefer a named variant for one operation and generic Transform for a chain; verify chain order against real fields.
Choosing the shape
Prefer a named variant for one standard operation so the canvas communicates intent. Use generic Transform for a chain; use Script when the requested calculation does not fit the transform operations.
Data-dependent review
Operations run in order. A map can remove a field that a later filter or group expects, and a plausible misspelled field on untyped input can yield empty rows without a structural failure. Review the chain against representative items and assert the resulting values, not merely that the node ran.
Omit variant for the generic node. Set variant: 'map' | 'filter' | 'group-by'
for a single-purpose node; operations must then contain exactly one entry.
Use transform() for every Transform node. To use a newer registry version,
pass it on the step: .step('g', transform({ ... }), { version: '1.1' }). The
factory writes collection as a plain $vars path and puts each operation's
settings under config. A rawNode copy of the manifest keeps v() as an
expression object, and the runtime reads that as an empty collection.
Open this reference as its own page
Voice
Exact signatures, fields, and defaults: voiceTrigger(), createOutgoingCall(), endCall(), voiceAgent().
A voice call is a conversation with an audio front end. It is identified by a
callContext OBJECT — not a bare conversation id — and that object is what
every voice step is keyed by.
// Inbound: the platform hands you the call.
export default flow('support-line')
.trigger(voiceTrigger())
.step('greet', voiceAgent({
systemPrompt: 'Greet {{input.customerName}} and find out why they called.',
inputs: { customerName: input('customerName') },
callContext: out('start', 'callContext'),
voice: { model: 'gemini-3.1-flash-live-preview', persona: 'Kore' },
}))
.step('hangUp', endCall({ callContext: out('start', 'callContext') }))
.build();
// Outbound: the flow places the call.
.step('dial', createOutgoingCall({ from: input('callerNumber'), to: input('customerPhone') }))
.step('talk', voiceAgent({
systemPrompt: 'Remind {{input.customerName}} about {{input.amount}}.',
inputs: { customerName: input('customerName'), amount: input('amount') },
callContext: out('dial', 'callContext'),
}))
At a glance
Talk to someone on a phone call. The call is identified by a callContext
OBJECT — pass the whole thing, never a field inside it.
Signatures: .trigger(voiceTrigger()); createOutgoingCall({ from, to }); endCall({ callContext }); voiceAgent({ systemPrompt, inputs?, callContext, voice?, maxIterations?, tools?, context?, escalation? }).
.step('dial', createOutgoingCall({ from: input('callerNumber'), to: input('phone') }))
.step('talk', voiceAgent({ systemPrompt: 'Confirm {{input.customerName}}\'s delivery window.',
inputs: { customerName: input('customerName') },
callContext: out('dial', 'callContext'),
voice: { model: 'gemini-3.1-flash-live-preview', persona: 'Kore' } }))
.step('bye', endCall({ callContext: out('dial', 'callContext') }))
The incoming-call trigger publishes out('start', 'callContext'). A persona belongs to its voice model; maxIterations is capped at 8.
The call context
out('start', 'callContext') (inbound) or out('<dialStep>', 'callContext')
(outbound) is the whole object — { type, id, conversationId, … } — and that is
what to pass. Reaching inside it is the mistake this family invites:
out('dial', 'callContext.conversationId') is a string, the node's schema types
the field as object, and a scalar there passes the file's schema and then
fails at dispatch. check catches it (VOICE_CALL_CONTEXT_NOT_OBJECT).
Both numbers on createOutgoingCall are E.164 — a leading +, then country
code and subscriber number, 7–15 digits in all. from must be a number provisioned on the tenant's
telephony provider; anything else is rejected when the call is placed, not when
the flow is validated. endCall reads out('<step>', 'ended').
When the request asks for placeholder numbers or an offline build, pass a
placeholder E.164 string literal for each: a +, then 7–15 digits. Otherwise
bind to to the recipient's data, and set from to the provisioned caller
number; ask for it when you do not know it.
How the agent sounds
voice takes a VOICE model (a live/realtime one — not the text models
inlineAgent takes) and one of THAT model's personas; the two travel together:
| Model | Personas |
|---|---|
gemini-3.1-flash-live-preview (default) |
Aoede, Charon, Fenrir, Kore, Leda, Orus, Puck, Zephyr |
gpt-realtime-2 |
alloy, ash, ballad, coral, echo, sage, shimmer, verse |
Omit voice entirely for the platform default. maxIterations is capped at
8, tighter than a text agent's 100, because a caller is waiting on the turn.
The caller's turn arrives as audio, but the system prompt can use flow context.
Declare each value under inputs and reference it as {{input.<name>}}; compile
emits the runtime bindings and matching sidecar schema. There are no declared
returns: the definition declares what comes back. Compile writes a
voice-dialect <source>/agent.json sidecar (settings.mode: 'voice') beside
the .flow.
Tools, context and escalations
voiceAgent takes the same tools, context and escalation options as
inlineAgent, written the same way (agent-resources.md).
Each one becomes a resource node on the agent's tool, context or
escalation handle:
.step('serviceAgent', voiceAgent({
systemPrompt: 'Look the caller up before you answer.',
callContext: out('start', 'callContext'),
tools: [{ kind: 'api', key: '<guid>', name: 'LookupCustomer', folderPath: 'Shared/ContactCenter' }],
}))
The SDK version these options need, their check codes, and what decompile
does not carry back yet:
agent-resources.md.
Evidence boundary
uipath.agent.voice is served on this tenant; the trigger and the two call
actions are AvailableOnTenant: false and ship bundled from the workbench
manifests. Nothing local dials a phone: a green ladder proves the node types,
the call-context threading and the voice settings. A real call, real audio, and
what the caller heard are platform evidence.
uip maestro flow debug rejects a flow that starts from voiceTrigger(): only
a real call raises that trigger, so do not run it. Tell the user the test loop
instead: pack and publish (operate.md), deploy with
uip solution deploy run (uipath-solution skill), route an inbound-enabled
number to the release, then call that number:
uip conversational trunks list --direction inbound --output json
uip conversational trunks assign <PHONE_NUMBER> --process-key <PROCESS_KEY> --folder-key <FOLDER_KEY> --output json
<PROCESS_KEY> is Key from uip or processes list, not ProcessKey;
<FOLDER_KEY> is its FolderKey. A number is added or inbound-enabled in
Instance Management under Phone numbers, never from the CLI. Run assign only
when the user asks: it routes live callers to the release. A bound number needs
--yes and loses whatever it served, so get the user's OK for that number first.
More in this playbook
Browser mate
Use when automating a real, logged-in Chrome WITHOUT disturbing the user's open tabs — e.g. authenticated sessions like ChatGPT, LinkedIn, or any site needing a persistent login. Launches or reuses a dedicated debug Chrome instance per named profile that coexists with the user's main browser; it never quits or kills any browser (unlike real-browser, which closes Chrome Beta's tabs). Trigger on "automate this site without closing my tabs", "use my logged-in session", "open ChatGPT/LinkedIn in automation", or when a browser task must preserve the user's existing windows. macOS, requires the agent-browser CLI.
RPAMIT Matt Townsend + 1Engineer @ MicrosoftManage desktop flows
Manage and run Power Automate Desktop (RPA) flows and machine groups. Use when the user asks about desktop flows, RPA, or machine groups.
RPAMITUipath architecture deepening
Use only when the user explicitly asks to deepen a proven UiPath architecture hotspot into ranked design options and a safe handoff.

