@salesforce/afv-skills 1.68.0 → 1.69.0

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 (188) hide show
  1. package/package.json +1 -1
  2. package/skills/afcc-setup-coordinate/SKILL.md +348 -0
  3. package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
  4. package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
  5. package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
  6. package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
  7. package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
  8. package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
  9. package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
  10. package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
  11. package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
  12. package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
  13. package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
  14. package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
  15. package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
  16. package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
  17. package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
  18. package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
  19. package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
  20. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
  21. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
  22. package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
  23. package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
  24. package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
  25. package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
  26. package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
  27. package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
  28. package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
  29. package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
  30. package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
  31. package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
  32. package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
  33. package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
  34. package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
  35. package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
  36. package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
  37. package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
  38. package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
  39. package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
  40. package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
  41. package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
  42. package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
  43. package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
  44. package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
  45. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
  46. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
  47. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
  48. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
  49. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
  50. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
  51. package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
  52. package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
  53. package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
  54. package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
  55. package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +23 -31
  56. package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
  57. package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
  58. package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
  59. package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
  60. package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
  61. package/skills/commerce-react-storefront-create/SKILL.md +54 -21
  62. package/skills/dx-lifecycle-center/SKILL.md +24 -18
  63. package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
  64. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  65. package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
  66. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  67. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  68. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  69. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  70. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  71. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  72. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  73. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  74. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +2 -3
  75. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
  76. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  77. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  78. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  79. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  80. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  81. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  82. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  83. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  84. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  85. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  86. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  87. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  88. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  89. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  90. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  91. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  92. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  93. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  94. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  95. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  96. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  97. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  98. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  99. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  100. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  101. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  102. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  103. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  104. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  105. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  106. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  107. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  108. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  109. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  110. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  111. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  112. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  113. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  114. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  115. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  116. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  117. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  118. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  119. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  120. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  121. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  122. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  123. package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
  124. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  125. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  126. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  127. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  128. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  129. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  130. package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
  131. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  132. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  133. package/skills/platform-policy-rule-generate/SKILL.md +9 -7
  134. package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
  135. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
  136. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
  137. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
  138. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
  139. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
  140. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
  141. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
  142. package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
  143. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
  144. package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
  145. package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
  146. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
  147. package/skills/platform-report-generate/SKILL.md +20 -1
  148. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  149. package/skills/platform-report-generate/references/verification-checklist.md +12 -0
  150. package/skills/service-digital-engagement-channel-configure/SKILL.md +44 -107
  151. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
  152. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  153. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  154. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  155. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  156. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
  157. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
  158. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  159. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  160. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  161. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  162. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  163. package/skills/service-e911-configure/SKILL.md +242 -0
  164. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  165. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  166. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  167. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  168. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  169. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  170. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  171. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  172. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  173. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  174. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  175. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  176. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  177. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  178. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
  179. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
  180. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
  181. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
  182. package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
  183. package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
  184. package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
  185. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  186. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  187. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  188. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
@@ -16,7 +16,7 @@ metadata:
16
16
  semver: ">=18.0.0"
17
17
  - tool: ["sf"]
18
18
  semver: ">=2.0.0"
19
- accessCheck: "License.Agentforce"
19
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
20
20
  allowed-tools: |
21
21
  Bash
22
22
  Read
@@ -14,7 +14,7 @@ metadata:
14
14
  cliTools:
15
15
  - tool: ["node"]
16
16
  semver: ">=18.0.0"
17
- accessCheck: "License.Agentforce"
17
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
18
18
  allowed-tools: Read Bash Write AskUserQuestion
19
19
  ---
20
20
 
@@ -14,7 +14,7 @@ metadata:
14
14
  semver: ">=18.0.0"
15
15
  - tool: ["sf"]
16
16
  semver: ">=2.0.0"
17
- accessCheck: "License.Agentforce"
17
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
18
18
  allowed-tools: |
19
19
  Bash
20
20
  Read
@@ -14,7 +14,7 @@ metadata:
14
14
  semver: ">=18.0.0"
15
15
  - tool: ["sf"]
16
16
  semver: ">=2.0.0"
17
- accessCheck: "License.Agentforce"
17
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
18
18
  allowed-tools: |
19
19
  Bash
20
20
  Read
@@ -15,7 +15,7 @@ metadata:
15
15
  semver: ">=18.0.0"
16
16
  - tool: ["sf"]
17
17
  semver: ">=2.0.0"
18
- accessCheck: "License.Agentforce"
18
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
19
19
  allowed-tools: |
20
20
  Bash
21
21
  Read
@@ -16,7 +16,7 @@ metadata:
16
16
  semver: ">=18.0.0"
17
17
  - tool: ["sf"]
18
18
  semver: ">=2.0.0"
19
- accessCheck: "License.Agentforce"
19
+ accessCheck: "OrgPermissions.EinsteinAgentPlatform"
20
20
  allowed-tools: |
21
21
  Bash
