@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: service-de-headless-channel-configure
|
|
3
|
-
description: "Top-level orchestrator: given a messaging channel type and its inputs, produces an activated Enhanced `MessagingChannel` in the target org — without the Meta/LINE/Apple setup popups. Prompts for `{MESSAGE_TYPE}` if not supplied, then sequences insert → route → consent → activate via the type-agnostic dispatcher (`service-de-channel-create`) plus the shared routing/
|
|
3
|
+
description: "Top-level orchestrator: given a messaging channel type and its inputs, produces an activated Enhanced `MessagingChannel` in the target org — without the Meta/LINE/Apple setup popups. Prompts for `{MESSAGE_TYPE}` if not supplied, then sequences insert → route → consent → activate → requested settings (auto-responses, keywords, session inactivity) via the type-agnostic dispatcher (`service-de-channel-create`) plus the shared routing/settings/activation leaves, and reports every requested setting as configured, not applicable, or failed. Resumes from partial state on re-run. Use to set up an Enhanced channel (WhatsApp, Facebook, LINE, Apple, SMS) end-to-end, bypassing in-org setup popups. Do not use for a single stage of an already-inserted channel — use the matching leaf skill (`service-de-channel-activate`, `service-de-channel-settings-configure`, `service-de-channel-routing-configure`) instead."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
6
|
minApiVersion: "67.0"
|
|
@@ -20,17 +20,18 @@ metadata:
|
|
|
20
20
|
|
|
21
21
|
## What this skill does
|
|
22
22
|
|
|
23
|
-
Takes a channel type (`WhatsApp` | `Line` | `AppleBusinessChat` | `Facebook` | `Text`) plus its type-specific inputs and drives it to an activated `MessagingChannel`. It first gates on the Enhanced Messaging Terms and Conditions, then runs four steps:
|
|
23
|
+
Takes a channel type (`WhatsApp` | `Line` | `AppleBusinessChat` | `Facebook` | `Text`) plus its type-specific inputs and drives it to an activated `MessagingChannel`. It first gates on the Enhanced Messaging Terms and Conditions, then runs four core steps plus an optional settings step:
|
|
24
24
|
|
|
25
25
|
0. **Accept Terms and Conditions** — renders the Enhanced Messaging disclaimer and requires the user to certify they have authority to bind their org, mirroring the in-org "Add a Channel" wizard. Blocking — a decline ends the run before any org work. *(Stage 0.5, in this skill)*
|
|
26
|
-
1. **Insert the channel** — invokes `service-de-channel-create`, which handles
|
|
26
|
+
1. **Insert the channel** — invokes `service-de-channel-create`, which handles each type's third-party prereq (e.g. WhatsApp's `service-de-waba-integrate`). *(skill: `service-de-channel-create`)*
|
|
27
27
|
2. **Configure routing** — sets `SessionHandlerId` to an Omni-Channel Queue (pick existing or create new). Message-type-agnostic. *(skill: `service-de-channel-routing-configure`)*
|
|
28
|
-
3. **Configure consent** — ensures a valid `ConsentType` + matching `MsgChannelLanguageKeyword` record
|
|
29
|
-
4. **Activate** — PATCHes `MessagingChannelUsage.DeploymentStatus` to `Provisioning
|
|
28
|
+
3. **Configure consent** — ensures a valid `ConsentType` + matching `MsgChannelLanguageKeyword` record (often a **no-op**: the insert auto-seeds `ImplicitOptIn`). Activation's readiness check needs routing AND consent, so this runs before activation. *(skill: `service-de-channel-settings-configure`)*
|
|
29
|
+
4. **Activate** — PATCHes `MessagingChannelUsage.DeploymentStatus` to `Provisioning`; the save-hook runs synchronously and returns 204 once the channel is `IsActive=true`. Message-type-agnostic. *(skill: `service-de-channel-activate`)*
|
|
30
|
+
5. **Configure requested settings** — only if the request asked for auto-responses, keywords, or session inactivity. Runs **after** activation and is **non-blocking**: a failure is a warning, never a failed run, and every requested setting is reported as configured, not applicable, or failed. *(skill: `service-de-channel-settings-configure`, Stage 4.5)*
|
|
30
31
|
|
|
31
|
-
**Resume-by-default.** Each step is idempotent
|
|
32
|
+
**Resume-by-default.** Each step is idempotent: a re-run detects existing state and skips steps that already succeeded.
|
|
32
33
|
|
|
33
|
-
**Prompt mid-flow.**
|
|
34
|
+
**Prompt mid-flow.** A missing `{MESSAGE_TYPE}` is asked upfront; routing choices are prompted when step 2 runs.
|
|
34
35
|
|
|
35
36
|
## Reference File Index
|
|
36
37
|
|
|
@@ -40,8 +41,9 @@ Takes a channel type (`WhatsApp` | `Line` | `AppleBusinessChat` | `Facebook` | `
|
|
|
40
41
|
| `references/terms-and-conditions.md` | Rendering the Stage 0.5 disclaimer and certification prompt — verbatim text and per-type label/third-party mappings. |
|
|
41
42
|
| `references/output-envelopes.md` | Wiring error handling or parsing the canonical success/failure/terms-declined JSON envelope shapes. |
|
|
42
43
|
| `references/partial-success.md` | The orchestrator fails mid-way and you need to render the partial-success/resume report. |
|
|
43
|
-
| `references/gotchas.md` | Debugging unexpected behavior — duplicate-key errors, resume/idempotency questions, preflight SOQL shape, unattended/CI usage. |
|
|
44
|
-
| `references/
|
|
44
|
+
| `references/gotchas.md` | Debugging unexpected behavior — duplicate-key errors, resume/idempotency questions, preflight SOQL shape, unattended/CI usage, dropped settings, missing AuthProvider. |
|
|
45
|
+
| `references/requested-settings.md` | Running Stage 4.5 (auto-responses, keywords, inactivity) or rendering requested settings in the Stage 5 report. |
|
|
46
|
+
| `references/worked-examples.md` | You need a reference trace (fresh run, resume, Apple dispatch, unsupported type, requested settings) for exact envelope shapes. |
|
|
45
47
|
|
|
46
48
|
---
|
|
47
49
|
|
|
@@ -51,32 +53,28 @@ Takes a channel type (`WhatsApp` | `Line` | `AppleBusinessChat` | `Facebook` | `
|
|
|
51
53
|
|
|
52
54
|
When you invoke a leaf skill (service-de-channel-create, service-de-channel-routing-configure, service-de-channel-settings-configure, service-de-channel-activate) and it returns via function_results:
|
|
53
55
|
|
|
54
|
-
- **DO:**
|
|
55
|
-
- **DO:**
|
|
56
|
-
- **DO NOT:** Stop and report back to the user between stages
|
|
57
|
-
- **DO NOT:** Wait for user confirmation between stages
|
|
58
|
-
- **DO NOT:** Treat each stage as a separate turn in the conversation
|
|
56
|
+
- **DO:** Parse the return value immediately and run Stages 0.5 → 1 → 2 → 3 → 3.5 → 4 → 4.5 → 5 consecutively in ONE response
|
|
57
|
+
- **DO NOT:** Stop, report back, or wait for confirmation between stages, or treat each stage as a separate turn
|
|
59
58
|
|
|
60
|
-
**Why
|
|
59
|
+
**Why:** the user asked for an end-to-end activated channel; stopping mid-flow forces them to resume each stage by hand.
|
|
61
60
|
|
|
62
|
-
**Exception:** Only stop mid-flow if a leaf skill returns `ok: false` with a terminal error (not a recoverable prompt), or if the user declines the Stage 0.5 Terms and Conditions gate (emit `terms-not-accepted` and halt). Then report the failure immediately with context about which stage failed and what state was reached.
|
|
61
|
+
**Exception:** Only stop mid-flow if a leaf skill returns `ok: false` with a terminal error (not a recoverable prompt), or if the user declines the Stage 0.5 Terms and Conditions gate (emit `terms-not-accepted` and halt). The WhatsApp OTP prompts in `service-de-channel-activate` are also an allowed pause — wait for the user's input, then continue. Then report the failure immediately with context about which stage failed and what state was reached.
|
|
63
62
|
|
|
64
|
-
**Stage 0.5 is a required blocking prompt
|
|
63
|
+
**Stage 0.5 is a required blocking prompt** — never auto-accepted. A decline ends the run; a `yes` continues to Stage 1 in the same response.
|
|
65
64
|
|
|
66
|
-
**Leaf skill prompts:**
|
|
65
|
+
**Leaf skill prompts:** leaves like `service-de-waba-integrate` or `service-de-channel-routing-configure` may prompt mid-execution. Once a prompt is answered, CONTINUE to the next stage immediately.
|
|
67
66
|
|
|
68
67
|
---
|
|
69
68
|
|
|
70
69
|
## When NOT to use this skill
|
|
71
70
|
|
|
72
|
-
- **You only want one step.** Invoke the leaf skill directly (`service-de-channel-create`, `service-de-channel-routing-configure`, `service-de-channel-activate`).
|
|
73
|
-
- **You want
|
|
74
|
-
- **
|
|
75
|
-
- **The prereq hasn't been met (WABA not shared, LINE channel not created, Apple account not registered, SMS number not provisioned).** The per-type insert skill's Stage 2-equivalent surfaces this clearly and returns; no orchestration fixes it. (For SMS/Text the number-provisioning prereq isn't checked at insert — an unprovisioned number surfaces later as an activation-time `provisioning-error`.)
|
|
71
|
+
- **You only want one step, or manual control between stages.** Invoke the leaf skill directly (`service-de-channel-create`, `service-de-channel-routing-configure`, `service-de-channel-settings-configure`, `service-de-channel-activate`).
|
|
72
|
+
- **You want a message type outside `WhatsApp` / `Line` / `AppleBusinessChat` / `Facebook` / `Text`.** The dispatcher returns `unsupported-type`.
|
|
73
|
+
- **The prereq hasn't been met (WABA not shared, LINE channel not created, Apple account not registered, SMS number not provisioned).** The per-type insert skill surfaces this and returns. (SMS number provisioning isn't checked at insert — it surfaces later as an activation `provisioning-error`.)
|
|
76
74
|
|
|
77
75
|
## Inputs (from user)
|
|
78
76
|
|
|
79
|
-
`{MESSAGE_TYPE}` (prompted if omitted) and `{ORG_ALIAS}` (optional), plus type-specific fields for WhatsApp, LINE, AppleBusinessChat, Facebook, and Text (SMS) forwarded to the dispatcher. **Load `references/inputs.md` and follow it** for the full field list
|
|
77
|
+
`{MESSAGE_TYPE}` (prompted if omitted) and `{ORG_ALIAS}` (optional), plus type-specific fields for WhatsApp, LINE, AppleBusinessChat, Facebook, and Text (SMS) forwarded to the dispatcher. Optional: `{QUEUE}` (a queue the user named for routing) and `{REQUESTED_SETTINGS}` (auto-responses, keywords, inactivity, consent upgrade — extracted from the request). **Load `references/inputs.md` and follow it** for the full field list, the omitted-type prompt text, and how to extract `{REQUESTED_SETTINGS}`.
|
|
80
78
|
|
|
81
79
|
## Output (to user)
|
|
82
80
|
|
|
@@ -88,7 +86,7 @@ Three top-level outcomes: success, step-annotated failure, and terms-declined. *
|
|
|
88
86
|
|
|
89
87
|
If `{MESSAGE_TYPE}` is omitted, prompt the user (see "Inputs" above). Refuse to proceed without one — there's no sensible default.
|
|
90
88
|
|
|
91
|
-
Once known, determine the **preflight key**
|
|
89
|
+
Once known, determine the **preflight key** used to detect existing state. It's always `MessagingPlatformKey`, but its value varies by type:
|
|
92
90
|
|
|
93
91
|
| `{MESSAGE_TYPE}` | Preflight key value `{PLATFORM_KEY}` | Notes |
|
|
94
92
|
| --- | --- | --- |
|
|
@@ -98,15 +96,15 @@ Once known, determine the **preflight key** — the field we'll filter the `Mess
|
|
|
98
96
|
| `Facebook` | `{PAGE_ID}` | Optional - OAuth → fetch pages → prompt if not provided |
|
|
99
97
|
| `Text` | `{SMS_NUMBER}` | Required upfront (the phone number / short code itself) |
|
|
100
98
|
|
|
101
|
-
|
|
99
|
+
For non-Facebook types, validate the required type-specific inputs now; if missing, prompt or halt rather than letting the dispatcher return `missing-input`.
|
|
102
100
|
|
|
103
|
-
|
|
101
|
+
**Capture `{REQUESTED_SETTINGS}` now:** each auto-response, keyword group, inactivity timeout, or consent upgrade in the request is a separate item (mapping in `references/inputs.md`). Also record `{QUEUE}` if the user named one. Every item must be accounted for in the Stage 5 report — none may be silently dropped.
|
|
104
102
|
|
|
105
103
|
---
|
|
106
104
|
|
|
107
105
|
## Stage 0.5: Enhanced Messaging Terms and Conditions (blocking gate)
|
|
108
106
|
|
|
109
|
-
**Run this before any org query or channel work.**
|
|
107
|
+
**Run this before any org query or channel work.** Do not skip it or accept on the user's behalf. It runs once per invocation, after `{MESSAGE_TYPE}` is known (the disclaimer names the channel).
|
|
110
108
|
|
|
111
109
|
**Render the disclaimer and certification prompt from `references/terms-and-conditions.md` (verbatim, substituting the channel label) — load it and follow it for the exact wording and per-type label/third-party mappings.**
|
|
112
110
|
|
|
@@ -118,15 +116,15 @@ For non-Facebook types, validate that the caller provided the required type-spec
|
|
|
118
116
|
{"ok": false, "kind": "terms-not-accepted",
|
|
119
117
|
"hint": "user did not accept the Enhanced Messaging Terms and Conditions — channel setup cannot proceed. Re-run when ready to accept."}
|
|
120
118
|
```
|
|
121
|
-
- Acceptance is required on **every**
|
|
119
|
+
- Acceptance is required on **every** invocation, including resume runs — it isn't persisted.
|
|
122
120
|
|
|
123
121
|
---
|
|
124
122
|
|
|
125
123
|
## Stage 1: Pre-flight state detection (resume support)
|
|
126
124
|
|
|
127
|
-
**Skip this stage entirely if `MESSAGE_TYPE=Facebook` and `{PAGE_ID}` was not provided
|
|
125
|
+
**Skip this stage entirely if `MESSAGE_TYPE=Facebook` and `{PAGE_ID}` was not provided** — the page isn't known until OAuth, and `service-de-channel-create` runs its own preflight after page selection.
|
|
128
126
|
|
|
129
|
-
For all other cases, query the org to see how far a prior run got. This enables skip-ahead on resume. **Two queries, not a subquery** — the `
|
|
127
|
+
For all other cases, query the org to see how far a prior run got. This enables skip-ahead on resume. **Two queries, not a subquery** — the `MessagingChannelUsages` child relationship is unnameable on some orgs (gotcha #9).
|
|
130
128
|
|
|
131
129
|
```bash
|
|
132
130
|
sf data query --target-org '{ORG_ALIAS}' \
|
|
@@ -149,11 +147,19 @@ Parse the combined result to figure out `{CURRENT_STATE}`:
|
|
|
149
147
|
| No records | `fresh` | Step 1 (insert) |
|
|
150
148
|
| Record exists, `IsActive=false`, `SessionHandlerId=null` and `FallbackQueueId=null` | `inserted-no-routing` | Step 2 (configure routing) |
|
|
151
149
|
| Record exists, `IsActive=false`, routing set | `routed-not-active` | Step 3 (configure consent), then Step 4 (activate) |
|
|
152
|
-
| Record exists, `IsActive=true` | `already-active` |
|
|
150
|
+
| Record exists, `IsActive=true` | `already-active` | If `{REQUESTED_SETTINGS}` is empty: emit the no-op success envelope and return. Otherwise skip insert, route, and activate (add them to `STEPS_SKIPPED`). Run Stage 3.5 if a consent upgrade is requested, else add `consent` to `STEPS_SKIPPED`. Then run Stage 4.5. **Never return a no-op success while requested settings are outstanding.** |
|
|
153
151
|
|
|
154
|
-
Record the existing `{CHANNEL_ID}` and `{MCU_ID}` if present
|
|
152
|
+
Record the existing `{CHANNEL_ID}` and `{MCU_ID}` if present. Initialize `{STEPS_RUN} = []`, `{STEPS_SKIPPED} = []`, `{T0} = Date.now()` before applying the row above.
|
|
155
153
|
|
|
156
|
-
|
|
154
|
+
**AuthProvider preflight (fresh channels, every type except `Text`).** When `CURRENT_STATE=fresh` (or Stage 1 was skipped for Facebook), confirm the org-global `LiveMessageSetup` AuthProvider exists before starting the insert — every non-Text insert needs it, and so does WhatsApp's WABA-manage call:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
sf data query --target-org '{ORG_ALIAS}' \
|
|
158
|
+
--query "SELECT Id FROM AuthProvider WHERE DeveloperName = 'LiveMessageSetup'" \
|
|
159
|
+
--json > /tmp/hcs-authprovider.json
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Zero rows → halt with `failedStep: "insert"`, `failedStepIndex: 1`, `kind: "missing-authprovider"`, and render the missing-AuthProvider message from `references/output-envelopes.md`. It's a known manual prerequisite (gotcha #11); catching it here avoids a wasted OAuth round trip or WABA prompt.
|
|
157
163
|
|
|
158
164
|
---
|
|
159
165
|
|
|
@@ -167,7 +173,7 @@ Otherwise invoke `service-de-channel-create` with:
|
|
|
167
173
|
- All type-specific inputs (forwarded verbatim — dispatcher routes to the right leaf)
|
|
168
174
|
- `{ORG_ALIAS}`
|
|
169
175
|
|
|
170
|
-
|
|
176
|
+
`service-de-channel-create` owns the per-type prereqs (WABA linking, LINE token verification, Apple registration).
|
|
171
177
|
|
|
172
178
|
Handle the envelope:
|
|
173
179
|
|
|
@@ -175,11 +181,10 @@ Handle the envelope:
|
|
|
175
181
|
| --- | --- |
|
|
176
182
|
| `{ok: true, channelId, mcuId, ...}` | Record `{CHANNEL_ID}` and `{MCU_ID}`. Append `"insert"` to `STEPS_RUN`. Continue. |
|
|
177
183
|
| `{ok: false, kind: "partnership-blocked" \| "user-declined" \| "apple-registration-pending" \| "line-prereq-missing"}` | These come from the per-type prereq stage. Pass through as `failedStep: "insert"`, `failedStepIndex: 1`. Return. |
|
|
184
|
+
| `{ok: false, kind: "unified-messaging-required"}` | WhatsApp on a DE Unlimited Access org, which only allows Unified Messaging WhatsApp. Pass through the leaf's `hint` as `failedStep: "insert"` (re-running won't fix it). Return. |
|
|
178
185
|
| `{ok: false, kind: "missing-input" \| "unsupported-type"}` | Should have been caught in Stage 0 — emit failure with `failedStep: "insert"` and a note that the caller's inputs were incomplete. |
|
|
179
186
|
| `{ok: false, kind: <anything else>}` | Emit failure envelope with `failedStep: "insert"`, `failedStepIndex: 1`. Return. |
|
|
180
187
|
|
|
181
|
-
At this point we have `{CHANNEL_ID}` and `{MCU_ID}` regardless of whether step 1 ran or was skipped.
|
|
182
|
-
|
|
183
188
|
**→ Continue immediately to Stage 3 in this same response. DO NOT STOP.**
|
|
184
189
|
|
|
185
190
|
---
|
|
@@ -191,9 +196,10 @@ Skip this stage if `CURRENT_STATE === "routed-not-active"` — routing is alread
|
|
|
191
196
|
Otherwise invoke `service-de-channel-routing-configure`:
|
|
192
197
|
|
|
193
198
|
- `{CHANNEL_ID}` = recorded above
|
|
199
|
+
- `{QUEUE}` = the queue the user named, if any (the leaf validates it and only prompts if it's ineligible)
|
|
194
200
|
- `{ORG_ALIAS}`
|
|
195
201
|
|
|
196
|
-
|
|
202
|
+
Without a `{QUEUE}`, this step **prompts the user** for queue choice. Don't pre-empt the prompts — forward the answers as-is.
|
|
197
203
|
|
|
198
204
|
Handle the envelope:
|
|
199
205
|
|
|
@@ -209,22 +215,24 @@ Handle the envelope:
|
|
|
209
215
|
|
|
210
216
|
## Stage 3.5: Configure consent (before activation)
|
|
211
217
|
|
|
218
|
+
Skip if `already-active` with no consent upgrade requested (Stage 1 logged it skipped). A requested upgrade on a live channel runs here — Stage 4.5 never applies consent.
|
|
219
|
+
|
|
212
220
|
Activation's readiness check requires **consent AND routing** — a fully-routed channel still fails to activate if consent isn't configured. Invoke `service-de-channel-settings-configure`:
|
|
213
221
|
|
|
214
222
|
- `{CHANNEL_ID}` = recorded above
|
|
215
223
|
- `{CONSENT_TYPE}`, `{LANGUAGE}`, and the keyword/prompt values — forward whatever the user supplied; omit what they didn't
|
|
216
224
|
- `{ORG_ALIAS}`
|
|
217
225
|
|
|
218
|
-
|
|
226
|
+
Pass **only the `consent` facet** here — consent upgrades and keywords given with a consent type are resolved in this stage; the metadata facets (auto-responses, keywords, inactivity) wait for Stage 4.5 so a metadata-deploy failure can't block activation.
|
|
227
|
+
|
|
228
|
+
The insert auto-seeds `ImplicitOptIn` plus a default opt-out keyword, so `noop: true` is normal on a fresh channel. The leaf writes only to upgrade (ExplicitOptIn/DoubleOptIn) or override the seeded keywords/prompts, and prompts for missing values.
|
|
219
229
|
|
|
220
230
|
Handle the envelope:
|
|
221
231
|
|
|
222
232
|
| Leaf envelope | Orchestrator action |
|
|
223
233
|
| --- | --- |
|
|
224
234
|
| `{ok: true, ...}` (including `noop: true`) | Append `"consent"` to `STEPS_RUN` (or `STEPS_SKIPPED` if `noop`). Continue. |
|
|
225
|
-
| `{ok: false,
|
|
226
|
-
| `{ok: false, kind: "missing-consent-input", hint}` | The user didn't supply a required keyword/prompt for the chosen ConsentType. Emit failure with `failedStep: "consent"` and pass through the `hint`. Return. |
|
|
227
|
-
| `{ok: false, ...}` (any other kind — `channel-patch-failed`, `keyword-record-failed`, `verify-failed`, or an unrecognized envelope) | Emit failure with `failedStep: "consent"` and pass through the leaf's `kind` and message verbatim. Return. |
|
|
235
|
+
| `{ok: false, ...}` (`missing-consent-input`, `not-enhanced`, `channel-patch-failed`, `keyword-record-failed`, `verify-failed`, or anything else) | Emit failure with `failedStep: "consent"`, passing through the leaf's `kind`, message, and `hint` verbatim. Return. |
|
|
228
236
|
|
|
229
237
|
**→ Continue immediately to Stage 4 in this same response. DO NOT STOP.**
|
|
230
238
|
|
|
@@ -232,49 +240,41 @@ Handle the envelope:
|
|
|
232
240
|
|
|
233
241
|
## Stage 4: Activate (step 4 of 4)
|
|
234
242
|
|
|
235
|
-
|
|
243
|
+
Skip if `CURRENT_STATE === "already-active"` (Stage 1 already added `"activate"` to `STEPS_SKIPPED`).
|
|
236
244
|
|
|
237
245
|
Invoke `service-de-channel-activate`:
|
|
238
246
|
|
|
239
247
|
- `{CHANNEL_ID}` = recorded above
|
|
240
248
|
- `{ORG_ALIAS}`
|
|
241
249
|
|
|
242
|
-
No timeout knobs — activation is a single synchronous PATCH. The leaf does a defensive poll if the server ever returns mid-transition, but the expected path is one round-trip.
|
|
243
|
-
|
|
244
250
|
Handle the envelope:
|
|
245
251
|
|
|
246
252
|
| Leaf envelope | Orchestrator action |
|
|
247
253
|
| --- | --- |
|
|
248
|
-
| `{ok: true, isActive: true, ...}` (including `noop: true`) | Record results. Append `"activate"` to `STEPS_RUN`. Continue to Stage 5. |
|
|
249
|
-
| `{ok: false, kind: "no-routing"
|
|
250
|
-
| `{ok: false, kind: "
|
|
251
|
-
| `{ok: false, kind: "readiness-failed", errorMessage}` | `validateChannelReadinessOnProvisioning` rejected the PATCH — missing consent (STOP/HELP keyword record). Stage 3.5 should have caught this; if it re-appears, re-run `service-de-channel-settings-configure` for the channel. Emit failure and pass through the resume hint. Return. |
|
|
254
|
+
| `{ok: true, isActive: true, ...}` (including `noop: true`) | Record results. Append `"activate"` to `STEPS_RUN`. Continue to Stage 4.5. |
|
|
255
|
+
| `{ok: false, kind: "no-routing" \| "no-mcu" \| "channel-missing"}` | Unexpected after Stages 2–3 (race or permissions). Emit failure with the leaf's envelope. Return. |
|
|
256
|
+
| `{ok: false, kind: "readiness-failed", errorMessage}` | Missing consent (STOP/HELP keyword record) — Stage 3.5 should have caught it. Emit failure; resume hint: re-run `service-de-channel-settings-configure`. Return. |
|
|
252
257
|
| `{ok: false, kind: "provisioning-error", errorReason, errorDetails}` | Third-party side rejected (Meta `/register` failed, etc.). MCU is now in `Error`. Emit failure and pass through `errorReason`/`errorDetails`. Return. |
|
|
258
|
+
| `{ok: false, kind: "verification-declined" \| "verification-request-failed" \| "verification-failed"}` | WhatsApp OTP verification didn't complete. Emit failure, pass through `errorDetails`/`message`; resume hint: re-run to retry verification. Return. |
|
|
253
259
|
| `{ok: false, kind: "auth" \| "transport"}` | REST call failed at the HTTP layer (401 from `sf` auth, 5xx from the instance). Pass through. Return. |
|
|
254
260
|
|
|
261
|
+
**→ Continue immediately to Stage 4.5 in this same response. DO NOT STOP.**
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Stage 4.5: Configure requested settings (non-blocking)
|
|
266
|
+
|
|
267
|
+
Skip if `{REQUESTED_SETTINGS}` has no auto-response, keyword, or inactivity items. Otherwise invoke `service-de-channel-settings-configure` once with the requested facets and the user's values, then classify each item as `configured`, `notApplicable`, or `failed`. **Never fail the run here** — the channel is already live, so failures become Stage 5 warnings. **Load `references/requested-settings.md` and follow it** for what to forward, per-type applicability, the classification table, and the Facebook metadata defect.
|
|
268
|
+
|
|
269
|
+
**→ Continue immediately to Stage 5 in this same response. DO NOT STOP.**
|
|
270
|
+
|
|
255
271
|
---
|
|
256
272
|
|
|
257
273
|
## Stage 5: Final report
|
|
258
274
|
|
|
259
|
-
Build the success envelope
|
|
260
|
-
|
|
261
|
-
```json
|
|
262
|
-
{
|
|
263
|
-
"ok": true,
|
|
264
|
-
"messageType": "{MESSAGE_TYPE}",
|
|
265
|
-
"channelId": "{CHANNEL_ID}",
|
|
266
|
-
"mcuId": "{MCU_ID}",
|
|
267
|
-
"channelName": "{CHANNEL_NAME or inferred}",
|
|
268
|
-
"sessionHandlerId": "{SESSION_HANDLER_ID}",
|
|
269
|
-
"queueName": "{QUEUE_NAME}",
|
|
270
|
-
"isActive": true,
|
|
271
|
-
"stepsRun": [...],
|
|
272
|
-
"stepsSkipped": [...],
|
|
273
|
-
"totalDurationMs": Date.now() - T0
|
|
274
|
-
}
|
|
275
|
-
```
|
|
275
|
+
Build the success envelope (`ok`, `messageType`, `channelId`, `mcuId`, `channelName`, `sessionHandlerId`, `queueName`, `isActive`, `stepsRun`, `stepsSkipped`, `settings`, `totalDurationMs = Date.now() - T0`; exact shape in `references/output-envelopes.md`).
|
|
276
276
|
|
|
277
|
-
Render to the user as:
|
|
277
|
+
Include `settings` only when `{REQUESTED_SETTINGS}` was non-empty. Render to the user as:
|
|
278
278
|
|
|
279
279
|
```text
|
|
280
280
|
Success — {MESSAGE_TYPE} channel '{CHANNEL_NAME}' is live on {ORG_ALIAS}.
|
|
@@ -284,7 +284,7 @@ Success — {MESSAGE_TYPE} channel '{CHANNEL_NAME}' is live on {ORG_ALIAS}.
|
|
|
284
284
|
Total time: {formatted from durationMs}
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
If any step was skipped due to resume, the report should make that visible.
|
|
287
|
+
If any step was skipped due to resume, the report should make that visible. With requested settings, add the "Requested settings" block and the failure warning from `references/requested-settings.md` — every Stage 0 item must land in exactly one bucket.
|
|
288
288
|
|
|
289
289
|
---
|
|
290
290
|
|
|
@@ -294,12 +294,6 @@ If the orchestrator fails mid-way, the envelope always includes `stateSoFar` des
|
|
|
294
294
|
|
|
295
295
|
---
|
|
296
296
|
|
|
297
|
-
## Worked examples
|
|
298
|
-
|
|
299
|
-
For reference traces (fresh WhatsApp run, resume after routing failure, Apple dispatch, unsupported-type rejection), see `references/worked-examples.md`.
|
|
300
|
-
|
|
301
|
-
---
|
|
302
|
-
|
|
303
297
|
## Gotchas
|
|
304
298
|
|
|
305
|
-
|
|
299
|
+
Eleven known gotchas (resume semantics, preflight shape, error classification, dropped settings, the `LiveMessageSetup` prerequisite, and more). **When debugging unexpected behavior, load `references/gotchas.md` and follow it.** For reference traces, see `references/worked-examples.md`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: service-de-headless-channel-configure-gotchas
|
|
3
|
-
description: "Load when debugging unexpected orchestrator behavior — duplicate-key errors, resume/idempotency questions, preflight SOQL shape, or unattended/CI usage of the headless channel setup orchestrator. Covers the
|
|
3
|
+
description: "Load when debugging unexpected orchestrator behavior — duplicate-key errors, resume/idempotency questions, preflight SOQL shape, or unattended/CI usage of the headless channel setup orchestrator. Covers the known gotchas: prereq ownership, MessagingPlatformKey uniqueness, resume-by-reinvocation, CSOT-only support, error-classification boundaries, prompt placement, platform-key mapping, wall-clock duration, the two-query preflight, requested settings that must never be silently dropped, and the LiveMessageSetup AuthProvider prerequisite. DO NOT load during a normal end-to-end run with no errors."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
6
|
related-skills: service-de-headless-channel-configure
|
|
@@ -18,10 +18,14 @@ metadata:
|
|
|
18
18
|
|
|
19
19
|
5. **Don't catch transport/internal errors at this layer.** The leaf skills handle that — by the time a failure reaches this orchestrator, it's already classified into `ok:false, kind:"..."`. Just annotate which step failed.
|
|
20
20
|
|
|
21
|
-
6. **The orchestrator's prompts are limited to Stage 0 (type if omitted) and Stage 3 (routing choices).** Stages 2 and 4 are non-interactive. For fully-unattended mode (CI, cron),
|
|
21
|
+
6. **The orchestrator's own prompts are limited to Stage 0 (type if omitted), Stage 0.5 (T&C), and Stage 3 (routing choices).** Stages 2 and 4 are non-interactive apart from the per-type prereq prompts inside the insert. For fully-unattended mode (CI, cron), supply `{MESSAGE_TYPE}` and `{QUEUE}` (an eligible queue — Stage 3 then doesn't prompt), or use a channel whose routing is already configured so Stage 3 no-ops. The T&C gate can't be skipped.
|
|
22
22
|
|
|
23
23
|
7. **Channel-agnostic preflight keys off `{PLATFORM_KEY}`, not the type-specific id name.** The SOQL filter is always `MessagingPlatformKey = '{PLATFORM_KEY}'`. Map the per-type input to `{PLATFORM_KEY}` once at Stage 0 rather than branching the SOQL — keeps Stage 1 one query, not three.
|
|
24
24
|
|
|
25
25
|
8. **Total duration is wall-clock, not sum-of-steps.** If the user pauses mid-prompt in Stage 0 or Stage 3, `totalDurationMs` includes think time. For perf analysis, care about the per-leaf `durationMs` values.
|
|
26
26
|
|
|
27
27
|
9. **Preflight uses two queries, not a subquery.** The `MessagingChannel` → `MessagingChannelUsage` child relationship is `MessagingChannelUsages` on some orgs (`test1`) but unnameable on others (`wadtesting` has `relationshipName: None` in `sf sobject describe`). Subqueries fail with `INVALID_TYPE` on the latter. FK-keyed second query (`MessagingChannelUsage WHERE MessagingChannelId = '{CHANNEL_ID}'`) works everywhere. Cost is one extra SOQL per preflight — negligible.
|
|
28
|
+
|
|
29
|
+
10. **Requested settings must never be silently dropped.** Validation (Round 5, release 264) found the orchestrator reporting success while ignoring auto-responses and an idle timeout that were in the prompt — on a fresh channel *and* on an `already-active` one, where Stage 1 returned a no-op. Stage 0 now records every requested setting, the `already-active` path jumps to Stage 4.5 instead of returning, and Stage 5 accounts for each item as configured / not applicable / failed. Settings run **after** activation and never fail the run: auto-responses, keywords, and inactivity aren't part of the activation-readiness check, and a metadata-deploy failure (e.g. the Facebook defect in the settings leaf's gotchas) shouldn't stop a channel that would otherwise go live.
|
|
30
|
+
|
|
31
|
+
11. **The `LiveMessageSetup` AuthProvider only exists after the Messaging Setup wizard has run once.** `enableLiveMessage=true` alone doesn't create it (verified on a 264 org with messaging on and 0 AuthProviders). Every non-Text insert needs its Id, so Stage 1 checks for it up front and halts with an actionable message instead of failing mid-insert. Running the wizard is a manual UI step — no skill can do it.
|
|
@@ -47,3 +47,22 @@ metadata:
|
|
|
47
47
|
- `{ISO_COUNTRY_CODE}` — optional, default `US`. Pass the real country if the number is non-US.
|
|
48
48
|
|
|
49
49
|
The orchestrator validates type-specific inputs upfront; missing ones raise a prompt before we burn a Stage 0 SOQL.
|
|
50
|
+
|
|
51
|
+
## Optional, any type
|
|
52
|
+
|
|
53
|
+
- `{QUEUE}` — a routing queue the user named (label, DeveloperName, or `00G` Id). Forwarded to `service-de-channel-routing-configure`, which validates it instead of prompting.
|
|
54
|
+
- `{REQUESTED_SETTINGS}` — not a field the user fills in; extract it from the request in Stage 0. One item per thing asked for:
|
|
55
|
+
|
|
56
|
+
| User says (examples) | Item | Facet / leaf input |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| "initial response: 'Thanks for reaching out…'" | `auto-response:InitialResponse` | `auto-responses`, `TextResponse` with that text |
|
|
59
|
+
| "when an agent engages: '…'" | `auto-response:AgentEngagedResponse` | `auto-responses` |
|
|
60
|
+
| "when the customer goes idle, after 10 minutes: '…'" | `auto-response:EndUserIdleResponse` | `auto-responses`, `responseTimeoutInMins=10` |
|
|
61
|
+
| "when the conversation ends / customer stopped responding: '…'" | `auto-response:AgentEndEngagementResponse` / `auto-response:EndUserInactiveResponse` | `auto-responses` |
|
|
62
|
+
| "implicit opt-in consent with STOP, END as opt-out keywords" (keywords given with a consent type) | none — these are consent inputs, not a separate item | Stage 3.5: forwarded as the language-keyword record's `OptOutKeywords` / `OptInKeywords` |
|
|
63
|
+
| "a Help keyword 'help'", "add OptOut keywords STOP, END" (no consent type) | `keywords:<Help\|OptOut\|OptIn>:<language>` | `keywords` |
|
|
64
|
+
| "session idle timeout 15 minutes", "end inactive sessions after 20" | `inactivity:endUserIdleTimeOut` / `inactivity:endInactiveSessionTimeOut` | `inactivity` (MIAW-only → `notApplicable` here) |
|
|
65
|
+
| "reset the timer when an agent replies" | `inactivity:isAgentMessageResetInactivityEnabled` | `inactivity` (Apple/Facebook only) |
|
|
66
|
+
| "use explicit / double opt-in" | `consent:<ConsentType>` | Stage 3.5, not Stage 4.5 |
|
|
67
|
+
|
|
68
|
+
Response text that references an existing messaging component by name (`ConversationMessageDefinition`) uses the `MessageDefinition` shape instead of `TextResponse` — the settings leaf handles both. Don't create messaging components from this orchestrator.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: service-de-headless-channel-configure-output-envelopes
|
|
3
|
-
description: "Load when you need the canonical JSON envelope shapes this orchestrator emits — success, step-annotated failure,
|
|
3
|
+
description: "Load when you need the canonical JSON envelope shapes this orchestrator emits — success (including requested-settings results), step-annotated failure, terms-declined, and missing-AuthProvider — before wiring error handling or parsing a leaf skill's response. Covers the exact field names (channelId, mcuId, stepsRun, failedStep, resumeHint, etc.) for each of the three top-level outcomes. DO NOT load for the per-stage envelope-handling tables in Stage 2-4, which already reference these shapes."
|
|
4
4
|
metadata:
|
|
5
5
|
version: "1.0"
|
|
6
6
|
related-skills: service-de-headless-channel-configure
|
|
@@ -17,6 +17,20 @@ metadata:
|
|
|
17
17
|
"totalDurationMs": 12345}
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
**Success with requested settings** (`settings` present only when the request asked for any):
|
|
21
|
+
```json
|
|
22
|
+
{"ok": true, "messageType": "Facebook", "channelId": "0Mj...", "isActive": true,
|
|
23
|
+
"stepsRun": ["insert","route","activate"], "stepsSkipped": ["consent"],
|
|
24
|
+
"settings": {
|
|
25
|
+
"configured": ["auto-response:InitialResponse", "auto-response:AgentEngagedResponse"],
|
|
26
|
+
"notApplicable": [{"item": "inactivity:endUserIdleTimeOut", "reason": "endUserIdleTimeOut is MIAW-only; not supported on Facebook channels"}],
|
|
27
|
+
"failed": [{"item": "auto-response:EndUserIdleResponse", "kind": "metadata-deploy-failed", "message": "..."}]},
|
|
28
|
+
"warnings": ["channel is live, but 1 requested setting was not applied"],
|
|
29
|
+
"totalDurationMs": 12345}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`ok` stays `true` when only settings failed — the channel is live. `"settings"` is in `stepsRun` only if at least one item was configured. Every item extracted in Stage 0 lands in exactly one of the three buckets.
|
|
33
|
+
|
|
20
34
|
On a typical fresh run `consent` lands in `stepsSkipped`, not `stepsRun`: the Connect insert
|
|
21
35
|
auto-seeds `ConsentType=ImplicitOptIn` + a default opt-out keyword, so the consent leaf no-ops
|
|
22
36
|
(`noop: true`) and the orchestrator appends `"consent"` to `stepsSkipped`. It appears in `stepsRun`
|
|
@@ -51,3 +65,11 @@ before Stage 3.5) means unconfigured.
|
|
|
51
65
|
{"ok": false, "kind": "terms-not-accepted",
|
|
52
66
|
"hint": "user did not accept the Enhanced Messaging Terms and Conditions — channel setup cannot proceed. Re-run when ready to accept."}
|
|
53
67
|
```
|
|
68
|
+
|
|
69
|
+
**Missing AuthProvider** (Stage 1 preflight — `failedStep: "insert"`, `kind: "missing-authprovider"`). Render:
|
|
70
|
+
```text
|
|
71
|
+
Error: This org isn't ready for {CHANNEL_LABEL} channels yet — the 'LiveMessageSetup' auth provider
|
|
72
|
+
doesn't exist. Turning on Messaging (enableLiveMessage) doesn't create it; only the Messaging
|
|
73
|
+
Setup wizard does, and that's a one-time manual step no skill can do.
|
|
74
|
+
Fix: run the Messaging Setup wizard once in Setup → Messaging Settings, then re-run this skill.
|
|
75
|
+
```
|
|
@@ -18,6 +18,7 @@ Error: Step {N} of 4 ({stepName}) failed: {leafEnvelope.kind} — {leafEnvelope.
|
|
|
18
18
|
- Routing configured: {sessionHandlerId ? "yes — " + queueName : "no"}
|
|
19
19
|
- Consent configured: {(stepsRun.includes("consent") || (stepsSkipped || []).includes("consent")) ? "yes" : "no"}
|
|
20
20
|
- Activation: {isActive ? "yes" : "no"}
|
|
21
|
+
- Requested settings: not attempted — {each REQUESTED_SETTINGS item} (only when any were requested)
|
|
21
22
|
|
|
22
23
|
To retry: fix the issue above, then re-run this skill with the same
|
|
23
24
|
inputs. The orchestrator will skip completed steps.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: service-de-headless-channel-configure-requested-settings
|
|
3
|
+
description: "Load when running Stage 4.5 of the headless channel setup orchestrator (the request asked for auto-responses, messaging keywords, or session inactivity) or rendering those settings in the Stage 5 report. Covers what to forward to service-de-channel-settings-configure, per-type applicability, the configured / notApplicable / failed classification, the known Facebook metadata defect, and the report block. DO NOT load for the consent facet, which runs before activation in Stage 3.5."
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0"
|
|
6
|
+
related-skills: service-de-headless-channel-configure
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Requested settings (Stage 4.5 + Stage 5)
|
|
10
|
+
|
|
11
|
+
## Invoke the settings leaf once
|
|
12
|
+
|
|
13
|
+
Invoke `service-de-channel-settings-configure` **once**, with:
|
|
14
|
+
|
|
15
|
+
- `{CHANNEL_ID}`, `{ORG_ALIAS}`
|
|
16
|
+
- `{FACETS}` = the requested subset of `auto-responses`, `keywords`, `inactivity`
|
|
17
|
+
- the values from the request (response text per `<type>`, `responseTimeoutInMins`, keyword lists,
|
|
18
|
+
timeout minutes). Forward them, and don't invent defaults for values the user didn't give.
|
|
19
|
+
|
|
20
|
+
The leaf enforces per-type applicability. For the types this orchestrator creates, **the idle and
|
|
21
|
+
inactive-session timeouts are MIAW-only**, so they never apply here. Only
|
|
22
|
+
`isAgentMessageResetInactivityEnabled` applies, and only on Apple and Facebook. Expect
|
|
23
|
+
`facet-not-applicable` for the rest and report it. That's correct behavior, not a failure.
|
|
24
|
+
|
|
25
|
+
## Classify each requested item
|
|
26
|
+
|
|
27
|
+
| Leaf outcome for the item | Bucket |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| In `facetsConfigured` and verified, or `noop: true` | `configured` |
|
|
30
|
+
| `facet-not-applicable` | `notApplicable` (with the leaf's `hint`) |
|
|
31
|
+
| `metadata-deploy-failed` / `verify-failed` / any other `ok:false` | `failed` (with the leaf's `kind` + `message` verbatim) |
|
|
32
|
+
|
|
33
|
+
**Never fail the run here.** The channel is already live. Append `"settings"` to `STEPS_RUN` if
|
|
34
|
+
anything was configured, and carry failures to Stage 5 as warnings.
|
|
35
|
+
|
|
36
|
+
**Facebook:** Facebook channels currently reject real metadata changes with an opaque numeric error
|
|
37
|
+
like `(-462367322)` (see `service-de-channel-settings-configure` `references/gotchas.md` #16). Report
|
|
38
|
+
it as `failed` with the leaf's hint, and don't retry.
|
|
39
|
+
|
|
40
|
+
## Stage 5 report block
|
|
41
|
+
|
|
42
|
+
Add `"settings": {"configured": [...], "notApplicable": [...], "failed": [...]}` to the success
|
|
43
|
+
envelope (shape in `references/output-envelopes.md`). Below the standard success lines, render:
|
|
44
|
+
|
|
45
|
+
```text
|
|
46
|
+
Requested settings:
|
|
47
|
+
- Configured: {each configured item}
|
|
48
|
+
- Not applicable to {MESSAGE_TYPE}: {each item} — {reason}
|
|
49
|
+
- Failed: {each item} — {kind}: {message}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If any item is `failed`, lead the report with
|
|
53
|
+
`Warning: channel is live, but {N} requested setting(s) were not applied` instead of an unqualified
|
|
54
|
+
`Success`, and add the same text to the envelope's `warnings`. **Every item captured in Stage 0 must
|
|
55
|
+
appear in exactly one bucket.** Check the count before rendering.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Worked examples: `service-de-headless-channel-configure`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Six reference traces: a fresh WhatsApp run (the most common path), a resume after a mid-flow failure, an Apple Business Chat dispatch (to show type-agnostic flow), an unsupported-type rejection, a Facebook run with requested settings, and a settings-only run on an already-active channel. Read these when you need to see the exact envelope shapes the orchestrator emits at each outcome.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -106,3 +106,37 @@ User invokes without specifying a type, gets the prompt, then types `wechat`.
|
|
|
106
106
|
Alternatively, if the orchestrator forwards `WeChat` directly to the dispatcher without validating upfront, the dispatcher (`service-de-channel-create`) emits the same `unsupported-type` envelope and the orchestrator passes it through with `failedStep: "insert"`.
|
|
107
107
|
|
|
108
108
|
Either way the user gets a clear "this type isn't supported" message rather than a confusing mid-flow error.
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Worked example: Facebook with auto-responses and an idle timeout
|
|
113
|
+
|
|
114
|
+
Prompt: *"Set up my Facebook Messenger channel for page 103663378691289, route it to Default_Queue. Also add auto-responses: 'Thanks for reaching out!' initially, 'You're now connected with an agent.' when an agent engages, and 'Are you still there?' when the customer goes idle after 10 minutes — and set the session idle timeout to 15 minutes."*
|
|
115
|
+
|
|
116
|
+
**Stage 0**: `MESSAGE_TYPE=Facebook`, `PAGE_ID=103663378691289`, `QUEUE=Default_Queue`. `{REQUESTED_SETTINGS}` = `auto-response:InitialResponse`, `auto-response:AgentEngagedResponse`, `auto-response:EndUserIdleResponse` (`responseTimeoutInMins=10`), `inactivity:endUserIdleTimeOut` (15).
|
|
117
|
+
|
|
118
|
+
**Stages 0.5–4**: T&C accepted; preflight `fresh`; AuthProvider present; insert, route (to the named queue, no prompt), consent no-op, activate. `STEPS_RUN=["insert","route","activate"]`, `STEPS_SKIPPED=["consent"]`.
|
|
119
|
+
|
|
120
|
+
**Stage 4.5**: one `service-de-channel-settings-configure` call with `FACETS=[auto-responses, inactivity]`. The leaf returns `facet-not-applicable` for `endUserIdleTimeOut` (MIAW-only), and attempts the three auto-responses in one metadata deploy. If the deploy hits the known Facebook metadata-update defect, all three land in `failed` with the leaf's `metadata-deploy-failed` message.
|
|
121
|
+
|
|
122
|
+
**Stage 5**:
|
|
123
|
+
```text
|
|
124
|
+
Warning: channel is live, but 3 requested setting(s) were not applied.
|
|
125
|
+
Channel ID: 0Mj... Routed to: Default_Queue (00G...)
|
|
126
|
+
Steps: ran insert, route, activate, skipped consent
|
|
127
|
+
|
|
128
|
+
Requested settings:
|
|
129
|
+
- Not applicable to Facebook: session idle timeout (15 min) — endUserIdleTimeOut is MIAW-only
|
|
130
|
+
- Failed: initial / agent-engaged / idle auto-responses — metadata-deploy-failed: <server message>.
|
|
131
|
+
Configure them in Setup → Messaging Settings → this channel for now.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Every requested item shows up — nothing is silently dropped.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Worked example: settings on an already-active channel
|
|
139
|
+
|
|
140
|
+
Prompt: *"Fully configure my existing Facebook channel for page 103663378691289, including the initial auto-response."*
|
|
141
|
+
|
|
142
|
+
**Stage 1**: preflight finds the channel with `IsActive=true` → `already-active`. `{REQUESTED_SETTINGS}` is non-empty, so instead of returning a no-op, skip Stages 2–4 (`STEPS_SKIPPED=["insert","route","consent","activate"]`) and run **Stage 4.5** for the auto-response. Stage 5 reports the item as configured / not applicable / failed. With an empty `{REQUESTED_SETTINGS}`, the same preflight result returns the plain no-op success envelope.
|