@salesforce/afv-skills 1.67.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 (258) hide show
  1. package/README.md +55 -5
  2. package/package.json +1 -1
  3. package/skills/afcc-setup-coordinate/SKILL.md +348 -0
  4. package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
  5. package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
  6. package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
  7. package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
  8. package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
  9. package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
  10. package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
  11. package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
  12. package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
  13. package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
  14. package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
  15. package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
  16. package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
  17. package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
  18. package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
  19. package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
  20. package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
  21. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
  22. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
  23. package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
  24. package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
  25. package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
  26. package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
  27. package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
  28. package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
  29. package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
  30. package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
  31. package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
  32. package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
  33. package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
  34. package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
  35. package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
  36. package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
  37. package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
  38. package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
  39. package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
  40. package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
  41. package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
  42. package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
  43. package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
  44. package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
  45. package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
  46. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
  47. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
  48. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
  49. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
  50. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
  51. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
  52. package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
  53. package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
  54. package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
  55. package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
  56. package/skills/agentforce-offline-experimentation-run/SKILL.md +14 -22
  57. package/skills/agentforce-offline-experimentation-run/scripts/bt_compare.py +81 -0
  58. package/skills/agentforce-offline-experimentation-run/scripts/bt_fetch.py +358 -0
  59. package/skills/agentforce-offline-experimentation-run/scripts/bt_patch_agent.py +110 -0
  60. package/skills/agentforce-offline-experimentation-run/scripts/btlib/__init__.py +34 -0
  61. package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentpatch.py +483 -0
  62. package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentsrc.py +565 -0
  63. package/skills/agentforce-offline-experimentation-run/scripts/btlib/cache.py +95 -0
  64. package/skills/agentforce-offline-experimentation-run/scripts/btlib/compare.py +617 -0
  65. package/skills/agentforce-offline-experimentation-run/scripts/btlib/fetch.py +1012 -0
  66. package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +140 -0
  67. package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +93 -0
  68. package/skills/agentforce-offline-experimentation-run/scripts/btlib/patch.py +327 -0
  69. package/skills/agentforce-offline-experimentation-run/scripts/btlib/redact.py +40 -0
  70. package/skills/agentforce-offline-experimentation-run/scripts/btlib/results.py +288 -0
  71. package/skills/agentforce-offline-experimentation-run/scripts/btlib/scoring.py +340 -0
  72. package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +354 -0
  73. package/skills/agentforce-offline-experimentation-run/scripts/btlib/splits.py +136 -0
  74. package/skills/agentforce-offline-experimentation-run/scripts/btlib/stdm.py +98 -0
  75. package/skills/agentforce-offline-experimentation-run/scripts/btlib/tokens.py +173 -0
  76. package/skills/agentforce-offline-experimentation-run/scripts/btlib/units.py +199 -0
  77. package/skills/agentforce-offline-experimentation-run/scripts/btlib/versions.py +194 -0
  78. package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +367 -379
  79. package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +23 -6
  80. package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +483 -796
  81. package/skills/commerce-react-storefront-create/SKILL.md +54 -21
  82. package/skills/dx-lifecycle-center/SKILL.md +22 -13
  83. package/skills/dx-lifecycle-center/examples/workflows.md +54 -17
  84. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  85. package/skills/dx-lifecycle-center/references/connect-org.md +62 -12
  86. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  87. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  88. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  89. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  90. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  91. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  92. package/skills/dx-org-devhub-configure/SKILL.md +85 -84
  93. package/skills/dx-org-devhub-configure/examples/status-output.md +25 -2
  94. package/skills/dx-org-devhub-configure/scripts/devhub.sh +265 -140
  95. package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +100 -15
  96. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  97. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  98. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +88 -0
  99. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +167 -0
  100. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  101. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  102. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  103. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  104. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  105. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  106. package/skills/dx-scratch-def-configure/SKILL.md +163 -0
  107. package/skills/dx-scratch-def-configure/examples/confirm-card.md +53 -0
  108. package/skills/dx-scratch-def-configure/examples/report-recipes.md +100 -0
  109. package/skills/dx-scratch-def-configure/references/features.json +3270 -0
  110. package/skills/dx-scratch-def-configure/references/project-scratch-def.schema.json +1841 -0
  111. package/skills/dx-scratch-def-configure/references/settings-map.json +682 -0
  112. package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1306 -0
  113. package/skills/dx-scratch-def-configure/scripts/requirements.txt +3 -0
  114. package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +848 -0
  115. package/skills/education-cloud-domain-configure/SKILL.md +1 -1
  116. package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -1
  117. package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +1 -1
  118. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  119. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  120. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  121. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  122. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  123. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  124. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  125. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  126. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  127. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  128. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  129. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  130. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  131. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  132. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  133. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  134. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  135. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  136. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  137. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  138. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  139. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  140. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  141. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  142. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  143. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  144. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  145. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  146. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  147. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  148. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  149. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  150. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  151. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  152. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  153. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  154. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  155. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  156. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  157. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  158. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  159. package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
  160. package/skills/experience-design-validate/SKILL.md +1 -1
  161. package/skills/experience-search-coordinate/SKILL.md +18 -12
  162. package/skills/experience-search-coordinate/references/content-route.md +79 -1
  163. package/skills/field-service-data-capture-migrate/SKILL.md +1 -1
  164. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  165. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  166. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  167. package/skills/platform-apex-generate/SKILL.md +14 -11
  168. package/skills/platform-apex-test-generate/SKILL.md +2 -1
  169. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  170. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  171. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  172. package/skills/platform-datamask-run/SKILL.md +52 -71
  173. package/skills/platform-datamask-run/references/api-surface.md +10 -4
  174. package/skills/platform-datamask-run/references/policy-authoring.md +56 -7
  175. package/skills/platform-datamask-run/references/run-and-abort.md +17 -10
  176. package/skills/platform-datamask-run/scripts/poll-job.sh +15 -25
  177. package/skills/platform-dataspace-access-configure/SKILL.md +43 -10
  178. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  179. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  180. package/skills/platform-metadata-discovery-get/SKILL.md +185 -0
  181. package/skills/platform-metadata-discovery-get/references/api-map.md +25 -0
  182. package/skills/platform-metadata-discovery-get/references/h360-routes.md +30 -0
  183. package/skills/platform-metadata-discovery-get/references/scoped-soql.md +52 -0
  184. package/skills/platform-metadata-grounding-get/SKILL.md +170 -0
  185. package/skills/platform-policy-rule-generate/SKILL.md +85 -231
  186. package/skills/platform-policy-rule-generate/references/condition-model.md +47 -0
  187. package/skills/platform-policy-rule-generate/references/condition-templates.md +89 -0
  188. package/skills/platform-policy-rule-generate/references/conjunction-compiler.md +25 -0
  189. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +30 -0
  190. package/skills/platform-policy-rule-generate/references/consumer-all.md +9 -0
  191. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +99 -0
  192. package/skills/platform-policy-rule-generate/references/deploy-errors.md +24 -36
  193. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/package.xml +12 -0
  194. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +5 -0
  195. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinition +91 -0
  196. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/package.xml +12 -0
  197. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +5 -0
  198. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinition +72 -0
  199. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/package.xml +12 -0
  200. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +5 -0
  201. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinition +77 -0
  202. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/package.xml +12 -0
  203. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +5 -0
  204. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinition +77 -0
  205. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/package.xml +12 -0
  206. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +5 -0
  207. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinition +65 -0
  208. package/skills/platform-policy-rule-generate/references/headless-transport.md +87 -0
  209. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +18 -11
  210. package/skills/platform-policy-rule-generate/references/policy-shapes.md +107 -0
  211. package/skills/platform-policy-rule-generate/references/principal-expression.md +31 -0
  212. package/skills/platform-policy-rule-generate/references/reference-resolution.md +51 -0
  213. package/skills/platform-policy-rule-generate/references/resource-expression.md +48 -0
  214. package/skills/platform-policy-rule-generate/references/runtime-context.md +9 -0
  215. package/skills/platform-policy-rule-generate/references/templates-access.md +11 -9
  216. package/skills/platform-policy-rule-generate/references/templates-advanced.md +5 -3
  217. package/skills/platform-policy-rule-generate/references/templates-record.md +37 -22
  218. package/skills/platform-policy-rule-generate/references/templates-transform.md +10 -8
  219. package/skills/platform-policy-rule-generate/references/templates.md +2 -2
  220. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +36 -18
  221. package/skills/platform-report-generate/SKILL.md +29 -5
  222. package/skills/platform-report-generate/references/chart-types.md +26 -2
  223. package/skills/platform-report-generate/references/column-names.md +43 -0
  224. package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
  225. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  226. package/skills/platform-report-generate/references/verification-checklist.md +22 -2
  227. package/skills/service-digital-engagement-channel-configure/SKILL.md +49 -110
  228. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +35 -0
  229. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  230. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  231. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  232. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  233. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +128 -28
  234. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
  235. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  236. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  237. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  238. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  239. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  240. package/skills/service-e911-configure/SKILL.md +242 -0
  241. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  242. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  243. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  244. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  245. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  246. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  247. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  248. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  249. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  250. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  251. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  252. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  253. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  254. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  255. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  256. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  257. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  258. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
