@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
@@ -2,6 +2,9 @@
2
2
 
3
3
  Run through these checks before deploying any generated report metadata.
4
4
 
5
+ ## Before Writing the XML
6
+ - [ ] Check every `<field>` in `<columns>`, `<groupingsDown>`, and `<groupingsAcross>`, every filter `<column>`, and the chart `<groupingColumn>` against the column table for the report type in `references/column-names.md` (or the MCP column list). No bare `NAME` or `USERS.NAME` — use the report type's name column (e.g. `OPPORTUNITY_NAME`, `FULL_NAME`, `OWNER`, `FIRST_NAME` + `LAST_NAME`)
7
+
5
8
  ## Universal Checks
6
9
  - [ ] File extension is `.report-meta.xml`
7
10
  - [ ] File is placed under `<sourceDir>/reports/<FolderName>/` (check sfdx-project.json for source path)
@@ -13,6 +16,8 @@ Run through these checks before deploying any generated report metadata.
13
16
  - [ ] `<description>` explains the business purpose (max 255 chars)
14
17
  - [ ] All column `<field>` values use correct platform column names
15
18
  - [ ] Custom field columns use `<ObjectApiName>.<FieldApiName__c>` format
19
+ - [ ] Each `<columns>` contains exactly one `<field>`
20
+ - [ ] Custom report type: `<reportType>` ends in `__c` and every column uses a `<table>$<field>` path from the report type's sections
16
21
 
17
22
  ## Format-Specific Checks
18
23
  - [ ] Tabular: no `<groupingsDown>`, no `<groupingsAcross>`, no `<chart>`, no `<aggregateTypes>`
@@ -28,6 +33,7 @@ Run through these checks before deploying any generated report metadata.
28
33
  - [ ] `<timeFrameFilter>` uses a valid `<interval>` value from `references/date-intervals.md`
29
34
  - [ ] Date columns use platform column names (e.g. `CLOSE_DATE`, not `CloseDate`)
30
35
  - [ ] Multi-value picklist uses ONE criteriaItem with comma-separated values
36
+ - [ ] No `<params>` the request didn't ask for; Opportunity `probability` param is only `>0`
31
37
 
32
38
  ## Grouping Checks
33
39
  - [ ] `<dateGranularity>` is set for every grouping (use `None` for non-date fields)
@@ -38,10 +44,24 @@ Run through these checks before deploying any generated report metadata.
38
44
  - [ ] Chart is only on Summary or Matrix report
39
45
  - [ ] `<chartType>` is a valid type from `references/chart-types.md`
40
46
  - [ ] `<groupingColumn>` matches a grouping field
41
- - [ ] `<chartSummaries>` contains valid `<aggregate>` + `<column>` (or just `<column>RowCount</column>`)
42
- - [ ] `legendPosition` only used with grouped/stacked charts
47
+ - [ ] `<chartSummaries>` contains valid `<aggregate>` + `<column>`, or ONLY `<column>RowCount</column>` with no `<aggregate>`
48
+ - [ ] No `<columns><field>RowCount</field></columns>` — `RowCount` is only valid in `<chartSummaries><column>`, `<sortByName>`, or a `<calculatedFormula>`
49
+ - [ ] `legendPosition` omitted on single-series `HorizontalBar`/`VerticalColumn`/`Line`; on grouped/stacked charts only `Right` or `Bottom` (see `references/chart-types.md`)
50
+ - [ ] Every `<chart>` child element is in the allowed list in `references/chart-types.md`
43
51
 
44
52
  ## Cross-Filter Checks (if applicable)
45
53
  - [ ] Maximum 3 cross-filters per report
46
54
  - [ ] Maximum 5 criteria items per cross-filter
47
55
  - [ ] `<operation>` is `with` or `without`
56
+
57
+ ## Custom Summary Formula Checks (if applicable)
58
+ - [ ] `<aggregates>` only on Summary/Matrix/Joined (never Tabular)
59
+ - [ ] `<datatype>` is `number`, `currency`, or `percent`; `<scale>` is 0–18
60
+ - [ ] `<downGroupingContext>` (and `<acrossGroupingContext>` for Matrix) resolves to `GRAND_SUMMARY` or an existing grouping level
61
+ - [ ] `<developerName>` is unique within the report
62
+
63
+ ## Sort & Row Limit Checks (if applicable)
64
+ - [ ] `<sortColumn>` (when present) names a column that appears in `<columns>`; `<sortOrder>` is exactly `Asc` or `Desc`
65
+ - [ ] Grouping `<sortType>Aggregate</sortType>` pairs with a summarized column name in `<sortByName>` (like `AMOUNT` or `RowCount` — NOT the Analytics-REST `s!` prefix)
66
+ - [ ] Grouping sorted by a CSF uses `<sortType>CustomSummaryFormula</sortType>` with the CSF `<developerName>` (like `FORMULA1`) — `Aggregate` + a CSF name deploys but silently sorts by the grouping field
67
+ - [ ] `<rowLimit>` only on `Tabular`, value 1–99, with `<sortColumn>` + `<sortOrder>` present
@@ -30,72 +30,44 @@ Creates `MessagingChannel` metadata XML for Salesforce Messaging for In-App and
30
30
 
