@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.
- package/README.md +55 -5
- package/package.json +1 -1
- package/skills/afcc-setup-coordinate/SKILL.md +348 -0
- package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
- package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
- package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
- package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
- package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
- package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
- package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
- package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
- package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
- package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
- package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
- package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
- package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
- package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
- package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
- package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
- package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
- package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
- package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
- package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
- package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
- package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
- package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
- package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
- package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
- package/skills/agentforce-offline-experimentation-run/SKILL.md +14 -22
- package/skills/agentforce-offline-experimentation-run/scripts/bt_compare.py +81 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_fetch.py +358 -0
- package/skills/agentforce-offline-experimentation-run/scripts/bt_patch_agent.py +110 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/__init__.py +34 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentpatch.py +483 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/agentsrc.py +565 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/cache.py +95 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/compare.py +617 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/fetch.py +1012 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +140 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +93 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/patch.py +327 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/redact.py +40 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/results.py +288 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/scoring.py +340 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +354 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/splits.py +136 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/stdm.py +98 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/tokens.py +173 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/units.py +199 -0
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/versions.py +194 -0
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +367 -379
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +23 -6
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +483 -796
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/dx-lifecycle-center/SKILL.md +22 -13
- package/skills/dx-lifecycle-center/examples/workflows.md +54 -17
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +62 -12
- package/skills/dx-lifecycle-center/references/deploy.md +3 -3
- package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
- package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
- package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
- package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
- package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
- package/skills/dx-org-devhub-configure/SKILL.md +85 -84
- package/skills/dx-org-devhub-configure/examples/status-output.md +25 -2
- package/skills/dx-org-devhub-configure/scripts/devhub.sh +265 -140
- package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +100 -15
- package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
- package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
- package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +88 -0
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +167 -0
- package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
- package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
- package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
- package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
- package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
- package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
- package/skills/dx-scratch-def-configure/SKILL.md +163 -0
- package/skills/dx-scratch-def-configure/examples/confirm-card.md +53 -0
- package/skills/dx-scratch-def-configure/examples/report-recipes.md +100 -0
- package/skills/dx-scratch-def-configure/references/features.json +3270 -0
- package/skills/dx-scratch-def-configure/references/project-scratch-def.schema.json +1841 -0
- package/skills/dx-scratch-def-configure/references/settings-map.json +682 -0
- package/skills/dx-scratch-def-configure/scripts/lib_scratch_def.py +1306 -0
- package/skills/dx-scratch-def-configure/scripts/requirements.txt +3 -0
- package/skills/dx-scratch-def-configure/scripts/scrape_config_values.py +848 -0
- package/skills/education-cloud-domain-configure/SKILL.md +1 -1
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +1 -1
- package/skills/experience-afv-analytics-query/SKILL.md +239 -0
- package/skills/experience-afv-analytics-query/references/references.md +176 -0
- package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
- package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
- package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
- package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
- package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
- package/skills/experience-app-mcp-generate/SKILL.md +174 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
- package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
- package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
- package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
- package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
- package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
- package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
- package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
- package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
- package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
- package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
- package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
- package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
- package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
- package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
- package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
- package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
- package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
- package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
- package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
- package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
- package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
- package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
- package/skills/experience-cms-content-type-generate/SKILL.md +1 -1
- package/skills/experience-design-validate/SKILL.md +1 -1
- package/skills/experience-search-coordinate/SKILL.md +18 -12
- package/skills/experience-search-coordinate/references/content-route.md +79 -1
- package/skills/field-service-data-capture-migrate/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
- package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
- package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
- package/skills/platform-apex-generate/SKILL.md +14 -11
- package/skills/platform-apex-test-generate/SKILL.md +2 -1
- package/skills/platform-custom-field-generate/SKILL.md +24 -16
- package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
- package/skills/platform-custom-setting-generate/SKILL.md +1 -0
- package/skills/platform-datamask-run/SKILL.md +52 -71
- package/skills/platform-datamask-run/references/api-surface.md +10 -4
- package/skills/platform-datamask-run/references/policy-authoring.md +56 -7
- package/skills/platform-datamask-run/references/run-and-abort.md +17 -10
- package/skills/platform-datamask-run/scripts/poll-job.sh +15 -25
- package/skills/platform-dataspace-access-configure/SKILL.md +43 -10
- package/skills/platform-flexipage-generate/SKILL.md +7 -10
- package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
- package/skills/platform-metadata-discovery-get/SKILL.md +185 -0
- package/skills/platform-metadata-discovery-get/references/api-map.md +25 -0
- package/skills/platform-metadata-discovery-get/references/h360-routes.md +30 -0
- package/skills/platform-metadata-discovery-get/references/scoped-soql.md +52 -0
- package/skills/platform-metadata-grounding-get/SKILL.md +170 -0
- package/skills/platform-policy-rule-generate/SKILL.md +85 -231
- package/skills/platform-policy-rule-generate/references/condition-model.md +47 -0
- package/skills/platform-policy-rule-generate/references/condition-templates.md +89 -0
- package/skills/platform-policy-rule-generate/references/conjunction-compiler.md +25 -0
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +30 -0
- package/skills/platform-policy-rule-generate/references/consumer-all.md +9 -0
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +99 -0
- package/skills/platform-policy-rule-generate/references/deploy-errors.md +24 -36
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitions/ExistsJoinRLS_Rule_1.policyRuleDefinition +91 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitions/FieldReadDeny_Rule_1.policyRuleDefinition +72 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitions/LastCharactersFieldMasking_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitions/PrincipalFieldMatchRLS_Rule_1.policyRuleDefinition +77 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/package.xml +12 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +5 -0
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitions/TaggedObjectAccess_Rule_1.policyRuleDefinition +65 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +87 -0
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +18 -11
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +107 -0
- package/skills/platform-policy-rule-generate/references/principal-expression.md +31 -0
- package/skills/platform-policy-rule-generate/references/reference-resolution.md +51 -0
- package/skills/platform-policy-rule-generate/references/resource-expression.md +48 -0
- package/skills/platform-policy-rule-generate/references/runtime-context.md +9 -0
- package/skills/platform-policy-rule-generate/references/templates-access.md +11 -9
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +5 -3
- package/skills/platform-policy-rule-generate/references/templates-record.md +37 -22
- package/skills/platform-policy-rule-generate/references/templates-transform.md +10 -8
- package/skills/platform-policy-rule-generate/references/templates.md +2 -2
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +36 -18
- package/skills/platform-report-generate/SKILL.md +29 -5
- package/skills/platform-report-generate/references/chart-types.md +26 -2
- package/skills/platform-report-generate/references/column-names.md +43 -0
- package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
- package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
- package/skills/platform-report-generate/references/verification-checklist.md +22 -2
- package/skills/service-digital-engagement-channel-configure/SKILL.md +49 -110
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +35 -0
- package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
- package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
- package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
- package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +128 -28
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +16 -20
- package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
- package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
- package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
- package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
- package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
- package/skills/service-e911-configure/SKILL.md +242 -0
- package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
- package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
- package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
- package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
- package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
- package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
- package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
- package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/experience-content-media-image-generate/SKILL.md +0 -83
- package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
- package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
- 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
|
|
42
|
-
- [ ] `
|
|
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`):
|
|
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
|
-
##
|
|
41
|
+
## Inputs
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
Standalone: ask for anything not already clear. Delegated: take `values`.
|
|
43
44
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
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
|
-
|
|
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
|
|
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:
|
|
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
|
|
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** —
|
|
127
|
-
|
|
128
|
-
9. **Configure embedded settings** — populate `<embeddedConfig>`
|
|
129
|
-
|
|
130
|
-
|
|
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,
|
|
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,
|
|
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
|
|
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) —
|
|
179
|
-
- **Automated responses** — ask
|
|
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 |
|
|
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
|
|
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
|
-
- [ ]
|
|
232
|
-
- [ ]
|
|
233
|
-
- [ ]
|
|
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
|
|
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 |
|
package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml
CHANGED
|
@@ -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
|
-
<
|
|
18
|
-
<
|
|
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've opted out of receiving messages from us, so we won'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
|
-
<
|
|
32
|
-
<
|
|
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
|
-
<
|
|
18
|
-
<
|
|
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>
|
|
30
|
+
<isQueuePositionEnabled>false</isQueuePositionEnabled>
|
|
31
31
|
<isSynchronousChatEnabled>false</isSynchronousChatEnabled>
|
|
32
32
|
<isVoiceModeEnabled>false</isVoiceModeEnabled>
|
|
33
33
|
<masterLabel>Customer Support Chat</masterLabel>
|