@@ -99,7 +99,7 @@ Comma-separated string, no spaces between extensions.
99
99
  When user verification is enabled:
100
100
  - Set `authMode` to `Auth`
101
101
  - The customer's backend must issue a signed JWT containing user identity claims
102
- - Requires a configured connected app with certificate for JWT signature verification
102
+ - JWTs are verified only once a keyset (public key certificate set) whose key `kid` and issuer match them is attached via `messagingAuthorizations`; the channel itself deploys without one. Creating keys is a separate setup
103
103
 
104
104
  ---
105
105
 
@@ -107,24 +107,28 @@ When user verification is enabled:
107
107
 
108
108
  Only applicable when `authMode` is `Auth`. Do not include when `authMode` is `UnAuth`.
109
109
 
110
- Configures the authorization settings for verified user identity in the messaging channel.
110
+ Nested inside `<embeddedConfig>`. Configures verified user identity for the channel.
111
111
 
112
112
  | Field | Type | Required | Description |
113
113
  |-------|------|----------|-------------|
114
114
  | `authorizationType` | Enum | Yes | Always `PublicKeyCertificateSet` |
115
- | `authProviderName` | String | Yes | The name of the auth provider |
116
- | `publicKeyCertificateSetName` | String | Yes | The certificate set used for public key verification |
115
+ | `publicKeyCertificateSetName` | String | Yes | API name of an existing keyset used for public key verification |
117
116
  | `enabled` | Boolean | Yes | Whether this authorization is active |