31
31
  ## Entry points and transport
32
32
 
33
- - **Delegated** (`context.calledFrom == "service-onboarding"`): use the approved `values`, ask nothing, and return `failed` naming any missing required key. **Standalone** (no `context`): run Clarifying Questions.
33
+ - **Delegated** (`context.calledFrom == "service-onboarding"`): use the approved `values`, ask nothing, and return `failed` naming any missing required key. **Standalone** (no `context`): ask for the Inputs below.
34
+ - **Shell safety**: org alias and bot name must match `^[A-Za-z0-9_.@+-]+$` before use in a command; otherwise stop and ask (delegated: `failed`). Pass the channel label single-quoted, escaping any `'` as `'\''`.
34
35
  - **Transport A** (primary): headless-360 MCP `dispatch` / `dispatch_readonly` on `/headless/metadata`. **Transport B**: the `sf` commands below, only where a probe shows Transport A unavailable.
35
36
 
36
37
  Details: `references/onboarding_contract.md` (§1 entry points, §2 transport, §3 pre-scan, §5 result).
37
38
 
38
39
  ---
39
40
 
40
- ## Clarifying Questions
41
+ ## Inputs
41
42
 
42
- Before generating, ask the user if not already clear (standalone only):
43
+ Standalone: ask for anything not already clear. Delegated: take `values`.
43
44
 
44
- - What is the channel name / label? (used for `masterLabel` and file name)
45
- - What routing type? (Omni-Channel Flow, Omni-Channel Queue, User, or Agentforce Service Agent)
46
- - What is the routing target? (Flow API name, Queue developer name, User ID, or ASA bot name)
47
- - For Flow, User, or ASA routing: What is the fallback queue name?
48
- - Should User Verification be enabled? (defaults to `true` per this skill)
49
- - Are there pre-chat form fields required? If so, which fields and types?
45
+ - **Channel name**: `masterLabel` and file name (`<Name>.messagingChannel-meta.xml`)
46
+ - **Routing type**: `Queue`, `Flow`, `User`, or `AgentforceServiceAgent`
47
+ - **Routing target**: developer name of the queue, flow, user, or ASA bot
48
+ - **Fallback queue** (Flow, User, and ASA): developer name for escalation
49
+ - **User verification**: JWT-based identity verification (default `false`, so `authMode` `UnAuth`). `true` makes an `Auth` channel; a keyset name is optional (with one, also an `authIdentifier`, a free-form label defaulting to the file name). Creating keys is a separate setup
50
+ - **Pre-chat fields** (optional): which fields and types
50
51
 
51
- ---
52
-
53
- ## Required Inputs
54
-
55
- Gather or infer before proceeding:
56
-
57
- - **Channel name**: Used for `masterLabel` and the file name (`<Name>.messagingChannel-meta.xml`)
58
- - **Routing type**: One of `Queue`, `Flow`, `User`, or `AgentforceServiceAgent`
59
- - **Routing target**: The developer name of the queue, flow, user, or ASA bot
60
- - **Fallback queue** (Flow, User, and ASA): The developer name of the fallback queue for escalation
61
- - **User verification**: Whether to require JWT-based identity verification (default: `true`)
62
-
63
- Defaults unless specified:
64
- - `messagingChannelType`: `EmbeddedMessaging`
65
- - `authMode`: `Auth`
66
- - `chatAbandonmentTimeout`: `5` (minutes)
67
- - `endUserIdleTimeOut`: `5` (minutes)
68
- - `isAttachmentUploadEnabled`: `true`
69
- - `maxFileSize`: `5` (MB)
70
- - `allowedFileTypes`: `bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml`
71
- - `anonymousUserJwtExpirationTime`: `360` (minutes, required for UnAuth, range 60-4320)
72
- - `verifiedUserJwtExpirationTime`: `60` (minutes, required for Auth, range 60-240)
73
- - `isAbandonedChatsEnabled`: `false`
74
- - `isSaveTranscriptEnabled`: `false`
75
- - `isFallbackMessageEnabled`: `false`
76
- - `isEstimatedWaitTimeEnabled`: `false`
77
- - `isFileAttachmentExtUnrestricted`: `false`
78
- - `isQueuePositionEnabled`: `false`
79
- - `isSynchronousChatEnabled`: `false`
80
- - `isVoiceModeEnabled`: `false`
52
+ Apply every other default from `references/channel_settings.md` unless the user specifies otherwise.
81
53
 
82
54
  ---
83
55
 
84
56
  ## Workflow
85
57
 
86
- All steps are sequential. Do not skip or reorder.
58
+ Run in order; step 3a may jump to step 15 or Phase 4. All SOQL below: Transport A `dispatch_readonly` first, `sf data query` as fallback.
87
59
 
88
60
  ### Phase 1 — Gather Context
89
61
 
90
- 1. **Verify org API version** — run `scripts/check-api-version.sh 67.0 <org-alias>` and report any errors it returns. If the script fails, generate a `sfdx-project.json` in the metadata output folder with `"sourceApiVersion": "67.0"`.
62
+ 1. **Verify org API version** — run `scripts/check-api-version.sh 67.0 '<org-alias>'` (skip it when Transport A is in use). Exit 1 = org below 67.0: stop (delegated: `failed`). Exit 2 = version unknown: say so and continue. Create `sfdx-project.json` with `"sourceApiVersion": "67.0"` in the output folder only if none exists.
91
63
 