22
22
  Read
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: service-itsm-agentic-setup-incident-management
3
- description: "Orchestrator for Incident Management setup in Service Cloud ITSM: presents the features, tracks progress, and configures each — Incident preferences, Incident persona PSG assignment, Priority Matrix, SLA & Milestones, Incident dashboards, Email-to-Incident, Major Incident Management (approval group + MIM preferences), Broadcast Communications, Manage Incidents with AI, Service Management Privilege (privilege escalation), and audit tracking. Use for: set up or configure incident management, a walkthrough, what incident features can I configure; the incident preference toggles (default field validations, auto-close child incidents, auto-triage, assign with Einstein, restrict assigned group, rich text descriptions); assigning the Incident Fulfiller or Incident Manager persona PSG. DO NOT TRIGGER for: the master on/off switch alone (use the IncidentMgmt SOR), the Priority Matrix, SLA, or field history tracking alone, the Major Incident Manager PSG, creating/editing PSGs, or Problem/Change/Case Management."
3
+ description: "Orchestrator for Incident Management setup in Service Cloud ITSM: presents the features with live org status, and configures each — Incident preferences, Incident persona PSG assignment, Priority Matrix, SLA & Milestones, Incident dashboards, Email-to-Incident, Major Incident Management (approval group + MIM preferences), Broadcast Communications, Manage Incidents with AI, Service Management Privilege (privilege escalation), and audit tracking. Use for: set up or configure incident management, a walkthrough, what incident features can I configure; the incident preference toggles (default field validations, auto-close child incidents, auto-triage, assign with Einstein, restrict assigned group, rich text descriptions); assigning the Incident Fulfiller or Incident Manager persona PSG. DO NOT TRIGGER for: the master on/off switch alone (use the IncidentMgmt SOR), the Priority Matrix, SLA, or field history tracking alone, the Major Incident Manager PSG, creating/editing PSGs, or Problem/Change/Case Management."
4
4
  metadata:
5
- version: "3.0"
5
+ version: "3.2"
6
6
  domains: ["Service"]
7
7
  minApiVersion: "67.0"
8
8
  relatedSkills:
@@ -23,14 +23,14 @@ allowed-tools: |
23
23
  # Incident Management Setup Orchestrator
24
24
 
25
25
  Guide the user through setting up Incident Management features in Salesforce Service Cloud ITSM by
26
- presenting the available capabilities, tracking progress, and **delegating** each feature to the Setup
27
- Operation Recipes (SORs) whose own steps this skill runs.
26
+ presenting the available capabilities with their status read from the org, and **delegating** each feature
27
+ to the Setup Operation Recipes (SORs) whose own steps this skill runs.
28
28
 
29
29
  ## Goal
30
30
 
31
31
  Act as the coordinator for Incident Management feature configuration. Present a menu of configurable
32
- features, handle each selection, and after each feature completes, return to the menu with updated progress
33
- until the user is done.
32
+ features with each one's status read from the org, handle each selection, and after each feature completes,
33
+ re-read the statuses and return to the menu until the user is done.
34
34
 
35
35
  ## How each feature is handled
36
36
 
@@ -38,7 +38,7 @@ until the user is done.
38
38
  |---|---------|-----------|-----------|
39
39
  | P | Incident Preferences | **Delegate** → `IncidentMgmt` (its preference steps) | `references/incident-preferences.md` |
40
40
  | 1 | Incident Persona PSG | **Delegate** → `service-itsm-incident-persona-assign` | `references/incident-persona-psg.md` |
41
- | 2 | Priority Matrix | **Delegate** → `IncidentPriorityMatrix` | `references/priority-matrix.md` |
41
+ | 2 | Priority Matrix | **Delegate** → `ItsmPriorityMatrix` (entity type `Incident`) | `references/priority-matrix.md` |
42
42
  | 3 | SLA & Milestones | **Delegate** → `SLASettings`, then `sla-management-setup` (custom policy) | `references/sla-milestones.md` |
43
43
  | 4 | Incident Dashboards | **Delegate** → `itsm-incident-dashboard-enablement` (Manager) and `itsm-incident-fulfiller-dashboard-enablement` (Fulfiller) | `references/incident-dashboards.md` |
44
44
  | 5 | Email-to-Incident | **Delegate** → `EmailToIncident` | `references/email-to-incident.md` |
@@ -69,29 +69,29 @@ send the prefix once.
69
69
  never run a SOR's own enable or delegate step for them, and never follow a hand-off a SOR names for
70
70
  either gate or for another feature on this menu.
71
71
  3. **Read before write.** Read the current state through the SOR's read steps. If it already matches what
72
- the user wants, that read is the verification: mark the feature `Done` with no write.
72
+ the user wants, that read is the verification — no write.
73
73
  4. **Confirm the exact change.** State the current value and the exact change, and get an explicit yes
74
74
  (`AskUserQuestion`) before any write. The user's initial request is not that confirmation; one yes can
75
75
  cover several writes if you listed them all.
76
76
  5. **Write, then read back.** Write only through the SOR's write steps, then read back through its verify
77
- steps. Mark the feature `Done` only when the read-back shows the chosen state — a write response alone
77
+ steps. The feature is finished only when the read-back shows the chosen state — a write response alone
78
78
  is not proof.
79
79
 