118
- | `authIdentifier` | String | Yes | The identifier used to match the authenticated user |
117
+ | `authIdentifier` | String | Yes | Free-form configuration name (default: the channel file name); not the JWT `sub` claim |
118
+
119
+ Do not emit `authProviderName`. With `Auth`, set `verifiedUserJwtExpirationTime` (60-240) and omit `anonymousUserJwtExpirationTime`.
119
120
 
120
121
  ```xml
121
- <messagingAuthorizations>
122
- <authorizationType>PublicKeyCertificateSet</authorizationType>
123
- <authProviderName>MyAuthProvider</authProviderName>
124
- <publicKeyCertificateSetName>MyCertificateSet</publicKeyCertificateSetName>
125
- <enabled>true</enabled>
126
- <authIdentifier>Sub</authIdentifier>
127
- </messagingAuthorizations>
122
+ <embeddedConfig>
123
+ <authMode>Auth</authMode>
124
+ <verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
125
+ <messagingAuthorizations>
126
+ <authIdentifier>Customer_Support_Chat</authIdentifier>
127
+ <authorizationType>PublicKeyCertificateSet</authorizationType>
128
+ <enabled>true</enabled>
129
+ <publicKeyCertificateSetName>Support_Keyset</publicKeyCertificateSetName>
130
+ </messagingAuthorizations>
131
+ </embeddedConfig>
128
132
  ```
129
133
 
130
134
  ---
@@ -133,12 +137,24 @@ Configures the authorization settings for verified user identity in the messagin
133
137
 
134
138
  | Field | Type | Default | Description |
135
139
  |-------|------|---------|-------------|
136
- | `endUserIdleTimeOut` | Integer | `5` | Minutes of user inactivity before idle warning |
137
- | `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time |
138
- | `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user |
140
+ | `endUserIdleTimeOut` | Integer | `5` | Minutes of user inactivity before idle warning (range 5-30) |
141
+ | `endUserIdleAction` | Enum | — | Action taken when the idle timeout elapses: `Inactivate`, `End`, or `InactivateAndEnd` |
142
+ | `endInactiveSessionTimeOut` | Integer | — | Minutes after `endUserIdleAction` fires before the inactive session itself ends |
143
+ | `isAgentMessageResetInactivityEnabled` | Boolean | — | Restart the customer's inactivity timer when a rep sends a message (Setup label: "Rep messages reset customer's inactivity timer"). Only takes effect when `endUserIdleTimeOut` is set; it is forced to `false` otherwise |
144
+ | `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time. Setup's **Notification** list (None / Estimated Wait Time / Queue Position) allows one choice, so never set this and `isQueuePositionEnabled` both `true` (deploy fails: "You can't enable Queue Position and Estimated Wait Time options at the same time") |
145
+ | `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user. At most one of this and `isEstimatedWaitTimeEnabled` may be `true` |
139
146
  | `isSynchronousChatEnabled` | Boolean | `false` | Enable real-time synchronous chat |
140
147
  | `isVoiceModeEnabled` | Boolean | `false` | Enable voice mode capability |
141
148
 
149
+ Setup UI (Customer Inactivity card): `endUserIdleTimeOut` is "Minutes to Inactivate Session" / "Minutes to End Session" (5-30); `endUserIdleAction` is "Choose action when customer is idle" with values "Inactivate Session" (`Inactivate`), "End Session" (`End`), and "Inactivate & End Session" (`InactivateAndEnd`); `endInactiveSessionTimeOut` is "Minutes to End Session After Inactivation" (5-30, only meaningful with `InactivateAndEnd`).
150
+
151
+ `endUserIdleTimeOut`, `endUserIdleAction`, `endInactiveSessionTimeOut`, and `isAgentMessageResetInactivityEnabled` are **MIAW (EmbeddedMessaging) only** — not applicable to SMS/WhatsApp/LINE. These can be deployed together with `isAbandonedChatsEnabled`/`chatAbandonmentTimeout` with no conflict.
152
+
153
+ ```xml
154
+ <endUserIdleTimeOut>5</endUserIdleTimeOut>
155
+ <endUserIdleAction>InactivateAndEnd</endUserIdleAction>
156
+ <endInactiveSessionTimeOut>10</endInactiveSessionTimeOut>
157
+ ```
142
158
 
143
159
  ---
144
160
 
@@ -237,30 +253,76 @@ A parameter still used by a pre-chat form can't be deleted ("can't be deleted as
237
253
 
238
254
  ## Automated Responses (`<automatedResponses>`)
239
255
 
240
- Repeatable element — automated messages sent at specific events.
256
+ Repeatable element — automated messages sent at specific events. There are two mutually exclusive content shapes, and **which shape applies depends on the `type`** (EmbeddedMessaging channel).
257
+
258
+ ### Shape 1 — `TextResponse` (inline text)
259
+
260
+ Applies only to `OptOutConfirmation` and `HelpResponse`.
241
261
 
242
262
  | Field | Type | Required | Description |
243
263
  |-------|------|----------|-------------|
244
- | `autoResponseContentType` | Enum | Yes | `TextResponse` or `MessageDefinition` |
264
+ | `autoResponseContentType` | Enum | Yes | `TextResponse` |
245
265
  | `language` | String | Yes | Locale code (e.g., `en_US`) |
246
266
  | `response` | String | Yes | The response message text (XML-escape special chars) |