92
- 2. **Collect inputs** — standalone: per Clarifying Questions. Delegated: from `values`. Then probe transport with a read-only `GET` of `MessagingChannel` (contract §2).
64
+ 2. **Collect inputs** — standalone: ask for the Inputs. Delegated: from `values`. Then probe transport with a read-only `GET` of `MessagingChannel` (contract §2).
93
65
 
94
- 3. **Determine file name** — run `scripts/normalize-channel-name.sh "<LABEL>"` and surface any errors it returns.
66
+ 3. **Determine file name** — run `scripts/normalize-channel-name.sh '<LABEL>'` and surface any errors it returns.
95
67
 
96
68
  3a. **Pre-scan** — `GET` `MessagingChannel` by the step 3 name (contract §3): none → create; matches and active → no write, `already-configured`, skip to Phase 4; matches but inactive → activate only (step 15); differs → announce each change, then write the full document (standalone: ask first).
97
69
 
98
- 4. **Verify routing target exists** — skip when step 3a ended in `already-configured` or activate-only, so a re-run never creates a queue. Query the org to confirm the referenced routing target exists:
70
+ 4. **Verify routing target exists** — skip when step 3a ended in `already-configured` or activate-only, so a re-run never creates a queue. Names must match `^[A-Za-z0-9_.@+-]+$` before they go into a query. Query the org to confirm the referenced routing target exists:
99
71
  - For Queue: `sf data query --query "SELECT Id, DeveloperName FROM Group WHERE Type='Queue' AND DeveloperName='<QUEUE_NAME>'" --target-org <org-alias>`
100
72
  - For Flow: `sf data query --query "SELECT Id, ApiName FROM FlowDefinitionView WHERE ApiName='<FLOW_NAME>' AND IsActive=true" --target-org <org-alias>`
101
73
  - For User: `sf data query --query "SELECT Id, Username FROM User WHERE Id='<USER_ID>' AND IsActive=true" --target-org <org-alias>`
@@ -110,7 +82,7 @@ All steps are sequential. Do not skip or reorder.
110
82
 
111
83
  ### Phase 2 — Generate Metadata
112
84
 
113
- 6. **Read the metadata template** — load `assets/messaging_channel_template.xml` as the starting structure.
85
+ 6. **Read the metadata template** — new channel: load `assets/messaging_channel_template.xml` as the starting structure. Existing channel (3a): start from its current document (Transport A `GET` `xmlRep`; Transport B `sf project retrieve start -m MessagingChannel:<Name>`) and change only the targeted elements, so pre-chat, responses, and authorizations survive.
114
86
 
115
87
  7. **Apply routing configuration** — set `sessionHandlerType` and the corresponding handler field:
116
88
 
@@ -123,30 +95,21 @@ All steps are sequential. Do not skip or reorder.
123
95
 
124
96
  > **v67 note — `<sessionHandlerAsa>` is required** (omitting it fails with "Missing required Agentforce Service Agent"); the deploy then binds `SessionHandlerId`, no PATCH needed. The bot must be Active first: run `sf agent activate -o <org> --api-name <BotDevName>` and confirm `BotVersion.Status = Active`.
125
97
 
126
- 8. **Apply user verification** — if enabled, set `embeddedConfig.authMode` to `Auth` and include `<messagingAuthorizations>`. If not enabled, set `embeddedConfig.authMode` to `UnAuth` and omit `<messagingAuthorizations>`.
127
-
128
- 9. **Configure embedded settings** — populate `<embeddedConfig>` with:
129
- - `allowedFileTypes` — comma-separated file extensions (no spaces)
130
- - `anonymousUserJwtExpirationTime` — JWT expiration in minutes (required for UnAuth)
131
- - `verifiedUserJwtExpirationTime` — JWT expiration in minutes (required for Auth)
132
- - `chatAbandonmentTimeout` — minutes before abandoned conversation cleanup
133
- - `isAbandonedChatsEnabled` — enable abandoned chat detection
134
- - `isAttachmentUploadEnabled` — file upload support
135
- - `isEstimatedWaitTimeEnabled` — show estimated wait time
136
- - `isFallbackMessageEnabled` — fallback when agents unavailable
137
- - `isFileAttachmentExtUnrestricted` — allow any file extension
138
- - `isSaveTranscriptEnabled` — save conversation transcripts
139
- - `maxFileSize` — maximum attachment size in MB
98
+ 8. **Apply user verification** — not enabled: set `embeddedConfig.authMode` to `UnAuth` and omit `<messagingAuthorizations>`. Enabled: follow `references/user_verification.md` (add `<messagingAuthorizations>` only for a keyset name the user gave; never invent one, and without one still write `Auth`).
99
+
100
+ 9. **Configure embedded settings** — populate `<embeddedConfig>` per `references/channel_settings.md`: `anonymousUserJwtExpirationTime` for UnAuth, `verifiedUserJwtExpirationTime` for Auth.
101
+
102
+ 9a. **Configure session inactivity (optional)** — ask using the Setup labels and set the top-level fields per `references/channel_settings.md` → "Setup Prompts: Session Inactivity".
140
103
 