80
80
  ## Behavior
81
81
 
82
- ### 0. Reuse what the session already knows
82
+ ### 0. Read every status from the org
83
83
 
84
- Before running any preflight below, check whether the same fact was already established earlier in this
85
- conversation. Cache-eligible: the **IT Service Enablement and master switch states** (reuse each **only
86
- when confirmed *enabled***; a cached "off" MUST NOT let step 2 skip), **already-completed features** (stay "Done"; don't re-run unless
87
- asked to reconfigure), and the **target org**. **When in doubt, re-check.** Skip only when the earlier fact
88
- is unambiguously in context AND you have not switched orgs — a wrong skip on a live write is worse than a
89
- duplicated read.
84
+ Every status you show — both prerequisite gates, the menu, the table after a feature runs, the completion
85
+ summary — comes from reading the org with `references/status-checks.md` just before you show it. Never
86
+ carry a status over from earlier in the conversation, from a previous session, or from what the user says
87
+ is already done: setup may have changed since. A failed read is **Couldn't check**, never **Not done**. If
88
+ the org disagrees with what the user said, show the org's status and say so. Only the **target org**
89
+ carries over, unless the user switches orgs.
90
90
 
91
91
  ### 1. Extract context from conversation
92
92
 
93
- Scan chat history for which features are already done, any stated preferences/constraints, the target org,
94
- and business context that informs which features are relevant.
93
+ Scan chat history for the target org, the features the user named, any stated preferences/constraints, and
94
+ business context that informs which features are relevant — never for which features are done.
95
95
 
96
96
  ### 2. Verify IT Service Enablement, then ensure the Incident Management master switch is on
97
97
 
@@ -105,9 +105,10 @@ version with its minor, such as `v68.0`, never a bare major. If a feature read f
105
105
  other version strings. Never read or toggle `service-cloud-incident-management`, and do
106
106
  not use the Service-Foundation `IncidentManagement` look-alike or its broadcast toggles.
107
107
 
108
- Decide on `status` first: `ENABLED` is an idempotent no-op even if `enableBlockedReasons` is non-empty;
109
- `NOT_AVAILABLE` means halt (do not attempt enable). Show any `enableBlockedReasons` as plain text (their
110
- messages are HTML-escaped markup) and halt if present. Never infer success from a write response.
108
+ Read each gate with the Salesforce Go rule in `references/status-checks.md` and act on it as that file's
109
+ gates section says: `ENABLED` continues even with blocked reasons or an unfinished Salesforce Go setup step;
110
+ `NOT_AVAILABLE` or a blocked reason halts — show the reason as plain text (its message is HTML-escaped
111
+ markup) and do not attempt enable. Never infer success from a write response.
111
112
 
112
113
  1. **IT Service Enablement** — only exact `ENABLED` continues. Exact `NOT_ENABLED` with no blocked reasons:
113
114
  ask **“IT Service Enablement is off — enable it now?”** with `AskUserQuestion` (single-select, exactly
@@ -127,15 +128,15 @@ messages are HTML-escaped markup) and halt if present. Never infer success from
127
128
 
128
129
  Never offer to bypass either gate.
129
130
 
130
- **Skip only when both gates were already confirmed *enabled* in this session** (see step 0). A cached
131
- "off" or unknown state MUST fall through to the checks above.
131
+ **Re-read both gates each time the menu is about to show and before a direct single-feature handoff** —
132
+ never reuse an earlier result (step 0).
132
133
 
133
- ### 3. Present the feature menu as a multi-select
134
+ ### 3. Present the feature menu
134
135
 
135
- Emit the **Feature menu** template from `examples/output-templates.md` AND, in the same response, a single
136
- `AskUserQuestion` (`multiSelect: true`) whose options mirror the rendered rows — the table is the visual
137
- view; the tool call collects the selection. Both MUST appear together. Selecting one feature is valid;
138
- several enqueue for sequential handling in step 4.
136
+ Read every row's status (step 0), then emit the **Feature menu** template from `examples/output-templates.md`.
137
+ The table is the menu; the user replies with the numbers they want. Never collect the choice with
138
+ `AskUserQuestion`: a question holds four options at most, so it can't carry every row. Every row stays
139
+ selectable. Selecting one feature is valid; several enqueue for sequential handling in step 4.
139
140
 
140
141
  ### 4. Handle each selected feature in order
141
142
 
@@ -146,13 +147,14 @@ the per-feature invariants below.
146
147
 
147
148
  ### 5. After each feature completes
148
149
 
149
- Mark it "Done", suggest the next logical step, and re-present the menu with updated status using the
150
- **Post-feature progress** template in `examples/output-templates.md`.
150
+ Re-read every status (step 0), suggest the next logical step — the first row that isn't **Done** or **Not
151
+ available** — and re-present the menu using the **Post-feature progress** template in
152
+ `examples/output-templates.md`.
151
153
 
152
154
  ### 6. Completion summary
153
155
 
154
- When the user says they're done (or all features are configured), present the **Completion summary**
155
- template in `examples/output-templates.md`.
156
+ When the user says they're done (or every row reads **Done**), present the **Completion summary** template
157
+ in `examples/output-templates.md`, with every status read just before it (step 0).
156
158
 