247
- | `type` | Enum | Yes | The event type — see table below |
267
+ | `type` | Enum | Yes | `OptOutConfirmation` or `HelpResponse` |
268
+
269
+ ### Shape 2 — `MessageDefinition` (reference to a Messaging Component)
270
+
271
+ Applies to `InitialResponse`, `AgentEngagedResponse`, `AgentEndEngagementResponse`, `EndUserInactiveResponse`, `EndUserIdleResponse`, `RerouteResponse`, and `RoutingUnavailableResponse` — the "Conversation Acknowledgement," "Start Conversation," "End Conversation," "Inactive Conversation," "Warning Message," "Reroute Conversation," and "Routing Unavailable" fields in the Setup UI, all backed by a "Messaging Components" (`ConversationMessageDefinition`) picker.
272
+
273
+ | Field | Type | Required | Description |
274
+ |-------|------|----------|-------------|
275
+ | `autoResponseContentType` | Enum | Yes | `MessageDefinition` |
276
+ | `messageDefinitionName` | String | Yes | `DeveloperName` of an existing `ConversationMessageDefinition`. Must already exist in the org — build it with the `conversation-message-definition-builder` skill before deploying this reference (see Cross-Skill Integration in SKILL.md) |
277
+ | `type` | Enum | Yes | `InitialResponse`, `AgentEngagedResponse`, `AgentEndEngagementResponse`, `EndUserInactiveResponse`, `EndUserIdleResponse`, `RerouteResponse`, or `RoutingUnavailableResponse` |
278
+ | `responseTimeoutInMins` | Integer | No | **Only** on `EndUserIdleResponse` and `EndUserInactiveResponse` (range 4-30). Minutes before the idle action fires at which the message is shown (Setup label "Minutes to Show Warning"; Help: "select 4 to show the message 4 minutes before the session inactivates"). On `EndUserIdleResponse` it must be less than `endUserIdleTimeOut` (Setup caps it at `endUserIdleTimeOut` - 1). Rejected on every other type and on `TextResponse` |
279
+
280
+ **Do not include `<language>` or `<response>` on a `MessageDefinition`-shaped block.** The language comes from the referenced CMD's own `<language>` field. Including `<language>` here causes the deploy to fail — with `"unexpected metadata"` for `InitialResponse`/`AgentEngagedResponse`/`AgentEndEngagementResponse`, and with an internal server error for `EndUserInactiveResponse`. Omitting it is the fix, not a schema quirk to work around another way.
281
+
282
+ ```xml
283
+ <!-- TextResponse shape -->
284
+ <automatedResponses>
285
+ <autoResponseContentType>TextResponse</autoResponseContentType>
286
+ <language>en_US</language>
287
+ <response>Text STOP to opt out of further messages.</response>
288
+ <type>HelpResponse</type>
289
+ </automatedResponses>
290
+
291
+ <!-- MessageDefinition shape -->
292
+ <automatedResponses>
293
+ <autoResponseContentType>MessageDefinition</autoResponseContentType>
294
+ <messageDefinitionName>Customer_Inactive_Message</messageDefinitionName>
295
+ <type>EndUserInactiveResponse</type>
296
+ </automatedResponses>
297
+
298
+ <!-- Idle warning with responseTimeoutInMins (only valid on EndUserIdleResponse / EndUserInactiveResponse) -->
299
+ <automatedResponses>
300
+ <autoResponseContentType>MessageDefinition</autoResponseContentType>
301
+ <messageDefinitionName>Idle_Warning_Message</messageDefinitionName>
302
+ <responseTimeoutInMins>4</responseTimeoutInMins>
303
+ <type>EndUserIdleResponse</type>
304
+ </automatedResponses>
305
+ ```
248
306
 
249
307
  ### Response Types
250
308
 
251
- | `type` Value | When Sent |
252
- |-------------|-----------|
253
- | `OptOutConfirmation` | When user opts out of receiving messages |
254
- | `HelpResponse` | When user sends a help keyword |
255
- | `InitialResponse` | Let a customer know that their initial message was received |
256
- | `AgentEngagedResponse` | Let a customer know that their messaging session was accepted by a service rep |
257
- | `AgentEndEngagementResponse` | Let a customer know that their messaging session ended, and optionally provide a post-chat URL. This auto-response is sent when the service rep or end user ends the session |
258
- | `EndUserInactiveResponse` | Let a customer know that their messaging conversation has ended because they stopped responding |
259
- | `EndUserIdleResponse` | When end user idle response |
309
+ | `type` Value | Content Shape | When Sent |
310
+ |-------------|---------------|-----------|
311
+ | `OptOutConfirmation` | `TextResponse` | When user opts out of receiving messages |
312
+ | `HelpResponse` | `TextResponse` | When user sends a help keyword |
313
+ | `InitialResponse` | `MessageDefinition` | Let a customer know that their initial message was received |
314
+ | `AgentEngagedResponse` | `MessageDefinition` | Let a customer know that their messaging session was accepted by a service rep |
315
+ | `AgentEndEngagementResponse` | `MessageDefinition` | Let a customer know that their messaging session ended, and optionally provide a post-chat URL. Sent when the service rep or end user ends the session |
316
+ | `EndUserInactiveResponse` | `MessageDefinition` | Let a customer know that their messaging conversation has ended because they stopped responding |
317
+ | `EndUserIdleResponse` | `MessageDefinition` | Warn a customer that their conversation will be inactivated or ended because they are idle. Set in the Customer Inactivity card ("Warning Message"); `responseTimeoutInMins` is how many minutes before the idle action it is shown |
318
+ | `RerouteResponse` | `MessageDefinition` | Sent when a conversation is rerouted to a different queue or agent ("Reroute Conversation") |
319
+ | `RoutingUnavailableResponse` | `MessageDefinition` | Sent when no routing target is available ("Routing Unavailable") |
320
+
321
+ Only `OptOutConfirmation` and `HelpResponse` use the `TextResponse` shape; every other type is `MessageDefinition`-only. `OptIn*` and `CustomResponse` types are not used for EmbeddedMessaging channels.
260
322
 
