@uipath/skills 1.206.0 → 1.206.1

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 (115) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +1 -1
  4. package/CODEOWNERS +34 -7
  5. package/README.md +2 -2
  6. package/package.json +2 -2
  7. package/skills/uipath-genome/SKILL.md +35 -88
  8. package/skills/uipath-genome/references/build-guide.md +61 -0
  9. package/skills/uipath-genome/references/completion-report-guide.md +93 -0
  10. package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
  11. package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
  12. package/skills/uipath-genome/references/execution-guide.md +45 -166
  13. package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
  14. package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
  15. package/skills/uipath-genome/references/live-application-guide.md +23 -9
  16. package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
  17. package/skills/uipath-genome/references/open-items-guide.md +3 -3
  18. package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
  19. package/skills/uipath-genome/references/refactor-guide.md +38 -39
  20. package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
  21. package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
  22. package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
  23. package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
  24. package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
  25. package/skills/uipath-genome/references/source-migration-guide.md +48 -19
  26. package/skills/uipath-genome/references/test-execution-guide.md +8 -7
  27. package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
  28. package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
  29. package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
  30. package/skills/uipath-maestro-case/SKILL.md +7 -7
  31. package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
  32. package/skills/uipath-maestro-case/references/planning.md +5 -5
  33. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
  34. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
  35. package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
  36. package/skills/uipath-planner/SKILL.md +80 -199
  37. package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
  38. package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
  39. package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
  40. package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
  41. package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
  42. package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
  43. package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
  44. package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
  45. package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
  46. package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
  47. package/skills/uipath-planner/references/author/author-guide.md +119 -0
  48. package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
  49. package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
  50. package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
  51. package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
  52. package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
  53. package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
  54. package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
  55. package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
  56. package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
  57. package/skills/uipath-planner/references/design/design-guide.md +296 -0
  58. package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
  59. package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
  60. package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
  61. package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
  62. package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
  63. package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
  64. package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
  65. package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
  66. package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
  67. package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
  68. package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
  69. package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
  70. package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
  71. package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
  72. package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
  73. package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
  74. package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
  75. package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
  76. package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
  77. package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
  78. package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
  79. package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
  80. package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
  81. package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
  82. package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
  83. package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
  84. package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
  85. package/skills/uipath-test/SKILL.md +3 -3
  86. package/version-manifest.json +1 -1
  87. package/skills/uipath-genome/CLAUDE.md +0 -85
  88. package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
  89. package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
  90. package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
  91. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
  92. package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
  93. package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
  94. package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
  95. package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
  96. package/skills/uipath-genome/references/authoring-guide.md +0 -98
  97. package/skills/uipath-genome/references/editing-guide.md +0 -57
  98. package/skills/uipath-genome/references/extraction-guide.md +0 -166
  99. package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
  100. package/skills/uipath-genome/references/parts-guide.md +0 -22
  101. package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
  102. package/skills/uipath-genome/scripts/check-genome.py +0 -670
  103. package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
  104. package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
  105. package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
  106. package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
  107. package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
  108. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
  109. package/skills/uipath-planner/references/product-selection-guide.md +0 -673
  110. package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
  111. package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
  112. package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
  113. package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
  114. package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
  115. /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