157
159
  ---
158
160
 
@@ -232,8 +234,7 @@ so only that tier's milestones fire.
232
234
 
233
235
  - ALWAYS show "(via service-itsm-agentic-setup-incident-management)" in the setup header
234
236
  - ALWAYS check the IT Service Enablement and master-switch prerequisites (Behavior step 2) through
235
- the `IncidentMgmt` SOR before showing the menu or handing off a named feature, unless both were
236
- confirmed enabled earlier in this conversation
237
+ the `IncidentMgmt` SOR before showing the menu or handing off a named feature
237
238
  - ALWAYS ask each off gate with `AskUserQuestion` (single-select Yes/No), every time, never as plain text,
238
239
  before delegating the enable; No stops and points to Setup
239
240
  - ALWAYS require exact `ENABLED` verification for `service-cloud-itsm-setup` before the Incident switch;
@@ -241,15 +242,16 @@ so only that tier's milestones fire.
241
242
  - ALWAYS present the feature menu before configuring any selected feature (the master-switch prerequisite
242
243
  is the only permitted action before the menu) — do not assume which feature the user wants, **except**
243
244
  when the user named a specific feature, in which case go straight to it (single-select is fine)
244
- - ALWAYS pair the rendered feature-menu table with an `AskUserQuestion` (`multiSelect: true`) in the same
245
- response — the table is the visual view; the tool call is the selection channel
245
+ - ALWAYS show the feature menu as the table and take the choice from the user's typed reply, never from
246
+ an `AskUserQuestion`
246
247
  - ALWAYS read a feature's reference file before executing it, follow its rules, and follow the SOR at
247
248
  runtime — never hardcode a route, body, or preference name
248
249
  - ALWAYS run a feature's SORs under the hand-off protocol; NEVER hand a feature off to another skill, and
249
250
  never follow a SOR's hand-off for either prerequisite gate or for another feature on this menu
250
251
  - NEVER set up a feature the user did not select; for "set up everything", walk each feature sequentially
251
252
  in recommended order, confirming between each step
252
- - Track progress across the conversation — do not re-present completed features as "Not done"
253
+ - ALWAYS read each status from the org just before you show it (step 0) — a failed read is **Couldn't
254
+ check**, never **Not done**
253
255
  - Do not show Salesforce record IDs in any output — human-readable names only
254
256
 
255
257
  ---
@@ -259,14 +261,14 @@ so only that tier's milestones fire.
259
261
  Before emitting any menu or summary, confirm each; adjust the output before sending if any is unchecked.
260
262
 
261
263
  - [ ] The header line ends with `(via service-itsm-agentic-setup-incident-management)`
262
- - [ ] The `IncidentMgmt` SOR confirmed both prerequisite gates before the menu or direct feature
263
- handoff, unless both were already confirmed enabled earlier in this conversation; each off gate was
264
- asked with `AskUserQuestion` (Yes/No), not plain text, before the enable was delegated
264
+ - [ ] Both prerequisite gates were read from the org through the `IncidentMgmt` SOR just before the menu
265
+ or direct feature handoff; each off gate was asked with `AskUserQuestion` (Yes/No), not plain text,
266
+ before the enable was delegated
265
267
  - [ ] The exact `service-cloud-itsm-setup` entry verified exact `ENABLED` before the Incident-switch
266
268
  sequence; any other result stopped
267
- - [ ] The feature menu emitted BOTH the ASCII table AND an `AskUserQuestion` (`multiSelect: true`) in the
268
- same response (single-select only if the user already named a specific feature)
269
- - [ ] Each feature row's `Status` reflects the actual tracked state (`Not done`, `In progress`, `Done`)
269
+ - [ ] The feature menu is the full table, every row with its status, then the reply line — no
270
+ `AskUserQuestion` for the choice
271
+ - [ ] Each status was read from the org just before this output (step 0) — a label and a short note
270
272
  - [ ] A feature is being handled only because the user explicitly selected it (or is being walked through
271
273
  sequentially with confirmation under an "all" / "everything" request)
272
274
  - [ ] For each feature: its reference file was read and its checks passed; its SORs ran under the
@@ -283,7 +285,8 @@ Read each `references/` file before executing its feature.
283
285
 
284
286
  | File | When to read |
285
287
  |------|--------------|
286
- | `examples/output-templates.md` | Behavior steps 3, 5, 6 — feature menu (multi-select), post-feature progress, completion summary |
288
+ | `references/status-checks.md` | **Every run** — every status you show (step 0) and both gates (step 2): the labels, the Salesforce Go rule, each row's reads, the track roll-up |
289
+ | `examples/output-templates.md` | Behavior steps 3, 5, 6 — feature menu, post-feature progress, completion summary |
287
290
  | `references/incident-preferences.md` | **Incident Preferences** — where to start in the `IncidentMgmt` SOR, the steps never to run, the one-way confirmations, and the licensed toggles |
288
291
  | `references/incident-persona-psg.md` | **Incident Persona PSG** — the not-provisioned stop, the persona menu, one pass per PSG, and the settling status |