141
104
  10. **Configure messaging keywords** — generate `<messagingKeywords>` elements:
142
105
  - `OptOut` type with individual `<keyword>` elements: cancel, end, quit, stop, stopall, unsubscribe
143
106
  - `Help` type with `<keyword>`: help
144
107
 
145
- 11. **Apply standard parameters** — if the user needs standard pre-chat fields, generate `<standardParameters>` elements with `parameterType`. If the channel uses Flow-based routing and the user specifies flow variable mappings, include `<actionParameterMappings>` with `actionParameterName` to map each parameter to a flow input variable.
108
+ 11. **Apply standard parameters** — if the user needs standard pre-chat fields, follow `references/prechat_params.md` → Standard parameters.
146
109
 
147
- 12. **Apply custom parameters** — if the user needs pre-chat data collection, 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, including Checkbox/Number/dropdown, is set at the deployment level via `formFieldType`, not here). If the channel uses Flow-based routing and the user specifies flow variable mappings, include `<actionParameterMappings>` with `actionParameterName` to map each parameter to a flow input variable.
110
+ 12. **Apply custom parameters** — if the user needs pre-chat data collection, follow `references/prechat_params.md` → Custom parameters (`parameterDataType` is always `String`).
148
111
 
149
- 13. **Generate the file** — produce the `.messagingChannel-meta.xml` file following the template structure. Place at the path the user specifies, or default to the project's metadata source path under `messagingChannels/`.
112
+ 13. **Generate the file** — produce the `.messagingChannel-meta.xml` file following the template structure. Place at the path the user specifies, or default to `<source-path>/messagingChannels/<ChannelName>.messagingChannel-meta.xml` under the project's metadata source path.
150
113
 
151
114
  ### Phase 3 — Deploy and Activate
152
115
 
@@ -155,6 +118,11 @@ All steps are sequential. Do not skip or reorder.
155
118
  sf project deploy start --source-dir <path-to-messagingChannels-folder> --target-org <org-alias>
156
119
  ```
157
120
 
121
+ 15. **Activate the channel** — after a successful write, activate the messaging channel (`IsActive` is not part of the metadata). Transport A: sObject update `{"IsActive": true}` through `dispatch`. Transport B:
122
+ ```bash
123
+ sf data update record --sobject MessagingChannel --where "DeveloperName='<CHANNEL_NAME>'" --values "IsActive=true" --target-org <org-alias>
124
+ ```
125
+
158
126
  15a. **ASA routing only — verify the bind landed** (skip for Queue, Flow, User):
159
127
 
160
128
  ```bash
@@ -164,19 +132,15 @@ All steps are sequential. Do not skip or reorder.
164
132
 
165
133
  Both must be non-null; if not, check both handler elements were in the XML and the bot was Active before the deploy.
166
134
 
167
- 15. **Activate the channel** — after a successful write, activate the messaging channel (`IsActive` is not part of the metadata). Transport A: sObject update `{"IsActive": true}` through `dispatch`. Transport B:
168
- ```bash
169
- sf data update record --sobject MessagingChannel --where "DeveloperName='<CHANNEL_NAME>'" --values "IsActive=true" --target-org <org-alias>
170
- ```
171
-
172
135
  ### Phase 4 — Validate
173
136
 
174
137
  16. **Verify against checklist** — confirm all items in the Verification Checklist below pass before presenting output.
175
138
 
176
139
  17. **Report** — delegated: return the contract §5 result and stop. Standalone: continue.
177
140
 
178
- 18. **Present output** (standalone) — show the generated file to the user with a summary of configured settings and confirm activation status. Offer next steps:
179
- - **Automated responses** — ask if the user wants to configure `<automatedResponses>` (OptOutConfirmation, HelpResponse). If yes, generate elements with `autoResponseContentType: TextResponse`, `language`, and XML-escaped `response` text, then redeploy.
141
+ 18. **Present output** (standalone) — in a few lines: confirm the channel is created and its activation status, and list each setting the user asked for with its final value, whatever field it is. Say everything else uses the defaults, without listing them. Give transport details, file paths and record Ids only after a failure or if asked. Then offer next steps:
142
+ - **Automated responses** — ask which messages the user wants using the Setup labels per `references/channel_settings.md` → "Setup Prompts: Automated Responses", then redeploy.
143
+ - **reCAPTCHA** — not settable by this skill; say this skill does not set or check it and offer the admin handoff in `references/recaptcha_handoff.md`.
180
144
 
181
145
  ---
182
146
 
@@ -188,8 +152,6 @@ All steps are sequential. Do not skip or reorder.
188
152
  | `sessionHandlerType` must match the handler fields present | Setting `Queue` but populating `sessionHandlerFlow` causes deployment error |
189
153
  | Flow routing requires both `sessionHandlerFlow` and `sessionHandlerQueue` | Queue is the mandatory fallback for human escalation |
190
154
  | User routing requires both `sessionHandlerUser` and `sessionHandlerQueue` | Queue is the mandatory fallback when user is unavailable |
