@salesforce/afv-skills 1.36.0 → 1.38.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/agentforce-generate/README.md +20 -3
- package/skills/agentforce-generate/SKILL.md +253 -440
- package/skills/agentforce-generate/assets/agent-spec-template.md +6 -2
- package/skills/agentforce-generate/assets/agents/order-service.agent +16 -12
- package/skills/agentforce-generate/assets/agents/production-faq.agent +4 -4
- package/skills/agentforce-generate/assets/agents/router-first.agent +5 -5
- package/skills/agentforce-generate/assets/agents/template-single-subagent.agent +4 -4
- package/skills/agentforce-generate/assets/agents/verification-gate.agent +8 -6
- package/skills/agentforce-generate/assets/agents/voice-knowledge-grounded.agent +9 -9
- package/skills/agentforce-generate/assets/agents/voice-service-agent.agent +7 -7
- package/skills/agentforce-generate/assets/patterns/README.md +3 -3
- package/skills/agentforce-generate/assets/patterns/action-callbacks.agent +5 -5
- package/skills/agentforce-generate/assets/patterns/advanced-input-bindings.agent +6 -8
- package/skills/agentforce-generate/assets/patterns/bidirectional-routing.agent +11 -13
- package/skills/agentforce-generate/assets/patterns/critical-input-collection.agent +11 -16
- package/skills/agentforce-generate/assets/patterns/lifecycle-events.agent +2 -3
- package/skills/agentforce-generate/assets/patterns/llm-controlled-actions.agent +6 -7
- package/skills/agentforce-generate/assets/patterns/open-gate-routing.agent +3 -3
- package/skills/agentforce-generate/assets/patterns/prompt-template-action.agent +14 -19
- package/skills/agentforce-generate/assets/patterns/system-instruction-overrides.agent +11 -20
- package/skills/agentforce-generate/references/actions-reference.md +2 -2
- package/skills/agentforce-generate/references/agent-audit-and-repair.md +135 -0
- package/skills/agentforce-generate/references/agent-audit-candidate-verification.md +160 -0
- package/skills/agentforce-generate/references/agent-audit-diagnostic-catalog.md +156 -0
- package/skills/agentforce-generate/references/agent-audit-diagnostics-actions-state.md +176 -0
- package/skills/agentforce-generate/references/agent-audit-diagnostics-architecture-evaluation.md +68 -0
- package/skills/agentforce-generate/references/agent-audit-diagnostics-instructions-routing.md +283 -0
- package/skills/agentforce-generate/references/agent-audit-evaluation-loop.md +191 -0
- package/skills/agentforce-generate/references/agent-audit-repair-report.md +143 -0
- package/skills/agentforce-generate/references/agent-audit-scope-path-review.md +180 -0
- package/skills/agentforce-generate/references/agent-design-and-spec-creation.md +105 -59
- package/skills/agentforce-generate/references/agent-script-core-language.md +144 -61
- package/skills/agentforce-generate/references/agent-subagent-map-diagrams.md +33 -23
- package/skills/agentforce-generate/references/agent-validation-and-debugging.md +37 -11
- package/skills/agentforce-generate/references/agentscript-toolchain.md +112 -0
- package/skills/agentforce-generate/references/architecture-patterns.md +81 -18
- package/skills/agentforce-generate/references/common-control-flow-pitfalls.md +255 -0
- package/skills/agentforce-generate/references/control-flow-actions-sequencing.md +198 -0
- package/skills/agentforce-generate/references/control-flow-lifecycle-side-effects.md +87 -0
- package/skills/agentforce-generate/references/examples.md +22 -22
- package/skills/agentforce-generate/references/instruction-resolution.md +123 -83
- package/skills/agentforce-generate/references/known-issues.md +1 -2
- package/skills/agentforce-generate/references/optimization-pattern-1-data-flow.md +4 -0
- package/skills/agentforce-generate/references/optimization-pattern-2-deterministic-logic.md +33 -0
- package/skills/agentforce-generate/references/optimization-pattern-3-reference-syntax.md +32 -3
- package/skills/agentforce-generate/references/optimization-pattern-4-escalation.md +2 -2
- package/skills/agentforce-generate/references/patterns-by-requirement.md +3 -1
- package/skills/agentforce-generate/references/posture-and-determinism.md +103 -22
- package/skills/agentforce-generate/references/reference-map.md +19 -3
- package/skills/agentforce-generate/references/scoring-rubric.md +1 -1
- package/skills/agentforce-generate/references/voice-latency-heuristics.md +4 -0
- package/skills/agentforce-generate/references/voice-modality-reference.md +4 -4
- package/skills/agentforce-generate/references/zen-of-agentscript.md +139 -23
- package/skills/agentforce-generate/scripts/agentscript-sdk-loader.mjs +133 -0
- package/skills/agentforce-generate/scripts/index-agent.mjs +141 -0
- package/skills/agentforce-generate/scripts/setup-agentscript-sdk.mjs +337 -0
- package/skills/automation-sandbox-post-copy-config-generate/SKILL.md +1 -1
- package/skills/automation-sandbox-post-copy-configure/SKILL.md +433 -0
- package/skills/automation-sandbox-post-copy-configure/assets/api_request_templates.json +89 -0
- package/skills/automation-sandbox-post-copy-configure/examples/sample_config_input.json +40 -0
- package/skills/automation-sandbox-post-copy-configure/examples/sample_execution_summary.md +79 -0
- package/skills/automation-sandbox-post-copy-configure/references/api_endpoints.md +273 -0
- package/skills/automation-sandbox-post-copy-configure/references/authentication.md +94 -0
- package/skills/automation-sandbox-post-copy-configure/references/execution_phasing.md +93 -0
- package/skills/automation-sandbox-post-copy-configure/references/rules_gotchas.md +35 -0
- package/skills/automation-sandbox-post-copy-configure/scripts/classify-patch-result.mjs +88 -0
- package/skills/automation-sandbox-post-copy-configure/scripts/map-metadata-key.mjs +98 -0
- package/skills/automation-sandbox-post-copy-configure/scripts/plan-phases.mjs +98 -0
- package/skills/automation-sandbox-post-copy-configure/scripts/resolve-target-org.mjs +56 -0
- package/skills/design-systems-slds-validate/SKILL.md +14 -13
- package/skills/dx-code-analyzer-custom-rule-create/examples/xpath-examples.md +1 -1
- package/skills/dx-code-analyzer-custom-rule-create/references/xpath-patterns-security.md +1 -1
- package/skills/dx-org-devhub-configure/SKILL.md +268 -0
- package/skills/dx-org-devhub-configure/examples/status-output.md +39 -0
- package/skills/dx-org-devhub-configure/scripts/devhub.sh +650 -0
- package/skills/dx-org-devhub-configure/scripts/test-devhub.sh +116 -0
- package/skills/dx-org-manage/SKILL.md +135 -42
- package/skills/dx-org-manage/assets/derive-alias.sh +95 -0
- package/skills/dx-org-manage/assets/scratch-def.seed.json +6 -0
- package/skills/dx-org-manage/examples/README.md +1 -1
- package/skills/dx-org-manage/examples/scratch-orgs/delete_output.json +8 -0
- package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +23 -0
- package/skills/dx-org-manage/examples/scratch-orgs/list_output.json +58 -0
- package/skills/dx-org-manage/examples/scratch-orgs/resume_output.json +38 -0
- package/skills/dx-org-manage/examples/scratch-orgs/success_definition_file.json +1 -1
- package/skills/dx-org-manage/examples/scratch-orgs/success_edition.json +1 -1
- package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +41 -0
- package/skills/dx-org-manage/examples/scratch-orgs/success_snapshot.json +1 -1
- package/skills/dx-org-manage/examples/snapshots/error_output.json +3 -3
- package/skills/dx-org-manage/references/creating-scratch-org.md +2 -2
- package/skills/dx-org-manage/references/creating-snapshot.md +1 -2
- package/skills/dx-org-manage/references/definition_file_options.md +24 -0
- package/skills/dx-org-manage/references/edition_types.md +10 -8
- package/skills/dx-org-manage/references/opening-org.md +11 -12
- package/skills/dx-org-manage/references/scratch-org-create.md +303 -0
- package/skills/dx-org-manage/references/scratch-org-operations.md +135 -0
- package/skills/experience-aura-lwc-migrate/SKILL.md +120 -0
- package/skills/experience-aura-lwc-migrate/references/aura-api-expert.md +170 -0
- package/skills/experience-aura-lwc-migrate/references/aura-data-expert.md +172 -0
- package/skills/experience-aura-lwc-migrate/references/aura-migration-guidelines.md +299 -0
- package/skills/experience-aura-lwc-migrate/references/aura-prd-framework.md +79 -0
- package/skills/experience-aura-lwc-migrate/references/aura-redundant-code-expert.md +24 -0
- package/skills/experience-aura-lwc-migrate/references/aura-reference-expert.md +140 -0
- package/skills/experience-aura-lwc-migrate/references/aura-resolver-expert.md +115 -0
- package/skills/experience-aura-lwc-migrate/references/aura-slots-expert.md +67 -0
- package/skills/experience-aura-lwc-migrate/references/aura-style-expert.md +62 -0
- package/skills/experience-aura-lwc-migrate/references/aura-to-lwc-completeness-checklist.md +188 -0
- package/skills/experience-aura-lwc-migrate/references/aura-values-expert.md +67 -0
- package/skills/experience-content-media-search/SKILL.md +17 -12
- package/skills/experience-content-media-stock-image-search/SKILL.md +192 -0
- package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +102 -0
- package/skills/experience-lds-best-practices-apply/SKILL.md +245 -0
- package/skills/experience-lds-best-practices-apply/references/adapter-apis.md +1640 -0
- package/skills/experience-lds-best-practices-apply/references/lds-data-consistency.md +126 -0
- package/skills/experience-lds-best-practices-apply/references/lds-expert.md +429 -0
- package/skills/experience-lds-best-practices-apply/references/lds-referential-integrity.md +322 -0
- package/skills/experience-lds-best-practices-apply/references/wire-adapter-types.md +1511 -0
- package/skills/experience-lds-graphql-generate/SKILL.md +222 -0
- package/skills/experience-lds-graphql-generate/references/generation-guide.md +236 -0
- package/skills/experience-lds-graphql-generate/references/generation-mutation.md +277 -0
- package/skills/experience-lds-graphql-generate/references/generation-query.md +237 -0
- package/skills/experience-lds-graphql-generate/scripts/fetch-lds-graphql-schema.sh +230 -0
- package/skills/experience-lds-graphql-generate/scripts/test-lds-graphql-query.sh +128 -0
- package/skills/experience-lwc-accessibility-validate/SKILL.md +112 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-1-1-non-text-content.md +88 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-1-i-lists.md +52 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-1-ii-tables.md +106 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-1-iii-form-labels.md +78 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-1-iv-regions.md +26 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-1-v-groups.md +66 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-3-5-identify-input.md +70 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-1-4-3-contrast.md +115 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-1-1-keyboard.md +47 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-4-4-link-purpose.md +39 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-4-6-headings-labels.md +50 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-5-1-pointer-gestures.md +54 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-5-2-pointer-cancellation.md +49 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-5-3-label-in-name.md +77 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-2-5-7-dragging-movement.md +45 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-3-2-1-on-focus.md +55 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-3-2-2-on-input.md +51 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-3-3-1-error-identification.md +84 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-3-3-2-labels-instructions.md +50 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-3-3-3-error-suggestion.md +64 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-4-1-2-i-name.md +105 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-4-1-2-ii-role.md +99 -0
- package/skills/experience-lwc-accessibility-validate/references/reviewers/sc-4-1-2-iii-value.md +97 -0
- package/skills/experience-lwc-accessibility-validate/references/vision/sc-1-1-1-non-text-content.md +83 -0
- package/skills/experience-lwc-accessibility-validate/references/vision/sc-1-4-1-use-of-color.md +62 -0
- package/skills/experience-lwc-accessibility-validate/references/vision/sc-1-4-10-resize-reflow.md +18 -0
- package/skills/experience-lwc-accessibility-validate/references/vision/sc-1-4-11-non-text-contrast.md +43 -0
- package/skills/experience-lwc-accessibility-validate/references/vision/sc-1-4-3-contrast.md +25 -0
- package/skills/experience-lwc-accessibility-validate/scripts/contrast-ratio.py +153 -0
- package/skills/experience-lwc-design-generate/SKILL.md +261 -0
- package/skills/experience-lwc-design-generate/references/figma-to-prd-blueprint.md +66 -0
- package/skills/experience-lwc-design-generate/references/prd-analysis-template.md +17 -0
- package/skills/experience-lwc-design-generate/scripts/check-component-name.sh +75 -0
- package/skills/experience-lwc-design-generate/scripts/detect-project-tools.sh +97 -0
- package/skills/experience-lwc-runtime-observe/SKILL.md +244 -0
- package/skills/experience-lwc-runtime-observe/examples/component-preview-and-dom.md +41 -0
- package/skills/experience-lwc-runtime-observe/scripts/extract-dom.sh +79 -0
- package/skills/experience-lwc-runtime-observe/scripts/open-frontdoor.sh +46 -0
- package/skills/experience-lwc-runtime-observe/scripts/verify-toolchain.sh +48 -0
- package/skills/experience-lwc-security-validate/SKILL.md +151 -0
- package/skills/experience-lwc-security-validate/examples/review-report.md +6 -0
- package/skills/experience-lwc-security-validate/examples/score-report.sarif.json +32 -0
- package/skills/experience-lwc-security-validate/references/lws-security-expert.md +986 -0
- package/skills/experience-lwc-security-validate/references/security-analysis.md +611 -0
- package/skills/experience-lwc-security-validate/scripts/check-lwc-import.sh +166 -0
- package/skills/experience-lwc-security-validate/scripts/validate-sarif.sh +131 -0
- package/skills/experience-lwr-site-generate/SKILL.md +1 -2
- package/skills/experience-ui-bundle-2gp-deploy/SKILL.md +454 -0
- package/skills/experience-ui-bundle-2gp-deploy/assets/CustomApplication.app-meta.xml +12 -0
- package/skills/experience-ui-bundle-2gp-deploy/assets/PermissionSet.permissionset-meta.xml +9 -0
- package/skills/experience-ui-bundle-2gp-deploy/scripts/find-bundle-package-dir.sh +53 -0
- package/skills/experience-ui-bundle-agentforce-client-generate/SKILL.md +104 -26
- package/skills/experience-ui-bundle-agentforce-client-generate/references/constraints.md +35 -24
- package/skills/experience-ui-bundle-agentforce-client-generate/references/examples.md +92 -1
- package/skills/experience-ui-bundle-agentforce-client-generate/references/style-tokens.md +2 -0
- package/skills/experience-ui-bundle-agentforce-client-generate/references/troubleshooting.md +14 -1
- package/skills/experience-ui-bundle-agentforce-client-generate/scripts/detect-framework.sh +67 -0
- package/skills/experience-ui-bundle-deploy/SKILL.md +83 -14
- package/skills/experience-ui-bundle-deploy/assets/Communities.settings-meta.xml +19 -0
- package/skills/experience-ui-bundle-deploy/assets/org-setup.config.template.json +5 -0
- package/skills/experience-ui-bundle-deploy/assets/social-login-auth-providers.apex +158 -0
- package/skills/experience-ui-bundle-deploy/references/config-scaffold.md +13 -1
- package/skills/experience-ui-bundle-deploy/references/social-login.md +179 -0
- package/skills/experience-ui-bundle-frontend-generate/SKILL.md +14 -0
- package/skills/experience-ui-bundle-mfa-configure/SKILL.md +6 -5
- package/skills/experience-ui-bundle-mfa-configure/references/social-login.md +15 -7
- package/skills/experience-ui-bundle-salesforce-data-access/SKILL.md +41 -5
- package/skills/experience-ui-bundle-salesforce-data-access/references/caching.md +10 -22
- package/skills/experience-ui-bundle-salesforce-data-access/references/graphql-hand-authoring.md +4 -19
- package/skills/experience-ui-bundle-salesforce-data-access/references/migration.md +5 -0
- package/skills/experience-ui-bundle-salesforce-data-access/references/sdk-api.md +33 -150
- package/skills/mobile-platform-native-capabilities-integrate/references/nfc.md +35 -0
- package/skills/platform-apex-generate/SKILL.md +8 -7
- package/skills/platform-apex-test-generate/SKILL.md +3 -1
- package/skills/platform-apex-test-run/SKILL.md +9 -8
- package/skills/platform-custom-field-generate/SKILL.md +7 -1
- package/skills/platform-lightning-app-coordinate/SKILL.md +3 -3
- package/skills/platform-lightning-type-widget-coordinate/SKILL.md +1 -1
- package/skills/platform-lightning-type-widget-coordinate/examples/existing-lightning-type-with-widget-prompt.md +1 -1
- package/skills/platform-lightning-type-widget-coordinate/examples/new-lightning-type-with-widget-prompt.md +1 -1
- package/skills/platform-lightning-type-widget-coordinate/references/validation-gates.md +3 -3
- package/skills/platform-mcp-tool-widget-coordinate/SKILL.md +43 -67
- package/skills/platform-mcp-tool-widget-coordinate/examples/action-name-source-prompt.md +1 -2
- package/skills/platform-mcp-tool-widget-coordinate/examples/apex-invocable-source-prompt.md +2 -3
- package/skills/platform-mcp-tool-widget-coordinate/examples/nested-object-list-source-prompt.md +163 -0
- package/skills/platform-mcp-tool-widget-coordinate/examples/nested-object-single-source-prompt.md +198 -0
- package/skills/platform-mcp-tool-widget-coordinate/examples/pasted-tool-output-prompt.md +0 -1
- package/skills/platform-mcp-tool-widget-coordinate/references/build-plan-format.md +17 -11
- package/skills/platform-mcp-tool-widget-coordinate/references/mcp-tool-output-discovery.md +48 -15
- package/skills/platform-mcp-tool-widget-coordinate/references/two-clt-modeling.md +73 -10
- package/skills/platform-mcp-tool-widget-coordinate/references/validation-gates.md +48 -8
- package/skills/platform-policy-rule-generate/SKILL.md +22 -12
- package/skills/platform-policy-rule-generate/references/deploy-errors.md +1 -1
- package/skills/platform-policy-rule-generate/references/policy-schema-full.md +8 -29
- package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
- package/skills/platform-report-generate/SKILL.md +1 -1
- package/skills/platform-sharing-owd-configure/SKILL.md +20 -8
- package/skills/platform-sharing-owd-configure/references/access_levels.md +14 -1
- package/skills/platform-sharing-rules-generate/SKILL.md +67 -35
- package/skills/platform-sharing-rules-generate/examples/create-cases.md +16 -17
- package/skills/platform-sharing-rules-generate/examples/delete-cases.md +34 -79
- package/skills/platform-sharing-rules-generate/examples/edit-cases.md +13 -26
- package/skills/platform-sharing-rules-generate/scripts/count-remaining-rules.sh +33 -0
- package/skills/platform-value-set-generate/SKILL.md +6 -2
- package/skills/platform-widget-generate/SKILL.md +3 -5
- package/skills/platform-widget-generate/examples/conditional.json +18 -13
- package/skills/platform-widget-generate/examples/list-with-foreach.json +2 -2
- package/skills/platform-widget-generate/examples/single-object.json +2 -2
- package/skills/platform-widget-generate/references/schema-from-lightning-type.md +27 -6
- package/skills/platform-widget-generate/references/widget-bundle-layout.md +4 -3
- package/skills/service-itsm-agentic-setup-cmdb-access-assign/SKILL.md +287 -0
- package/skills/service-itsm-agentic-setup-cmdb-access-assign/references/mcp-invocation.md +260 -0
- package/skills/service-itsm-agentic-setup-cmdb-bundle-deploy/SKILL.md +252 -0
- package/skills/service-itsm-agentic-setup-cmdb-bundle-deploy/references/mcp-invocation.md +204 -0
- package/skills/service-itsm-agentic-setup-cmdb-configure/SKILL.md +259 -0
- package/skills/service-itsm-agentic-setup-cmdb-configure/references/mcp-invocation.md +188 -0
- package/skills/service-itsm-agentic-setup-cmdb-coordinate/SKILL.md +197 -0
- package/skills/service-itsm-agentic-setup-cmdb-coordinate/examples/output-templates.md +77 -0
- package/skills/service-itsm-agentic-setup-cmdb-discovery-configure/SKILL.md +316 -0
- package/skills/service-itsm-agentic-setup-cmdb-discovery-configure/references/mcp-invocation.md +221 -0
- package/skills/service-itsm-incident-priority-configure/SKILL.md +168 -0
- package/skills/service-itsm-incident-priority-configure/examples/matrix-operations.md +200 -0
- package/skills/service-itsm-incident-priority-configure/examples/render-matrix.md +54 -0
- package/skills/service-itsm-incident-priority-configure/examples/seed-full-matrix.md +52 -0
- package/skills/service-itsm-incident-priority-configure/references/sf-cli-invocation.md +264 -0
- package/skills/platform-mcp-tool-widget-coordinate/examples/nested-object-source-prompt.md +0 -191
- package/skills/platform-policy-rule-generate/references/fixtures-index.md +0 -29
|
@@ -101,8 +101,12 @@ For each action, decide how it gets invoked:
|
|
|
101
101
|
**Modes:**
|
|
102
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
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
|
|
105
|
-
|
|
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
|
|
106
110
|
remain action-local. Do not use it to mirror conversational history.
|
|
107
111
|
|
|
108
112
|
## Deterministic Controls (When Needed)
|
|
@@ -102,11 +102,13 @@ subagent verification:
|
|
|
102
102
|
reasoning:
|
|
103
103
|
instructions: ->
|
|
104
104
|
if @variables.customer_verified == True:
|
|
105
|
-
| Welcome
|
|
105
|
+
| Welcome the verified customer and ask how you can help with
|
|
106
|
+
their order.
|
|
106
107
|
|
|
107
108
|
if @variables.customer_verified == False:
|
|
108
|
-
|
|
|
109
|
-
|
|
109
|
+
| Explain that identity verification is required before order
|
|
110
|
+
assistance. Ask for the email address associated with the
|
|
111
|
+
account.
|
|
110
112
|
|
|
111
113
|
actions:
|
|
112
114
|
verify: @actions.verify_customer
|
|
@@ -151,12 +153,14 @@ subagent order_status:
|
|
|
151
153
|
reasoning:
|
|
152
154
|
instructions: ->
|
|
153
155
|
if @variables.order_status != "":
|
|
154
|
-
|
|
|
155
|
-
|
|
156
|
+
| Report order {!@variables.verified_order_id} with exact status
|
|
157
|
+
{!@variables.order_status}. Ask whether the customer wants to
|
|
158
|
+
track the shipment or initiate a return.
|
|
156
159
|
|
|
157
160
|
if @variables.order_status == "":
|
|
158
|
-
|
|
|
159
|
-
|
|
161
|
+
| Ask for the order number and mention that it appears in the
|
|
162
|
+
confirmation email. Use the find_order action after the user
|
|
163
|
+
supplies it.
|
|
160
164
|
|
|
161
165
|
actions:
|
|
162
166
|
find_order: @actions.lookup_order
|
|
@@ -240,13 +244,13 @@ subagent returns:
|
|
|
240
244
|
reasoning:
|
|
241
245
|
instructions: ->
|
|
242
246
|
if @variables.return_initiated == True:
|
|
243
|
-
|
|
|
244
|
-
|
|
247
|
+
| Confirm that the return was initiated and provide the exact
|
|
248
|
+
return-label URL: {!@variables.return_label_url}
|
|
245
249
|
|
|
246
250
|
if @variables.return_initiated == False:
|
|
247
|
-
|
|
|
248
|
-
|
|
249
|
-
|
|
251
|
+
| Explain that you can help return order
|
|
252
|
+
{!@variables.verified_order_id}. Ask for the reason, then use
|
|
253
|
+
the process_return action to start the return.
|
|
250
254
|
|
|
251
255
|
actions:
|
|
252
256
|
process_return: @actions.initiate_return
|
|
@@ -65,9 +65,9 @@ subagent faq_handler:
|
|
|
65
65
|
reasoning:
|
|
66
66
|
instructions: ->
|
|
67
67
|
| Answer the user's question based on your knowledge.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
Be helpful, accurate, and concise. Keep responses under 3-4 sentences.
|
|
69
|
+
If the question is outside your knowledge, acknowledge it and offer alternatives.
|
|
70
|
+
Use the latest surviving conversation turns for follow-up context.
|
|
71
71
|
Do not offer escalation merely because the user has asked several
|
|
72
72
|
questions.
|
|
73
73
|
|
|
@@ -86,7 +86,7 @@ subagent farewell:
|
|
|
86
86
|
reasoning:
|
|
87
87
|
instructions: ->
|
|
88
88
|
| Thank the user for their questions.
|
|
89
|
-
|
|
89
|
+
Let them know they can return anytime for more help.
|
|
90
90
|
|
|
91
91
|
subagent escalation:
|
|
92
92
|
label: "Escalation"
|
|
@@ -31,13 +31,13 @@ start_agent agent_router:
|
|
|
31
31
|
label: "Request Router"
|
|
32
32
|
description: "Routes the user's latest request without answering it"
|
|
33
33
|
|
|
34
|
+
model_config:
|
|
35
|
+
model: "model://sfdc_ai__DefaultEinsteinHyperClassifier"
|
|
36
|
+
|
|
34
37
|
reasoning:
|
|
35
38
|
instructions: ->
|
|
36
|
-
| Route only the user's latest request
|
|
37
|
-
|
|
38
|
-
| - return eligibility or an existing return: return help;
|
|
39
|
-
| - general questions: support.
|
|
40
|
-
| Do not answer the underlying request in this router.
|
|
39
|
+
| Route only the user's latest request. Choose exactly one route,
|
|
40
|
+
and do not answer the underlying request in this router.
|
|
41
41
|
actions:
|
|
42
42
|
check_order: @utils.transition to @subagent.orders
|
|
43
43
|
description: "Handle order status or tracking"
|
|
@@ -53,10 +53,10 @@ start_agent main:
|
|
|
53
53
|
reasoning:
|
|
54
54
|
instructions: ->
|
|
55
55
|
| Handle only the focused objective described for this agent.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
Use the task action when the user supplies the required input.
|
|
57
|
+
If required input is missing, ask one concise clarifying question.
|
|
58
|
+
If the request is outside scope, redirect to the focused objective.
|
|
59
|
+
If the user explicitly asks for a human, transfer without also
|
|
60
60
|
attempting the underlying task.
|
|
61
61
|
|
|
62
62
|
actions:
|
|
@@ -93,14 +93,17 @@ subagent identity_verification:
|
|
|
93
93
|
reasoning:
|
|
94
94
|
instructions: ->
|
|
95
95
|
if @variables.failed_attempts >= 3:
|
|
96
|
-
|
|
|
96
|
+
| Briefly explain that repeated verification attempts require
|
|
97
|
+
a human handoff.
|
|
97
98
|
transition to @subagent.escalation
|
|
98
99
|
|
|
99
100
|
if @variables.customer_verified == True:
|
|
100
|
-
|
|
|
101
|
+
| Confirm successful identity verification and ask how you can
|
|
102
|
+
help.
|
|
101
103
|
|
|
102
104
|
if @variables.customer_verified == False:
|
|
103
|
-
|
|
|
105
|
+
| Ask the user to verify their identity by confirming their
|
|
106
|
+
email address.
|
|
104
107
|
|
|
105
108
|
actions:
|
|
106
109
|
check_email: @actions.verify_email
|
|
@@ -152,9 +155,8 @@ subagent account_management:
|
|
|
152
155
|
if @variables.customer_verified == False:
|
|
153
156
|
transition to @subagent.identity_verification
|
|
154
157
|
|
|
155
|
-
| Welcome to account management
|
|
156
|
-
|
|
157
|
-
| Use the update actions to make changes.
|
|
158
|
+
| Welcome the verified customer to account management and ask what
|
|
159
|
+
they want to change. Use the matching update action.
|
|
158
160
|
|
|
159
161
|
actions:
|
|
160
162
|
change_email: @actions.update_email
|
|
@@ -76,9 +76,9 @@ start_agent agent_router:
|
|
|
76
76
|
reasoning:
|
|
77
77
|
instructions: ->
|
|
78
78
|
| Listen to what the caller needs and route them to the right topic.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
For questions about products, policies, procedures, or troubleshooting, go to knowledge answers.
|
|
80
|
+
If the caller asks to speak with a person or you cannot help, escalate.
|
|
81
|
+
Do NOT answer questions directly — route to the appropriate topic.
|
|
82
82
|
actions:
|
|
83
83
|
go_knowledge: @utils.transition to @subagent.knowledge_answers
|
|
84
84
|
description: "Route to knowledge answers for product, policy, or how-to questions"
|
|
@@ -90,15 +90,15 @@ subagent knowledge_answers:
|
|
|
90
90
|
reasoning:
|
|
91
91
|
instructions: ->
|
|
92
92
|
| If the question is unclear, ask one short clarifying question first.
|
|
93
|
-
|
|
93
|
+
For every substantive question, call AnswerQuestionsWithKnowledge
|
|
94
94
|
before answering.
|
|
95
|
-
|
|
95
|
+
Answer only from the returned knowledge summary, using one or two
|
|
96
96
|
spoken sentences.
|
|
97
|
-
|
|
97
|
+
If the summary is empty, say the knowledge base has no answer and
|
|
98
98
|
use {!@actions.go_escalation}.
|
|
99
|
-
|
|
99
|
+
Never speak URLs, citations, or list formatting. Offer to send
|
|
100
100
|
returned links instead.
|
|
101
|
-
|
|
101
|
+
After answering, ask if there's anything else you can help with.
|
|
102
102
|
actions:
|
|
103
103
|
AnswerQuestionsWithKnowledge: @actions.AnswerQuestionsWithKnowledge
|
|
104
104
|
with query = ...
|
|
@@ -159,7 +159,7 @@ subagent escalation:
|
|
|
159
159
|
reasoning:
|
|
160
160
|
instructions: ->
|
|
161
161
|
| The caller needs to speak with a human agent. Use {!@actions.escalate_to_human} to transfer them.
|
|
162
|
-
|
|
162
|
+
Before transferring, briefly let them know you're connecting them.
|
|
163
163
|
actions:
|
|
164
164
|
escalate_to_human: @utils.escalate
|
|
165
165
|
description: "Transfer the caller to a live agent"
|
|
@@ -54,9 +54,9 @@ start_agent agent_router:
|
|
|
54
54
|
reasoning:
|
|
55
55
|
instructions: ->
|
|
56
56
|
| Listen to what the caller needs and route them to the right topic.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
For order questions (tracking, status, delivery) go to order status.
|
|
58
|
+
If the caller asks to speak with a person or you cannot help, escalate.
|
|
59
|
+
Do NOT answer questions directly — route to the appropriate topic.
|
|
60
60
|
actions:
|
|
61
61
|
go_order_status: @utils.transition to @subagent.order_status
|
|
62
62
|
description: "Route to order status topic for tracking and delivery questions"
|
|
@@ -68,9 +68,9 @@ subagent order_status:
|
|
|
68
68
|
reasoning:
|
|
69
69
|
instructions: ->
|
|
70
70
|
| Help the caller check their order status. Ask for their order number if not provided.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
Use {!@actions.get_order_status} to look up the order. Read back the status clearly and concisely.
|
|
72
|
+
NEVER guess order details — only report what the action returns.
|
|
73
|
+
After answering, ask if there's anything else you can help with.
|
|
74
74
|
actions:
|
|
75
75
|
get_order_status: @actions.get_order_status
|
|
76
76
|
description: "Look up order status by order number"
|
|
@@ -95,7 +95,7 @@ subagent escalation:
|
|
|
95
95
|
reasoning:
|
|
96
96
|
instructions: ->
|
|
97
97
|
| The caller needs to speak with a human agent. Use {!@actions.escalate_to_human} to transfer them.
|
|
98
|
-
|
|
98
|
+
Before transferring, briefly let them know you're connecting them.
|
|
99
99
|
actions:
|
|
100
100
|
escalate_to_human: @utils.escalate
|
|
101
101
|
description: "Transfer the caller to a live agent"
|
|
@@ -178,11 +178,11 @@ reasoning:
|
|
|
178
178
|
instructions: ->
|
|
179
179
|
if @variables.customer_tier == "vip":
|
|
180
180
|
| PRIORITY CUSTOMER - Provide white-glove service.
|
|
181
|
-
|
|
181
|
+
You have authority to offer 20% discounts.
|
|
182
182
|
|
|
183
183
|
if @variables.business_hours == False:
|
|
184
|
-
|
|
|
185
|
-
|
|
184
|
+
| Explain that support is outside business hours and log complex
|
|
185
|
+
issues for follow-up.
|
|
186
186
|
|
|
187
187
|
| Respond to the customer's inquiry.
|
|
188
188
|
```
|
|
@@ -81,9 +81,9 @@ start_agent shipment_status:
|
|
|
81
81
|
reasoning:
|
|
82
82
|
instructions: ->
|
|
83
83
|
| Ask for a tracking number when none is present in the conversation.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
Use the shipment lookup for a supplied tracking number.
|
|
85
|
+
Answer from the normalized result. If it says the shipment was
|
|
86
|
+
not found or delivery is unavailable, say that directly.
|
|
87
87
|
|
|
88
88
|
actions:
|
|
89
89
|
# The callback runs after the lookup returns normally. Every value
|
|
@@ -104,5 +104,5 @@ start_agent shipment_status:
|
|
|
104
104
|
# run @actions.third
|
|
105
105
|
#
|
|
106
106
|
# If a third deterministic step is required, redesign the backing automation
|
|
107
|
-
# as one
|
|
108
|
-
# inputs and failure semantics.
|
|
107
|
+
# as one action that owns the complete sequence or use a supported lifecycle
|
|
108
|
+
# with explicit inputs and failure semantics.
|
|
@@ -106,14 +106,12 @@ start_agent order_processing:
|
|
|
106
106
|
reasoning:
|
|
107
107
|
instructions: ->
|
|
108
108
|
| Help the customer process their order.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
|
116
|
-
| Ask for order details and process appropriately.
|
|
109
|
+
INPUT BINDING EXAMPLES:
|
|
110
|
+
1. Slot filling (...) - LLM extracts from conversation
|
|
111
|
+
2. Fixed values - Always use a constant
|
|
112
|
+
3. Stored state - Use the available value
|
|
113
|
+
4. Output chaining - Use results from previous action
|
|
114
|
+
Ask for order details and process appropriately.
|
|
117
115
|
|
|
118
116
|
actions:
|
|
119
117
|
# Persist only a canonical action output that later bindings consume.
|
|
@@ -52,13 +52,11 @@ start_agent main_hub:
|
|
|
52
52
|
reasoning:
|
|
53
53
|
instructions: ->
|
|
54
54
|
| You are the main coordinator.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
|
61
|
-
| Current specialist result: {!@variables.specialist_result}
|
|
55
|
+
When user needs specialized help:
|
|
56
|
+
- For pricing questions, consult the pricing specialist
|
|
57
|
+
- For technical issues, consult the technical specialist
|
|
58
|
+
After specialist returns, communicate their findings to the user.
|
|
59
|
+
Current specialist result: {!@variables.specialist_result}
|
|
62
60
|
actions:
|
|
63
61
|
consult_pricing: @utils.transition to @subagent.pricing_specialist
|
|
64
62
|
|
|
@@ -90,9 +88,9 @@ subagent pricing_specialist:
|
|
|
90
88
|
reasoning:
|
|
91
89
|
instructions: ->
|
|
92
90
|
| You are the pricing specialist.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
Focus ONLY on pricing questions.
|
|
92
|
+
Calculate the price and prepare your findings.
|
|
93
|
+
When done, return to the main hub with your results.
|
|
96
94
|
actions:
|
|
97
95
|
calculate: @actions.calculate_price
|
|
98
96
|
with product_id=...
|
|
@@ -123,9 +121,9 @@ subagent technical_specialist:
|
|
|
123
121
|
reasoning:
|
|
124
122
|
instructions: ->
|
|
125
123
|
| You are the technical specialist.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
Focus ONLY on technical issues.
|
|
125
|
+
Diagnose the problem and prepare your findings.
|
|
126
|
+
When done, return to the main hub with your results.
|
|
129
127
|
actions:
|
|
130
128
|
diagnose: @actions.diagnose_issue
|
|
131
129
|
with symptoms=...
|
|
@@ -110,31 +110,27 @@ start_agent input_collector:
|
|
|
110
110
|
# Tell the LLM its PRIMARY GOAL is to collect the input
|
|
111
111
|
instructions: ->
|
|
112
112
|
| YOUR PRIMARY GOAL: Collect the account ID from the user.
|
|
113
|
-
|
|
114
|
-
| CURRENT STATE:
|
|
113
|
+
CURRENT STATE:
|
|
115
114
|
if @variables.account_id == "":
|
|
116
115
|
| ⚠️ Account ID NOT YET COLLECTED
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
| Example prompt: "Please provide the Account ID you'd like me to research."
|
|
116
|
+
ASK the user for their Salesforce Account ID.
|
|
117
|
+
The ID should be 18 characters and start with "001".
|
|
118
|
+
Example prompt: "Please provide the Account ID you'd like me to research."
|
|
121
119
|
|
|
122
120
|
if @variables.account_id != "" and @variables.account_id_validated == False:
|
|
123
121
|
| 🔄 Account ID received: {!@variables.account_id}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
| Use {!@actions.capture_account_id} to validate this ID.
|
|
122
|
+
Attempting validation...
|
|
123
|
+
Use {!@actions.capture_account_id} to validate this ID.
|
|
127
124
|
|
|
128
125
|
if @variables.account_id_validated == True:
|
|
129
126
|
| ✅ Account ID validated: {!@variables.account_id}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
| Continue to the research workflow.
|
|
127
|
+
Account Name: {!@variables.account_name}
|
|
128
|
+
Continue to the research workflow.
|
|
133
129
|
|
|
134
130
|
if @variables.collection_attempts > 2 and @variables.account_id_validated == False:
|
|
135
131
|
| ❌ Multiple validation failures.
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
Ask the user to verify their Account ID is correct.
|
|
133
|
+
Suggest they check Salesforce for the correct ID format.
|
|
138
134
|
|
|
139
135
|
actions:
|
|
140
136
|
# ★ PATTERN 3: Single-Use Pattern
|
|
@@ -178,12 +174,11 @@ subagent research:
|
|
|
178
174
|
reasoning:
|
|
179
175
|
instructions: ->
|
|
180
176
|
| Researching account: {!@variables.account_name} ({!@variables.account_id})
|
|
181
|
-
|
|
|
182
177
|
if @variables.research_summary == "":
|
|
183
178
|
| Use {!@actions.research_account} to analyze this account.
|
|
184
179
|
if @variables.research_summary != "":
|
|
185
180
|
| Research complete!
|
|
186
|
-
|
|
181
|
+
{!@variables.research_summary}
|
|
187
182
|
|
|
188
183
|
actions:
|
|
189
184
|
# ★ PATTERN 4: Null Guard - Uses variable binding, NOT slot filling
|
|
@@ -97,9 +97,8 @@ start_agent conversation:
|
|
|
97
97
|
reasoning:
|
|
98
98
|
instructions: ->
|
|
99
99
|
| Current user context:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
| Respond helpfully using the refreshed context above.
|
|
100
|
+
{!@variables.current_context}
|
|
101
|
+
Respond helpfully using the refreshed context above.
|
|
103
102
|
actions:
|
|
104
103
|
end_conversation: @utils.transition to @subagent.farewell
|
|
105
104
|
|
|
@@ -97,13 +97,12 @@ start_agent catalog_assistance:
|
|
|
97
97
|
reasoning:
|
|
98
98
|
instructions: ->
|
|
99
99
|
| Help with the user's current public-catalog request.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
| If a required lookup value is absent, ask for that value instead
|
|
100
|
+
The service notice refreshed for this turn is:
|
|
101
|
+
{!@variables.service_notice}
|
|
102
|
+
Mention that notice only when it is relevant.
|
|
103
|
+
Use catalog_search for product discovery.
|
|
104
|
+
Use availability_lookup only for current availability.
|
|
105
|
+
If a required lookup value is absent, ask for that value instead
|
|
107
106
|
of invoking an action with a guess.
|
|
108
107
|
|
|
109
108
|
# Model-chosen: these read-only actions are available to reasoning, but
|
|
@@ -61,9 +61,9 @@ start_agent agent_router:
|
|
|
61
61
|
reasoning:
|
|
62
62
|
instructions: ->
|
|
63
63
|
| Route only the user's latest request:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
- order status, returns, or shipping: protected order help;
|
|
65
|
+
- account settings or profile changes: protected account help;
|
|
66
|
+
- verification details for a pending protected request:
|
|
67
67
|
authentication;
|
|
68
68
|
| - cancellation, a changed subject, or a general question:
|
|
69
69
|
general inquiry.
|
|
@@ -55,10 +55,9 @@ start_agent agent_router:
|
|
|
55
55
|
reasoning:
|
|
56
56
|
instructions: ->
|
|
57
57
|
| Ask the user what type of content they'd like to generate:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
| Route to the appropriate request handler.
|
|
58
|
+
1. Personalized daily schedule
|
|
59
|
+
2. Professional email
|
|
60
|
+
Route to the appropriate request handler.
|
|
62
61
|
actions:
|
|
63
62
|
go_schedule: @utils.transition to @subagent.schedule_generation
|
|
64
63
|
go_email: @utils.transition to @subagent.email_generation
|
|
@@ -95,14 +94,12 @@ subagent schedule_generation:
|
|
|
95
94
|
reasoning:
|
|
96
95
|
instructions: ->
|
|
97
96
|
| Help the user create a personalized daily schedule.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
| The schedule will include morning routine, work blocks,
|
|
105
|
-
| breaks, and evening wind-down based on preferences.
|
|
97
|
+
1. Ask for their email (required)
|
|
98
|
+
2. Ask for their timezone (optional, defaults to Pacific)
|
|
99
|
+
3. Generate the schedule using the AI template
|
|
100
|
+
4. Present the generated schedule
|
|
101
|
+
The schedule will include morning routine, work blocks,
|
|
102
|
+
breaks, and evening wind-down based on preferences.
|
|
106
103
|
|
|
107
104
|
actions:
|
|
108
105
|
create_schedule: @actions.Generate_Personalized_Schedule
|
|
@@ -140,13 +137,11 @@ subagent email_generation:
|
|
|
140
137
|
reasoning:
|
|
141
138
|
instructions: ->
|
|
142
139
|
| Help the user draft a professional email.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
|
149
|
-
| Generate the email and present it for review.
|
|
140
|
+
Collect:
|
|
141
|
+
1. Recipient's name (required)
|
|
142
|
+
2. Email topic/purpose (required)
|
|
143
|
+
3. Desired tone: formal, friendly, or urgent (optional)
|
|
144
|
+
Generate the email and present it for review.
|
|
150
145
|
|
|
151
146
|
actions:
|
|
152
147
|
create_email: @actions.Generate_Professional_Email
|
|
@@ -115,10 +115,10 @@ subagent orders:
|
|
|
115
115
|
# ★ Tier-specific instructions carry through to subagents
|
|
116
116
|
if @variables.customer_tier == "vip":
|
|
117
117
|
| This is a VIP customer. Expedite all order requests.
|
|
118
|
-
|
|
118
|
+
Offer free shipping upgrades proactively.
|
|
119
119
|
|
|
120
120
|
| Help the customer with their order inquiry.
|
|
121
|
-
|
|
121
|
+
Look up order status, process changes, or handle returns.
|
|
122
122
|
|
|
123
123
|
actions:
|
|
124
124
|
back: @utils.transition to @subagent.agent_router
|
|
@@ -132,7 +132,7 @@ subagent billing:
|
|
|
132
132
|
# ★ Different authority based on tier
|
|
133
133
|
if @variables.customer_tier == "vip":
|
|
134
134
|
| You can waive fees up to $100 for VIP customers.
|
|
135
|
-
|
|
135
|
+
Proactively offer payment plan options.
|
|
136
136
|
else if @variables.customer_tier == "premium":
|
|
137
137
|
| You can waive fees up to $25 for premium customers.
|
|
138
138
|
else if @variables.customer_tier == "standard":
|
|
@@ -154,7 +154,7 @@ subagent support:
|
|
|
154
154
|
instructions: ->
|
|
155
155
|
if @variables.business_hours == False:
|
|
156
156
|
| Technical support is limited outside business hours.
|
|
157
|
-
|
|
157
|
+
Log the issue for follow-up and provide self-service resources.
|
|
158
158
|
|
|
159
159
|
if @variables.business_hours == True:
|
|
160
160
|
| Full technical support available. Troubleshoot thoroughly.
|
|
@@ -184,10 +184,8 @@ subagent formal_mode:
|
|
|
184
184
|
|
|
185
185
|
reasoning:
|
|
186
186
|
instructions: ->
|
|
187
|
-
|
|
|
188
|
-
|
|
189
|
-
| Good day. How may I be of assistance?
|
|
190
|
-
| I am prepared to address your inquiry with the utmost professionalism.
|
|
187
|
+
| Greet the user in the formal style defined by the system
|
|
188
|
+
instructions and ask what business matter they need help with.
|
|
191
189
|
|
|
192
190
|
actions:
|
|
193
191
|
back: @utils.transition to @subagent.agent_router
|
|
@@ -206,12 +204,8 @@ subagent creative_mode:
|
|
|
206
204
|
|
|
207
205
|
reasoning:
|
|
208
206
|
instructions: ->
|
|
209
|
-
|
|
|
210
|
-
|
|
211
|
-
| Hey there, creative spirit! Ready to explore some ideas together?
|
|
212
|
-
| Think of me as your brainstorming buddy - no idea is too wild!
|
|
213
|
-
|
|
|
214
|
-
| What shall we dream up today?
|
|
207
|
+
| Greet the user in the playful, imaginative style defined by the
|
|
208
|
+
system instructions and ask what they want to create or explore.
|
|
215
209
|
|
|
216
210
|
actions:
|
|
217
211
|
back: @utils.transition to @subagent.agent_router
|
|
@@ -230,12 +224,9 @@ subagent technical_expert:
|
|
|
230
224
|
|
|
231
225
|
reasoning:
|
|
232
226
|
instructions: ->
|
|
233
|
-
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
| Feel free to use technical terminology - I'll match your level.
|
|
237
|
-
|
|
|
238
|
-
| What technical challenge are we solving?
|
|
227
|
+
| Greet the user as a technical expert, match their apparent level
|
|
228
|
+
of technical detail, and ask what technical problem they need to
|
|
229
|
+
solve.
|
|
239
230
|
|
|
240
231
|
actions:
|
|
241
232
|
back: @utils.transition to @subagent.agent_router
|
|
@@ -155,7 +155,7 @@ subagent order_management:
|
|
|
155
155
|
reasoning:
|
|
156
156
|
instructions: ->
|
|
157
157
|
| Help the customer with their order.
|
|
158
|
-
|
|
158
|
+
When they ask about an order, look it up.
|
|
159
159
|
actions:
|
|
160
160
|
# LLM automatically selects this when appropriate
|
|
161
161
|
lookup: @actions.get_order
|
|
@@ -180,7 +180,7 @@ You can also reference action definitions inside `instructions:` using `{!@actio
|
|
|
180
180
|
reasoning:
|
|
181
181
|
instructions: ->
|
|
182
182
|
| To look up an order, use {!@actions.get_order}.
|
|
183
|
-
|
|
183
|
+
To check shipping status, use {!@actions.track_shipment}.
|
|
184
184
|
```
|
|
185
185
|
|
|
186
186
|
> See [patterns-by-requirement.md](patterns-by-requirement.md) and
|