289
292
  | `references/priority-matrix.md` | **Priority Matrix** — the reads, the full-replacement save, the read-back, and the Salesforce Go step |
@@ -1,115 +1,142 @@
1
1
  # Output Templates — service-itsm-agentic-setup-incident-management
2
2
 
3
- Emit one of these text blocks at the corresponding step in the workflow. Show every feature the master
4
- switch enables; render each row's `Status` from the actual tracked state (`Not done`, `In progress`,
5
- `Done`) — never hard-code it.
3
+ Emit these blocks at the matching Behavior step. Every status is read from the org with
4
+ `references/status-checks.md` just before the block is shown — the statuses below show the shape, not an
5
+ org's real state. Each status cell is the label and its short note. Show every feature the master switch
6
+ enables.
6
7
 
7
8
  ## Feature menu (Behavior step 3)
8
9
 
10
+ The table is the menu: show every row, then the reply line below it. The user's typed reply is the
11
+ selection — don't collect it with `AskUserQuestion`.
12
+
13
+ Example — a resumed setup where the org shows some features already set up and others only partly:
14
+
9
15
  ```text
10
16
  Incident Management Setup (via service-itsm-agentic-setup-incident-management)
11
17
 
18
+ Target org: <org> (all steps below run against this org)
19
+ IT Service Enablement and Incident Management are on.
20
+
12
21
  Here are the features available for Incident Management. Select one or more to configure:
22
+ ```
23
+
24
+ | # | Feature | What it does | Status |
25
+ | -- | ------- | ------------ | ------ |
26
+ | P | Incident Preferences | The six setup toggles (validations, auto-close, triage, Einstein, group restriction, rich text) | Done — 4 of 6 on; off: Restrict Assigned Group to Regular Groups, Enable Rich Text for Incident Descriptions |
27
+ | | **Set Up the Basics** | | |
28
+ | 1 | Incident Persona PSG | Manage User Access: give a user the Incident Fulfiller or Manager persona (bundle + licenses) | Done — Incident Fulfiller: 3 people · Incident Manager: 3 people |
29
+ | 2 | Priority Matrix | Configure Rules for Automatic Incident Priority: the Impact × Urgency grid that sets Priority | Not done — not turned on |
30
+ | 3 | SLA & Milestones | Define SLAs to Prioritize Incidents: turn on SLA Management, then a predefined or custom policy | Done — SLA Management is on; active Incident policies: Incident SLA Policy |
31
+ | | **Unlock Advanced Functionality** | | |
32
+ | 4 | Incident Dashboards | Deploy the Incident Manager and/or Fulfiller dashboards, and dashboards on the Home page | Done — Incident Manager dashboards are on |
33
+ | 5 | Email-to-Incident | Report Incidents from Emails: email settings + routing addresses | In progress — turned on, but no routing address is set up yet |
34
+ | 6 | Major Incident Management | Review and Manage Major Incident Configuration: approval group + the two MIM preferences (auto-create problem, auto-close child) | In progress — 2 people have the Major Incident Manager license, but no approval group is set |
35
+ | 7 | Broadcast Communications | Set Up Broadcast Communication for Major Incidents: turn on, then sender access, channels (Email/In-app/Slack/Teams), objects | Not available — Broadcast Communications isn't available in this org; contact Salesforce Customer Support |
36
+ | 8 | Manage Incidents with AI | Auto-triage, Einstein assignment, and AI-drafted incidents from chat or voice transcripts | Done — all three are on |
37
+ | 9 | Service Management Privilege | Escalation level, privilege records + employee assignments, behind Enable Privilege Assignment | Done — turned on; 2 privileges; escalation level not set |
38
+ | 10 | Audit Tracking | Turn on field history tracking for the Incident fields you choose (who changed what, and when) | Not done — no Incident fields are tracked yet |
39
+
40
+ ```text
41
+ Reply with the numbers of the features you want to set up (one or more, e.g. `2,10`; `P` for Incident Preferences).
42
+ ```
43
+
44
+ When a gate reads In progress, or only its setup-step read failed, the gate line says so instead:
13
45
 
