@salesforce/afv-skills 1.68.0 → 1.70.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/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/scripts/btlib/judge.py +23 -31
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
- package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
- package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
- package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
- package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
- package/skills/commerce-react-storefront-create/SKILL.md +54 -21
- package/skills/data360-code-extension-generate/SKILL.md +160 -252
- package/skills/data360-code-extension-generate/references/README.md +34 -172
- package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
- package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
- package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
- package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
- package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
- package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
- package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
- package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
- package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
- package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
- package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
- package/skills/dx-lifecycle-center/SKILL.md +24 -18
- package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
- package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
- package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
- 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-manage/SKILL.md +12 -12
- package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
- package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
- package/skills/dx-org-manage/references/opening-org.md +1 -1
- package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
- 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 +3 -4
- package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
- 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/education-cloud-academic-calendar-generate/SKILL.md +2 -2
- package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
- package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
- package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
- package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
- package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
- package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
- package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
- package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
- package/skills/education-cloud-student-recruitment-agent-configure/references/routing.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 +8 -7
- package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
- package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
- package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
- package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
- package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
- package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
- package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
- package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
- package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
- package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
- package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
- 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-custom-application-generate/SKILL.md +97 -104
- package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
- package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
- package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
- 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 +1 -1
- package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
- package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
- package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
- package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
- package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
- 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-grounding-get/SKILL.md +7 -7
- package/skills/platform-policy-rule-generate/SKILL.md +9 -7
- package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
- package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
- package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
- package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
- package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
- package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
- package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
- package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
- package/skills/platform-report-generate/SKILL.md +29 -8
- package/skills/platform-report-generate/references/column-names.md +12 -1
- 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 +12 -0
- package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
- package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
- package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
- package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
- package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
- package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
- package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
- package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
- package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
- package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
- package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
- package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
- package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
- package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
- package/skills/service-de-channel-activate/SKILL.md +10 -10
- package/skills/service-de-channel-activate/references/gotchas.md +4 -4
- package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
- package/skills/service-de-channel-create/SKILL.md +1 -1
- package/skills/service-de-channel-create/references/facebook.md +1 -1
- package/skills/service-de-channel-create/references/whatsapp.md +33 -6
- package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
- package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
- package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
- package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
- package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
- package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
- package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
- package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
- package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
- package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
- package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
- package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
- package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
- package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -108
- package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -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 +18 -14
- package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +17 -21
- 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-digital-engagement-deployment-configure/SKILL.md +2 -2
- package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
- package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
- 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/service-omni-command-center-configure/SKILL.md +1 -1
- package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
- package/skills/data360-schema-get/SKILL.md +0 -388
- package/skills/data360-schema-get/references/README.md +0 -191
- package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
- package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
- package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
- package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
- package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
- package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
- package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
- 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
- package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
- package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
|
@@ -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
|
|
33
|
+
- **Delegated** (`context.calledFrom == "service-onboarding"`): use the supplied `values` for parameter transport only. Before any mutation, verify that the target org and change description match an explicit user authorization obtained by the caller. If `context.userAuthorizationRef` is absent, prompt the user to confirm. 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). If the script exits non-zero (1 below minimum, 2 unknown), STOP and report the error to the user (delegated: `failed`). Do NOT generate sfdx-project.json or proceed with any metadata writes until the API version is successfully verified. A failed version check is a blocking precondition.
|
|
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
|
-
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).
|
|
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; delegated: confirm per contract section 3).
|
|
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,20 +95,9 @@ 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
|
-
- `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.
|
|
140
101
|
|
|
141
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".
|
|
142
103
|
|
|
@@ -144,11 +105,11 @@ All steps are sequential. Do not skip or reorder.
|
|
|
144
105
|
- `OptOut` type with individual `<keyword>` elements: cancel, end, quit, stop, stopall, unsubscribe
|
|
145
106
|
- `Help` type with `<keyword>`: help
|
|
146
107
|
|
|
147
|
-
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.
|
|
148
109
|
|
|
149
|
-
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`).
|
|
150
111
|
|
|
151
|
-
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.
|
|
152
113
|
|
|
153
114
|
### Phase 3 — Deploy and Activate
|
|
154
115
|
|
|
@@ -157,6 +118,11 @@ All steps are sequential. Do not skip or reorder.
|
|
|
157
118
|
sf project deploy start --source-dir <path-to-messagingChannels-folder> --target-org <org-alias>
|
|
158
119
|
```
|
|
159
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
|
+
|
|
160
126
|
15a. **ASA routing only — verify the bind landed** (skip for Queue, Flow, User):
|
|
161
127
|
|
|
162
128
|
```bash
|
|
@@ -166,19 +132,15 @@ All steps are sequential. Do not skip or reorder.
|
|
|
166
132
|
|
|
167
133
|
Both must be non-null; if not, check both handler elements were in the XML and the bot was Active before the deploy.
|
|
168
134
|
|
|
169
|
-
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:
|
|
170
|
-
```bash
|
|
171
|
-
sf data update record --sobject MessagingChannel --where "DeveloperName='<CHANNEL_NAME>'" --values "IsActive=true" --target-org <org-alias>
|
|
172
|
-
```
|
|
173
|
-
|
|
174
135
|
### Phase 4 — Validate
|
|
175
136
|
|
|
176
137
|
16. **Verify against checklist** — confirm all items in the Verification Checklist below pass before presenting output.
|
|
177
138
|
|
|
178
139
|
17. **Report** — delegated: return the contract §5 result and stop. Standalone: continue.
|
|
179
140
|
|
|
180
|
-
18. **Present output** (standalone) —
|
|
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:
|
|
181
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`.
|
|
182
144
|
|
|
183
145
|
---
|
|
184
146
|
|
|
@@ -190,8 +152,6 @@ All steps are sequential. Do not skip or reorder.
|
|
|
190
152
|
| `sessionHandlerType` must match the handler fields present | Setting `Queue` but populating `sessionHandlerFlow` causes deployment error |
|
|
191
153
|
| Flow routing requires both `sessionHandlerFlow` and `sessionHandlerQueue` | Queue is the mandatory fallback for human escalation |
|
|
192
154
|
| User routing requires both `sessionHandlerUser` and `sessionHandlerQueue` | Queue is the mandatory fallback when user is unavailable |
|
|
193
|
-
| 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 |
|
|
194
|
-
| 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 |
|
|
195
155
|
| `masterLabel` max 40 characters | Platform limit on channel labels |
|
|
196
156
|
| File name must match `^[a-zA-Z][a-zA-Z0-9_]*$` | API name format enforced by Metadata API |
|
|
197
157
|
| `allowedFileTypes` is a comma-separated string with no spaces | Not a nested list or array |
|
|
@@ -208,16 +168,18 @@ All steps are sequential. Do not skip or reorder.
|
|
|
208
168
|
|
|
209
169
|
| Issue | Resolution |
|
|
210
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 |
|
|
211
173
|
| Channel name conflicts with existing channel | Check org for existing channels; file name must be unique |
|
|
212
174
|
| Queue not found on deploy | Ensure the referenced queue exists and has `MessagingSession` as a `queueSobject` type |
|
|
213
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 |
|
|
214
176
|
| Omni-Channel Flow not found on deploy | Ensure the referenced flow exists and is active before deploying the channel |
|
|
215
177
|
| ASA bot reference invalid | Bot must be published and active; use exact developer name from BotDefinition metadata |
|
|
216
|
-
| 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 |
|
|
217
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 |
|
|
218
180
|
| "Only active Agentforce Service Agents are supported" on deploy | Bot is inactive — run `sf agent activate` before deploying |
|
|
219
181
|
| Flow or ASA routing fails without fallback queue | `sessionHandlerQueue` is mandatory when `sessionHandlerType` is `Flow` or `AgentforceServiceAgent` |
|
|
220
|
-
| 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 |
|
|
221
183
|
| Custom parameters not collected | `name` must be unique per channel |
|
|
222
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 |
|
|
223
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 |
|
|
@@ -229,10 +191,12 @@ All steps are sequential. Do not skip or reorder.
|
|
|
229
191
|
|
|
230
192
|
## Verification Checklist
|
|
231
193
|
|
|
232
|
-
### Universal Checks
|
|
233
|
-
- [ ]
|
|
234
|
-
- [ ]
|
|
235
|
-
- [ ]
|
|
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`?
|
|
236
200
|
|
|
237
201
|
### Routing Checks
|
|
238
202
|
- [ ] Is exactly one `sessionHandlerType` value set (`Queue`, `Flow`, `User`, or `AgentforceServiceAgent`)?
|
|
@@ -243,40 +207,12 @@ All steps are sequential. Do not skip or reorder.
|
|
|
243
207
|
- [ ] For ASA routing: was step 15a run? Are `SessionHandlerId` and `FallbackQueueId` non-null after the deploy?
|
|
244
208
|
- [ ] Does the routing target reference an existing entity in the org?
|
|
245
209
|
|
|
246
|
-
### User Verification Checks
|
|
247
|
-
- [ ] If verification is enabled, is `embeddedConfig.authMode` set to `Auth`?
|
|
248
|
-
- [ ] If verification is disabled, is `embeddedConfig.authMode` set to `UnAuth`?
|
|
249
|
-
|
|
250
|
-
### Embedded Config Checks
|
|
251
|
-
- [ ] Is `chatAbandonmentTimeout` a positive integer (minutes)?
|
|
252
|
-
- [ ] Is `allowedFileTypes` a comma-separated string with no spaces?
|
|
253
|
-
- [ ] Is `maxFileSize` a value between 1-5 MB?
|
|
254
|
-
- [ ] If UnAuth, is `anonymousUserJwtExpirationTime` set (default 360, range 60-4320)?
|
|
255
|
-
- [ ] If Auth, is `verifiedUserJwtExpirationTime` set (default 60, range 60-240)?
|
|
256
|
-
|
|
257
|
-
### Session Inactivity / Automated Response Checks (only if user requested)
|
|
258
|
-
- [ ] Checked against `references/channel_settings.md` (Session Settings, Automated Responses)?
|
|
259
|
-
|
|
260
|
-
### Keyword Checks
|
|
261
|
-
- [ ] Is there at least an `OptOut` keyword type defined?
|
|
262
|
-
- [ ] Are keywords individual `<keyword>` elements (not comma-separated)?
|
|
263
|
-
- [ ] Is `language` set on each keyword block?
|
|
264
|
-
|
|
265
210
|
### Activation Checks
|
|
266
211
|
- [ ] Was the channel deployed successfully?
|
|
267
212
|
- [ ] Was the channel activated after deployment (`IsActive=true`)?
|
|
268
213
|
|
|
269
214
|
---
|
|
270
215
|
|
|
271
|
-
## Output Expectations
|
|
272
|
-
|
|
273
|
-
Deliverables:
|
|
274
|
-
- **Messaging Channel metadata**: `<source-path>/messagingChannels/<ChannelName>.messagingChannel-meta.xml`
|
|
275
|
-
|
|
276
|
-
File structure follows the template in `assets/messaging_channel_template.xml`.
|
|
277
|
-
|
|
278
|
-
---
|
|
279
|
-
|
|
280
216
|
## Cross-Skill Integration
|
|
281
217
|
|
|
282
218
|
| Need | Delegate to |
|
|
@@ -295,8 +231,9 @@ File structure follows the template in `assets/messaging_channel_template.xml`.
|
|
|
295
231
|
| `references/onboarding_contract.md` | Delegated mode (`context.calledFrom == "service-onboarding"`), org writes (transport), module registration |
|
|
296
232
|
| `assets/messaging_channel_template.xml` | Before generating — use as the starting structure |
|
|
297
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 |
|
|
298
237
|
| `scripts/check-api-version.sh` | Phase 1 — verify org API version meets the passed minimum (67.0) |
|
|
299
238
|
| `scripts/normalize-channel-name.sh` | Phase 1 — derive file API name from channel label |
|
|
300
|
-
| `examples/omni_flow_channel.xml` | To verify output for
|
|
301
|
-
| `examples/omni_queue_channel.xml` | To verify output for Omni-Channel Queue routing |
|
|
302
|
-
| `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
|
@@ -62,7 +62,9 @@
|
|
|
62
62
|
<!-- Embedded Configuration -->
|
|
63
63
|
<embeddedConfig>
|
|
64
64
|
<allowedFileTypes>{COMMA_SEPARATED_EXTENSIONS}</allowedFileTypes>
|
|
65
|
+
<!-- Keep exactly one expiry: anonymousUserJwtExpirationTime for UnAuth (default 360), verifiedUserJwtExpirationTime for Auth (60-240) -->
|
|
65
66
|
<anonymousUserJwtExpirationTime>{JWT_EXPIRATION_MINUTES}</anonymousUserJwtExpirationTime>
|
|
67
|
+
<!-- <verifiedUserJwtExpirationTime>{VERIFIED_JWT_EXPIRATION_MINUTES}</verifiedUserJwtExpirationTime> -->
|
|
66
68
|
<authMode>{UnAuth|Auth}</authMode>
|
|
67
69
|
<chatAbandonmentTimeout>{MINUTES}</chatAbandonmentTimeout>
|
|
68
70
|
<isAbandonedChatsEnabled>{true|false}</isAbandonedChatsEnabled>
|
|
@@ -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>
|
|
@@ -99,7 +99,7 @@ Comma-separated string, no spaces between extensions.
|
|
|
99
99
|
When user verification is enabled:
|
|
100
100
|
- Set `authMode` to `Auth`
|
|
101
101
|
- The customer's backend must issue a signed JWT containing user identity claims
|
|
102
|
-
-
|
|
102
|
+
- JWTs are verified only once a keyset (public key certificate set) whose key `kid` and issuer match them is attached via `messagingAuthorizations`; the channel itself deploys without one. Creating keys is a separate setup
|
|
103
103
|
|
|
104
104
|
---
|
|
105
105
|
|
|
@@ -107,24 +107,28 @@ When user verification is enabled:
|
|
|
107
107
|
|
|
108
108
|
Only applicable when `authMode` is `Auth`. Do not include when `authMode` is `UnAuth`.
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Nested inside `<embeddedConfig>`. Configures verified user identity for the channel.
|
|
111
111
|
|
|
112
112
|
| Field | Type | Required | Description |
|
|
113
113
|
|-------|------|----------|-------------|
|
|
114
114
|
| `authorizationType` | Enum | Yes | Always `PublicKeyCertificateSet` |
|
|
115
|
-
| `
|
|
116
|
-
| `publicKeyCertificateSetName` | String | Yes | The certificate set used for public key verification |
|
|
115
|
+
| `publicKeyCertificateSetName` | String | Yes | API name of an existing keyset used for public key verification |
|
|
117
116
|
| `enabled` | Boolean | Yes | Whether this authorization is active |
|
|
118
|
-
| `authIdentifier` | String | Yes |
|
|
117
|
+
| `authIdentifier` | String | Yes | Free-form configuration name (default: the channel file name); not the JWT `sub` claim |
|
|
118
|
+
|
|
119
|
+
Do not emit `authProviderName`. With `Auth`, set `verifiedUserJwtExpirationTime` (60-240) and omit `anonymousUserJwtExpirationTime`.
|
|
119
120
|
|
|
120
121
|
```xml
|
|
121
|
-
<
|
|
122
|
-
<
|
|
123
|
-
<
|
|
124
|
-
<
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</
|
|
122
|
+
<embeddedConfig>
|
|
123
|
+
<authMode>Auth</authMode>
|
|
124
|
+
<verifiedUserJwtExpirationTime>60</verifiedUserJwtExpirationTime>
|
|
125
|
+
<messagingAuthorizations>
|
|
126
|
+
<authIdentifier>Customer_Support_Chat</authIdentifier>
|
|
127
|
+
<authorizationType>PublicKeyCertificateSet</authorizationType>
|
|
128
|
+
<enabled>true</enabled>
|
|
129
|
+
<publicKeyCertificateSetName>Support_Keyset</publicKeyCertificateSetName>
|
|
130
|
+
</messagingAuthorizations>
|
|
131
|
+
</embeddedConfig>
|
|
128
132
|
```
|
|
129
133
|
|
|
130
134
|
---
|
|
@@ -137,8 +141,8 @@ Configures the authorization settings for verified user identity in the messagin
|
|
|
137
141
|
| `endUserIdleAction` | Enum | — | Action taken when the idle timeout elapses: `Inactivate`, `End`, or `InactivateAndEnd` |
|
|
138
142
|
| `endInactiveSessionTimeOut` | Integer | — | Minutes after `endUserIdleAction` fires before the inactive session itself ends |
|
|
139
143
|
| `isAgentMessageResetInactivityEnabled` | Boolean | — | Restart the customer's inactivity timer when a rep sends a message (Setup label: "Rep messages reset customer's inactivity timer"). Only takes effect when `endUserIdleTimeOut` is set; it is forced to `false` otherwise |
|
|
140
|
-
| `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time |
|
|
141
|
-
| `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user |
|
|
144
|
+
| `isEstimatedWaitTimeEnabled` | Boolean | `false` | Show estimated wait time. Setup's **Notification** list (None / Estimated Wait Time / Queue Position) allows one choice, so never set this and `isQueuePositionEnabled` both `true` (deploy fails: "You can't enable Queue Position and Estimated Wait Time options at the same time") |
|
|
145
|
+
| `isQueuePositionEnabled` | Boolean | `false` | Show queue position to user. At most one of this and `isEstimatedWaitTimeEnabled` may be `true` |
|
|
142
146
|
| `isSynchronousChatEnabled` | Boolean | `false` | Enable real-time synchronous chat |
|
|
143
147
|
| `isVoiceModeEnabled` | Boolean | `false` | Enable voice mode capability |
|
|
144
148
|
|
package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
# Onboarding contract — delegated mode, transport, pre-scan, registration
|
|
2
2
|
|
|
3
3
|
Read this when the invocation carries a `context` object, before any org write, or when registering the skill in an
|
|
4
|
-
onboarding module.
|
|
5
|
-
this skill. The sibling `service-digital-engagement-deployment-configure` has the same structure.
|
|
4
|
+
onboarding module. The sibling `service-digital-engagement-deployment-configure` has the same structure.
|
|
6
5
|
|
|
7
6
|
## 1. Two entry points, one write procedure
|
|
8
7
|
|
|
9
8
|
| | Delegated | Standalone |
|
|
10
9
|
|---|---|---|
|
|
11
10
|
| Detected by | `context.calledFrom == "service-onboarding"` | no `context` object |
|
|
12
|
-
| Values come from | `values` in the payload — already approved in the plan table | you ask
|
|
13
|
-
| Questions | none. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the
|
|
14
|
-
| Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the
|
|
11
|
+
| Values come from | `values` in the payload — already approved in the plan table | you ask for the Inputs in SKILL.md; defaults are in `references/channel_settings.md` |
|
|
12
|
+
| Questions | none, except one confirmation of the target org and change summary before the first write when the authorization context is absent. A missing required key is a caller bug: stop and return `failed` naming the key. Never default a value the admin did not approve | the Inputs list in SKILL.md |
|
|
13
|
+
| Wording | `discoveryMode == "guided"` → plain business language (§4). `"pickAreas"` → Salesforce terminology | Salesforce terminology (the Inputs as written) |
|
|
15
14
|
| Ends with | the structured result in section 5 | a plain-language summary of the same outcome |
|
|
16
15
|
|
|
17
16
|
Delegated payload:
|
|
@@ -23,15 +22,16 @@ Delegated payload:
|
|
|
23
22
|
"routingType": "Queue",
|
|
24
23
|
"routingTarget": "Support_Queue",
|
|
25
24
|
"fallbackQueue": null,
|
|
26
|
-
"userVerification":
|
|
25
|
+
"userVerification": false
|
|
27
26
|
},
|
|
28
27
|
"context": { "calledFrom": "service-onboarding", "discoveryMode": "guided" }
|
|
29
28
|
}
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
Required `values`: `channelLabel`, `routingType`, `routingTarget`; `fallbackQueue` is required when `routingType` is
|
|
33
|
-
`Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `true`,
|
|
34
|
-
|
|
32
|
+
`Flow`, `User` or `AgentforceServiceAgent`. `userVerification` defaults to `false` (`UnAuth`); when `true`, `verificationKeyset` (an existing
|
|
33
|
+
keyset name) and `authIdentifier` are optional. Every other channel setting uses the defaults in
|
|
34
|
+
`references/channel_settings.md` unless a key is supplied.
|
|
35
35
|
|
|
36
36
|
Missing routing target, delegated: return `failed`, `errorMessage` = "<Flow|User|Bot|Queue> <name> not found". Never
|
|
37
37
|
create one — queues come from the `queues` feature this one depends on.
|
|
@@ -77,10 +77,10 @@ Run before any write, both modes. `GET` `MessagingChannel` by `fullName` = the n
|
|
|
77
77
|
| No such channel | not set up → create (`POST`) |
|
|
78
78
|
| Exists, and every targeted setting equals the target (routing type and target, fallback queue, `authMode`, plus each supplied key) **and** `IsActive = true` | **already configured** — no write, return `already-configured` |
|
|
79
79
|
| Exists, matches, but `IsActive = false` | only activate; do not rewrite the metadata |
|
|
80
|
-
| Exists, some targeted setting differs | **drift** — announce each change ("routing: Queue A → Queue B"), then write the full document. Standalone: ask for a yes first. Delegated: the
|
|
80
|
+
| Exists, some targeted setting differs | **drift** — announce each change ("routing: Queue A → Queue B"), then write the full document. Standalone: ask for a yes first. Delegated: confirm the specific drift change with the user before writing. Plan approval does not cover drift correction without explicit re-confirmation naming the changed settings and target org. |
|
|
81
81
|
| Exists but was created by Connect `channel/setup` (defaults populated: opt-out/help keywords, `embeddedConfig`) | you now own the whole document: GET, modify only targeted fields, PUT the full result |
|
|
82
82
|
|
|
83
|
-
Standalone, channel exists: offer exactly three choices — no change / override / add to existing.
|
|
83
|
+
Standalone, channel exists: offer exactly three choices — no change (stop) / override (replace the targeted settings, keep the rest) / add to existing (keep current settings, add only what the user lists).
|
|
84
84
|
|
|
85
85
|
## 4. Questions in the admin's language (guided mode)
|
|
86
86
|
|
|
@@ -90,9 +90,9 @@ Ask about the outcome; state the default with each; keep it to a handful.
|
|
|
90
90
|
|---|---|
|
|
91
91
|
| "Routing type: Queue, Flow, User or Agentforce Service Agent?" | "When a customer starts a chat, who should get it first: a team (queue), a specific person, or your AI agent? (Default: a team.)" |
|
|
92
92
|
| "Fallback queue developer name?" | "If that person or agent isn't available, which team should the chat go to?" |
|
|
93
|
-
| "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default:
|
|
93
|
+
| "Enable User Verification (JWT)?" | "Will customers be signed in to your site when they chat, so you know who they are? (Default: no.)" Yes → Auth mode; an existing signing keyset name is optional, and setting up the keys is a separate step |
|
|
94
94
|
| "Pre-chat form / custom parameters" | "What should we ask customers before the chat starts? (Default: name and email.)" |
|
|
95
|
-
| "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the
|
|
95
|
+
| "`isAbandonedChatsEnabled`, `chatAbandonmentTimeout`…" | Not asked; use the defaults in `references/channel_settings.md` |
|
|
96
96
|
|
|
97
97
|
## 5. Result returned to the coordinator
|
|
98
98
|
|
|
@@ -108,10 +108,10 @@ Ask about the outcome; state the default with each; keep it to a handful.
|
|
|
108
108
|
}
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
`status` and `errorMessage` are the contract. `outputs` is always returned
|
|
111
|
+
`status` and `errorMessage` are the contract. `outputs` is always returned.
|
|
112
112
|
On `failed`: `errorMessage` names the failed step and the platform error; stop; do not retry.
|
|
113
113
|
|
|
114
|
-
## 6. Registration entry (
|
|
114
|
+
## 6. Registration entry (for the onboarding team to place in a module)
|
|
115
115
|
|
|
116
116
|
```yaml
|
|
117
117
|
- id: messagingChannel
|
|
@@ -120,13 +120,14 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
|
|
|
120
120
|
delegateSkill: service-digital-engagement-channel-configure
|
|
121
121
|
dependsOn: [queues]
|
|
122
122
|
revisionOwner: service-digital-engagement-channel-configure
|
|
123
|
-
# org perms: confirm exact names with Digital Engagement licensing (not yet confirmed)
|
|
124
123
|
values:
|
|
125
124
|
channelLabel: { from: signal.messagingChannelName, default: "<company> Support Chat" }
|
|
126
125
|
routingType: { from: signal.messagingRouting, default: "Queue" }
|
|
127
126
|
routingTarget: { from: signal.messagingRoutingTarget }
|
|
128
127
|
fallbackQueue: { from: signal.messagingFallbackQueue }
|
|
129
|
-
userVerification: { from: signal.messagingSignedIn, default:
|
|
128
|
+
userVerification: { from: signal.messagingSignedIn, default: false }
|
|
129
|
+
verificationKeyset: { from: signal.messagingKeyset }
|
|
130
|
+
authIdentifier: { from: signal.messagingAuthIdentifier }
|
|
130
131
|
writes: "MessagingChannel (Metadata CRUD); IsActive via sObject update"
|
|
131
132
|
gating:
|
|
132
133
|
irreversible: false
|
|
@@ -136,8 +137,3 @@ On `failed`: `errorMessage` names the failed step and the platform error; stop;
|
|
|
136
137
|
passWhen: "GET MessagingChannel fullName=<normalized name> returns the targeted sessionHandlerType and target and the intended authMode; SOQL SELECT IsActive, SessionHandlerId, FallbackQueueId FROM MessagingChannel WHERE DeveloperName=<name> returns IsActive=true, and non-null SessionHandlerId/FallbackQueueId where the routing type requires them"
|
|
137
138
|
alternative: "Setup > Messaging Settings > New Channel > Messaging for In-App and Web; choose routing, then activate."
|
|
138
139
|
```
|
|
139
|
-
|
|
140
|
-
Open items for the onboarding team: the `signal.*` keys do not exist in `onboarding-state.schema.json` yet
|
|
141
|
-
(`channels` allows only email/web); `userVerification: true` makes an Auth channel, which also needs the
|
|
142
|
-
user-verification step before signed-in customers can chat — decide if that is its own feature; the coordinator must
|
|
143
|
-
accept `outputs`; org perm names are not yet confirmed.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Pre-chat parameters
|
|
2
|
+
|
|
3
|
+
## Standard parameters
|
|
4
|
+
Generate `<standardParameters>` elements with `parameterType`.
|
|
5
|
+
|
|
6
|
+
## Custom parameters
|
|
7
|
+
Generate `<customParameters>` elements with `name`, `masterLabel`, `parameterDataType`, `externalParameterName`, and `maxLength`. Always set `parameterDataType` to `String`: the channel accepts no other value. The field's actual type (Checkbox, Number, dropdown) is set at the deployment level via `formFieldType`, not here.
|
|
8
|
+
|
|
9
|
+
## Flow variable mappings
|
|
10
|
+
If the channel uses Flow routing and the user specifies flow variable mappings, include `<actionParameterMappings>` with `actionParameterName` to map each parameter to a flow input variable.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# reCAPTCHA handoff
|
|
2
|
+
|
|
3
|
+
The reCAPTCHA key is not exposed through any API or Metadata field, so this skill cannot read, set, or verify it. An admin completes it in Setup; the skill hands over a link and the steps.
|
|
4
|
+
|
|
5
|
+
## Rules
|
|
6
|
+
|
|
7
|
+
- Never write `captchaKey` or `isCaptchaEnabled` in the channel XML. A full-document deploy preserves a key the admin already set in Setup, so redeploying never clobbers it.
|
|
8
|
+
- Never say reCAPTCHA is configured or enabled, or that it is not. Say this skill does not set or check it; the admin completes the steps below and sees the result in Setup.
|
|
9
|
+
- Give a plain Setup link only. Never run `sf org open --url-only` or output any URL carrying a session token (`frontdoor`, `sid=`); those are credentials.
|
|
10
|
+
- The reCAPTCHA Verification section is hidden for Mobile-only channels. Do not offer these steps for a channel the user says is Mobile-only.
|
|
11
|
+
|
|
12
|
+
## When to raise it
|
|
13
|
+
|
|
14
|
+
- The user asks about reCAPTCHA, captcha, or bot protection: give the full handoff.
|
|
15
|
+
- Standalone, at the end of the output, unless the user said the channel is Mobile-only: one line, "This skill does not set or check reCAPTCHA; ask me for the Setup steps."
|
|
16
|
+
- Delegated: do not raise it.
|
|
17
|
+
|
|
18
|
+
## Build the link
|
|
19
|
+
|
|
20
|
+
1. Get the channel Id:
|
|
21
|
+
```bash
|
|
22
|
+
sf data query -o <org> --json -q "SELECT Id FROM MessagingChannel WHERE DeveloperName='<CHANNEL_DEV_NAME>'"
|
|
23
|
+
```
|
|
24
|
+
2. Path: `/lightning/setup/LiveMessageSetup/<ChannelId>/view?lightning__channelType=EmbeddedMessaging`. Prefix it with the org's `instanceUrl` if known (`result.instanceUrl` from `sf org display --json`; never print or copy the access token), otherwise give the path.
|
|
25
|
+
|
|
26
|
+
3. No channel Id yet (the query returns no row, or the channel is not deployed): never deploy only to get one. Give the generic route, Setup → Messaging Settings → open the channel, with the admin steps below, and carry on with the rest of the flow.
|
|
27
|
+
|
|
28
|
+
## Limitation to tell the user
|
|
29
|
+
|
|
30
|
+
The link is plain, so it works only if the admin is already logged in to the org with Setup access. If not, they should log in first and then open the link, or go to Setup → Messaging Settings and open the channel.
|
|
31
|
+
|
|
32
|
+
## Admin steps
|
|
33
|
+
|
|
34
|
+
1. Have the reCAPTCHA key pair from Google ready.
|
|
35
|
+
2. Open the link and find the **reCAPTCHA Verification** section.
|
|
36
|
+
3. Check **Use reCAPTCHA** first. The **reCAPTCHA API Key Pair** field and **New API Key Pair** button stay greyed out until it is checked.
|
|
37
|
+
4. Select an existing key in **reCAPTCHA API Key Pair**, or click **New API Key Pair** and add yours.
|
|
38
|
+
5. Save. Setup does not allow saving with the box checked until a key pair is set.
|