@uipath/skills 1.207.0-preview.2015 → 1.207.0-preview.2034

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/package.json +1 -1
  2. package/skills/uipath-genome/references/configuration-questions-guide.md +2 -2
  3. package/skills/uipath-genome/references/source-frameworks-guide.md +11 -1
  4. package/skills/uipath-genome/references/source-migration-guide.md +1 -1
  5. package/skills/uipath-maestro-bpmn/references/diagnose.md +9 -8
  6. package/skills/uipath-maestro-bpmn/references/operate.md +6 -3
  7. package/skills/uipath-maestro-bpmn/references/patterns/high-volume-batch-guide.md +1 -1
  8. package/skills/uipath-maestro-case/SKILL.md +1 -0
  9. package/skills/uipath-maestro-case/examples/DocumentExtractionCase.case.ts +41 -0
  10. package/skills/uipath-maestro-case/references/case-runtime.md +32 -0
  11. package/skills/uipath-maestro-flow/SKILL.md +8 -9
  12. package/skills/uipath-maestro-flow/examples/SeedPacketReader.flow.ts +5 -11
  13. package/skills/uipath-maestro-flow/references/author.md +2 -2
  14. package/skills/uipath-maestro-flow/references/brownfield.md +14 -3
  15. package/skills/uipath-maestro-flow/references/connector-params.md +6 -4
  16. package/skills/uipath-maestro-flow/references/document-pipeline.md +42 -29
  17. package/skills/uipath-maestro-flow/references/external-agent.md +15 -12
  18. package/skills/uipath-maestro-flow/references/extract-document-node.md +2 -2
  19. package/skills/uipath-maestro-flow/references/extract-document-taxonomy.md +1 -1
  20. package/skills/uipath-maestro-flow/references/patterns/composing-guide.md +5 -1
  21. package/skills/uipath-maestro-flow/references/transform.md +6 -0
  22. package/skills/uipath-maestro-flow/references/voice.md +5 -0
  23. package/skills/uipath-planner/references/extract/extract-guide.md +1 -1
  24. package/skills/uipath-planner/references/extract/source-frameworks-guide.md +11 -2
  25. package/version-manifest.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2015",