191
- | ASA routing: include both `sessionHandlerQueue` and `sessionHandlerAsa` in the XML | `sessionHandlerAsa` is required at v67 — the deploy fails with "Missing required Agentforce Service Agent" if omitted; the deploy itself binds `SessionHandlerId`, no PATCH needed |
192
- | Bot must be Active before the metadata deploy that binds `SessionHandlerId` | API rejects with "Only active Agentforce Service Agents are supported" if the bot is inactive |
193
155
  | `masterLabel` max 40 characters | Platform limit on channel labels |
194
156
  | File name must match `^[a-zA-Z][a-zA-Z0-9_]*$` | API name format enforced by Metadata API |
195
157
  | `allowedFileTypes` is a comma-separated string with no spaces | Not a nested list or array |
@@ -206,20 +168,22 @@ All steps are sequential. Do not skip or reorder.
206
168
 
207
169
  | Issue | Resolution |
208
170
  |-------|------------|
171
+ | ASA routing: include both `sessionHandlerQueue` and `sessionHandlerAsa` in the XML | `sessionHandlerAsa` is required at v67 — the deploy fails with "Missing required Agentforce Service Agent" if omitted; the deploy itself binds `SessionHandlerId`, no PATCH needed |
172
+ | Bot must be Active before the metadata deploy that binds `SessionHandlerId` | API rejects with "Only active Agentforce Service Agents are supported" if the bot is inactive |
209
173
  | Channel name conflicts with existing channel | Check org for existing channels; file name must be unique |
210
174
  | Queue not found on deploy | Ensure the referenced queue exists and has `MessagingSession` as a `queueSobject` type |
211
175
  | Channel deploys and activates fine, but widget shows "Agents are not available. Try again later." at session start | The queue has no `QueueRoutingConfig` — this is silent at deploy time. Check `SELECT QueueRoutingConfigId FROM Group WHERE Id='<QUEUE_ID>'`; if null, resolve/create one per `queue-resolution.md` Step 4 |
212
176
  | Omni-Channel Flow not found on deploy | Ensure the referenced flow exists and is active before deploying the channel |
213
177
  | ASA bot reference invalid | Bot must be published and active; use exact developer name from BotDefinition metadata |
214
- | ASA channel deploy fails with "Missing required Agentforce Service Agent" | `<sessionHandlerAsa>{BotDevName}</sessionHandlerAsa>` is missing from the XML — it's required at v67, not optional |
215
178
  | ASA channel deployed but `SessionHandlerId` is null after deploy | Bot was not Active at deploy time — run `sf agent activate`, confirm `BotVersion.Status = Active`, then redeploy |
179
+ | ASA channel deploy fails with "Missing required Agentforce Service Agent" | `<sessionHandlerAsa>{BotDevName}</sessionHandlerAsa>` is missing from the XML — it's required at v67, not optional |
216
180
  | "Only active Agentforce Service Agents are supported" on deploy | Bot is inactive — run `sf agent activate` before deploying |
217
181
  | Flow or ASA routing fails without fallback queue | `sessionHandlerQueue` is mandatory when `sessionHandlerType` is `Flow` or `AgentforceServiceAgent` |
218
- | JWT verification not working | Connected app and certificate must be configured for the org |
182
+ | JWT verification not working | The keyset (`PublicKeyCertificateSet`) named in `messagingAuthorizations` must exist in the org and match the token's `kid` and issuer |
219
183
  | Custom parameters not collected | `name` must be unique per channel |
220
184
  | `<customParameters>` deploy fails: "bad value for restricted picklist field" | `parameterDataType` was set to something other than `String`. Channel custom parameters are always `String`; set the field's actual type (Number, Checkbox, dropdown) at the deployment level, not here |
221
185
  | Removing a custom parameter: "can't be deleted as it is referenced elsewhere" | **Check before deploying, not after.** Every deployment on this channel whose pre-chat form uses the param must first drop that field and be published (user-approved); remove the param's `actionParameterMappings` in a separate deploy first. See `references/channel_settings.md` §Removing a Custom Parameter |
222
- | Automated responses not showing | Use exact `type` values (`OptOutConfirmation`, `HelpResponse`); XML-escape special characters |
186
+ | Automated response / session-inactivity deploy fails | See `references/channel_settings.md` → "Automated Responses", "Session Settings" |
223
187
  | Channel deployed but messages not routing | Channel must be activated after deployment — it defaults to inactive |
224
188
  | "You can't enable Session-Based Chat for verified users" | Set `isSynchronousChatEnabled` to `false` for Auth channels — session-based chat is only valid for UnAuth |
225
189
 
@@ -227,10 +191,12 @@ All steps are sequential. Do not skip or reorder.
227
191
 
228
192
  ## Verification Checklist
229
193
 
230
- ### Universal Checks
231
- - [ ] Does the file name match `^[a-zA-Z][a-zA-Z0-9_]*$`?
232
- - [ ] Is `masterLabel` 40 characters or fewer?
233
- - [ ] Is `messagingChannelType` set to `EmbeddedMessaging`?
194
+ ### Universal, Verification, Config, and Keyword Checks
195
+ - [ ] File name matches `^[a-zA-Z][a-zA-Z0-9_]*$`, `masterLabel` is 40 characters or fewer, `messagingChannelType` is `EmbeddedMessaging`?
196
+ - [ ] `embeddedConfig.authMode` is `Auth` when verification is enabled, `UnAuth` when not, with the matching JWT expiration set in range (`references/channel_settings.md`)?
197
+ - [ ] `chatAbandonmentTimeout` is a positive integer, `allowedFileTypes` is comma-separated with no spaces, `maxFileSize` is 1-5 MB?
198
+ - [ ] An `OptOut` keyword is defined, keywords are individual `<keyword>` elements, and `language` is set on each keyword block?
199
+ - [ ] Session inactivity / automated responses (only if requested) checked against `references/channel_settings.md`?
234
200
 