261
323
  ### XML Escaping
262
324
 
263
- Special characters in `response` must be XML-escaped:
325
+ Special characters in a `TextResponse` block's `response` must be XML-escaped:
264
326
  - `'` → `&apos;`
265
327
  - `"` → `&quot;`
266
328
  - `&` → `&amp;`
@@ -303,3 +365,41 @@ Repeatable element — keyword groups that trigger automated responses. Each key
303
365
  <language>en_US</language>
304
366
  </messagingKeywords>
305
367
  ```
368
+
369
+ ---
370
+
371
+ ## Setup Prompts: Session Inactivity
372
+
373
+ Ask using the Setup labels (Customer Inactivity card), with the field in parentheses:
374
+
375
+ - "Inactivate or end a session after a period of customer inactivity?" If yes, "Minutes to Inactivate Session / End Session?" (`endUserIdleTimeOut`, 5-30).
376
+ - "Choose action when customer is idle": **Inactivate Session** (`Inactivate`), **End Session** (`End`), or **Inactivate & End Session** (`InactivateAndEnd`) (`endUserIdleAction` — no other values). **Validate before editing or deploying:** if the user names any other value (e.g. `EndChatSession`, "close", "terminate"), do not write it; say it is not an option, list the three, and ask which one. Never deploy to see whether it is accepted. For Inactivate & End Session also ask "Minutes to End Session After Inactivation?" (`endInactiveSessionTimeOut`, 5-30).
377
+ - "Should rep messages reset the customer's inactivity timer?" (`isAgentMessageResetInactivityEnabled`; needs `endUserIdleTimeOut`).
378
+ - Optional idle warning: the **Warning Message** prompt under Automated Responses below.
379
+
380
+ Set all of these as **top-level fields, siblings of `<embeddedConfig>`** (not nested inside it). MIAW (EmbeddedMessaging) only.
381
+
382
+ Checks:
383
+ - [ ] `endUserIdleAction`/`endInactiveSessionTimeOut` are top-level siblings of `<embeddedConfig>`, not nested inside it.
384
+ - [ ] `endUserIdleAction` is one of `Inactivate`, `End`, `InactivateAndEnd`, checked before the file is edited (free text such as `EndChatSession` fails with "not a valid value for the enum").
385
+ - [ ] `endUserIdleTimeOut` is in range 5-30.
386
+
387
+ ## Setup Prompts: Automated Responses
388
+
389
+ Ask which messages the user wants, using the Setup labels (Automated Responses card), with the `type` in parentheses. Two content shapes, chosen by `type`:
390
+
391
+ - Consent text — **Opt-Out Confirmation** (`OptOutConfirmation`) and **Help Response** (`HelpResponse`): `TextResponse` shape; generate elements with `autoResponseContentType: TextResponse`, `language`, and XML-escaped `response` text.
392
+ - Messaging Components — `MessageDefinition` shape; the referenced `ConversationMessageDefinition` must exist first. If it doesn't, delegate to `conversation-message-definition-builder` to create it, then generate the element with `autoResponseContentType: MessageDefinition` and `messageDefinitionName` (no `language`, no `response`):
393
+ - **Conversation Acknowledgement** (`InitialResponse`), **Start Conversation** (`AgentEngagedResponse`), **End Conversation** (`AgentEndEngagementResponse`), **Inactive Conversation** (`EndUserInactiveResponse`), **Reroute Conversation** (`RerouteResponse`), **Routing Unavailable** (`RoutingUnavailableResponse`).
394
+ - **Warning Message** (`EndUserIdleResponse`) — the idle warning; ask "How many minutes before the session inactivates/ends should the warning show?" (Setup: "Minutes to Show Warning"; `responseTimeoutInMins`, 4-30, less than `endUserIdleTimeOut`). `responseTimeoutInMins` is allowed only on `EndUserIdleResponse` and `EndUserInactiveResponse`.
395
+
396
+ Offer **every** type above (nine in all), never a subset. A question tool that allows only four options means asking in several rounds; do not merge types into buckets or drop any. If the user says only "automated responses", ask round by round until each type is accepted or declined. Ask for the `TextResponse` wording (Opt-Out, Help) instead of inventing it. Create any missing component by **invoking the `conversation-message-definition-builder` skill** (Skill tool) and deploying what it produces. Never write, copy, or adapt a `ConversationMessageDefinition` by hand, including by copying the shape of an existing one: the builder owns the required layout, `AutoResponse` type, and `Title` constant. If the builder skill is not available, stop and tell the user; do not fall back to hand-writing.
397
+
398
+ When adding to an existing channel, retrieve it first and keep **one** `automatedResponses` block per `type`. A second block of the same type fails the deploy with `duplicate value found: MessagingChannelId`; the cause is the duplicate block, not the component.
399
+
400
+ Checks:
401
+ - [ ] Every type was offered, and each answer (accepted or declined) was recorded.
402
+ - [ ] `OptOutConfirmation`/`HelpResponse`: `TextResponse` shape with `language` + `response`, special characters XML-escaped.
403
+ - [ ] Every other type: `MessageDefinition` shape with `messageDefinitionName` set and `language`/`response` both absent.
404
+ - [ ] `messageDefinitionName` references a `ConversationMessageDefinition` that already exists in the org (otherwise: "reference not found" — build it with `conversation-message-definition-builder` first).
405
+ - [ ] `responseTimeoutInMins` (4-30) appears only on `EndUserIdleResponse`/`EndUserInactiveResponse`, and on `EndUserIdleResponse` is less than `endUserIdleTimeOut`.
@@ -1,17 +1,16 @@
1
1
  # Onboarding contract — delegated mode, transport, pre-scan, registration
2
2
 
3
3
  Read this when the invocation carries a `context` object, before any org write, or when registering the skill in an
4
- onboarding module. It implements the Feature Setup Skill Guidelines (Conversational Onboarding, Service Cloud) for
5
- this skill. The sibling `service-digital-engagement-deployment-configure` has the same structure.
4
+ onboarding module. The sibling `service-digital-engagement-deployment-configure` has the same structure.
6
5
 
7
6
  ## 1. Two entry points, one write procedure
8
7
 
9
8
  | | Delegated | Standalone |
10
9
  |---|---|---|
11
10
  | Detected by | `context.calledFrom == "service-onboarding"` | no `context` object |
12
- | Values come from | `values` in the payload — already approved in the plan table | you ask, using the defaults in SKILL.md |
13
- | Questions | none. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the Clarifying Questions in SKILL.md |
14
- | Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the Clarifying Questions as written) |
11
+ | Values come from | `values` in the payload — already approved in the plan table | you ask for the Inputs in SKILL.md; defaults are in `references/channel_settings.md` |
12
+ | Questions | none. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the Inputs list in SKILL.md |
13
+ | Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the Inputs as written) |
15
14
  | Ends with | the structured result in section 5 | a plain-language summary of the same outcome |
16
15
 
17
16
  Delegated payload:
@@ -23,15 +22,16 @@ Delegated payload:
23
22
  "routingType": "Queue",
24
23
  "routingTarget": "Support_Queue",
25
24
  "fallbackQueue": null,
26
- "userVerification": true
25
+ "userVerification": false
27
26
  },
28
27
  "context": { "calledFrom": "service-onboarding", "discoveryMode": "guided" }
29
28
  }
30
29
  ```