3
+ "version": "1.207.0-preview.2034",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -38,7 +38,7 @@ Four groups of questions, asked in this order — five in a refactor:
38
38
  | Test case status *(test projects)* | Mark the built test cases Publishable, so the package carries them and Test Manager can run them? | Publishable (Recommended when the suite is delivered to run): a test package carries only Publishable cases, and one with none is refused at upload (the owning skill's pack guidance); in progress — the open items mark them before the pack |
39
39
  | Live application *(once per run, every genome with UI steps)* | Can the build reach the target application, or a comparable instance of it? In a migration, to explore how it is driven before the migration is built offline, and for the live healing pass once the workflows are written ([ui-target-migration-guide.md](ui-target-migration-guide.md) rule 4); for an authored genome, to capture its targets live ([live-application-guide.md § Authored genomes](live-application-guide.md)) | Neither — in a migration every target `offline-unverified`, its live checks handed to the engineer; for an authored genome every target a placeholder, its live checks handed to the engineer; a comparable instance — its window or URL, the sign-in the user does for the build, and what must never be closed; the target application — the same three details. Recommended: Neither; the genome sets no reachability default. When the genome names the environment its UI targets run in (`UI targets: <environment>`) — a process genome on its Deployment line, a component genome in its Target Applications section — the target application option offers that environment as the instance |
40
40
  | Healing pass *(once per run, when the Live application answer names a reachable application)* | The live healing pass checks every target on that application read-only; may it also run the workflows and tests against it and fix what fails? The runs enter and change data there ([live-application-guide.md § Live healing pass](live-application-guide.md)) | No — the read-only check only, the runs left to the engineer through the live checks (Recommended); yes, on test data or data the user can restore, which the user names with what must not be touched; only the test cases, or the workflows the user names |
41
- | Framework migration guide (extracted genomes from a framework other than UiPath only) | Where is the framework migration guide ([source-frameworks-guide.md](source-frameworks-guide.md))? | Path given in the request; another path or a git URL to clone (free text); not available — same outcome as "no export available", stated in the report |
41
+ | Framework migration pack (extracted genomes from a framework other than UiPath only) | Which framework migration pack does the build read ([source-frameworks-guide.md](source-frameworks-guide.md))? | UiPath's pack; another folder path or git URL (free text); not available — same outcome as "no export available", stated in the report |
42
42
  | Log target *(every project that logs; skipped when a genome question already asks it)* | Where do the run's log messages go? | Orchestrator's job log, through a plain Log Message at each log point (Recommended; the robot also writes its execution logs to a local file); the source's own run log as well, in its shape (extracted genomes); a log target the user names |
43
43
  | Subagents *(once per run, when the host runs subagents)* | Does one session build everything, or do parts run through subagents — and then on which model, and how many at once? | The options of [execution-parts-guide.md § Running in Parts](execution-parts-guide.md) item 7, recommended by the genome's Complexity there; how many parts may run in parallel: [execution-parts-guide.md § What a Build Adds](execution-parts-guide.md) item 1a |
44
44
 
@@ -60,7 +60,7 @@ Rules:
60
60
  2b. Every component, project and step a question or option mentions goes by the name the genome gives it — a component by its Component cell in the Components table, a step by its number and bold name (`step 4, Submit requisition`) — never by its position (`component 2`) or a role several could share (`the processing component`, `the consumer`); a role may follow the name when it helps (`Invoice Extraction, which takes the queue items`).
61
61
  3. Present with `AskUserQuestion`, at most four per batch; collect a batch before showing the next. When the questions run past three batches, or a genome question defaults to the value the source runs with, the first batch is one question, how to answer them, since its answer decides which follow; it is not asked when the request already answers it. Its options: batch by batch; the defaults; the defaults with named overrides; given such a genome question, the source's values (rule 3a); and what the user can answer now, the rest written into the readiness file for others, the build then stopping as `prepare` does ([prepare-guide.md](prepare-guide.md)). A choice of the defaults, with or without overrides, is the user's waiver the autonomous-run paragraph below requires. Under `prepare` it is always the first question, with its own options: what the user knows now, the rest left in the file (Recommended); the file only; every question now, with the offer to build once none is left. Each question it asks offers "Leave open", for an answer that sits with someone else. The file only and an autonomous run ask nothing and leave every question open in the file.
62
62
  3a. **The source's values** answer each genome question whose default is a value the export holds, recorded "(source)". Every other question is asked: one whose default is "not in the export" or marked *[Inferred]*, which the source does not settle; a question between the source's way and another the target offers or requires, whatever its default, since the source never faced that choice; and the refactor, split and scaffolding questions, which shape the target build.
63
- 3b. **A question comes before those its answer settles or changes**, and an answer drops each later question it settles: among the scaffolding questions, the Source export and the Framework migration guide first, then the Live application; Source fidelity before Library layout, and Library layout before Library location. The split questions keep their own order.
63
+ 3b. **A question comes before those its answer settles or changes**, and an answer drops each later question it settles: among the scaffolding questions, the Source export and the Framework migration pack first, then the Live application; Source fidelity before Library layout, and Library layout before Library location. The split questions keep their own order.
64
64
  4. Record answers as a `Configuration Answers` list with a `Scaffolding` group, in the hand-off's README as soon as they exist ([completion-report-guide.md](completion-report-guide.md)); the project-creation step in 1.4 receives the scaffolding answers, and every later build step receives the answers relevant to it. A choice the request makes that no question asks — a semantic step on migrated targets ([selector-translation-guide.md](selector-translation-guide.md) rule 12) — is recorded in the same list, as the request words it, so every part and check reads it from there. A file of answers the user supplies — named in the request, handed over at any batch, the preferences file the genome's `Preferences:` line names (read before the first question), or the SDD and the readiness file beside the genome (rule 4a) — is the user's answer, read when it arrives. For every file of answers: a question it answers is not asked, or not asked again, and is recorded "(from the answers file)"; a decision it states that no question asks is recorded, marked "(from the answers file)", as a rule the build follows; an answer that conflicts with a rule of this skill or the owning skill goes to the user with both statements, never resolved silently, and the list records the user's ruling. Each answer the user did not give in a batch carries its source's label: `(from the SDD)`, `(from the request)` or `(from the refactor answers)` for a decided value (the decided-values table), "(from the answers file)", "(source)" (rule 3a), "(default)" (autonomous runs).
65
65
  4a. **The SDD and the readiness file beside the genome.** An SDD `uipath-planner` wrote sits beside the genome, `<slug>-sdd.md` (a process genome's `<slug>-solution-sdd.md`), opening on its Action Required section, which it also writes into the SDD a `Designed in:` line links; a genome may have none; `prepare` writes the readiness file, `-readiness.md` in place of `-genome.md`. A component genome with a `Part of:` line reads its process genome's. In either, what follows an item's `Answer` is its answer: an option's letter, a value, `default` for a value item's default, or the person's own words. An item `prepare` wrote whose options no longer hold on the machine that builds (another machine, other packages installed) is asked again. Genome edits not yet made are, unless the answer keeps what the genome builds now, which the build records and follows as it stands:
66
66
  - the answered or changed items of Business decisions, Material to supply and Preferences, in the SDD or under the readiness file's Decisions still open;
@@ -10,7 +10,13 @@ A UiPath source (`.uipx`, `project.json`, `project.uiproj`, `.xaml`/`.cs`, `.flo
10
10
 
11
11
  Every other framework is read through the **framework migration pack**, which holds per framework a **source guide**, a **selectors guide** and an **inventory script**. Resolve it once per run:
12
12
 
13
- 1. **Ask for its location.** Ask "Where is the framework migration guide?" unless the request, or the scaffolding answer ([configuration-questions-guide.md](configuration-questions-guide.md)), already gave it. Accept a folder path (`<PACK_DIR>`); a git URL is cloned into a scratch folder first. Never search the disk for it, never work from memory of its contents, never copy its files into this skill or beside a genome.
13
+ 1. **Ask which pack to read**, unless the request, or the scaffolding answer ([configuration-questions-guide.md](configuration-questions-guide.md)), already names one: **UiPath's pack** (https://github.com/UiPath/business-logic-extraction), or another, as a folder path or a git URL. Download UiPath's pack into a new scratch folder, which needs no git and no GitHub account; `<PACK_DIR>` is then `<SCRATCH_DIR>/business-logic-extraction-main`:
14
+
15
+ ```bash
16
+ curl -fsSL https://github.com/UiPath/business-logic-extraction/archive/refs/heads/main.tar.gz | tar -xzf - -C "<SCRATCH_DIR>"
17
+ ```
18
+
19
+ In Windows PowerShell, where `curl` is `Invoke-WebRequest` and a pipe breaks binary data, save the archive with `curl.exe -fsSL -o "<SCRATCH_DIR>/packs.tar.gz"` and the same URL, then run `tar.exe -xzf "<SCRATCH_DIR>/packs.tar.gz" -C "<SCRATCH_DIR>"`. Another git URL is cloned into a scratch folder first, and the clone is `<PACK_DIR>`; a folder path is `<PACK_DIR>` itself. Never search the disk for a pack, never work from memory of its contents, never copy its files into this skill or beside a genome.
14
20
  2. **Select the framework row** in `<PACK_DIR>/README.md` § Frameworks: the framework the Source Map names. That name makes the build a **migration**.
15
21
  3. **Run, then read.** Run the row's script before reading any export file. Read [source-migration-guide.md](source-migration-guide.md) whole and derive the catalogs with the same script (its § Migration preflight). Whoever names a deliverable also reads the source guide's § Component Detection naming, for the product terms it lists ([source-migration-guide.md § Source steps that are not UI actions](source-migration-guide.md)). Whoever writes UI activities or targets also reads [ui-target-migration-guide.md](ui-target-migration-guide.md), [composite-interactions-guide.md](composite-interactions-guide.md), the source guide's § Composite actions and `<PACK_DIR>/<framework>/selectors-guide.md` by technology section; whoever writes or registers targets — a target spec, Object Repository elements — also reads [offline-definition-workarounds-guide.md](offline-definition-workarounds-guide.md) and [selector-translation-guide.md](selector-translation-guide.md) with [selector-matching-guide.md](selector-matching-guide.md) and its guide for each technology the target catalog holds — web ([selector-translation-web-guide.md](selector-translation-web-guide.md)), SAP GUI ([selector-translation-sap-guide.md](selector-translation-sap-guide.md)), desktop ([selector-translation-desktop-guide.md](selector-translation-desktop-guide.md)); whoever builds test components reads [test-execution-guide.md](test-execution-guide.md).
16
22
 
@@ -18,4 +24,8 @@ Every other framework is read through the **framework migration pack**, which ho
18
24
 
19
25
  | Situation | `build` |
20
26
  |---|---|
27
+ | The download or clone fails | Say why, and ask for a folder path |
28
+ | No row names the Source Map's framework | Say so, and ask for a pack that has one |
21
29
  | The pack is not available | Continue without the migration part — live capture or placeholders, stated in the report ([source-migration-guide.md § Migration preflight](source-migration-guide.md) step 1) |
30
+
31
+ In an autonomous run, a failed download or clone and a pack with no row for the framework ask nothing: the pack is not available.
@@ -6,7 +6,7 @@ Execution of an extracted genome migrates what the genome body leaves out: the s
6
6
 
7
7
  Source Map names framework, export path and identity, and every step's source objects. Execution turns that into working catalogs once, before the first UI group:
8
8
 
9
- 1. Resolve the export and the framework migration pack: the recorded export path, or the paths the user gave to the scaffolding questions ([configuration-questions-guide.md](configuration-questions-guide.md)); confirm the export's identity against the Source Map (manifest, version, process count) and select the pack's framework row ([source-frameworks-guide.md](source-frameworks-guide.md)). Report a mismatch and let the user decide; a missing or declined export or pack ends the migration part of the run — live capture where the application is reachable, placeholders otherwise, stated in the report.
9
+ 1. Resolve the export and the framework migration pack: the recorded export path, or the export and the pack the scaffolding questions resolved ([configuration-questions-guide.md](configuration-questions-guide.md)); confirm the export's identity against the Source Map (manifest, version, process count) and select the pack's framework row ([source-frameworks-guide.md](source-frameworks-guide.md)). Report a mismatch and let the user decide; a missing or declined export or pack ends the migration part of the run — live capture where the application is reachable, placeholders otherwise, stated in the report.
10
10
  2. Run the source guide's inventory commands (its § UI Target Locators and § Test Data name them and the files they write) into the build's working folder `<solution or project>/migration/source/`, never beside the genome.
11
11
  3. The step tables are not re-checked here: `uipath-planner` checks them against the export when it extracts the genome. Each component genome's step table (the Source Map's `### Steps`, [genome-reading-guide.md § Source Map](genome-reading-guide.md)) pairs every workflow step with its source objects `` `Name` (id) ``, its data sets and its captures. A step whose objects do not resolve in the export resolved here is a genome deviation, reported for a `uipath-planner` edit; the build maps that step by hand meanwhile and records the mapping.
12
12
  3a. **Write the target spec per component, once**, when the build has UI activities: [ui-target-migration-guide.md § Target spec](ui-target-migration-guide.md). Where the Live application answer names a reachable application, explore it first and write its application notes, which the spec is derived with ([live-application-guide.md § Exploring](live-application-guide.md)); once the spec is written, the contract probe runs before any group authors ([live-application-guide.md § Contract probe](live-application-guide.md)).
@@ -50,8 +50,9 @@ uip maestro bpmn job status <JOB_KEY> --folder-key <FOLDER_KEY> --output json
50
50
  ```
51
51
 
52
52
  For a **debug** run, the `instanceId` the debug command returned is the handle,
53
- and the `debug-instance` commands read it (see below). Keep deployed-instance
54
- reads and debug-session reads separate.
53
+ and the `debug-instances` commands read it (see below;
54
+ [`uip` version note](operate.md#debug--a-controlled-studio-web-run)). Keep
55
+ deployed-instance reads and debug-session reads separate.
55
56
 
56
57
  ## Step 2 — read incidents
57
58
 
@@ -141,9 +142,9 @@ with the commands below. The debug command's own output lists each
141
142
  element's status, never a variable's value.
142
143
 
143
144
  ```bash
144
- uip maestro bpmn debug-instance incidents <INSTANCE_ID> --output json
145
- uip maestro bpmn debug-instance variables <INSTANCE_ID> --output json
146
- uip maestro bpmn debug-instance variables-all <INSTANCE_ID> --output json
145
+ uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
146
+ uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
147
+ uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
147
148
  ```
148
149
 
149
150
  ## The diagnosis
@@ -263,9 +264,9 @@ uip maestro bpmn processes incidents <PROCESS_DEFINITION_KEY> --folder-key <FOLD
263
264
  ```
264
265
 
265
266
  ```bash
266
- uip maestro bpmn debug-instance incidents <INSTANCE_ID> --output json
267
- uip maestro bpmn debug-instance variables <INSTANCE_ID> --output json
268
- uip maestro bpmn debug-instance variables-all <INSTANCE_ID> --output json
267
+ uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
268
+ uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
269
+ uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
269
270
  ```
270
271
 
271
272
  Lifecycle commands are deliberately absent from this list; they are in
@@ -204,11 +204,14 @@ end event's `Outputs` in that response, not by `Globals`: a value set in
204
204
  `Globals` that the end event does not map reaches the caller as `null`.
205
205
 
206
206
  ```bash
207
- uip maestro bpmn debug-instance variables-all <INSTANCE_ID> --output json
208
- uip maestro bpmn debug-instance variables <INSTANCE_ID> --output json
209
- uip maestro bpmn debug-instance incidents <INSTANCE_ID> --output json
207
+ uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
208
+ uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
209
+ uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
210
210
  ```
211
211
 
212
+ `debug-instances` needs `uip` 1.206 or later; on older versions the group is
213
+ `debug-instance`.
214
+
212
215
  Never use `debug` as validation. `check`, `validate` and the local engine
213
216
  (`flow-debug`, which runs the compiled `.bpmn` on this machine with every
214
217
  service mocked) are the offline checks; `debug` executes against real services.
@@ -73,7 +73,7 @@ A looped task outside any looped sub-process carries no `inputElement` on the ca
73
73
  Any other `itemVar` (`'invoice'`) is the outer key, and the inner key stays `item`: `iterator["invoice"]["item"]`, while `iterator[0]` and `iterator["invoice"]["invoice"]` read `null`.
74
74
  A script does not see `iterator`: its scope holds only the `args` envelope, and the engine builds a script's `iterator` only from `iterator[N]` keys in it.
75
75
  To read the item in a script, pass it in with `inputs: { 'iterator[0]': '=iterator[0]' }`, which is what the designer writes, and read `iterator[0].item`; `validate` still warns that `iterator` is undefined, a false positive once the key is there.
76
- A wrong iterator read fails nothing: it yields `null` (or `"undefined"` after `String()`), every check passes and the run completes. Prove a loop by reading the per-item results with `debug-instance variables-all` after a Maestro debug run; local `flow-debug` reads loops differently ([offline checks](../operate.md#debug--a-controlled-studio-web-run)).
76
+ A wrong iterator read fails nothing: it yields `null` (or `"undefined"` after `String()`), every check passes and the run completes. Prove a loop by reading the per-item results with `debug-instances variables-all` after a Maestro debug run; local `flow-debug` reads loops differently ([offline checks](../operate.md#debug--a-controlled-studio-web-run)).
77
77
  The body is its own sequence scope: give it its own `.flowMode('sequence')`, start event and end event.
78
78
 
79
79
  | Node | Builder | Role |
@@ -51,6 +51,7 @@ three entry points; each file's header spells the paths its rows resolve against
51
51
  | Published UiPath work | `process`, `agent`, `rpa`, `apiWorkflow`, `caseManagement`, `flowProcess`, `unresolved` | [TaskBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
52
52
  | Business rules (decision tables) | `businessRule` (SDK 6.34.0+) | [TaskBuilder](#api-index) | `examples/CreditDecision.case.ts` |
53
53
  | Deployed Coded Functions | `function` (SDK 6.47.1+) | [TaskBuilder](#api-index) | — |
54
+ | Document extraction | `documentExtraction(model, { deployment, folderKey, folder, deploymentKey, file, pageRange? })` (SDK 6.82.0+, uip 1.206.0+) | [Document extraction](references/case-runtime.md#document-extraction) | `examples/DocumentExtractionCase.case.ts` |
54
55
  | Script tasks | `script(fn \| body)` (SDK 6.81.0+) | [Script tasks](references/case-runtime.md#script-tasks) | `examples/ScriptCase.case.ts` |
55
56
  | Resolving SDD resources against the tenant | `uip maestro case registry pull`, `uip maestro case sdd resolve` | [Registry resolution](references/registry-resolution.md) | — |
56
57
  | Human work and its Action App | `action`; `app: { name, folder }` (SDK 6.46.4+) names the app (`actionCatalogName` is a task catalog, not the app) | [Human tasks](references/case-runtime.md#human-and-on-demand-work) | `examples/NotifyOnApproval.case.ts` |
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A Case document-extraction task: an invoice file case variable run through
3
+ * an IXP deployment, its extraction mapped to the `extracted` variable.
4
+ * `=result` is the whole extraction, `{ ExtractionResult, Taxonomy }`; read
5
+ * the fields from `extracted.ExtractionResult`.
6
+ *
7
+ * The deployment's values are stand-ins, not a tenant's. Read real ones from
8
+ * `uip ixp deployments list <project-name> --output json`, given the IXP
9
+ * project's Name (model, deployment, folderKey), and from the row of `uip
10
+ * solution resources list --kind IxpDeployment --source remote --output json`
11
+ * whose Name is the deployment and whose FolderKey matches (deploymentKey,
12
+ * folder).
13
+ */
14
+ import { casePlan, rule } from '@uipath/maestro-builder-sdk/case';
15
+
16
+ export default casePlan('DocumentExtractionCase')
17
+ .name('DocumentExtractionCase')
18
+ .identifier('DXC')
19
+ .var('invoice', 'file')
20
+ .var('extracted', 'object', '{}')
21
+ .stage('Read', (s) =>
22
+ s
23
+ .required()
24
+ .entryWhen(rule('case-entered'))
25
+ .exitWhen(rule('required-tasks-completed'), { marksStageComplete: true })
26
+ .task('Extract', (t) =>
27
+ t
28
+ .documentExtraction('invoice-model-0a1b2c3d-ixp', {
29
+ deployment: 'Invoice Model',
30
+ folderKey: 'bbbbbbbb-2222-4222-8222-bbbbbbbbbbbb',
31
+ folder: 'Shared',
32
+ deploymentKey: 'aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa',
33
+ file: '=vars.invoice',
34
+ })
35
+ .outputs({ extracted: '=result' })
36
+ .required()
37
+ .entryWhen(rule('current-stage-entered')),
38
+ ),
39
+ )
40
+ .completeWhen(rule('required-stages-completed'))
41
+ .build();
@@ -85,6 +85,38 @@ make from syntax alone. Exact signatures remain in the generated API.
85
85
  - Outputs are the fixed four: `code`, `headers`, `body`, `Error`.
86
86
  `.outputs({ v: '=response.body' })` maps one to a case variable.
87
87
 
88
+ ## Document extraction
89
+
90
+ <!-- RULE:case.docextraction.discovery -->
91
+ - Discovery: `uip ixp projects list --output json` first. Pass the project's
92
+ **`Name`** (not `Title`) to `uip ixp deployments list <Name> --output json`.
93
+ That listing gives model (`DeploymentName`), deployment (`DeploymentTitle`),
94
+ and `folderKey`. For `deploymentKey` and `folder`: run
95
+ `uip solution resources list --kind IxpDeployment --source remote
96
+ --output json` and take the row whose `Name` equals `DeploymentTitle` and
97
+ whose `FolderKey` matches — its `Key` is `deploymentKey`, its `Folder` is
98
+ `folder`. Ask the user if no match. `sdd resolve` does not resolve them.
99
+ After discovery, add the deployment to the solution:
100
+ `uip solution resources add --source remote --kind IxpDeployment
101
+ --name "<DeploymentTitle>" --folder-key "<FOLDER_KEY>" --output json`
102
+ Then refresh:
103
+ `uip solution resources refresh --solution-folder <SOLUTION_DIR> --output json`
104
+
105
+ <!-- RULE:case.docextraction.check -->
106
+ - Compile refuses a missing `deploymentKey`; `check` reports blank model,
107
+ deployment, folder, folderKey, and file individually.
108
+
109
+ <!-- RULE:case.docextraction.legacy -->
110
+ - Decompile emits `.savedDocumentExtraction()` for the older flat format.
111
+ It is read-only: no `.outputs()`, no deployment edit. `check` warns
112
+ `DOCUMENT_EXTRACTION_OLDER_SHAPE`.
113
+
114
+ <!-- RULE:case.docextraction.floor -->
115
+ - `uip maestro case validate` needs uip 1.206.0+ for document-extraction
116
+ tasks. Older versions reject with `CASE_MGMT_BINDING_PAIR_INCOMPLETE`.
117
+ On an older `uip`, report the floor requirement and stop. Do not rewrite
118
+ bindings or strip the extraction task to silence the error.
119
+
88
120
  ## Connections and external work
89
121
 
90
122
  <!-- RULE:case.connector.bindings -->
@@ -16,11 +16,10 @@ UiPath Flow uses `@uipath/maestro-builder-sdk` to build type-safe graphs compile
16
16
  2. Before writing a node, read its `Reference` in [Supported node types](#supported-node-types), including signature, example, and hazards.
17
17
  3. Choose every node from a registry search, never a brand name.
18
18
  4. 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]**.
19
- 5. Bind every declared output on every path. `check` misses missing outputs; the run returns `undefined`.
20
- 6. Handle an error only when the request specifies what should happen.
21
- 7. Never re-run `flow debug` to inspect a failed run.
22
- 8. Simulate every side-effecting component before an eval set; never `solution upload` in an eval workflow without asking.
23
- 9. Run the final pass with the workspace's selected [Lifecycle](#lifecycle) loop after the last edit.
19
+ 5. Handle an error only when the request specifies what should happen.
20
+ 6. Never re-run `flow debug` to inspect a failed run.
21
+ 7. Simulate every side-effecting component before an eval set; never `solution upload` in an eval workflow without asking.
22
+ 8. Run the final pass with the workspace's selected [Lifecycle](#lifecycle) loop after the last edit.
24
23
 
25
24
  ## Project layout
26
25
 
@@ -38,7 +37,7 @@ uip solution init "<Solution>"
38
37
  # edit <Solution>/<Name>/.flow-sdk/<Name>.flow.ts, then run the Lifecycle loop below
39
38
  ```
40
39
 
41
- 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. Omit `--sdk-source` for a flow that will hold an Extract document node; that flow is CLI-authored throughout ([`references/extract-document-node.md`](references/extract-document-node.md)).
40
+ 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`](references/document-pipeline.md)); it needs SDK 6.118.0 or later, else use the CLI.
42
41
 
43
42
  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.
44
43
 
@@ -172,11 +171,11 @@ This table is authoritative; read each node's `Reference` before writing it ([Cr
172
171
  | API workflow | `uipath.core.api-workflow.<key>` | `apiWorkflow(...)` | [api-workflow.md](references/api-workflow.md) | `examples/BirdCountLookup.flow.ts` |
173
172
  | Agentic process | `uipath.core.agentic-process.<key>` | `agenticProcess(...)` | [agentic-process.md](references/agentic-process.md) | `examples/NeighborhoodWalkPlanner.flow.ts` |
174
173
  | Agent resource | `uipath.core.agent.<key>` | `agent(...)` | [agent.md](references/agent.md) | `examples/PlantNameAdvisor.flow.ts` |
175
- | External agent or automation | `uipath.connector.<key>.<operation>` | `connector(...)`, or CLI when absent from library | [external-agent.md](references/external-agent.md) | — |
174
+ | External agent or automation | `uipath.connector.<key>.<operation>` | `connector(...)`; `registry prepare` first when absent from library | [external-agent.md](references/external-agent.md) | — |
176
175
  | Inline agent | `uipath.agent.autonomous` | `inlineAgent(...)` | [inline-agent.md](references/inline-agent.md) | `examples/PostcardCaption.flow.ts` |
177
176
  | IxP extraction | `uipath.ixp.<project>.<version>-<folder>` | `ixpExtract(...)` | [ixp.md](references/ixp.md) | `examples/ArchiveCardExtract.flow.ts` |
178
177
  | Document classify | `uipath.document.classify` | `documentClassify(...)` | [document-pipeline.md](references/document-pipeline.md) | `examples/SeedPacketReader.flow.ts` |
179
- | Extract document | `uipath.ixp.extract-document-builder` | CLI only | [extract-document-node.md](references/extract-document-node.md) | `examples/SeedPacketReader.flow.ts` |
178
+ | Extract document | `uipath.ixp.extract-document-builder` | `dynamicExtract(...)` | [document-pipeline.md](references/document-pipeline.md), [extract-document-node.md](references/extract-document-node.md) | `examples/SeedPacketReader.flow.ts` |
180
179
  | Published function | `uipath.core.function.<key>` | `publishedFunction(...)` | [published-function.md](references/published-function.md) | `examples/TideTableConverter.flow.ts` |
181
180
  | Conversation message wait | `uipath.conversational.wait-for-message` | `waitForMessage(...)` | [conversational.md](references/conversational.md) | `examples/LibraryDeskChat.flow.ts` |
182
181
  | Conversational agent | `uipath.agent.conversational` | `conversationalAgent(...)` | [conversational.md](references/conversational.md) | `examples/LibraryDeskChat.flow.ts` |
@@ -187,7 +186,7 @@ This table is authoritative; read each node's `Reference` before writing it ([Cr
187
186
 
188
187
  ## Authoring a flow
189
188
 
190
- [Critical Rules](#critical-rules) govern node choice, open decisions, outputs, and errors; details are in **[`references/author.md`](references/author.md)**. A requested canvas arrangement uses `.layout()` with `at()`/`dim()`: [`references/operate.md`](references/operate.md#lay-out-from-source-instead-layout-at-dim).
189
+ [Critical Rules](#critical-rules) govern node choice, open decisions, and errors; details are in **[`references/author.md`](references/author.md)**. A requested canvas arrangement uses `.layout()` with `at()`/`dim()`: [`references/operate.md`](references/operate.md#lay-out-from-source-instead-layout-at-dim).
191
190
 
192
191
  ## Operating a deployed flow
193
192
 
@@ -6,12 +6,10 @@
6
6
  * node) extracts against the taxonomy it carries instead of a published IxP
7
7
  * project's trained fields.
8
8
  *
9
- * This is the SOURCE route for that node, and it carries two requirements the
10
- * node itself does not (references/document-pipeline.md explains both): the
11
- * `model` block is the factory's — copy a real pair from the tenant, never
12
- * construct one — and the taxonomy's stable ids are written by hand, because
13
- * the factory emits `schema` verbatim and nothing mints them. The default route
14
- * is the CLI (references/extract-document-node.md), which needs neither.
9
+ * It takes no `model` argument: compile gives the step its IDP processor, named after the
10
+ * step's label, and writes the processor's resource file into the solution
11
+ * (references/document-pipeline.md). The taxonomy's stable ids are written by
12
+ * hand here, because an SDK without builder-sdk#2054 emits `schema` verbatim.
15
13
  *
16
14
  * Generic scenario: read the sowing details off a scanned seed packet.
17
15
  */
@@ -68,11 +66,7 @@ export default flow('seed-packet-reader')
68
66
  .step('extractSowing', dynamicExtract({
69
67
  fileRef: out('start', 'packetScan'),
70
68
  schema: sowingTaxonomy,
71
- model: {
72
- modelName: 'seedpackets-9c41e7b2-ixp',
73
- folderKey: '4c9d1f70-6b2e-4a58-9f13-2ad5c8e0b741',
74
- },
75
- }))
69
+ }), { label: 'Extract sowing details' })
76
70
  .step('summarize', script(summarize))
77
71
  .return({ summary: out('summarize') })
78
72
  .build();
@@ -12,7 +12,7 @@ The builder owns `.flow` JSON: `compile` emits node definitions, `variables.node
12
12
  4. **Edit the source, not the artifact.** Change `<Name>.flow.ts` and re-emit with `compile -o` for a new flow; for a non-empty `.flow` that existed before this turn, use decompile and merge ([`brownfield.md`](brownfield.md)).
13
13
  Never hand-edit emitted `.flow`, `content/*.bpmn`, `bindings_v2.json`, `entry-points.json`, `operate.json`, or `package-descriptor.json`; the CLI regenerates them and compile undoes edits. Route brownfield JSON through `decompile` ([`brownfield.md`](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.
14
14
  5. **Run the loop once the source is complete.** Use `check --source` while writing; run `compile` and `validate` on finished source and again after the last edit. `compile` does not run `check`: run a clean `check` before every `compile`; for brownfield edits use `--baseline <original.flow>` ([`brownfield.md`](brownfield.md#check-only-what-you-changed-check---baseline)). Ignore an error only when its message says to do so and that case applies (for example, false-positive `INLINE_AGENT_PROMPT_JSON_TEXT` when JSON is mentioned only as data). In emit-only mode `check` refuses and `validate` is the gate. Treat every `validate` warning as failure unless the loop reference names it reviewed.
15
- 6. **Bind every declared output on every path.** Every `.return({...})` must name every `.output({...})` key. `check` misses this: `compile` binds `$vars.<name>`, `validate` only warns (`EXPRESSION_DIAGNOSTIC`), and the run returns `undefined`.
15
+ 6. **Bind every declared output on every path.** An output that only `.return()` sets (no `default`, `{ updates }` or shared input) comes back `null` from every `.return({...})` that leaves it out. `check` reports that as `RETURN_OUTPUT_MISSING` on `@uipath/maestro-builder-sdk` 6.100.0 or later; an older SDK misses it. Write `lit(null)` when null is the answer. `check` still misses an output set with `{ updates }` on only some paths: a `.return()` on a path that skipped the update returns its default, or `null`. Name the output in that `.return()`, or set it before the paths split.
16
16
  7. **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 `.return` or `.terminate`. Add `hitl` only when the request says the run waits for a person; post-run review of output, such as a drafted reply, is not hitl. This overrides `uipath-human-in-the-loop` Step 2b and its pattern guide; put unstated signals under Open questions.
17
17
  8. **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 (`High` for refunds over $500 and `Low` under $50 leave $50 to $500 unassigned; `Expedite` for 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]**.
18
18
  9. **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).
@@ -74,7 +74,7 @@ Inputs, outputs, and vars take one of the six types the Flow CLI and Workbench o
74
74
  - **Never replace a registered connector with `mock()` or a script because it is not configured.** Write `connector(...)`, run the `prepare` named by `check`, and if no live connection exists, report "prepare pending" as an open question. Reviewers and Studio Web need the real connector.
75
75
  - **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 the `prepare` named by `check`.
76
76
  - **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.
77
- - **Never reference parent values inside a subflow.** Pass them through `subflow(child, {...})` and read with `input(...)`; `check` does not catch a child reading the parent's `$vars.start.output.*`, which compiles and resolves to nothing.
77
+ - **Never reference parent values inside a subflow.** Pass them through `subflow(child, {...})` and read with `input(...)`. On `@uipath/maestro-builder-sdk` 6.100.0 or later, `check` on the calling flow reports a child's `$vars.start.output.<name>` or `input('<name>')` for any `<name>` the child does not declare, the parent's inputs included, as `SUBFLOW_PARENT_SCOPE_READ`; an older SDK compiles it, and it resolves to nothing.
78
78
  - **Never debug a script with `console.log`.** `console.log` and its
79
79
  siblings exist but do nothing, so the output goes nowhere
80
80
  ([script runtime](script.md#the-javascript-runtime)). Return the value to
@@ -92,7 +92,9 @@ skip it there, `validate` is the gate.
92
92
 
93
93
  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,
94
94
  so upgrade with `npm install -g @uipath/maestro-builder-sdk@latest`.
95
- 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. Only with 6.64.0+ and the same error is `uip` too old (1.205.0 is). Until a newer `uip`, run `check --source` without `--baseline` and fix only errors on changed nodes.
95
+ 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:
96
+ `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`.
97
+ 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>`.
96
98
 
97
99
  ```text
98
100
  $ uip maestro flow check <Name>.flow.ts --source --baseline <original>.flow
@@ -128,6 +130,9 @@ flow-merge: wrote Deployed.flow (12 nodes, 13 edges)
128
130
  flow-merge: wrote <source-uuid>/agent.json (carries messages[0].content)
129
131
  ```
130
132
 
133
+ To add an instruction to a prompt, write it as a new line. Keep every existing
134
+ line exactly as it is: add no words to it, and do not re-wrap it.
135
+
131
136
  Merge writes the `.flow` and every agent file it carried into the project;
132
137
  there is nothing to copy. Fields the round trip does not reproduce (such as
133
138
  `maxIterations`, or a `description` on an agent input) keep the project's values.
@@ -140,7 +145,7 @@ Merge warns, omits carrying, and refuses with `--strict` when:
140
145
  differs from the original's ... The change is NOT carried`). Keep a baseline
141
146
  file in a directory of its own, as [a supplied source](#a-supplied-source) does.
142
147
  - 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.json` has fields compile does not write; make the change on the canvas;
143
- - an older canvas save embeds prompts on the agent node; editing `agent.json` would not change runtime behavior; edit on the canvas.
148
+ - with an SDK older than 6.117.2, an older canvas save embeds prompts on the agent node, so an `agent.json` edit 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](#merge-warnings-what-the-round-trip-changed).
144
149
 
145
150
  Never copy a compiled `<source>/` directory into the project by hand: it
146
151
  carries the round trip's changes along with yours.
@@ -251,7 +256,13 @@ flow-merge: warning: the merged edge route1@case-case_1 -> review1@input leaves
251
256
 
252
257
  `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](#a-path-without-an-end-stays-open).
253
258
 
254
- `agent "<id>" carries its prompts, model and settings on the node (embedded) …` means configuration is in `.flow`, not `<source>/agent.json`; merge preserves it and applies only node edits (input, output, label). Prompt/model/settings edits in source do not affect embedded agents; edit them on the canvas. `--strict` accepts input/output edits but refuses dropped/changed embedded configuration or a kept prompt still using `{{input.X}}` after input `X` was removed.
259
+ `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).
260
+ 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>"`.
261
+ If merge prints no such line for your edit, the SDK does not carry it; edit it on the canvas.
262
+ 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.
263
+ A deletion merge cannot carry, such as `model`, warns `NOT carried`, and the node keeps its value.
264
+ `--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.
265
+ An undeclared placeholder the original prompt already had is not refused.
255
266
  - Pass `--strict` to make merge refuse (exit 1, no file written) instead of
256
267
  warning. The benign End line never refuses. Every merge on this page has a
257
268
  baseline, which `--strict` needs: `uip maestro flow merge
@@ -243,15 +243,17 @@ The compiler emits `multipartParameters`; `uip is resources run` has no multipar
243
243
  Lookup fields store ids, not display names. If marked LOOKUP, author its helper and do not guess or manually resolve it:
244
244
 
245
245
  ```ts
246
- channel: lookup(SendMessageToUser, 'channel').byEmail('dustin@example.com')
246
+ channel: lookup(SendMessageToUser, 'channel').byRealName('Ada Lovelace')
247
247
  ```
248
248
 
249
+ 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.
250
+
249
251
  | form | when | helpers |
250
252
  |---|---|---|
251
- | `lookup(SendMessageToUser, 'channel')` | prepared descriptor | `.byEmail(v)`, `.byRealName(v)`, … and `.by(name, v)` |
253
+ | `lookup(SendMessageToUser, 'channel')` | prepared descriptor | `.byEmail(v)`, `.byRealName(v)`, … (as the descriptor's `LOOKUP:` header lists them) and `.by(name, v)` |
252
254
  | `lookup('uipath-salesforce-slack', 'send-message-to-user', 'channel')` | generic CRUD/no descriptor | `.by(name, v)` only |
253
255
 
254
- Never use an alias (`.byEmail`, `.byRealName`, generated onto the descriptor) in the second form; it throws. Use `.by('profile.email', …)` there. Searchable names are in the descriptor `LOOKUP:` header and `check` diagnostics.
256
+ 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.
255
257
 
256
258
  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:
257
259
 
@@ -269,7 +271,7 @@ Drop `parentReference` at top level. When source contains unresolved tokens, run
269
271
 
270
272
  ```bash
271
273
  uip maestro registry prepare uipath-salesforce-slack --action send-message-to-user \
272
- --resolve channel:profile.email=dustin@example.com
274
+ --resolve 'channel:profile.real_name=Ada Lovelace'
273
275
  ```
274
276
 
275
277
  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`.
@@ -5,22 +5,19 @@
5
5
  Two document steps that need no trained IxP fields: classification
6
6
  (`uipath.document.classify`) labels a document, and the Extract document node
7
7
  (`uipath.ixp.extract-document-builder`) pulls fields against a taxonomy you
8
- author INLINE — though the `dynamicExtract()` factory still needs a published
9
- model's identity ([Two ways to author it](#two-ways-to-author-it)). For a
10
- published project's trained fields, use `ixpExtract` ([ixp.md](ixp.md)) instead.
8
+ author INLINE ([Two ways to author it](#two-ways-to-author-it)). It is
9
+ opt-in: add it only when the user names the Extract document node. Any other
10
+ extraction request, one with no trained model included, goes to a published
11
+ IXP model or an IXP project ([ixp.md](ixp.md)), never to this node.
11
12
 
12
13
  Signatures: `documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? })`;
13
- `dynamicExtract({ fileRef, schema, model, pageRange?, modelConfig? })`.
14
+ `dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? })`.
14
15
 
15
16
  ```ts
16
17
  .input({ file: types.file })
17
18
  .step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
18
- .step('extract', dynamicExtract({
19
- fileRef: input('file'),
20
- schema: invoiceTaxonomy,
21
- model: { modelName: 'invoiceixp-cef0d447-ixp',
22
- folderKey: 'c4359cde-55f0-4f0e-9322-c6cdce74ab4c' },
23
- }))
19
+ .step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
20
+ { label: 'Extract invoice' })
24
21
  .step('total', script({ code: 'return $vars.extract.output.result.output;' })) // warns until the SDK typing catches up
25
22
  ```
26
23
 
@@ -30,32 +27,48 @@ Classify a document (`uipath.document.classify`), or extract fields against an
30
27
  INLINE taxonomy (`uipath.ixp.extract-document-builder`) instead of a published
31
28
  IxP project's trained fields.
32
29
  Signatures: `documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? })`;
33
- `dynamicExtract({ fileRef, schema, model: { modelName, folderKey, ... }, pageRange? })`.
30
+ `dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? })`.
34
31
 
35
32
  ```ts
36
33
  .step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
37
- .step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy,
38
- model: { modelName: 'invoiceixp-cef0d447-ixp', folderKey: '<folder-guid>' } }))
34
+ .step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
35
+ { label: 'Extract invoice' })
39
36
  ```
40
37
 
41
38
  ## Two ways to author it
42
39
 
43
- **The SDK factory**, `dynamicExtract()`, is the call above, and it carries
44
- limits the node itself does not have. It requires a `model` with a published
45
- deployment's `modelName` and `folderKey` — copy them from the tenant, never
46
- construct them — although the node never reads them: it runs the taxonomy it
47
- carries, through `inputs.processorKey`, which compiling never writes. A flow
48
- compiled from this factory needs `uip maestro flow nodes provision <file>`
49
- afterwards; CLI authoring, by contrast, provisions as it goes
50
- ([Making it actually extract](extract-document-node.md#making-it-actually-extract)).
51
- Decompiling a flow that holds this node and compiling it back also throws on
52
- the missing `model`. So the factory is usable only where a flow must stay in
53
- TypeScript source and a published model's identity is to hand; everywhere else,
54
- use the CLI.
55
-
56
- **The CLI commands** author the same node with no model deployment, and are the
57
- route the router row and both guides point at: add it and wire `fileRef` per
58
- [extract-document-node.md](extract-document-node.md).
40
+ **The SDK factory**, `dynamicExtract()`, takes no `model` argument. Compile
41
+ gives each step its processor, as `uip maestro flow nodes create` does:
42
+
43
+ - it writes `inputs.processorKey`, one per step, the same on every recompile;
44
+ - when it compiles the project's main flow inside a local solution (a folder
45
+ whose `.uipx` lists the project), it writes the processor's resource file
46
+ (`resources/solution_folder/idpProcessor/extraction/<Label>.json`), keeps
47
+ it in step with the node on every compile, and declares it in
48
+ `bindings_v2.json`. A compile with no `.uipx` above it, such as Studio
49
+ Web's candidates under `/tmp`, writes no file: the designer creates it.
50
+
51
+ So validate and packing pass with no CLI step after compile, and
52
+ decompile -> compile keeps the node and its key. Give the
53
+ step a `label` that says what it extracts: the processor is named after it.
54
+
55
+ ```ts
56
+ .step('extract', dynamicExtract({ fileRef: input('invoice'), schema: invoiceTaxonomy }),
57
+ { label: 'Extract invoice' })
58
+ ```
59
+
60
+ Needs `@uipath/maestro-builder-sdk` 6.118.0 or later. An older SDK requires
61
+ `model` (compile fails reading `modelName` without it) and writes no
62
+ `inputs.processorKey`.
63
+ Upgrade the copy in use: `npm install @uipath/maestro-builder-sdk@latest` in a
64
+ workspace that has its own `node_modules` copy, else
65
+ `npm install -g @uipath/maestro-builder-sdk@latest`. Where that is not
66
+ possible, use the CLI.
67
+
68
+ **The CLI commands** author the same node in a flow that has no TypeScript
69
+ source: add it and wire `fileRef` per
70
+ [extract-document-node.md](extract-document-node.md). Never mix the two on
71
+ one flow: the next compile overwrites what the commands wrote.
59
72
 
60
73
  Both routes need the same taxonomy, and
61
74
  [extract-document-taxonomy.md](extract-document-taxonomy.md) is where it is designed and
@@ -13,21 +13,24 @@ uip is connections list <connector-key> --all-folders --output json #
13
13
  Search a short name (`'Cortex'`, not `'Snowflake Cortex'`): a full product name can match only a connector's HTTP-request tool.
14
14
 
15
15
  - **In the connector library** (Snowflake Cortex is): author it with `connector(...)` like any connector ([connector-params.md](connector-params.md)).
16
- - **Not in the library** (CrewAI returns `"total": 0`): build it with the product CLI, below. `rawNode` is not an option for a `uipath.connector.*` type. Build the whole flow that holds it with the CLI too, from `flow init <Name>` (no `--sdk-source`), and give it no SDK source: `compile` from SDK source rewrites the `.flow`.
16
+ - **Not in the library** (CrewAI returns `"total": 0`): prepare it, then author it with `connector(...)` like a library operation. `rawNode` is not an option for a `uipath.connector.*` type.
17
17
 
18
- ## Build it with the product CLI
18
+ ## Prepare it when the library lacks it
19
19
 
20
20
  ```bash
21
- uip maestro flow registry get <node-type> --output json # method and path: connectorMethodInfo; objectName for describe
22
- uip is resources describe <connector-key> <objectName> --operation Create --connection-id <id> --output json
23
- uip maestro flow nodes create <Name>/<Name>.flow <node-type> --label "<label>" --position <x>,<y> --output json
24
- uip maestro flow nodes configure <Name>/<Name>.flow <node-id> --detail '{"connectionId":"<id>","folderKey":"<folder-key>","method":"POST","endpoint":"<path>","bodyParameters":{"<field>":"<value>"}}' --output json
25
- uip maestro flow edges create <Name>/<Name>.flow <source-node-id> <node-id> --output json
26
- uip maestro flow validate <Name>/<Name>.flow --output json
21
+ uip maestro registry prepare <connector-key> --action <operation>
27
22
  ```
28
23
 
29
- - Required inputs are the `RequestFields` with `Required: true` from `is resources describe`; `registry get` may not list them (CrewAI's `inputs.email_content`). Keep a dotted field name as one key: `"inputs.email_content": "..."`.
30
- - Use the node id `nodes create` returns; it is not derived from the operation name.
31
- - Agent nodes are Curated activities, so `--detail` takes no `objectName`; only Generic activities need one.
32
- - The node definition from the registry may say `Intsvc.AsyncAgentExecution` even for a sync agent (Snowflake Cortex on alpha, 2026-10-19). The flow still ran it as sync, from the `executionType: sync` that `nodes configure` writes into the detail (`--detail` refuses the key). Leave the service type as the CLI wrote it.
24
+ `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:
25
+
26
+ ```ts
27
+ import { ExecuteSalesforceAgent } from './connectors-local/uipath-salesforce-agent.ts';
28
+
29
+ .step('ask', connector(ExecuteSalesforceAgent, { message: { text: input('question') }, agent_id: lookup(ExecuteSalesforceAgent, 'agent_id').byDeveloperName('<agent name>') },
30
+ { connection: 'agent', folder: 'shared' }))
31
+ ```
32
+
33
+ - Required inputs are the describe's `RequestFields` with `Required: true`, and the descriptor types them as required; `registry get` may not list them (CrewAI's `inputs.email_content`). A dotted field is a nested object in the source (`inputs: { email_content: ... }`); compile writes it back as the one key `inputs.email_content`.
34
+ - A picker input such as `agent_id` is a lookup: author `lookup(...)` as above, and record its id with the `--resolve agent_id:DeveloperName=<agent name>` that `prepare` prints, rather than pasting an id ([connector-params.md](connector-params.md#resolving-connection-scoped-reference-values)).
35
+ - The node runs as the connector object says (`sync`, `async` or `hybrid`). With `@uipath/maestro-builder-sdk` 6.116.0 or later, compile writes that as `inputs.detail.executionType`, as `nodes configure` does, and the runtime picks the sync or async service type from it. Leave the definition's service type alone (`Intsvc.AsyncAgentExecution` even for a sync agent). If `prepare` warns that Integration Service reported no execution type, run `uip update` and 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 with `npm install -g @uipath/maestro-builder-sdk@latest`.
33
36
  - To run it, `uip solution resources refresh` and `uip maestro flow debug <Name>` ([CLI-LOOP.md](CLI-LOOP.md)); ask first ([operate.md](operate.md#debug--a-real-end-to-end-run)).
@@ -68,7 +68,7 @@ No other CLI command answers this question. `registry search` reports `Available
68
68
 
69
69
  ## Adding the node
70
70
 
71
- **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, build this flow in a separate project without source and use only the CLI. The SDK's `dynamicExtract()` is not the route here ([document-pipeline.md](document-pipeline.md) explains its limits). Do not alternate between the two and re-apply CLI edits after each compile.
71
+ **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](document-pipeline.md#two-ways-to-author-it)). 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.
72
72
 
73
73
  `--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](#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.
74
74
 
@@ -165,7 +165,7 @@ Validation requires `fileRef` to be a `$vars` reference, both output ports to be
165
165
 
166
166
  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.
167
167
 
168
- A node from before CLI provisioning, written by hand, or compiled from `.flow.ts` arrives without a processor; `validate` reports an error. Repair the whole file by running:
168
+ 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:
169
169
 
170
170
  ```bash
171
171
  uip maestro flow nodes provision <file> --output json
@@ -199,7 +199,7 @@ These limits are not CLI-enforced but improve extraction:
199
199
  - **Stable ids:** Groups and fields carry `x-uipath-field-group-id` and `x-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.
200
200
  - **Model settings:** It rebuilds them from `inputs.modelConfig`.
201
201
  - **Validation:** A non-schema or limit violation returns exit 3 and changes nothing on disk.
202
- - **Draft protection:** When someone left an editing session open in Studio Web, the node carries that draft and `set` stops. `--discard-draft` proceeds 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 and `DraftIssueMessages`, and stop; the request is not done. Never hand-edit `inputs.schemaDocument` to bypass this.
202
+ - **Draft protection:** When someone left an editing session open in Studio Web, the node carries that draft and `set` stops. `--discard-draft` proceeds 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 and `DraftIssueMessages`, and stop; the request is not done. Run no `nodes provision` either: it writes `inputs.processorKey` into the node. Report a missing processor instead. Never hand-edit `inputs.schemaDocument` to bypass this.
203
203
 
204
204
  ## Editing a taxonomy that already exists
205
205
 
@@ -33,7 +33,11 @@ pattern's End nodes become `body.continue()`, so the item ends and the loop
33
33
  moves on; record the item's outcome in its result. Every step that can fail
34
34
  inside the body keeps its own `.onError` continuation if one item must not stop
35
35
  the batch. A step inside the body cannot be a `.stepToRef` target from outside
36
- it (`REF_INTO_LOOP`).
36
+ it (`REF_INTO_LOOP`). When the pattern's routes meet at one shared step (the
37
+ human-review pattern's apply step), keep that step inside the body and end each
38
+ other route with `.stepToRef('<SHARED_STEP>')`. Record every outcome: the shared
39
+ step records the items it applies, and a reject or failure path records its
40
+ outcome before `body.continue()`.
37
41
 
38
42
  ### As a subflow
39
43
 
@@ -36,3 +36,9 @@ items and assert the resulting values, not merely that the node ran.
36
36
 
37
37
  Omit `variant` for the generic node. Set `variant: 'map' | 'filter' | 'group-by'`
38
38
  for a single-purpose node; `operations` must then contain exactly one entry.
39
+
40
+ Use `transform()` for every Transform node. To use a newer registry version,
41
+ pass it on the step: `.step('g', transform({ ... }), { version: '1.1' })`. The
42
+ factory writes `collection` as a plain `$vars` path and puts each operation's
43
+ settings under `config`. A `rawNode` copy of the manifest keeps `v()` as an
44
+ expression object, and the runtime reads that as an empty collection.
@@ -60,6 +60,11 @@ code and subscriber number, 7–15 digits in all. `from` must be a number provis
60
60
  telephony provider; anything else is rejected when the call is placed, not when
61
61
  the flow is validated. `endCall` reads `out('<step>', 'ended')`.
62
62
 
63
+ When the request asks for placeholder numbers or an offline build, pass a
64
+ placeholder E.164 string literal for each: a `+`, then 7–15 digits. Otherwise
65
+ bind `to` to the recipient's data, and set `from` to the provisioned caller
66
+ number; ask for it when you do not know it.
67
+
63
68
  ## How the agent sounds
64
69
 
65
70
  `voice` takes a VOICE model (a live/realtime one — not the text models
@@ -33,7 +33,7 @@ Each phase's reads go out in at most three turns: turn 1 every file read whole a
33
33
 
34
34
  ## Source Guides
35
35
 
36
- A UiPath source is read with [uipath-source-guide.md](uipath-source-guide.md), as [source-frameworks-guide.md § UiPath sources](source-frameworks-guide.md) states for `extract`. Any other source is read through the framework migration pack: resolve it, select the framework row, run its script and read its source guide in full before Step 1, exactly as [source-frameworks-guide.md](source-frameworks-guide.md) states. No pack, or no row matches → stop as that section says. Do not improvise an extraction from an unknown framework.
36
+ A UiPath source is read with [uipath-source-guide.md](uipath-source-guide.md), as [source-frameworks-guide.md § UiPath sources](source-frameworks-guide.md) states for `extract`. Any other source is read through the framework migration pack: resolve it, select the framework row, run its script and read its source guide in full before Step 1, exactly as [source-frameworks-guide.md](source-frameworks-guide.md) states. No pack, or no row matches → as that section says. Do not improvise an extraction from an unknown framework.
37
37
 
38
38
  ## Pipeline
39
39
 
@@ -10,7 +10,13 @@ A UiPath source (`.uipx`, `project.json`, `project.uiproj`, `.xaml`/`.cs`, `.flo
10
10
 
11
11
  Every other framework is read through the **framework migration pack**, which holds per framework a **source guide**, a **selectors guide** and an **inventory script**. Resolve it once per run:
12
12
 
13
- 1. **Ask for its location.** Ask "Where is the framework migration guide?" unless the request already gave it. Accept a folder path (`<PACK_DIR>`); a git URL is cloned into a scratch folder first. Never search the disk for it, never work from memory of its contents, never copy its files into this skill or beside a genome.
13
+ 1. **Ask which pack to read**, unless the request already names one: "Which migration pack — the guides and script that read the export — should I use: UiPath's pack (https://github.com/UiPath/business-logic-extraction), or another, as a folder path or a git URL?" When the request says to proceed without questions, use UiPath's pack. Download UiPath's pack into a new scratch folder, which needs no git and no GitHub account; `<PACK_DIR>` is then `<SCRATCH_DIR>/business-logic-extraction-main`:
14
+
15
+ ```bash
16
+ curl -fsSL https://github.com/UiPath/business-logic-extraction/archive/refs/heads/main.tar.gz | tar -xzf - -C "<SCRATCH_DIR>"
17
+ ```
18
+
19
+ In Windows PowerShell, where `curl` is `Invoke-WebRequest` and a pipe breaks binary data, save the archive with `curl.exe -fsSL -o "<SCRATCH_DIR>/packs.tar.gz"` and the same URL, then run `tar.exe -xzf "<SCRATCH_DIR>/packs.tar.gz" -C "<SCRATCH_DIR>"`. Another git URL is cloned into a scratch folder first, and the clone is `<PACK_DIR>`; a folder path is `<PACK_DIR>` itself. Never search the disk for a pack, never work from memory of its contents, never copy its files into this skill or beside a genome.
14
20
  2. **Select the framework row** in `<PACK_DIR>/README.md` § Frameworks whose detection signals match the given files. The genome names that framework in its Source Map; the name is what makes a build of it a **migration**.
15
21
  3. **Run, then read.** Run the row's script before reading any export file, then read `<PACK_DIR>/<framework>/source-guide.md` in full and write the genome and its Source Map.
16
22
 
@@ -18,5 +24,8 @@ Every other framework is read through the **framework migration pack**, which ho
18
24
 
19
25
  | Situation | What `extract` does |
20
26
  |---|---|
21
- | No row of the pack matches the files | Say which framework the files appear to come from and that the pack has no guide for it; never improvise an extraction |
27
+ | The download or clone fails | Say why, and ask for a folder path |
28
+ | No row of the pack matches the files | Say which framework the files appear to come from and that the pack has no guide for it, and ask for a pack that has one; never improvise an extraction |
22
29
  | The pack is not available | Stop: no genome is extracted from a framework nobody has read |
30
+
31
+ When the request says to proceed without questions, a failed download or clone and a pack with no matching row ask nothing: the pack is not available.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.207.0-preview.2015",
3
+ "skillsVersion": "1.207.0-preview.2034",
4
4
  "targetCli": "^1.207.0"
5
5
  }