@@ -1,96 +0,0 @@
1
- <!-- UIPATH-AUTOMATION-GENOME: component | This file is a build specification for one UiPath automation project.
2
- To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
3
- then invokes the skills referenced in Build With. Do NOT execute these steps directly, and do NOT
4
- start from a Build With skill. -->
5
-
6
- # Genome: Exception Triage Agent
7
-
8
- > Classifies a failed invoice match and proposes one of three resolutions with a confidence score and a rationale for the reviewing clerk.
9
-
10
- > **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which hands each part to the skill listed in **Build With** below.
11
-
12
- > Part of: [Invoice Processing](../invoice-processing-genome.md) — advisory only; every proposal is confirmed by an AP clerk.
13
-
14
- ## Overview
15
-
16
- Given an invoice record, its discrepancies, and the PO summary, the agent decides whether the mismatch is a correctable data error (wrong PO line, transposed digits, rounding), a commercial dispute that needs a supplier credit note, or a reason to reject. It explains its reasoning in two or three sentences aimed at an AP clerk and reports how confident it is. It never posts, rejects, or contacts anyone.
17
-
18
- ## Target Applications
19
-
20
- | Application | Role | Notes |
21
- |-------------|------|-------|
22
- | Orchestrator | Job input and output | Started by the orchestration process |
23
- | AP_Invoices storage bucket | Reads the extraction JSON when line detail is needed | Read-only |
24
-
25
- ## Build With
26
-
27
- | Step | Skill | Rationale |
28
- |------|-------|-----------|
29
- | Steps 1-5 | `uipath-agents` | Natural-language reasoning over structured discrepancies; low-code agent with a single read-only tool |
30
-
31
- ## Platform Dependencies
32
-
33
- | Resource | Type | Purpose |
34
- |----------|------|---------|
35
- | AP_Invoices | Storage bucket | Optional read of full extraction output |
36
-
37
- ## Interface
38
-
39
- - **Inputs:** invoice record, `Discrepancies[]` (field, expected, actual), PO summary (lines, remaining value, goods received)
40
- - **Outputs:** `Proposal` ∈ {repost-with-correction, request-supplier-credit-note, reject}, `Confidence` (0-1), `Rationale` (text), `CorrectedRecord` (only for repost-with-correction)
41
- - **Side effects:** none
42
-
43
- ## Configuration Questions
44
-
45
- 1. Which model runs the agent? (constant; default: the tenant's default reasoning model)
46
- 2. Above which price variance is a mismatch treated as a commercial dispute rather than a data error? (constant; default: 10%)
47
- 3. Should the agent read the full extraction JSON from the bucket, or only the discrepancies passed in? (constant; default: discrepancies only; bucket read on `unmatched-line`)
48
-
49
- ## Workflow
50
-
51
- 1. **Receive** (input: record, discrepancies, PO summary).
52
- 2. **Fetch line detail when needed** (input: `unmatched-line` discrepancies; output: full extraction output): when a discrepancy is `unmatched-line` and Configuration Question 3 allows it, read the extraction JSON from the bucket to see every invoice line; otherwise work from the discrepancies alone.
53
- 3. **Classify each discrepancy**:
54
- a. `unreadable-field`, transposed digits, rounding within 2× tolerance, wrong PO line with an obvious match → data error
55
- b. Price variance above the dispute threshold, quantity above goods received, total above PO remaining value → commercial dispute
56
- c. `unknown-vendor`, `duplicate`, `no-open-po` with no plausible PO → reject candidate
57
- 4. **Propose**: reject if any reject candidate; else credit note if any commercial dispute; else repost-with-correction with a `CorrectedRecord` where every corrected field is listed with old and new value.
58
- 5. **Explain and score**: two to three sentences naming the discrepancies and why the proposal follows; `Confidence` reflects how many discrepancies had a clear classification.
59
-
60
- ## Business Rules
61
-
62
- ### Step 4: Propose
63
- - Reject outranks credit note, which outranks correction.
64
- - `CorrectedRecord` never changes vendor or invoice number; those are reject candidates when wrong.
65
-
66
- ### General
67
- - The agent has no tool that writes anywhere. Guardrail: output must be one of the three proposals or `manual`.
68
-
69
- ## Error Handling
70
-
71
- ### Step 3: Classify each discrepancy
72
- - Discrepancy type not recognised: classify as commercial dispute, lower `Confidence` by 0.2 per unknown type.
73
-
74
- ### Global
75
- - Model error or timeout: the job fails; the orchestration process substitutes `manual`.
76
-
77
- ## Transactional Shape
78
-
79
- Not transactional: an agent started once per invoice by the orchestration; the per-item lifecycle is the orchestration's.
80
-
81
- ## Acceptance Criteria
82
-
83
- 1. Given a single `unmatched-line` discrepancy where one PO line has the same description and price, the proposal is `repost-with-correction` with that PO line in `CorrectedRecord`.
84
- 2. Given a line price 15% above the PO price, the proposal is `request-supplier-credit-note`.
85
- 3. Given a `duplicate` discrepancy, the proposal is `reject` regardless of other discrepancies.
86
- 4. Given two discrepancies of unknown type, `Confidence` is at least 0.4 lower than for the same record with known types.
87
- 5. Given any input, `Rationale` mentions every discrepancy field by name.
88
- 6. Given any input, the output is exactly one of the three proposals or `manual`.
89
-
90
- ## Complexity
91
-
92
- medium
93
-
94
- ## Tags
95
-
96
- agent, triage, invoice, exceptions, advisory
@@ -1,128 +0,0 @@
1
- <!-- UIPATH-AUTOMATION-GENOME: component | This file is a build specification for one UiPath automation project.
2
- To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
3
- then invokes the skills referenced in Build With. Do NOT execute these steps directly, and do NOT
4
- start from a Build With skill. -->
5
-
6
- # Genome: Invoice Extraction and Matching
7
-
8
- > RPA process with three entry points: dispatch mailbox attachments to the intake queue, extract and three-way match one invoice, and post one invoice to SAP.
9
-
10
- > **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which hands each part to the skill listed in **Build With** below.
11
-
12
- > Part of: [Invoice Processing](../invoice-processing-genome.md) — the worker; all document and SAP interaction lives here.
13
-
14
- ## Overview
15
-
16
- One RPA project, three entry points. The intake entry point runs every 15 minutes, saves new PDF attachments from the AP mailbox to the invoice bucket, and creates one queue item each. The matching entry point, started by the orchestration process, extracts the invoice fields with Document Understanding, reads the PO from SAP, and evaluates the three-way match. The poster, also started by the orchestration process, enters the invoice in SAP and returns the document number.
17
-
18
- ## Target Applications
19
-
20
- | Application | Role | Notes |
21
- |-------------|------|-------|
22
- | Exchange Online (shared AP mailbox) | Input source | Integration Service connection; unread mails with PDF attachments |
23
- | Document Understanding | Field extraction | Pre-trained invoice model; confidence per field |
24
- | SAP S/4HANA (SAP GUI) | PO lookup, invoice posting | Transactions for PO display and incoming invoice entry |
25
- | Orchestrator | Queue, bucket, credential | |
26
-
27
- ## Build With
28
-
29
- | Step | Skill | Rationale |
30
- |------|-------|-----------|
31
- | Entry point A (intake), steps 1-3 | `uipath-rpa` | Mailbox connector activities and queue creation in XAML |
32
- | Entry point B (matching), steps 4-7 | `uipath-rpa` | Document Understanding extraction plus SAP GUI UI automation; matching logic as a coded (C#) workflow in the same project |
33
- | Entry point C (poster), steps 8-9 | `uipath-rpa` | SAP GUI UI automation |
34
-
35
- ## Platform Dependencies
36
-
37
- | Resource | Type | Purpose |
38
- |----------|------|---------|
39
- | AP_InvoiceIntake | Queue | Entry point A writes one item per invoice |
40
- | AP_Invoices | Storage bucket | PDFs and extraction results |
41
- | SAP_AP_Robot | Credential asset | SAP GUI login |
42
- | AP_Mailbox | Integration Service connection (Exchange Online) | Mailbox access |
43
-
44
- ## Interface
45
-
46
- - **Inputs:** A: none (scheduled). B: `PdfBucketPath`. C: invoice record (`VendorId`, `InvoiceNumber`, `InvoiceDate`, `PoNumber`, line items, `Subtotal`, `Tax`, `Total`, `Currency`)
47
- - **Outputs:** A: queue items. B: invoice record, `MatchResult` (`matched` / `exception`), `Discrepancies[]` (field, expected, actual). C: `ErpDocumentNumber` or `ErpRejection` (message)
48
- - **Side effects:** PDFs saved to the bucket; mails marked read; SAP invoice documents created
49
-
50
- ## Configuration Questions
51
-
52
- 1. Which mailbox and folder are scanned? (setting; default: ap-invoices@contoso.com, Inbox/Suppliers)
53
- 2. Below which Document Understanding field confidence is a field treated as unreadable? (constant; default: 0.8)
54
- 3. What tolerance applies to line and total mismatches? (constant; default: 1% or €5, whichever is greater)
55
- 4. Which SAP company codes are in scope? (setting; default: 1000, 2000)
56
- 5. Which SAP transaction posts incoming invoices? (constant; default: the standard incoming-invoice transaction)
57
-
58
- ## Workflow
59
-
60
- 1. **Trigger A**: time trigger every 15 minutes.
61
- 2. **Scan mailbox** (output: list of unread mails with at least one PDF attachment): read unread mails in the configured folder; skip mails without a PDF and notify the sender that no invoice was attached.
62
- 3. **Dispatch** (input: mail; output: queue item): save each PDF to the bucket under `year/month/<mailId>.pdf`, create a queue item with `MailId`, `PdfBucketPath`, `ReceivedAt`, `SenderAddress`, mark the mail read.
63
- 4. **Trigger B**: started by the orchestration process with `PdfBucketPath`.
64
- 5. **Extract fields** (input: PDF; output: invoice record with per-field confidence): run the invoice model; fields: vendor name and tax ID, invoice number and date, PO number, currency, line items (description, quantity, unit price, line total), subtotal, tax, total.
65
- a. Any required field (vendor, invoice number, total) below the confidence threshold → `Discrepancies` gets `unreadable-field` with the field name; `MatchResult` = `exception`; return.
66
- 6. **Look up vendor and PO** (input: vendor tax ID, `PoNumber`; output: PO summary):
67
- a. Resolve `VendorId` from the tax ID in SAP; missing → discrepancy `unknown-vendor`
68
- b. No PO number or PO not open → discrepancy `no-open-po`
69
- c. Read PO lines (material, quantity, unit price, remaining value) and goods-receipt quantities
70
- 7. **Three-way match** (input: invoice record, PO summary; output: `MatchResult`, `Discrepancies[]`):
71
- a. Duplicate check: vendor + invoice number already in SAP → `duplicate`
72
- b. Each invoice line matched to a PO line by material or description; unmatched → `unmatched-line`
73
- c. Quantity ≤ goods received; price within tolerance; line total = quantity × unit price within tolerance
74
- d. Subtotal = sum of lines; subtotal + tax = total; all within tolerance
75
- e. Total ≤ PO remaining value
76
- f. No discrepancies → `matched`, else `exception`
77
- 8. **Trigger C**: started by the orchestration process with the (possibly corrected) invoice record.
78
- 9. **Post to SAP** (input: invoice record; output: `ErpDocumentNumber` or `ErpRejection`): log in with the credential asset, enter the invoice against the PO, simulate, post, read the document number. SAP error messages are returned verbatim in `ErpRejection`.
79
-
80
- ## Business Rules
81
-
82
- ### Step 5: Extract fields
83
- - Required fields: vendor, invoice number, total. Everything else may be missing without raising an exception.
84
-
85
- ### Step 7: Three-way match
86
- - Tolerance per Configuration Question 3, applied to line total, subtotal, and total independently.
87
- - Quantity may be below goods received (partial invoice) but never above.
88
-
89
- ### Step 9: Post to SAP
90
- - Post only in company codes from Configuration Question 4; another company code returns `ErpRejection` "company code out of scope" without touching SAP.
91
-
92
- ## Error Handling
93
-
94
- ### Step 2: Scan mailbox
95
- - Mailbox connection failure: retry 3× with 30-second backoff, then fail the job (next scheduled run retries).
96
-
97
- ### Step 5: Extract fields
98
- - Document Understanding unavailable: retry 2×, then fail the job; the orchestration process handles the faulted job.
99
-
100
- ### Step 9: Post to SAP
101
- - SAP GUI session lost: close and log in again once; a second loss fails the job.
102
- - SAP rejection (duplicate, locked period, blocked vendor): return `ErpRejection`, do not retry.
103
-
104
- ### Global
105
- - Unhandled exception: log the invoice number and PDF path, take a screenshot when SAP is open, fail the job.
106
-
107
- ## Transactional Shape
108
-
109
- Not transactional: the intake entry point hands each invoice to component 1 through `AP_InvoiceIntake`, whose queue trigger starts one instance per invoice; the matching and posting entry points run one invoice's work per job that instance starts.
110
-
111
- ## Acceptance Criteria
112
-
113
- 1. Given three unread mails with PDFs and one without, the intake entry point creates three queue items and emails the fourth sender.
114
- 2. Given an invoice PDF, entry point B returns vendor, invoice number, date, PO number, line items, subtotal, tax, total, and currency.
115
- 3. Given a field below the confidence threshold, `MatchResult` is `exception` with `unreadable-field` naming the field.
116
- 4. Given an invoice whose lines match the PO within 1% and total below the remaining value, `MatchResult` is `matched` with no discrepancies.
117
- 5. Given a line price 3% above the PO price, `Discrepancies` contains the line, the PO price, and the invoice price.
118
- 6. Given an invoice number already posted for the vendor, `Discrepancies` contains `duplicate`.
119
- 7. Given a valid record, the poster returns an SAP document number and the invoice is visible in SAP against the PO.
120
- 8. Given SAP rejects the posting, `ErpRejection` carries SAP's message and no second attempt is made.
121
-
122
- ## Complexity
123
-
124
- complex
125
-
126
- ## Tags
127
-
128
- rpa, document-understanding, sap, three-way-match, queue-intake, queues, invoice
@@ -1,115 +0,0 @@
1
- <!-- UIPATH-AUTOMATION-GENOME: component | This file is a build specification for one UiPath automation project.
2
- To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
3
- then invokes the skills referenced in Build With. Do NOT execute these steps directly, and do NOT
4
- start from a Build With skill. -->
5
-
6
- # Genome: Invoice Orchestration
7
-
8
- > Long-running BPMN process, one instance per invoice, that sequences extraction, matching, AI triage, human review, and ERP posting.
9
-
10
- > **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which hands each part to the skill listed in **Build With** below.
11
-
12
- > Part of: [Invoice Processing](../invoice-processing-genome.md) — the coordinator; owns the lifecycle of each invoice from queue item to posted or rejected.
13
-
14
- ## Overview
15
-
16
- Each queue item on the intake queue starts one instance of this process. The instance calls the extraction robot, decides between straight posting and exception handling, involves the triage agent and an AP clerk for exceptions, and ends with a posted ERP document number or a rejection sent to the supplier. Instances live for minutes on the happy path and up to five business days when waiting on humans.
17
-
18
- ## Target Applications
19
-
20
- | Application | Role | Notes |
21
- |-------------|------|-------|
22
- | Orchestrator | Starts robot and agent jobs, holds the queue item | |
23
- | Action Center | Human review task | Validation app shows PDF, fields, discrepancies, proposal |
24
- | Exchange Online | Supplier rejection email | Sent through the mailbox connection |
25
-
26
- ## Build With
27
-
28
- | Step | Skill | Rationale |
29
- |------|-------|-----------|
30
- | Steps 1-8 (whole process) | `uipath-maestro-bpmn` | Long-running, multi-day waits on a human lane, gateways, boundary timers — BPMN, not Flow. Human review gate designed with `uipath-human-in-the-loop`. |
31
-
32
- ## Platform Dependencies
33
-
34
- | Resource | Type | Purpose |
35
- |----------|------|---------|
36
- | AP_InvoiceIntake | Queue | Trigger; one item per instance |
37
- | Invoice Extraction and Matching | Deployed process (component 2) | Invoked at steps 2 and 6 with different entry points |
38
- | Exception Triage Agent | Deployed agent (component 3) | Invoked at step 4 |
39
- | AP Invoice Review | Action Center app | Human review task at step 5 |
40
- | AP_Invoices | Storage bucket | PDF link shown to the clerk |
41
-
42
- ## Interface
43
-
44
- - **Inputs:** queue item specific content — `MailId`, `PdfBucketPath`, `ReceivedAt`, `SenderAddress`
45
- - **Outputs:** instance variables `Outcome` (`posted` / `rejected` / `duplicate` / `stale`), `ErpDocumentNumber`, `RejectionReason`
46
- - **Side effects:** robot and agent jobs, one Action Center task per exception, supplier rejection email, queue item status
47
-
48
- ## Configuration Questions
49
-
50
- 1. How long may an instance wait on human review before reassigning to the team lead? (constant; default: 1 business day)
51
- 2. After how long is a stuck instance terminated as stale? (constant; default: 5 business days)
52
- 3. How many ERP rejections before the invoice is rejected outright? (constant; default: 2)
53
- 4. Which app renders the human review task? (constant; default: AP Invoice Review)
54
-
55
- ## Workflow
56
-
57
- 1. **Trigger**: a new item on the intake queue starts the instance with the item's specific content.
58
- 2. **Extract and match** (input: `PdfBucketPath`; output: invoice record, `MatchResult`, `Discrepancies[]`): start the extraction robot's matching entry point and wait.
59
- 3. **Route on match result**: `matched` and total ≤ auto-approval ceiling → step 6; otherwise → step 4.
60
- 4. **Triage** (input: invoice record, discrepancies, PO summary; output: `Proposal`, `Confidence`, `Rationale`): start the triage agent and wait. If the agent fails or `Confidence` < 0.4, set `Proposal` = `manual`.
61
- 5. **Human review** (input: record, discrepancies, proposal; output: `Decision` ∈ {approve-proposal, override, reject}, `CorrectedRecord`): create the Action Center task and wait. Boundary timer per Configuration Question 1 reassigns to the team lead.
62
- 6. **Post** (input: record or `CorrectedRecord`; output: `ErpDocumentNumber` or `ErpRejection`): start the robot's posting entry point and wait.
63
- a. Success → step 8 with `Outcome` = `posted`
64
- b. Rejection and rejection count < limit → add discrepancy `erp-rejected` with the ERP message, → step 4
65
- c. Rejection at the limit → step 7
66
- 7. **Reject** (input: `RejectionReason`): send the supplier a rejection email with the reason and invoice number; `Outcome` = `rejected`.
67
- 8. **Close**: set the queue item to Successful (`posted`) or Failed with the reason (`rejected`, `duplicate`, `stale`); end.
68
-
69
- ## Business Rules
70
-
71
- ### Step 3: Route on match result
72
- - A matched invoice whose total exceeds the auto-approval ceiling still goes to human review, with `Proposal` = `approve` from the agent.
73
-
74
- ### Step 5: Human review
75
- - `approve-proposal` applies the agent's proposal; `override` requires the clerk to pick one of the same three resolutions and may edit fields; `reject` requires a reason.
76
-
77
- ### General
78
- - One posting attempt per corrected record; the same record is never posted twice.
79
-
80
- ## Error Handling
81
-
82
- ### Step 2: Extract and match
83
- - Job faulted: retry once after 5 minutes, then continue to step 4 with a single discrepancy `extraction-failed`.
84
-
85
- ### Step 4: Triage
86
- - Agent job faulted or timed out (10 minutes): `Proposal` = `manual`, continue.
87
-
88
- ### Step 5: Human review
89
- - Task open past the configured SLA: reassign to the team lead, mark `SlaBreached`, keep waiting.
90
-
91
- ### Global
92
- - Instance older than the stale limit: terminate, `Outcome` = `stale`, queue item Failed with the instance ID.
93
- - A second instance for an invoice number already open or already posted: `Outcome` = `duplicate`, queue item Failed.
94
-
95
- ## Transactional Shape
96
-
97
- Not transactional: a coordinator whose per-item lifecycle is the orchestration's — its queue trigger starts one instance per invoice, which retries, tracks and escalates it.
98
-
99
- ## Acceptance Criteria
100
-
101
- 1. Given a queue item, exactly one instance starts and reads all four specific-content fields.
102
- 2. Given `MatchResult` = `matched` and total below the ceiling, the posting job starts without a triage or review step.
103
- 3. Given `MatchResult` = `exception`, the triage agent job starts before any Action Center task is created.
104
- 4. Given agent confidence 0.3, the review task shows proposal `manual`.
105
- 5. Given a review task older than the SLA, it is reassigned to the team lead and the instance keeps waiting.
106
- 6. Given the clerk rejects with a reason, the supplier email contains that reason and the invoice number, and the queue item is Failed with the same reason.
107
- 7. Given two ERP rejections, the instance ends `rejected` without a third posting attempt.
108
-
109
- ## Complexity
110
-
111
- complex
112
-
113
- ## Tags
114
-
115
- bpmn, orchestration, human-in-the-loop, action-center, queues, invoice
@@ -1,136 +0,0 @@
1
- <!-- UIPATH-AUTOMATION-GENOME: process | This file is the high-level build specification for a multi-component
2
- UiPath automation. Each component has its own genome in the sibling folder named in Components.
3
- To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
4
- then invokes the skills referenced in Components. Do NOT execute these steps directly, and do NOT
5
- start from a Components skill. -->
6
-
7
- # Genome: Invoice Processing
8
-
9
- > End-to-end accounts-payable intake: receive supplier invoices, extract and validate their data, triage exceptions with an AI agent and human reviewers, and post approved invoices to the ERP.
10
-
11
- > **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which builds each component with the skill named in **Components**, then wires them per **Handoffs** and **Deployment**.
12
-
13
- ## Overview
14
-
15
- Accounts Payable receives roughly 400 supplier invoices a day as PDF attachments in a shared mailbox. Each invoice must be matched to a purchase order, checked against vendor and amount limits, and posted to the ERP within two business days. Today clerks do this by hand; invoices without a PO or with mismatched totals stall for a week.
16
-
17
- The automated process runs as one long-running BPMN process per invoice. An RPA robot extracts the invoice fields and performs the three-way match. Clean invoices post straight to the ERP. Invoices that fail a rule go to an AI agent that classifies the exception and proposes a resolution; the agent's proposal is confirmed or overridden by an AP clerk in Action Center before posting or rejection. The process is complete when the invoice is either posted with an ERP document number or rejected with a reason sent to the supplier.
18
-
19
- ## Actors and Systems
20
-
21
- | Actor / System | Role | Notes |
22
- |----------------|------|-------|
23
- | AP clerk | Human — confirms or overrides agent proposals on exception invoices | Works in Action Center; SLA 1 business day per task |
24
- | AP team lead | Human — receives daily failure digest | Email |
25
- | Shared AP mailbox (Exchange Online) | System — invoice intake channel | PDFs arrive as attachments |
26
- | Document Understanding | System — invoice field extraction | Pre-trained invoice model |
27
- | SAP S/4HANA | System — purchase orders (read), invoice posting (write) | Accessed through the SAP GUI |
28
- | Orchestrator | Platform — queues, assets, storage, persistence | |
29
-
30
- ## Components
31
-
32
- | # | Component | Type | Skill | Genome | Summary |
33
- |---|-----------|------|-------|--------|---------|
34
- | 1 | Invoice Orchestration | BPMN process | `uipath-maestro-bpmn` | [invoice-orchestration-genome.md](invoice-processing-genome/invoice-orchestration-genome.md) | One instance per invoice; sequences extraction, matching, triage, human review, posting |
35
- | 2 | Invoice Extraction and Matching | RPA process | `uipath-rpa` | [invoice-extraction-genome.md](invoice-processing-genome/invoice-extraction-genome.md) | Reads the mailbox, extracts fields with Document Understanding, three-way matches against SAP, posts approved invoices |
36
- | 3 | Exception Triage Agent | Agent | `uipath-agents` | [exception-triage-agent-genome.md](invoice-processing-genome/exception-triage-agent-genome.md) | Classifies match failures and proposes a resolution with a confidence score |
37
-
38
- Build order follows the table: the BPMN process references the robot's entry point and the agent by name, so build the robot and the agent first, then the process, then wire. **Handoffs** row 1 forces that order.
39
-
40
- ## Process Map
41
-
42
- 1. **Intake** — component 2 (intake entry point): every 15 minutes, new mailbox attachments become queue items; each item starts one instance of component 1.
43
- 2. **Extract and match** — component 1 invokes component 2 (matching entry point): fields extracted, PO looked up, three-way match evaluated; exits with `matched` or `exception` plus the discrepancy list.
44
- 3. **Post** — on `matched`, component 1 invokes component 2 (posting entry point); exits when an ERP document number is returned.
45
- 4. **Triage** — on `exception`, component 1 invokes component 3 with the invoice record and discrepancies; exits with a proposed resolution (`repost-with-correction`, `request-supplier-credit-note`, `reject`) and a confidence score.
46
- 5. **Human review** — component 1 creates an Action Center task for the AP clerk carrying the invoice, the discrepancies, and the agent's proposal; exits when the clerk submits `Approve proposal`, `Override`, or `Reject`.
47
- 6. **Resolve** — component 1 routes: approved or overridden `repost-with-correction` → step 3 with the corrected fields; `request-supplier-credit-note` or `reject` → supplier notification and close.
48
-
49
- The components, their triggers and the queue.
50
-
51
- ```mermaid
52
- flowchart TB
53
- R["⏰ [2] Extraction and Matching<br/>reads the mailbox every 15 min;<br/>extracts fields, three-way<br/>matches against SAP, posts<br/>approved invoices"]
54
- Q[("AP_InvoiceIntake<br/>one item per received invoice")]
55
- O["🔔 [1] Invoice Orchestration<br/>one instance per invoice;<br/>triage, human review, posting"]
56
- A["[3] Exception Triage Agent<br/>classifies match failures,<br/>proposes a resolution"]
57
- R -->|"adds an item per invoice"| Q
58
- Q -->|"starts one instance<br/>per item"| O
59
- O -->|"matching, posting<br/>(start job)"| R
60
- O -->|"triage (agent job)"| A
61
- ```
62
-
63
- Legend: ⏰ time trigger · 🔔 queue trigger · no mark: invoked by another component. Solid arrow: adds to or takes from a queue, or calls a component; dotted arrow: a handoff through a file or mail.
64
-
65
- ## Handoffs
66
-
67
- | From | To | Mechanism | Data passed | Failure behaviour |
68
- |------|----|-----------|-------------|-------------------|
69
- | Component 2 (intake entry point) | Component 1 | Queue item on `AP_InvoiceIntake`; queue trigger starts one process instance per item | `MailId`, `PdfBucketPath`, `ReceivedAt`, `SenderAddress` | Queue item retried 2× by Orchestrator, then Failed with the mail ID in the reason |
70
- | Component 1 | Component 2 (matching) | Start job, wait for completion | In: `PdfBucketPath`; out: invoice record (`VendorId`, `VendorName`, `InvoiceNumber`, `InvoiceDate`, `PoNumber`, line items, `Subtotal`, `Tax`, `Total`, `Currency`), `MatchResult` (`matched` / `exception`), `Discrepancies[]` (field, expected, actual) | Job faulted → retry once after 5 minutes, then route to Triage with a single discrepancy `extraction-failed` |
71
- | Component 1 | Component 3 | Agent job | Invoice record, `Discrepancies[]`, PO summary | Agent unavailable or confidence below 0.4 → proposal `manual`, straight to Human review |
72
- | Component 1 | Component 2 (posting) | Start job, wait for completion | Invoice record (possibly corrected) | ERP rejects (duplicate or locked period) → Discrepancy `erp-rejected` with the ERP message, back to Triage; second rejection → Reject and notify supplier |
73
- | Component 1 | AP clerk | Action Center task (Validation app) | Invoice record, discrepancies, agent proposal and rationale, PDF link | Task not completed within 1 business day → reassign to team lead and flag SLA breach |
74
-
75
- ## Platform Dependencies
76
-
77
- | Resource | Type | Shared by | Purpose |
78
- |----------|------|-----------|---------|
79
- | AP_InvoiceIntake | Queue | 1, 2 | One item per received invoice; the trigger for the process |
80
- | AP_Invoices | Storage bucket | 1, 2, 3, clerk | PDFs and extraction JSON referenced by every component |
81
- | SAP_AP_Robot | Credential asset | 2 | SAP GUI login for the robot |
82
- | AP_Mailbox connection | Integration Service connection (Exchange Online) | 2 | Reads the shared mailbox |
83
- | Finance/AP | Orchestrator folder | all | Home of every resource and process |
84
-
85
- ## Configuration Questions
86
-
87
- 1. Which mailbox receives supplier invoices? (setting; default: ap-invoices@contoso.com, folder Inbox/Suppliers)
88
- 2. What is the auto-approval ceiling above which every invoice needs human review even when matched? (constant; default: €25,000)
89
- 3. What tolerance applies to line and total mismatches before an exception is raised? (constant; default: 1% or €5, whichever is greater)
90
- 4. Below which agent confidence does the proposal skip straight to human review as `manual`? (constant; default: 0.4)
91
- 5. Who receives the daily failure digest? (setting; default: ap-lead@contoso.com)
92
- 6. Which SAP company codes are in scope? (setting; default: 1000, 2000)
93
-
94
- ## Business Rules
95
-
96
- - Every invoice needs a PO. An invoice without a PO number, or whose PO is not open, is an exception, never an auto-reject.
97
- - Auto-approval requires all of: vendor active in SAP, PO open with sufficient remaining value, every line within tolerance, total ≤ the auto-approval ceiling, no duplicate (vendor + invoice number) in SAP.
98
- - The agent proposes; a human decides. No exception invoice is posted or rejected without an AP clerk's decision.
99
- - An invoice is posted at most once. A second posting attempt after an ERP rejection requires a corrected record.
100
-
101
- ## Error Handling and Recovery
102
-
103
- - Component 2 unavailable (no robot, licence exhausted): queue items wait; process instances time out after 4 hours and raise an alert to the team lead; nothing is lost because the queue item stays `New`.
104
- - Component 3 unavailable: proposal `manual`, human review proceeds without a suggestion.
105
- - Human review SLA breach (1 business day): reassign to the team lead, add the invoice to the daily digest.
106
- - Process instance stuck longer than 5 business days: terminate with reason `stale`, queue item marked Failed with the instance ID, invoice listed in the digest.
107
- - Duplicate queue item for the same mail ID: second instance detects the existing invoice in SAP or an open instance for the same invoice number and closes itself as `duplicate`.
108
-
109
- ## Transactional Shape
110
-
111
- Not transactional: a coordinator whose per-item lifecycle is the orchestration's — component 1's queue trigger starts one process instance per invoice on `AP_InvoiceIntake`, and that instance retries, tracks and escalates its invoice; component 2's matching and posting entry points and component 3 run one invoice's work per job component 1 starts.
112
-
113
- ## Acceptance Criteria
114
-
115
- 1. Given a PDF invoice arrives in the AP mailbox, a queue item exists within 15 minutes and exactly one process instance starts for it.
116
- 2. Given a clean invoice (active vendor, open PO, lines within tolerance, total below the ceiling), the invoice is posted in SAP with a document number and the instance completes without any Action Center task.
117
- 3. Given an invoice whose total exceeds the PO remaining value by more than the tolerance, an Action Center task is created carrying the discrepancy and an agent proposal, and no posting happens before the clerk decides.
118
- 4. Given the clerk approves a `repost-with-correction` proposal, the corrected record is posted and the ERP document number appears on the instance.
119
- 5. Given the clerk chooses Reject, the supplier receives a rejection email with the reason and the instance completes as rejected.
120
- 6. Given the agent is unavailable, the Action Center task is still created with proposal `manual`.
121
- 7. Given SAP rejects a posting as duplicate, the instance returns to triage once, and a second rejection ends as Reject with a supplier notification.
122
- 8. Given a review task open longer than one business day, the task is reassigned to the team lead and the invoice appears in the next daily digest.
123
-
124
- ## Deployment
125
-
126
- - **Packaging:** one solution `InvoiceProcessing` (`uipath-solution`) containing the three projects; queues, bucket, asset, and connection declared as solution resources.
127
- - **Entry points and triggers:** component 2's intake entry point on a 15-minute time trigger; component 1 on a queue trigger for `AP_InvoiceIntake`; components 2 (matching, posting) and 3 started only by component 1.
128
- - **Environments:** folder `Finance/AP` in tenant `Finance`; a `Finance/AP-Test` folder with the same resources for UAT.
129
-
130
- ## Complexity
131
-
132
- complex
133
-
134
- ## Tags
135
-
136
- accounts-payable, invoice, document-understanding, sap, three-way-match, bpmn, agent, human-in-the-loop, action-center, queues