31
30
 
32
31
  Required `values`: `channelLabel`, `routingType`, `routingTarget`; `fallbackQueue` is required when `routingType` is
33
- `Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `true`, matching SKILL.md. Every other
34
- channel setting uses the SKILL.md defaults unless a key is supplied.
32
+ `Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `false` (`UnAuth`); when `true`, `verificationKeyset` (an existing
33
+ keyset name) and `authIdentifier` are optional. Every other channel setting uses the defaults in
34
+ `references/channel_settings.md` unless a key is supplied.
35
35
 
36
36
  Missing routing target, delegated: return `failed`, `errorMessage` = "<Flow|User|Bot|Queue> <name> not found". Never
37
37
  create one — queues come from the `queues` feature this one depends on.
@@ -80,7 +80,7 @@ Run before any write, both modes. `GET` `MessagingChannel` by `fullName` = the n
80
80
  | Exists, some targeted setting differs | **drift** — announce each change ("routing: Queue A → Queue B"), then write the full document. Standalone: ask for a yes first. Delegated: the plan approval covers it |
81
81
  | Exists but was created by Connect `channel/setup` (defaults populated: opt-out/help keywords, `embeddedConfig`) | you now own the whole document: GET, modify only targeted fields, PUT the full result |
82
82
 
83
- Standalone, channel exists: offer exactly three choices — no change / override / add to existing.
83
+ Standalone, channel exists: offer exactly three choices — no change (stop) / override (replace the targeted settings, keep the rest) / add to existing (keep current settings, add only what the user lists).
84
84
 
85
85
  ## 4. Questions in the admin's language (guided mode)
86
86
 
@@ -90,9 +90,9 @@ Ask about the outcome; state the default with each; keep it to a handful.
90
90
  |---|---|
91
91
  | "Routing type: Queue, Flow, User or Agentforce Service Agent?" | "When a customer starts a chat, who should get it first: a team (queue), a specific person, or your AI agent? (Default: a team.)" |
92
92
  | "Fallback queue developer name?" | "If that person or agent isn't available, which team should the chat go to?" |
93
- | "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default: yes.)" Yes → Auth mode; setting up the signing keys is a separate step |
93
+ | "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default: no.)" Yes → Auth mode; an existing signing keyset name is optional, and setting up the keys is a separate step |
94
94
  | "Pre-chat form / custom parameters" | "What should we ask customers before the chat starts? (Default: name and email.)" |
95
- | "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the SKILL.md defaults |
95
+ | "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the defaults in `references/channel_settings.md` |
96
96
 
97
97
  ## 5. Result returned to the coordinator
98
98
 
@@ -108,10 +108,10 @@ Ask about the outcome; state the default with each; keep it to a handful.
108
108
  }
109
109
  ```
110
110
 
111
- `status` and `errorMessage` are the contract. `outputs` is always returned; it is an addition to the documented shape.
111
+ `status` and `errorMessage` are the contract. `outputs` is always returned.
112
112
  On `failed`: `errorMessage` names the failed step and the platform error; stop; do not retry.
113
113
 
114
- ## 6. Registration entry (draft for the onboarding team to place in a module)
114
+ ## 6. Registration entry (for the onboarding team to place in a module)
115
115
 
116
116
  ```yaml
117
117
  - id: messagingChannel