14
- ┌────┬───────────────────────────────┬──────────────────────────────────────────────────┬──────────┐
15
- │ # │ Feature │ Description │ Status │
16
- ├────┼───────────────────────────────┼──────────────────────────────────────────────────┼──────────┤
17
- │ P │ Incident Preferences │ The six setup toggles (validations, auto-close, │ Not done │
18
- │ │ │ triage, Einstein, group restriction, rich text) │ │
19
- ├────┴───────────────────────────────┴──────────────────────────────────────────────────┴──────────┤
20
- │ Set Up the Basics │
21
- ├────┬───────────────────────────────┬──────────────────────────────────────────────────┬──────────┤
22
- │ 1 │ Incident Persona PSG │ Manage User Access: give a user the Incident │ Not done │
23
- │ │ │ Fulfiller or Manager persona (bundle + licenses) │ │
24
- │ 2 │ Priority Matrix │ Configure Rules for Automatic Incident Priority: │ Not done │
25
- │ │ │ the Impact × Urgency grid that sets Priority │ │
26
- │ 3 │ SLA & Milestones │ Define SLAs to Prioritize Incidents: turn on SLA │ Not done │
27
- │ │ │ Management, then a predefined or custom policy │ │
28
- ├────┴───────────────────────────────┴──────────────────────────────────────────────────┴──────────┤
29
- │ Unlock Advanced Functionality │
30
- ├────┬───────────────────────────────┬──────────────────────────────────────────────────┬──────────┤
31
- │ 4 │ Incident Dashboards │ Deploy the Incident Manager and/or Fulfiller │ Not done │
32
- │ │ │ dashboards, and dashboards on the Home page │ │
33
- │ 5 │ Email-to-Incident │ Report Incidents from Emails: email settings + │ Not done │
34
- │ │ │ routing addresses │ │
35
- │ 6 │ Major Incident Management │ Review and Manage Major Incident Configuration: │ Not done │
36
- │ │ │ approval group + the two MIM preferences │ │
37
- │ │ │ (auto-create problem, auto-close child) │ │
38
- │ 7 │ Broadcast Communications │ Set Up Broadcast Communication for Major │ Not done │
39
- │ │ │ Incidents: turn on, then sender access, channels │ │
40
- │ │ │ (Email/In-app/Slack/Teams), objects │ │
41
- │ 8 │ Manage Incidents with AI │ Auto-triage, Einstein assignment, and AI-drafted │ Not done │
42
- │ │ │ incidents from chat or voice transcripts │ │
43
- │ 9 │ Service Management Privilege │ Escalation level, privilege records + employee │ Not done │
44
- │ │ │ assignments, behind Enable Privilege Assignment │ │
45
- │ 10 │ Audit Tracking │ Turn on field history tracking for the Incident │ Not done │
46
- │ │ │ fields you choose (who changed what, and when) │ │
47
- └────┴───────────────────────────────┴──────────────────────────────────────────────────┴──────────┘
48
-
49
- Reply with the numbers of the features you want to set up (one or more, e.g. `1,3`; `P` for Incident Preferences).
46
+ ```text
47
+ Incident Management is on, but its Salesforce Go setup didn't finish: Turn on Email to Incident.
50
48
  ```
51
49
 
52
50
  ## Post-feature progress (Behavior step 5)
53
51
 
54
- Example after the Incident Preferences feature completes (others still `Not done`):
52
+ Example — re-read after the Priority Matrix feature turned automatic priority on and saved the grid:
55
53
 
56
54
  ```text
57
- Incident Preferences — configured successfully
55
+ Priority Matrix — configured successfully
58
56
  (via service-itsm-agentic-setup-incident-management)
57
+ ```
59
58
 
60
- ┌────┬───────────────────────────────┬──────────┐
61
- │ # │ Feature │ Status │
62
- ├────┼───────────────────────────────┼──────────┤
63
- │ P │ Incident Preferences │ Done │
64
- │ 1 │ Incident Persona PSG │ Not done │
65
- │ 2 │ Priority Matrix │ Not done │
66
- │ 3 │ SLA & Milestones │ Not done │
67
- │ 4 │ Incident Dashboards │ Not done │
68
- │ 5 │ Email-to-Incident │ Not done │
69
- │ 6 │ Major Incident Management │ Not done │
70
- │ 7 │ Broadcast Communications │ Not done │
71
- │ 8 │ Manage Incidents with AI │ Not done │
72
- │ 9 │ Service Management Privilege │ Not done │
73
- │ 10 │ Audit Tracking │ Not done │
74
- └────┴───────────────────────────────┴──────────┘
59
+ | # | Feature | Status |
60
+ | -- | ------- | ------ |
61
+ | P | Incident Preferences | Done — 4 of 6 on; off: Restrict Assigned Group to Regular Groups, Enable Rich Text for Incident Descriptions |
62
+ | 1 | Incident Persona PSG | Done — Incident Fulfiller: 3 people · Incident Manager: 3 people |
63
+ | 2 | Priority Matrix | Done — turned on, 9 priority rules |
64
+ | 3 | SLA & Milestones | Done — SLA Management is on; active Incident policies: Incident SLA Policy |
65
+ | 4 | Incident Dashboards | Done — Incident Manager dashboards are on |
66
+ | 5 | Email-to-Incident | In progress — turned on, but no routing address is set up yet |
67
+ | 6 | Major Incident Management | In progress — 2 people have the Major Incident Manager license, but no approval group is set |
68
+ | 7 | Broadcast Communications | Not available — Broadcast Communications isn't available in this org |
69
+ | 8 | Manage Incidents with AI | Done — all three are on |
70
+ | 9 | Service Management Privilege | Done — turned on; 2 privileges; escalation level not set |
71
+ | 10 | Audit Tracking | Not done — no Incident fields are tracked yet |
75
72
 
73
+ ```text
74
+ Next up: Email-to-Incident (5) — it's on, but no routing address is set up yet.
76
75
  Say a number (or `P`) to configure the next feature, or `done` to finish.
77
76
  ```
78
77
 
