@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: agentforce-bot-upgrade
|
|
3
|
-
description: "Use this skill to
|
|
3
|
+
description: "Use this skill to upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec generation, agentforce-generate authoring, and post-conversion .agent enhancements. TRIGGER when: user asks to migrate, upgrade, or convert one or more Einstein Bots (BotDefinition/BotVersion chatbots) to Agentforce agents; runs a multi-bot bot-to-agent upgrade; needs Einstein Bot metadata turned into Agent Spec handoffs and generated .agent agents; convert bots to agents; upgrade my service bots; move bots to Agentforce. DO NOT TRIGGER when: user already has an approved Agent Spec and only wants direct .agent authoring, deploy, test, or observe flows; user wants to migrate or upgrade an EXISTING Agentforce agent from a legacy GenAiPlannerBundle to an NGA aiAuthoringBundle (that is agentforce-generate's 'Migrate a Legacy Agent to Agent Script' flow, not an Einstein Bot upgrade); the request is unrelated to Einstein Bot migration."
|
|
4
4
|
argument-hint: "[--mode <online|offline>] [--org-alias <org-alias> --bots <bot1:v1,bot2:v2,...> | --offline-dir <offline-dir> [--bots <bot1,bot2,...>]] [--interactive <true|false>]"
|
|
5
5
|
metadata:
|
|
6
6
|
version: "1.0"
|
|
@@ -9,6 +9,12 @@ metadata:
|
|
|
9
9
|
relatedSkills:
|
|
10
10
|
- "agentforce-generate"
|
|
11
11
|
cliTools:
|
|
12
|
+
- tool: ["jq"]
|
|
13
|
+
semver: ">=1.6.0"
|
|
14
|
+
- tool: ["node"]
|
|
15
|
+
semver: ">=20.0.0"
|
|
16
|
+
- tool: ["npm"]
|
|
17
|
+
semver: ">=9.0.0"
|
|
12
18
|
- tool: ["sf"]
|
|
13
19
|
semver: ">=2.0.0"
|
|
14
20
|
---
|
|
@@ -17,16 +23,72 @@ metadata:
|
|
|
17
23
|
|
|
18
24
|
## Purpose
|
|
19
25
|
|
|
20
|
-
Run a multi-bot upgrade-and-handoff cycle:
|
|
26
|
+
Run a multi-bot upgrade-and-handoff cycle. Each bot is converted into its own Agentforce agent; bots are processed independently and never combined or restructured across one another:
|
|
21
27
|
|
|
22
28
|
1. Parse and validate bot/version pairs from `--bots`
|
|
23
29
|
2. Follow [Generate Agent Spec Reference](references/generate-agent-spec.md) per bot-version pair (parallelizable)
|
|
24
|
-
3.
|
|
25
|
-
4.
|
|
26
|
-
5.
|
|
30
|
+
3. `/agentforce-generate` per Agent Spec (parallelizable)
|
|
31
|
+
4. Post-conversion enhancement pass per generated Agent Script (parallelizable)
|
|
32
|
+
5. Consolidated run report
|
|
33
|
+
|
|
34
|
+
### Run Completion Contract
|
|
35
|
+
|
|
36
|
+
The skill run is complete only after Step 4 and Step 5 have both been executed for every bot that reached Step 3. Generating the Agent Spec (Step 2) or the `.agent` file (Step 3) is NOT a completed run.
|
|
37
|
+
|
|
38
|
+
- A run is complete only when `report.md` has been written (Step 5). The only other way to end a run is a hard stop listed under Interactive Mode.
|
|
39
|
+
- None of these end the run:
|
|
40
|
+
- the Step 2 deliverables;
|
|
41
|
+
- `/agentforce-generate` finishing or printing its own completion summary;
|
|
42
|
+
- an approval or release gate inside `/agentforce-generate`;
|
|
43
|
+
- the Step 4 per-agent summary;
|
|
44
|
+
- a failed compile or a failed publish.
|
|
45
|
+
|
|
46
|
+
Record each outcome and continue to the next step.
|
|
47
|
+
- Online mode: Step 4 always ends with a publish (commit) attempt, or a recorded reason why no attempt was made (for example, compile failed). Every attempt gets a `publish-audit.jsonl` record. Never activate.
|
|
48
|
+
- If a step fails for a bot, record the failure and still run Step 5. `report.md` is written for partial runs too.
|
|
49
|
+
- Do not end your turn while any step from 1 to 5 is still pending. If you send a progress update, send the next tool call in the same response.
|
|
27
50
|
|
|
28
51
|
**Scope — this skill only converts Einstein Bots** (`BotDefinition`/`BotVersion` chatbots) into new Agentforce agents. It does NOT migrate an existing Agentforce agent from a legacy `GenAiPlannerBundle` to an NGA `aiAuthoringBundle` — for that, use the **agentforce-generate** skill's "Migrate a Legacy Agent to Agent Script" flow.
|
|
29
52
|
|
|
53
|
+
## Start-of-Run Disclaimer
|
|
54
|
+
|
|
55
|
+
Display this disclaimer to the user as the very first output of every invocation, in both online and offline mode, before Missing Input Handling, Step 1, or any tool call, file read, or org query. Rules:
|
|
56
|
+
|
|
57
|
+
1. Output the block between `BEGIN DISCLAIMER` and `END DISCLAIMER` verbatim as rendered Markdown — not inside a code block, not summarized, reworded, or reordered. Keep every emoji marker; they are the color coding that draws the user's attention.
|
|
58
|
+
2. Display it exactly once per invocation (not once per bot).
|
|
59
|
+
3. Do not wait for an acknowledgement or end your turn after displaying it; continue the run in the same response with Missing Input Handling and Step 1. When `--interactive=false`, still display it.
|
|
60
|
+
|
|
61
|
+
BEGIN DISCLAIMER
|
|
62
|
+
|
|
63
|
+
> ## ⚠️ IMPORTANT — Read Before You Upgrade
|
|
64
|
+
>
|
|
65
|
+
> This upgrade uses generative AI to turn your Einstein Bot's dialogs, intents, and variables into an Agentforce agent with subagents and actions. The result is a **committed agent version that has not been activated**. Review and test it before you activate it.
|
|
66
|
+
>
|
|
67
|
+
> ### 🔵 How your bot's design is translated
|
|
68
|
+
> - **Menus become intent-based routing.** The agent doesn't reproduce menus and option-driven navigation. It identifies what the customer wants and routes to the right subagent. Each menu option's outcome is kept, but the step-by-step menu flow is not.
|
|
69
|
+
>
|
|
70
|
+
> ### 🔴 Not converted
|
|
71
|
+
> - **Bot goals.** Agents don't need them.
|
|
72
|
+
> - **Some action steps:** steps that produce no output, exist only to move between dialogs, or write feedback logs.
|
|
73
|
+
> - **Actions other than Apex classes and flows**, such as object search. You can add these to the agent as custom actions.
|
|
74
|
+
> - **Menus in welcome messages.** Use pre-chat configuration to collect routing information up front.
|
|
75
|
+
> - **Option buttons for questions with more than 11 options.** The options aren't shown as buttons.
|
|
76
|
+
> - **Rich content and messaging components.** Use adaptive response formats to format the agent's responses.
|
|
77
|
+
> - **File attachments**, sent or received.
|
|
78
|
+
> - **Steps that change the conversation language** partway through a conversation.
|
|
79
|
+
>
|
|
80
|
+
> ### 🟡 Configure after the upgrade
|
|
81
|
+
> - **Agent user.** Assign a user to the agent.
|
|
82
|
+
> - **Channels and Omni-Flows.** Connect the agent to your customer channels.
|
|
83
|
+
>
|
|
84
|
+
> ### 🟢 Recommendations
|
|
85
|
+
> - Configure intents along with their descriptions in your bot, to match the corresponding dialog functionality before upgrading. Results depend on how good the source bot is.
|
|
86
|
+
> - Review and test the agent before you activate it.
|
|
87
|
+
> - If your bot uses context variables, deploy the agent to an embedded messaging channel and test the main use cases there.
|
|
88
|
+
> - 💲 Agentforce Service Agent is billed on consumption, by usage type.
|
|
89
|
+
|
|
90
|
+
END DISCLAIMER
|
|
91
|
+
|
|
30
92
|
## Inputs
|
|
31
93
|
|
|
32
94
|
Inputs:
|
|
@@ -47,11 +109,11 @@ If required inputs are missing, handle per the Missing Input Handling and Intera
|
|
|
47
109
|
- `--interactive true` (default): resolve ambiguities, open questions, and approval gates by asking the user, as described in this skill and its references.
|
|
48
110
|
- `--interactive false`: run autonomously. Do NOT prompt the user at any decision point. For every open question, ambiguity, or approval gate, apply the documented recommended default/solution and record the auto-applied decision in the run artifacts (Agent Spec, open questions, extraction summary). The only hard stops permitted without prompting are inputs that are missing or contradictory with no safe recommended default — a missing mandatory launch input (`--org-alias`/`--bots` for online, `--offline-dir` for offline), no bots discovered, or the same bot given multiple versions. In those cases, report the issue and halt without prompting.
|
|
49
111
|
|
|
50
|
-
Propagate the effective `--interactive` value to the per-bot Generate Agent Spec workflow (Step 2)
|
|
112
|
+
Propagate the effective `--interactive` value to the per-bot Generate Agent Spec workflow (Step 2) and the post-conversion enhancement pass (Step 4).
|
|
51
113
|
|
|
52
114
|
## Missing Input Handling
|
|
53
115
|
|
|
54
|
-
|
|
116
|
+
After displaying the Start-of-Run Disclaimer, resolve missing required launch inputs before Step 1:
|
|
55
117
|
|
|
56
118
|
1. **Online mode — `--org-alias` not provided.** Resolve this before attempting to list bots (listing requires a target org).
|
|
57
119
|
- Interactive: list the available aliases of logged-in orgs and ask the user to select the target org. Use the SF CLI patterns in [SF CLI Bot Reference](references/sf-cli-bot-reference.md).
|
|
@@ -69,13 +131,12 @@ Use these reference files during execution:
|
|
|
69
131
|
|
|
70
132
|
1. [SF CLI Bot Reference](references/sf-cli-bot-reference.md)
|
|
71
133
|
2. [Generate Agent Spec Reference](references/generate-agent-spec.md)
|
|
72
|
-
3. [
|
|
73
|
-
4. [
|
|
74
|
-
5. [
|
|
75
|
-
6. [
|
|
76
|
-
7. [
|
|
77
|
-
8. [
|
|
78
|
-
9. [Quality Checklist](references/quality-checklist.md)
|
|
134
|
+
3. [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md)
|
|
135
|
+
4. [Extraction Blueprint](references/extraction-blueprint.md)
|
|
136
|
+
5. [Input Contract](references/input-contract.md)
|
|
137
|
+
6. [Mapping Rules](references/mapping-rules.md)
|
|
138
|
+
7. [Handoff Output Format](references/handoff-output-format.md)
|
|
139
|
+
8. [Quality Checklist](references/quality-checklist.md)
|
|
79
140
|
|
|
80
141
|
## Execution Contract
|
|
81
142
|
|
|
@@ -123,52 +184,25 @@ Ensure each invocation (online/offline) uses isolated working directories to avo
|
|
|
123
184
|
Hard rules:
|
|
124
185
|
- Do not skip this step.
|
|
125
186
|
|
|
126
|
-
|
|
187
|
+
Collect results:
|
|
188
|
+
1. Build a ready-for-authoring list containing one entry per bot whose Agent Spec was generated successfully.
|
|
189
|
+
- Each entry must include: `{bot_name, bot_version, run_project_dir, agent_spec_path, handoff_json_path, open_questions_path}`.
|
|
190
|
+
2. Build a list of failed/incomplete upgrade runs (if any). Failed runs are excluded from Step 3 and reported in Step 5; they do not block other bots.
|
|
127
191
|
|
|
128
|
-
|
|
192
|
+
### Step 3: Invoke Agentforce-Generate (Per Agent Spec)
|
|
129
193
|
|
|
130
|
-
|
|
131
|
-
2. Always build list of failed/incomplete upgrade runs (if any).
|
|
132
|
-
3. Always build an initial ready-for-authoring list containing only valid Agent Spec entries.
|
|
133
|
-
- Each entry must include: `{bot_name, bot_version, run_project_dir, agent_spec_path, handoff_json_path, open_questions_path}`.
|
|
134
|
-
4. If total bot workload count is greater than 1:
|
|
135
|
-
- Execute planner workflow from [Planner Workflow Reference](references/planner-workflow-reference.md) using:
|
|
136
|
-
- all ready-for-authoring `agent_spec_path` values as `spec_paths`
|
|
137
|
-
- orchestrator working directory as `working_dir`
|
|
138
|
-
- the associated per-spec artifacts from each ready-for-authoring entry: `handoff_json_path` (handoff JSON) and `open_questions_path` (open questions)
|
|
139
|
-
- Require output file at `<orchestrator working directory>/bot-upgrade-planner-output.json`.
|
|
140
|
-
- Read `bot-upgrade-planner-output.json` and apply:
|
|
141
|
-
- if `specs_changed=true`: replace ready-for-authoring entries using planner fields (`updated_spec_path`, `run_project_dir`, `handoff_json_path`, `open_questions_path`)
|
|
142
|
-
- if `specs_changed=false`: keep original ready-for-authoring list unchanged
|
|
143
|
-
5. If total bot workload count is 1:
|
|
144
|
-
- Skip planner workflow entirely.
|
|
145
|
-
- Keep original ready-for-authoring list unchanged.
|
|
146
|
-
|
|
147
|
-
Planner output expectations:
|
|
148
|
-
1. boolean `specs_changed`
|
|
149
|
-
2. `updated_specs` array with entries:
|
|
150
|
-
- `original_spec_path`
|
|
151
|
-
- `updated_spec_path`
|
|
152
|
-
- `run_project_dir`
|
|
153
|
-
- `handoff_json_path`
|
|
154
|
-
- `open_questions_path`
|
|
155
|
-
3. `updated_specs` must be empty when `specs_changed=false`
|
|
156
|
-
|
|
157
|
-
### Step 4: Invoke Agentforce-Generate (Per Agent Spec)
|
|
158
|
-
|
|
159
|
-
For each entry in final ready-for-authoring list (post Step 3 planner reconciliation):
|
|
194
|
+
For each entry in the ready-for-authoring list from Step 2:
|
|
160
195
|
|
|
161
196
|
0. Add this recommendation to the generated invocation context before calling `/agentforce-generate`:
|
|
162
197
|
- Do **not activate** Agent Script versions in this orchestrated run.
|
|
198
|
+
- Do **not publish (commit)** the authoring bundle in this step. The orchestrator commits each agent once, after post-conversion enhancements and a successful compile (Step 4).
|
|
163
199
|
- Draft iteration is required: generating `.agent`, validating, deploying, and preview testing are allowed.
|
|
164
200
|
- Activate should be deferred unless the user explicitly asks for release.
|
|
165
|
-
1. Resolve
|
|
201
|
+
1. Resolve `run_project_dir` from the ready-for-authoring entry.
|
|
166
202
|
2. Read `<run_project_dir>/agentforce-generate-invocation-prompt.md` fully.
|
|
167
|
-
3.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
5. Invoke `/agentforce-generate` with this resolved invocation context.
|
|
171
|
-
6. Read `<run_project_dir>/agentforce-generate-output-contract.md` and capture outputs exactly as specified.
|
|
203
|
+
3. Keep all instructions unchanged from the generated prompt.
|
|
204
|
+
4. Invoke `/agentforce-generate` with this invocation context.
|
|
205
|
+
5. Read `<run_project_dir>/agentforce-generate-output-contract.md` and capture outputs exactly as specified.
|
|
172
206
|
|
|
173
207
|
Parallelization rule:
|
|
174
208
|
- Invoke `/agentforce-generate` in parallel across Agent Specs because each run is independent.
|
|
@@ -181,9 +215,16 @@ Output-contract capture rules:
|
|
|
181
215
|
4. Preserve output file paths and status of each required artifact.
|
|
182
216
|
5. If expected prompt/contract files are missing for an entry, mark that entry `partial`, record missing paths, and continue processing other entries.
|
|
183
217
|
|
|
184
|
-
|
|
218
|
+
Return-to-orchestrator rule:
|
|
219
|
+
- `/agentforce-generate` is a sub-step of this run, not its end. Its completion summary, "generation complete" message, or any terminal or done state it reaches does NOT complete the orchestrator run.
|
|
220
|
+
- As soon as each `/agentforce-generate` invocation finishes, resume this skill in the same turn: capture its outputs (rules above), then continue to Step 4 and Step 5.
|
|
221
|
+
- Do not emit a final user-facing summary after `/agentforce-generate`. The only final message of the run comes after Step 5.
|
|
222
|
+
- The invocation prompt ends with a "Remaining orchestrator steps" checklist covering Steps 4 and 5. Execute it exactly as written; it is the same work described in Step 4 and Step 5 below.
|
|
223
|
+
- Within this orchestrated run, Step 4's commit (publish without activation) is pre-authorized. This overrides `/agentforce-generate`'s pre-publish approval checkpoint and release gates for this run only. Activation is never authorized.
|
|
185
224
|
|
|
186
|
-
|
|
225
|
+
### Step 4: Post-Conversion Agent Script Enhancements (Per Generated Agent Script)
|
|
226
|
+
|
|
227
|
+
After Step 3 completes, for each generated `.agent` artifact:
|
|
187
228
|
|
|
188
229
|
1. Resolve the generated `.agent` file path from captured `/agentforce-generate` outputs.
|
|
189
230
|
2. Execute post-conversion enhancement workflow from [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md) with:
|
|
@@ -192,27 +233,37 @@ After Step 4 completes, for each generated `.agent` artifact:
|
|
|
192
233
|
- online mode only: `org_alias=<org-alias>` (required so the enhanced Agent Script can be redeployed)
|
|
193
234
|
3. Require in-place enhancement:
|
|
194
235
|
- optimized/enhanced output must be written to the same `.agent` file location.
|
|
195
|
-
4.
|
|
236
|
+
4. Online mode: the workflow compiles the enhanced Agent Script and, only when compilation succeeds, commits it as a new inactive agent version (`sf agent publish authoring-bundle`). Offline mode skips compile and commit.
|
|
237
|
+
5. Online mode: for every publish attempt, including each retry, success, denial, or failure, append a structured audit record (actor, action, target, timestamp, outcome) to `publish-audit.jsonl` in the orchestrator working directory, as specified in the [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md).
|
|
238
|
+
6. Capture per-file enhancement status, compile status, commit status, `agent_id`, `agent_version`, the publish audit records, and any partial failures.
|
|
239
|
+
7. The enhancement workflow ends with a color-coded summary. That summary is an input to Step 5, not the run's final message. Do not end the turn after it; continue directly to Step 5.
|
|
196
240
|
|
|
197
241
|
Parallelization rule:
|
|
198
242
|
- Execute post-conversion enhancement workflow in parallel across generated `.agent` files because each file enhancement is independent.
|
|
199
243
|
|
|
200
|
-
### Step
|
|
244
|
+
### Step 5: Consolidate Run Report and Conclude
|
|
245
|
+
|
|
246
|
+
After Step 4 completes for every bot in the workload:
|
|
201
247
|
|
|
202
|
-
|
|
248
|
+
1. Write a single consolidated, human-readable run report as a non-empty Markdown file named `report.md` (unless the caller names a different path) in the orchestrator working directory. Per bot, the report must state: the effective run mode, the bot id, the bot version, the generated Agent Spec path and generated `.agent` path, the commit status, agent ID, and agent version (online mode; state that the version is committed but not activated), the publish audit outcome with its timestamp and the path to `publish-audit.jsonl` (online mode), and — when `--interactive=false` — the auto-applied decisions.
|
|
249
|
+
2. Treat the run report as the FINAL artifact: write it only after all other artifacts (Agent Spec(s), handoff JSON, open questions, and generated `.agent` file(s)) are already written.
|
|
250
|
+
3. The run concludes only after `report.md` is written. Emit the final summary message then, and not before.
|
|
251
|
+
4. Before emitting the final message, confirm for each bot:
|
|
252
|
+
- Step 4 ran;
|
|
253
|
+
- online mode only: a publish attempt was made, or the reason for skipping it is recorded, and `publish-audit.jsonl` holds a record for each attempt;
|
|
254
|
+
- `report.md` exists and is non-empty.
|
|
203
255
|
|
|
204
|
-
|
|
205
|
-
2. Treat the run report as the FINAL artifact: write it only after all other artifacts (Agent Spec(s), handoff JSON, open questions, any planner output, and generated `.agent` file(s)) are already written.
|
|
256
|
+
If any of these is missing, go back and complete it first.
|
|
206
257
|
|
|
207
258
|
## Deliverable
|
|
208
259
|
|
|
209
260
|
Return:
|
|
210
261
|
1. parsed bot/version list
|
|
211
262
|
2. per-bot upgrade execution status
|
|
212
|
-
3.
|
|
213
|
-
4.
|
|
214
|
-
5.
|
|
215
|
-
6.
|
|
216
|
-
7.
|
|
217
|
-
8.
|
|
218
|
-
9. path to
|
|
263
|
+
3. ready-for-authoring Agent Spec list and failed/incomplete runs from Step 2
|
|
264
|
+
4. per-spec `/agentforce-generate` execution status
|
|
265
|
+
5. generated handoff artifact paths per bot/spec
|
|
266
|
+
6. captured `/agentforce-generate` outputs per output contract
|
|
267
|
+
7. per-agent post-conversion enhancement status (including enhanced `.agent` file paths, compile status, commit status, agent ID, and agent version)
|
|
268
|
+
8. path to the consolidated run report written in Step 5
|
|
269
|
+
9. path to `publish-audit.jsonl` (online mode)
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Agent Spec: Agent_API_Name
|
|
2
|
+
|
|
3
|
+
## Purpose & Scope
|
|
4
|
+
|
|
5
|
+
Describe the agent's purpose in 1-2 sentences. What does it help users do?
|
|
6
|
+
What domain does it operate in?
|
|
7
|
+
|
|
8
|
+
## Behavioral Intent
|
|
9
|
+
|
|
10
|
+
Describe the key behavioral rules that govern the agent:
|
|
11
|
+
- What must the agent know before taking action?
|
|
12
|
+
- What action implementation types are used (Apex, Flow, Prompt Template)?
|
|
13
|
+
- What guardrails apply, if any (for example, off-topic handling or escalation)?
|
|
14
|
+
- Which exact values, if any, must deterministic runtime logic consume?
|
|
15
|
+
- Which conversational facts remain in surviving history and therefore need no
|
|
16
|
+
variable?
|
|
17
|
+
|
|
18
|
+
## Subagent Posture
|
|
19
|
+
|
|
20
|
+
For each subagent, specify posture and why:
|
|
21
|
+
|
|
22
|
+
| Subagent | Posture (scripted/mixed/agentic) | Why this posture? | Deterministic controls (if any) |
|
|
23
|
+
|----------|-----------------------------------|-------------------|-----------------------------------|
|
|
24
|
+
| primary | agentic | one focused objective and action set | none |
|
|
25
|
+
|
|
26
|
+
Use [references/posture-and-determinism.md](../../references/_vendored/posture-and-determinism.md) for posture rules.
|
|
27
|
+
|
|
28
|
+
## Subagent Map
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
%%{init: {'theme':'neutral'}}%%
|
|
32
|
+
graph TD
|
|
33
|
+
A[start_agent<br/>primary]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Add another node only when its boundary changes objective, instructions,
|
|
37
|
+
available actions, authority, or escalation behavior and that difference
|
|
38
|
+
cannot remain coherent in `primary`. A greeting, cancellation acknowledgment,
|
|
39
|
+
completion message, ambiguity question, or ordinary dialogue step is a branch
|
|
40
|
+
by default. Expand the diagram to show justified boundaries, actions, and
|
|
41
|
+
required deterministic controls. Show a variable state change only when a
|
|
42
|
+
named later runtime expression or action consumes it. See the Subagent Map
|
|
43
|
+
Diagrams reference for conventions.
|
|
44
|
+
|
|
45
|
+
## Variables (Optional)
|
|
46
|
+
|
|
47
|
+
Default: **None.** Surviving conversation history carries ordinary names,
|
|
48
|
+
preferences, prior answers, corrections, and current intent.
|
|
49
|
+
|
|
50
|
+
Add one row only for trusted action output, authorization/eligibility/
|
|
51
|
+
confirmation proof, exact later action data flow, required external ordering,
|
|
52
|
+
or persistence beyond the configured history window.
|
|
53
|
+
|
|
54
|
+
| Variable | Type / Default | Trusted Writer | Named Consumer | Cause | Reset / Expiry / Correction / Cancel |
|
|
55
|
+
|----------|----------------|----------------|----------------|-------|--------------------------------------|
|
|
56
|
+
| `verified_customer_id` | `mutable string = ""` | `verify_customer` output | protected action input and `available when` gate | authorization | reset on verification failure, expiry, logout, or user cancellation |
|
|
57
|
+
|
|
58
|
+
## Actions
|
|
59
|
+
|
|
60
|
+
### action_name (subagent_name subagent)
|
|
61
|
+
|
|
62
|
+
- **Target:** `apex://ClassName` or `flow://FlowName` or `prompt://PromptTemplateName`
|
|
63
|
+
- **Status:** EXISTS / NEEDS STUB / NEEDS CREATION
|
|
64
|
+
|
|
65
|
+
#### Inputs
|
|
66
|
+
|
|
67
|
+
| Name | Type | Required | Source |
|
|
68
|
+
|------|------|----------|--------|
|
|
69
|
+
| property_id | string | Yes | User input |
|
|
70
|
+
| max_results | integer | No | Defaults to 10 |
|
|
71
|
+
|
|
72
|
+
#### Outputs
|
|
73
|
+
|
|
74
|
+
| Name | Type | Visible to User? | Source | Notes |
|
|
75
|
+
|------|------|-------------------|--------|-------|
|
|
76
|
+
| property | object | Yes | `Property__c` | Complete property details |
|
|
77
|
+
| related_applications | list[object] | Yes | `Application__c` | Records for this property |
|
|
78
|
+
| active_listing | boolean | Yes | `Listing__c` | Listing status |
|
|
79
|
+
| hasData | boolean | No | Computed | Internal empty-result flag |
|
|
80
|
+
|
|
81
|
+
> **"Visible to User?"** maps to `filter_from_agent` in the `.agent` file: Yes → `filter_from_agent: False`, No → `filter_from_agent: True`.
|
|
82
|
+
|
|
83
|
+
#### Stubbing Requirement
|
|
84
|
+
|
|
85
|
+
If NEEDS STUB:
|
|
86
|
+
|
|
87
|
+
- Apex class name and inner class wrappers needed
|
|
88
|
+
- `complex_data_type_name` for each `object`/`list[object]` output
|
|
89
|
+
- Key queries or computation logic the stub must implement
|
|
90
|
+
|
|
91
|
+
Repeat for each action.
|
|
92
|
+
|
|
93
|
+
## Action Invocation Strategy
|
|
94
|
+
|
|
95
|
+
For each action, decide how it gets invoked:
|
|
96
|
+
|
|
97
|
+
| Action | Subagent | Invocation Mode | Why |
|
|
98
|
+
|--------|----------|-----------------|-----|
|
|
99
|
+
| action_name | subagent_name | `run` / planner slot-fill / `setVariables` | Rationale |
|
|
100
|
+
|
|
101
|
+
**Modes:**
|
|
102
|
+
- **`run @actions.X` in `instructions: ->`** — Deterministic. Fires every time the condition holds. Use only when regulation, authorization, confirmed consequence, external ordering, or a reproduced trace failure requires it.
|
|
103
|
+
- **Planner slot-fill (`with param = ...` in `reasoning.actions:`)** — LLM decides when to invoke. Use for user-initiated actions where the LLM should judge intent.
|
|
104
|
+
- **`@utils.setVariables`** — LLM captures a value through a model-selected
|
|
105
|
+
tool call. The call updates state but does not itself define a turn boundary.
|
|
106
|
+
Any later reasoning or response follows the runtime's normal tool-loop
|
|
107
|
+
behavior; do not use this action to force either an end or another
|
|
108
|
+
iteration. Prompt text asking for the call does not execute it. Use only when
|
|
109
|
+
a named later deterministic consumer needs the exact value and it cannot
|
|
110
|
+
remain action-local. Do not use it to mirror conversational history.
|
|
111
|
+
|
|
112
|
+
## Deterministic Controls (When Needed)
|
|
113
|
+
|
|
114
|
+
- `action_name` visibility: `available when @variables.variable_name != ""`
|
|
115
|
+
— Named cause, trusted writer, and protected outcome.
|
|
116
|
+
|
|
117
|
+
Include only controls required by regulation, authorization, confirmed
|
|
118
|
+
consequence, external ordering, or observed failures.
|
|
119
|
+
|
|
120
|
+
## Architecture Pattern
|
|
121
|
+
|
|
122
|
+
Default to exactly one execution block: `start_agent <domain>:` with its
|
|
123
|
+
reasoning and actions, and zero `subagent` blocks. Do not create an
|
|
124
|
+
`agent_router` that only transitions to one domain. Add a boundary only when
|
|
125
|
+
objective, instructions, actions, authority, or escalation behavior changes
|
|
126
|
+
and cannot remain coherent in the current scope. Greeting, cancellation,
|
|
127
|
+
completion, ambiguity, and ordinary dialogue branches do not require their own
|
|
128
|
+
subagents. Use router-first only when multiple genuine domains require
|
|
129
|
+
current-intent classification.
|
|
130
|
+
State any externally ordered workflow-local flows inside the execution block
|
|
131
|
+
that owns them, including correction and cancellation paths.
|
|
132
|
+
Describe the routing strategy and how subagents relate to each other.
|
|
133
|
+
|
|
134
|
+
## Agent Configuration
|
|
135
|
+
|
|
136
|
+
- **developer_name:** `Agent_API_Name`
|
|
137
|
+
- **agent_label:** `Agent Display Name`
|
|
138
|
+
- **agent_type:** `AgentforceEmployeeAgent` or `AgentforceServiceAgent` — state the reasoning based on prompt signals (e.g., "accessible by employees" → Employee, "customer-facing channel" → Service)
|
|
139
|
+
- **access.default_agent_user:** Required for `AgentforceServiceAgent`. Normally omitted for `AgentforceEmployeeAgent`. If specified, MUST be a **user name**, never a **user ID**, and the user MUST have an `Einstein Agent` license.
|