@@ -120,13 +120,14 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
120
120
  delegateSkill: service-digital-engagement-channel-configure
121
121
  dependsOn: [queues]
122
122
  revisionOwner: service-digital-engagement-channel-configure
123
- # org perms: confirm exact names with Digital Engagement licensing (not yet confirmed)
124
123
  values:
125
124
  channelLabel: { from: signal.messagingChannelName, default: "<company> Support Chat" }
126
125
  routingType: { from: signal.messagingRouting, default: "Queue" }
127
126
  routingTarget: { from: signal.messagingRoutingTarget }
128
127
  fallbackQueue: { from: signal.messagingFallbackQueue }
129
- userVerification: { from: signal.messagingSignedIn, default: true }
128
+ userVerification: { from: signal.messagingSignedIn, default: false }
129
+ verificationKeyset: { from: signal.messagingKeyset }
130
+ authIdentifier: { from: signal.messagingAuthIdentifier }
130
131
  writes: "MessagingChannel (Metadata CRUD); IsActive via sObject update"
131
132
  gating:
132
133
  irreversible: false
@@ -136,8 +137,3 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
136
137
  passWhen: "GET MessagingChannel fullName=<normalized name> returns the targeted sessionHandlerType and target and the intended authMode; SOQL SELECT IsActive, SessionHandlerId, FallbackQueueId FROM MessagingChannel WHERE DeveloperName=<name> returns IsActive=true, and non-null SessionHandlerId/FallbackQueueId where the routing type requires them"
137
138
  alternative: "Setup > Messaging Settings > New Channel > Messaging for In-App and Web; choose routing, then activate."