78
+ When the re-read shows a feature still finishing, say so instead of calling it done — for example, right
79
+ after turning on Broadcast Communications in an org that has it:
80
+
81
+ | # | Feature | Status |
82
+ | -- | ------- | ------ |
83
+ | 7 | Broadcast Communications | In progress — Salesforce Go is turning it on now |
84
+
85
+ ```text
86
+ Salesforce Go is still turning on Broadcast Communications. Want me to check again?
87
+ ```
88
+
79
89
  ## Completion summary (Behavior step 6)
80
90
 
81
- The completion summary fires either (a) after every feature completes, or (b) when the user says they are
82
- finished — even if some features are still `Not done`. When rendering:
91
+ The completion summary fires either (a) when every row reads Done, or (b) when the user says they are
92
+ finished — even if some features aren't done. When rendering:
83
93
 
84
- - Substitute each feature's row with its actual tracked status: `Done`, `In progress`, or `Not done`.
85
- - Choose the header line based on whether every feature is `Done`:
86
- - All features `Done` → `Incident Management Setup — Complete`
87
- - Any feature still `Not done` or `In progress` → `Incident Management Setup — Finished`
88
- - Choose the closing line based on state:
89
- - All `Done` → `Your Incident Management features are configured.`
90
- - Otherwise → `You have finished the features you selected. The remaining features can be resumed later by re-invoking this orchestrator.`
94
+ - Re-read every row first, and show what the org reports. Do NOT hard-code `Done`.
95
+ - Header: `Incident Management Setup — Complete` only when every row reads Done (a row that reads Not
96
+ available doesn't count against it); otherwise `Incident Management Setup — Finished`.
97
+ - Closing line:
98
+ - Complete → `Your Incident Management features are configured.`
99
+ - Finished → name what's left, then `Run this setup again any time — it re-reads the org and picks up where setup stands.`
91
100
 
92
- Example — user finished after configuring three features:
101
+ Example — the user stopped after the Priority Matrix and a routing address for Email-to-Incident:
93
102
 
94
103
  ```text
95
104
  Incident Management Setup — Finished
96
105
  (via service-itsm-agentic-setup-incident-management)
97
106
 
98
- ┌───────────────────────────────┬──────────┐
99
- │ Feature │ Status │
100
- ├───────────────────────────────┼──────────┤
101
- │ Incident Preferences │ Done │
102
- │ Incident Persona PSG │ Not done │
103
- │ Priority Matrix │ Not done │
104
- │ SLA & Milestones │ Done │
105
- │ Incident Dashboards │ Not done │
106
- │ Email-to-Incident │ Not done │
107
- │ Major Incident Management │ Done │
108
- │ Broadcast Communications │ Not done │
109
- │ Manage Incidents with AI │ Not done │
110
- │ Service Management Privilege │ Not done │
111
- │ Audit Tracking │ Not done │
112
- └───────────────────────────────┴──────────┘
113
-
114
- You have finished the features you selected. The remaining features can be resumed later by re-invoking this orchestrator.
107
+ Target org: <org>
108
+ ```
109
+
110
+ | # | Feature | Status |
111
+ | -- | ------- | ------ |
112
+ | P | Incident Preferences | Done — 4 of 6 on; off: Restrict Assigned Group to Regular Groups, Enable Rich Text for Incident Descriptions |
113
+ | 1 | Incident Persona PSG | Done — Incident Fulfiller: 3 people · Incident Manager: 3 people |
114
+ | 2 | Priority Matrix | Done — turned on, 9 priority rules |
115
+ | 3 | SLA & Milestones | Done — SLA Management is on; active Incident policies: Incident SLA Policy |
116
+ | 4 | Incident Dashboards | Done — Incident Manager dashboards are on |
117
+ | 5 | Email-to-Incident | Done — turned on; 1 routing address |
118
+ | 6 | Major Incident Management | In progress — 2 people have the Major Incident Manager license, but no approval group is set |
119
+ | 7 | Broadcast Communications | Not available — Broadcast Communications isn't available in this org |
120
+ | 8 | Manage Incidents with AI | Done — all three are on |
121
+ | 9 | Service Management Privilege | Done — turned on; 2 privileges; escalation level not set |
122
+ | 10 | Audit Tracking | Not done — no Incident fields are tracked yet |
123
+
124
+ ```text
125
+ Left to do: designate the major-incident approval group (6) and choose the Incident fields to track (10).
126
+ Broadcast Communications isn't available in this org. Run this setup again any time — it re-reads the
127
+ org and picks up where setup stands.
128
+ ```
129
+
130
+ ## A read that fails (any step)
131
+
132
+ Show **Couldn't check** with the reason in plain words — never **Not done**:
133
+
134
+ | # | Feature | Status |
135
+ | -- | ------- | ------ |
136
+ | 6 | Major Incident Management | Couldn't check — reading this needs an admin with IT Service setup access |
137
+ | 10 | Audit Tracking | Couldn't check — the org didn't respond |
138
+
139
+ ```text
140
+ I couldn't check Major Incident Management or Audit Tracking, so I haven't marked them either way.
141
+ Want me to try again?
115
142
  ```
@@ -15,9 +15,13 @@ owns every user-facing gate. This file adds what is specific to this feature.
15
15
  changing it, and skip any already in the requested state.
16
16
  3. Confirm the exact change, write each chosen switch and read each back; mark the feature `Done` only
17
17
  when every read-back matches.
18
- 4. If triage or Einstein assignment can't be read or changed, the org lacks that switch's license (*IT
19
- Services: Agentforce Features for Employees* for triage, *IT Services: Einstein Features* for Einstein
20
- assignment): say so, skip it, and carry on with the others.
18
+ 4. If the SOR's read or change of triage or Einstein assignment is refused, read and change that switch
19
+ through the `IncidentMgmt` SOR's preference steps instead (`getOrgPref_1`, `updateOrgPref_2`,
20
+ `verify-update-org-pref`) — the same org preferences, and some orgs refuse the SOR's path even when the
21
+ switch is licensed and on; this is the one exception to stopping on a refused call. Only if that path
22
+ fails too does the org lack that switch's license (*IT Services: Agentforce Features for Employees* for
23
+ triage, *IT Services: Einstein Features* for Einstein assignment): say so, skip it, and carry on with the
24
+ others.
21
25
  5. When turning on the chat and voice switch, ask whether the org already captures transcripts (an active
22
26
  messaging channel for chat, call transcription for voice); set one up only if the user asks, through the