235
201
  ### Routing Checks
236
202
  - [ ] Is exactly one `sessionHandlerType` value set (`Queue`, `Flow`, `User`, or `AgentforceServiceAgent`)?
@@ -241,41 +207,12 @@ All steps are sequential. Do not skip or reorder.
241
207
  - [ ] For ASA routing: was step 15a run? Are `SessionHandlerId` and `FallbackQueueId` non-null after the deploy?
242
208
  - [ ] Does the routing target reference an existing entity in the org?
243
209
 
244
- ### User Verification Checks
245
- - [ ] If verification is enabled, is `embeddedConfig.authMode` set to `Auth`?
246
- - [ ] If verification is disabled, is `embeddedConfig.authMode` set to `UnAuth`?
247
-
248
- ### Embedded Config Checks
249
- - [ ] Is `chatAbandonmentTimeout` a positive integer (minutes)?
250
- - [ ] Is `allowedFileTypes` a comma-separated string with no spaces?
251
- - [ ] Is `maxFileSize` a value between 1-5 MB?
252
- - [ ] If UnAuth, is `anonymousUserJwtExpirationTime` set (default 360, range 60-4320)?
253
- - [ ] If Auth, is `verifiedUserJwtExpirationTime` set (default 60, range 60-240)?
254
-
255
- ### Automated Response Checks (only if user requested)
256
- - [ ] Do all `type` values use valid IDs (`OptOutConfirmation`, `HelpResponse`)?
257
- - [ ] Are special characters XML-escaped in `response` text?
258
-
259
- ### Keyword Checks
260
- - [ ] Is there at least an `OptOut` keyword type defined?
261
- - [ ] Are keywords individual `<keyword>` elements (not comma-separated)?
262
- - [ ] Is `language` set on each keyword block?
263
-
264
210
  ### Activation Checks
265
211
  - [ ] Was the channel deployed successfully?
266
212
  - [ ] Was the channel activated after deployment (`IsActive=true`)?
267
213
 
268
214
  ---
269
215
 
270
- ## Output Expectations
271
-
272
- Deliverables:
273
- - **Messaging Channel metadata**: `<source-path>/messagingChannels/<ChannelName>.messagingChannel-meta.xml`
274
-
275
- File structure follows the template in `assets/messaging_channel_template.xml`.
276
-
277
- ---
278
-
279
216
  ## Cross-Skill Integration
280
217
 
281
218
  | Need | Delegate to |
@@ -283,6 +220,7 @@ File structure follows the template in `assets/messaging_channel_template.xml`.
283
220
  | Creating the Omni-Channel Flow for routing | `automation-flow-generate` skill |
284
221
  | Creating permission sets for messaging agents | `platform-permission-set-generate` skill |
285
222
  | Creating the Embedded Service Deployment | `service-digital-engagement-deployment-configure` skill |
223
+ | Creating the `ConversationMessageDefinition` an automated response references | `conversation-message-definition-builder` skill |
286
224
 
287
225
  ---
288
226
 
@@ -293,8 +231,9 @@ File structure follows the template in `assets/messaging_channel_template.xml`.
293
231
  | `references/onboarding_contract.md` | Delegated mode (`context.calledFrom == "service-onboarding"`), org writes (transport), module registration |
294
232
  | `assets/messaging_channel_template.xml` | Before generating — use as the starting structure |
295
233
  | `references/channel_settings.md` | When configuring channel options beyond defaults |
234
+ | `references/user_verification.md` | The user turns user verification (Auth mode) on |
235
+ | `references/prechat_params.md` | The user needs standard or custom pre-chat parameters |
236
+ | `references/recaptcha_handoff.md` | The user asks about reCAPTCHA / captcha, or at the end of standalone output |
296
237
  | `scripts/check-api-version.sh` | Phase 1 — verify org API version meets the passed minimum (67.0) |
297
238
  | `scripts/normalize-channel-name.sh` | Phase 1 — derive file API name from channel label |
298
- | `examples/omni_flow_channel.xml` | To verify output for Omni-Channel Flow routing |
299
- | `examples/omni_queue_channel.xml` | To verify output for Omni-Channel Queue routing |
300
- | `examples/asa_agent_channel.xml` | To verify output for Agentforce Service Agent routing |
239
+ | `examples/omni_flow_channel.xml`, `omni_queue_channel.xml`, `asa_agent_channel.xml`, `auth_queue_channel.xml` (Auth with keyset) | To verify output for Flow, Queue, or Agentforce Service Agent routing |
@@ -1,6 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <MessagingChannel xmlns="http://soap.sforce.com/2006/04/metadata">
3
3
  <!-- Automated Responses (optional, repeat per response) -->