138
139
  ```
139
-
140
- Open items for the onboarding team: the `signal.*` keys do not exist in `onboarding-state.schema.json` yet
141
- (`channels` allows only email/web); `userVerification: true` makes an Auth channel, which also needs the
142
- user-verification step before signed-in customers can chat — decide if that is its own feature; the coordinator must
143
- accept `outputs`; org perm names are not yet confirmed.
@@ -0,0 +1,10 @@
1
+ # Pre-chat parameters
2
+
3
+ ## Standard parameters
4
+ Generate `<standardParameters>` elements with `parameterType`.
5
+
6
+ ## Custom parameters
7
+ Generate `<customParameters>` elements with `name`, `masterLabel`, `parameterDataType`, `externalParameterName`, and `maxLength`. Always set `parameterDataType` to `String`: the channel accepts no other value. The field's actual type (Checkbox, Number, dropdown) is set at the deployment level via `formFieldType`, not here.
8
+
9
+ ## Flow variable mappings
10
+ If the channel uses Flow routing and the user specifies flow variable mappings, include `<actionParameterMappings>` with `actionParameterName` to map each parameter to a flow input variable.
@@ -0,0 +1,38 @@
1
+ # reCAPTCHA handoff
2
+
3
+ The reCAPTCHA key is not exposed through any API or Metadata field, so this skill cannot read, set, or verify it. An admin completes it in Setup; the skill hands over a link and the steps.
4
+
5
+ ## Rules
6
+
7
+ - Never write `captchaKey` or `isCaptchaEnabled` in the channel XML. A full-document deploy preserves a key the admin already set in Setup, so redeploying never clobbers it.
8
+ - Never say reCAPTCHA is configured or enabled, or that it is not. Say this skill does not set or check it; the admin completes the steps below and sees the result in Setup.
9
+ - Give a plain Setup link only. Never run `sf org open --url-only` or output any URL carrying a session token (`frontdoor`, `sid=`); those are credentials.
10
+ - The reCAPTCHA Verification section is hidden for Mobile-only channels. Do not offer these steps for a channel the user says is Mobile-only.
11
+
12
+ ## When to raise it
13
+
14
+ - The user asks about reCAPTCHA, captcha, or bot protection: give the full handoff.
15
+ - Standalone, at the end of the output, unless the user said the channel is Mobile-only: one line, "This skill does not set or check reCAPTCHA; ask me for the Setup steps."
16
+ - Delegated: do not raise it.
17
+
18
+ ## Build the link
19
+
20
+ 1. Get the channel Id:
21
+ ```bash
22
+ sf data query -o <org> --json -q "SELECT Id FROM MessagingChannel WHERE DeveloperName='<CHANNEL_DEV_NAME>'"
23
+ ```
24
+ 2. Path: `/lightning/setup/LiveMessageSetup/<ChannelId>/view?lightning__channelType=EmbeddedMessaging`. Prefix it with the org's `instanceUrl` if known (`result.instanceUrl` from `sf org display --json`; never print or copy the access token), otherwise give the path.
25
+
26
+ 3. No channel Id yet (the query returns no row, or the channel is not deployed): never deploy only to get one. Give the generic route, Setup → Messaging Settings → open the channel, with the admin steps below, and carry on with the rest of the flow.
27
+
28
+ ## Limitation to tell the user
29
+
30
+ The link is plain, so it works only if the admin is already logged in to the org with Setup access. If not, they should log in first and then open the link, or go to Setup → Messaging Settings and open the channel.
31
+
32
+ ## Admin steps
33
+
34
+ 1. Have the reCAPTCHA key pair from Google ready.
35
+ 2. Open the link and find the **reCAPTCHA Verification** section.
36
+ 3. Check **Use reCAPTCHA** first. The **reCAPTCHA API Key Pair** field and **New API Key Pair** button stay greyed out until it is checked.
37
+ 4. Select an existing key in **reCAPTCHA API Key Pair**, or click **New API Key Pair** and add yours.
38
+ 5. Save. Setup does not allow saving with the box checked until a key pair is set.
@@ -0,0 +1,9 @@
1
+ # User verification (Auth mode)
2
+
3
+ Applies when the user turns user verification on (step 8).
4
+
5
+ - Set `embeddedConfig.authMode` to `Auth` and use `verifiedUserJwtExpirationTime` (60-240); omit `anonymousUserJwtExpirationTime`.
6
+ - Include `<messagingAuthorizations>` inside `<embeddedConfig>` only when the user gave an existing keyset name: `authorizationType` `PublicKeyCertificateSet`, `enabled` `true`, `publicKeyCertificateSetName` (the keyset's API name) and `authIdentifier` (free-form label; default the file name, not the JWT `sub` claim). Do not emit `authProviderName`. Shape: `references/channel_settings.md` → Messaging Authorizations; example: `examples/auth_queue_channel.xml`.
7
+ - Never invent a keyset name, reuse the example's `Support_Keyset`, or write key or keyset files; the deploy fails with "Required fields are missing: [AuthorizationConfigId]" when the keyset doesn't exist.
8
+ - No keyset name given (standalone or delegated): do not ask or fail. Set `authMode` `Auth` with `verifiedUserJwtExpirationTime` and omit `<messagingAuthorizations>`, then tell the user verification is not active until a keyset is attached.
9
+ - Creating keys or keysets is a separate setup and not part of this skill.
@@ -1,7 +1,7 @@
1
1
  #!/bin/bash
2
2
  # Verifies the target org's API version meets the minimum requirement.
3
3
  # Usage: check-api-version.sh <min-version> <org-alias>
4
- # Exits 0 if version >= min-version, exits 1 with error message otherwise.
4
+ # Exit 0: version >= min-version. Exit 1: version below minimum. Exit 2: version could not be determined.
5
5
 
6
6
  MIN_VERSION="${1:?Usage: check-api-version.sh <min-version> <org-alias>}"
7
7
  ORG_ALIAS="${2:?Usage: check-api-version.sh <min-version> <org-alias>}"
@@ -16,14 +16,14 @@ except Exception:
16
16
  ")
17
17
 
18
18
  if [ -z "$API_VERSION" ]; then
19
- echo "ERROR: Could not determine API version for org '$ORG_ALIAS'."
20
- exit 1
19
+ echo "WARNING: Could not determine API version for org '$ORG_ALIAS'."
20
+ exit 2
21
21
  fi
22
22
 
23
23
  if python3 -c "import sys; sys.exit(0 if float(sys.argv[1]) >= float(sys.argv[2]) else 1)" "$API_VERSION" "$MIN_VERSION"; then
24
24
  echo "OK: Org API version $API_VERSION meets minimum $MIN_VERSION."
25
25
  exit 0
26
26
  else
27
- echo "ERROR: Org API version $API_VERSION is below minimum $MIN_VERSION. Generate a sfdx-project.json with \"sourceApiVersion\": \"$MIN_VERSION\" in the metadata output folder."
27
+ echo "ERROR: Org API version $API_VERSION is below minimum $MIN_VERSION."
28
28
  exit 1
29
29
  fi
@@ -1,7 +1,8 @@
1
1
  #!/bin/bash
2
2
  # Derives a Metadata API-safe file name from a channel label.
3
3
  # Usage: normalize-channel-name.sh "<LABEL>"
4
- # Exits non-zero and prints violations if the result doesn't match ^[a-zA-Z][a-zA-Z0-9_]*$
4
+ # Prints the name (max 80 chars). A label starting with a digit gets a "Ch_" prefix.
5
+ # Exits non-zero if nothing usable remains or the label exceeds 40 characters (masterLabel limit).
5
6
 
6
7
  LABEL="$1"
7
8
  if [ -z "$LABEL" ]; then
@@ -9,15 +10,19 @@ if [ -z "$LABEL" ]; then
9
10
  exit 1
10
11
  fi
11
12
 
12
- NAME=$(echo "$LABEL" | sed 's/[^a-zA-Z0-9]/_/g' | sed 's/__*/_/g' | sed 's/^_//;s/_$//' | cut -c1-80)
13
-
14
- if ! echo "$NAME" | grep -qE '^[a-zA-Z][a-zA-Z0-9_]*$'; then
15
- echo "Error: Derived name '$NAME' violates pattern ^[a-zA-Z][a-zA-Z0-9_]*$" >&2
13
+ if [ ${#LABEL} -gt 40 ]; then
14
+ echo "Error: Label '$LABEL' exceeds 40 characters; ask for a shorter label." >&2
16
15
  exit 1
17
16
  fi
18
17
 
19
- if [ ${#NAME} -gt 80 ]; then
20
- echo "Error: Derived name '$NAME' exceeds 80 characters" >&2
18
+ NAME=$(printf '%s' "$LABEL" | sed 's/[^a-zA-Z0-9]/_/g' | sed 's/__*/_/g' | sed 's/^_//;s/_$//' | cut -c1-80)
19
+
20
+ case "$NAME" in
21
+ [0-9]*) NAME="Ch_$NAME" ;;
22
+ esac
23
+
24
+ if ! printf '%s' "$NAME" | grep -qE '^[a-zA-Z][a-zA-Z0-9_]*$'; then
25
+ echo "Error: Could not derive a valid name from '$LABEL'; ask for a label with letters." >&2
21
26
  exit 1
22
27
  fi
23
28