23
27
  SOR's channel hand-offs. Offer the SOR's smoke test only after that switch reads on — it drafts from one
@@ -1,13 +1,15 @@
1
- # Feature: Priority Matrix (delegated to the `IncidentPriorityMatrix` SOR)
1
+ # Feature: Priority Matrix (delegated to the `ItsmPriorityMatrix` SOR)
2
2
 
3
3
  How the orchestrator runs the **Priority Matrix** feature, which maps each Impact × Urgency combination on
4
- Incident to a Priority. The `IncidentPriorityMatrix` SOR's own steps and guidance decide *how*; the
4
+ Incident to a Priority. The `ItsmPriorityMatrix` SOR's own steps and guidance decide *how*; the
5
5
  orchestrator runs them itself under its **SOR hand-off protocol** and owns every user-facing gate. This file
6
6
  adds what is specific to the Priority Matrix.
7
7
 
8
8
  1. `discover` the SOR by intent (e.g. "incident priority matrix impact urgency") and `describe` the id
9
- `discover` returns (`IncidentPriorityMatrix`). Its own prerequisite checks fall under protocol step 2.
10
- 2. Read first: the org's **active** Incident `Priority` values (`describe-incident-priority-picklist` —
9
+ `discover` returns (`ItsmPriorityMatrix`). Its own prerequisite checks fall under protocol step 2. The
10
+ SOR serves Incident and Problem, so pass the entity type `Incident` on every call (`entityType` on the
11
+ `Priority` read, the matrix reads, and the save; `details` on the default-priority reads).
12
+ 2. Read first: the org's **active** Incident `Priority` values (`describe-priority-picklist` —
11
13
  never hardcode or invent them), the current rows (`fetch-priority-matrix`), both preferences
12
14
  (`read-priority-matrix-prefs`, one call each: `IncPriorityMatrixEnabled`, the *Turn on Automatic
13
15
  Priority Assignment for IT Service* toggle, and `IncPriorityOverrideEnabled`, the *Set priority
@@ -19,7 +21,7 @@ adds what is specific to the Priority Matrix.
19
21
  4. **The save is a full replacement**: `save-priority-matrix` deletes every row it isn't sent. Build the
20
22
  complete set from the fetched rows, change only the cells the user asked to change, and keep the
21
23
  override as read unless asked. Show which cells are added, changed, or removed, the resulting default,
22
- and the override state, and get an explicit yes. Re-run `describe-incident-priority-picklist` right
24
+ and the override state, and get an explicit yes. Re-run `describe-priority-picklist` right
23
25
  before the save and send only its active values. A change to only the matrix toggle or only the
24
26
  override uses `update-priority-matrix-enablement` instead, one preference per call, confirmed the same
25
27
  way.
@@ -35,8 +35,8 @@ SLAs.
35
35
  Support for Incidents* already exists: say so, **never re-seed** (the seed isn't idempotent — a second
36
36
  run duplicates every artifact), and stop unless the user explicitly asks for a custom policy. Don't
37
37
  upsell one.
38
- 4. **Read what the choice needs** — from `IncidentPriorityMatrix`, only these two reads: the active Incident
39
- `Priority` values (`describe-incident-priority-picklist`) and the matrix flag
38
+ 4. **Read what the choice needs** — from `ItsmPriorityMatrix` (entity type `Incident`), only these two
39
+ reads: the active Incident `Priority` values (`describe-priority-picklist`) and the matrix flag
40
40
  (`read-priority-matrix-prefs`, `IncPriorityMatrixEnabled`). With the matrix off, every Incident gets the
41
41
  default priority, so only that tier's milestones fire: warn plainly and point to the **Priority Matrix**
42
42
  feature. A warning, never a gate — never turn the matrix on from here.