4
+ <!-- Shape depends on type — see references/channel_settings.md "Automated Responses" -->
5
+ <!-- TextResponse shape: OptOutConfirmation, HelpResponse only -->
4
6
  <!--
5
7
  <automatedResponses>
6
8
  <autoResponseContentType>TextResponse</autoResponseContentType>
@@ -10,6 +12,18 @@
10
12
  </automatedResponses>
11
13
  -->
12
14
 
15
+ <!-- MessageDefinition shape: InitialResponse, AgentEngagedResponse, AgentEndEngagementResponse, EndUserInactiveResponse, EndUserIdleResponse, RerouteResponse, RoutingUnavailableResponse -->
16
+ <!-- messageDefinitionName must reference an existing ConversationMessageDefinition (build via conversation-message-definition-builder first) -->
17
+ <!-- Do NOT include language or response on this shape -->
18
+ <!-- Optional responseTimeoutInMins (4-30): only for EndUserIdleResponse / EndUserInactiveResponse -->
19
+ <!--
20
+ <automatedResponses>
21
+ <autoResponseContentType>MessageDefinition</autoResponseContentType>
22
+ <messageDefinitionName>{CONVERSATION_MESSAGE_DEFINITION_DEV_NAME}</messageDefinitionName>
23
+ <type>{InitialResponse|AgentEngagedResponse|AgentEndEngagementResponse|EndUserInactiveResponse|EndUserIdleResponse|RerouteResponse|RoutingUnavailableResponse}</type>
24
+ </automatedResponses>
25
+ -->
26
+
13
27
  <!-- Standard Parameters (optional, repeat per parameter) -->
14
28
  <!-- actionParameterMappings is optional — include when using Flow routing to map to flow input variables -->
15
29
  <!--
@@ -48,7 +62,9 @@
48
62
  <!-- Embedded Configuration -->
49
63
  <embeddedConfig>
50
64
  <allowedFileTypes>{COMMA_SEPARATED_EXTENSIONS}</allowedFileTypes>
65
+ <!-- Keep exactly one expiry: anonymousUserJwtExpirationTime for UnAuth (default 360), verifiedUserJwtExpirationTime for Auth (60-240) -->
51
66
  <anonymousUserJwtExpirationTime>{JWT_EXPIRATION_MINUTES}</anonymousUserJwtExpirationTime>
67
+ <!-- <verifiedUserJwtExpirationTime>{VERIFIED_JWT_EXPIRATION_MINUTES}</verifiedUserJwtExpirationTime> -->
52
68
  <authMode>{UnAuth|Auth}</authMode>
53
69
  <chatAbandonmentTimeout>{MINUTES}</chatAbandonmentTimeout>
54
70
  <isAbandonedChatsEnabled>{true|false}</isAbandonedChatsEnabled>
@@ -58,10 +74,29 @@
58
74
  <isFileAttachmentExtUnrestricted>{true|false}</isFileAttachmentExtUnrestricted>
59
75
  <isSaveTranscriptEnabled>{true|false}</isSaveTranscriptEnabled>
60
76
  <maxFileSize>{SIZE_IN_MB}</maxFileSize>
77
+
78
+ <!-- Messaging Authorizations (only when authMode is Auth; omit entirely for UnAuth) -->
79
+ <!--
80
+ <messagingAuthorizations>
81
+ <authIdentifier>{AUTH_IDENTIFIER}</authIdentifier>
82
+ <authorizationType>PublicKeyCertificateSet</authorizationType>
83
+ <enabled>{true|false}</enabled>
84
+ <publicKeyCertificateSetName>{KEYSET_NAME}</publicKeyCertificateSetName>
85
+ </messagingAuthorizations>
86
+ -->
61
87
  </embeddedConfig>
62
88
 
63
89
  <!-- Session Settings -->
64
90
  <endUserIdleTimeOut>{IDLE_TIMEOUT_MINUTES}</endUserIdleTimeOut>
91
+
92
+ <!-- Session Inactivity (optional) — top-level siblings of embeddedConfig, not nested inside it -->
93
+ <!-- endUserIdleAction must be Inactivate, End, or InactivateAndEnd -->
94
+ <!--
95
+ <endUserIdleAction>{Inactivate|End|InactivateAndEnd}</endUserIdleAction>
96
+ <endInactiveSessionTimeOut>{MINUTES_AFTER_IDLE_ACTION}</endInactiveSessionTimeOut>
97
+ <isAgentMessageResetInactivityEnabled>{true|false}</isAgentMessageResetInactivityEnabled>
98
+ -->
99
+
65
100
  <isEstimatedWaitTimeEnabled>{true|false}</isEstimatedWaitTimeEnabled>
66
101
  <isQueuePositionEnabled>{true|false}</isQueuePositionEnabled>
67
102
  <isSynchronousChatEnabled>{true|false}</isSynchronousChatEnabled>
@@ -14,8 +14,8 @@
14
14
  </automatedResponses>
15
15
  <embeddedConfig>
16
16
  <allowedFileTypes>bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml</allowedFileTypes>
17
- <authMode>Auth</authMode>
18
- <verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
17
+ <anonymousUserJwtExpirationTime>360</anonymousUserJwtExpirationTime>
18
+ <authMode>UnAuth</authMode>
19
19
  <chatAbandonmentTimeout>5</chatAbandonmentTimeout>
20
20
  <isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
21
21
  <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
@@ -0,0 +1,58 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <MessagingChannel xmlns="http://soap.sforce.com/2006/04/metadata">
3
+ <automatedResponses>
4
+ <autoResponseContentType>TextResponse</autoResponseContentType>
5
+ <language>en_US</language>
6
+ <response>You&apos;ve opted out of receiving messages from us, so we won&apos;t contact you again.</response>
7
+ <type>OptOutConfirmation</type>
8
+ </automatedResponses>
9
+ <automatedResponses>
10
+ <autoResponseContentType>TextResponse</autoResponseContentType>
11
+ <language>en_US</language>
12
+ <response>Text STOP to opt out of further messages.</response>
13
+ <type>HelpResponse</type>
14
+ </automatedResponses>
15
+ <embeddedConfig>
16
+ <allowedFileTypes>bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml</allowedFileTypes>
17
+ <authMode>Auth</authMode>
18
+ <verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
19
+ <chatAbandonmentTimeout>5</chatAbandonmentTimeout>
20
+ <isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
21
+ <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
22
+ <isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
23
+ <isFallbackMessageEnabled>false</isFallbackMessageEnabled>
24
+ <isFileAttachmentExtUnrestricted>false</isFileAttachmentExtUnrestricted>
25
+ <isSaveTranscriptEnabled>true</isSaveTranscriptEnabled>
26
+ <maxFileSize>5</maxFileSize>
27
+ <messagingAuthorizations>
28
+ <authIdentifier>Customer_Support_Chat</authIdentifier>
29
+ <authorizationType>PublicKeyCertificateSet</authorizationType>
30
+ <enabled>true</enabled>
31
+ <publicKeyCertificateSetName>Support_Keyset</publicKeyCertificateSetName>
32
+ </messagingAuthorizations>
33
+ </embeddedConfig>
34
+ <endUserIdleTimeOut>5</endUserIdleTimeOut>
35
+ <isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
36
+ <isQueuePositionEnabled>false</isQueuePositionEnabled>
37
+ <isSynchronousChatEnabled>false</isSynchronousChatEnabled>
38
+ <isVoiceModeEnabled>false</isVoiceModeEnabled>
39
+ <masterLabel>Customer Support Chat</masterLabel>
40
+ <messagingChannelType>EmbeddedMessaging</messagingChannelType>
41
+ <messagingKeywords>
42
+ <keyword>cancel</keyword>
43
+ <keyword>end</keyword>
44
+ <keyword>quit</keyword>
45
+ <keyword>stop</keyword>
46
+ <keyword>stopall</keyword>
47
+ <keyword>unsubscribe</keyword>
48
+ <keywordType>OptOut</keywordType>
49
+ <language>en_US</language>
50
+ </messagingKeywords>
51
+ <messagingKeywords>
52
+ <keyword>help</keyword>
53
+ <keywordType>Help</keywordType>
54
+ <language>en_US</language>
55
+ </messagingKeywords>
56
+ <sessionHandlerQueue>Support_Queue</sessionHandlerQueue>
57
+ <sessionHandlerType>Queue</sessionHandlerType>
58
+ </MessagingChannel>
@@ -28,8 +28,8 @@
28
28
  </customParameters>
29
29
  <embeddedConfig>
30
30
  <allowedFileTypes>doc,docx,pdf,png,jpg</allowedFileTypes>
31
- <authMode>Auth</authMode>
32
- <verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
31
+ <anonymousUserJwtExpirationTime>360</anonymousUserJwtExpirationTime>
32
+ <authMode>UnAuth</authMode>
33
33
  <chatAbandonmentTimeout>10</chatAbandonmentTimeout>
34
34
  <isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
35
35
  <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
@@ -14,8 +14,8 @@
14
14
  </automatedResponses>
15
15
  <embeddedConfig>
16
16
  <allowedFileTypes>bmp,csv,doc,docx,gif,jpg,pdf,png,tiff,txt,xls,xml</allowedFileTypes>
17
- <authMode>Auth</authMode>
18
- <verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
17
+ <anonymousUserJwtExpirationTime>360</anonymousUserJwtExpirationTime>
18
+ <authMode>UnAuth</authMode>
19
19
  <chatAbandonmentTimeout>5</chatAbandonmentTimeout>
20
20
  <isAbandonedChatsEnabled>true</isAbandonedChatsEnabled>
21
21
  <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
@@ -27,7 +27,7 @@
27
27
  </embeddedConfig>
28
28
  <endUserIdleTimeOut>5</endUserIdleTimeOut>
29
29
  <isEstimatedWaitTimeEnabled>true</isEstimatedWaitTimeEnabled>
30
- <isQueuePositionEnabled>true</isQueuePositionEnabled>
30
+ <isQueuePositionEnabled>false</isQueuePositionEnabled>
31
31
  <isSynchronousChatEnabled>false</isSynchronousChatEnabled>
32
32
  <isVoiceModeEnabled>false</isVoiceModeEnabled>
33
33
  <masterLabel>Customer Support Chat</masterLabel>