@salesforce/afv-skills 1.65.0 → 1.65.1

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.
Files changed (349) hide show
  1. package/package.json +1 -1
  2. package/skills/field-service-data-capture-form-deployer-configure/SKILL.md +2 -23
  3. package/skills/field-service-data-capture-form-designer-configure/SKILL.md +3 -13
  4. package/skills/field-service-mobile-branding-configure/SKILL.md +3 -17
  5. package/skills/field-service-objective-designer-configure/SKILL.md +379 -72
  6. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +537 -10
  7. package/skills/field-service-scheduling-policy-designer-query/SKILL.md +1093 -65
  8. package/skills/field-service-sobject-create-configure/SKILL.md +213 -13
  9. package/skills/field-service-voice-to-form-configure/SKILL.md +11 -40
  10. package/skills/field-service-work-rule-designer-configure/SKILL.md +95 -121
  11. package/skills/agentforce-gpt-email-generation-configure/SKILL.md +0 -312
  12. package/skills/agentforce-wizard-ui-forecasting-analytics-components-configure/SKILL.md +0 -64
  13. package/skills/agentforce-wizard-ui-sales-einstein-components-configure/SKILL.md +0 -46
  14. package/skills/automation-company-profile-info-query/SKILL.md +0 -51
  15. package/skills/automation-digital-wallet-configure/SKILL.md +0 -689
  16. package/skills/automation-flow-coordinate/SKILL.md +0 -95
  17. package/skills/automation-flow-coordinate/references/elements/action-call/action-call.md +0 -1569
  18. package/skills/automation-flow-coordinate/references/elements/action-call/conversation-messaging.md +0 -96
  19. package/skills/automation-flow-coordinate/references/elements/action-call/examples/send-sms-message.json +0 -23
  20. package/skills/automation-flow-coordinate/references/elements/action-call/examples/send-to-journey-no-fields.json +0 -31
  21. package/skills/automation-flow-coordinate/references/elements/action-call/send-to-journey.md +0 -179
  22. package/skills/automation-flow-coordinate/references/elements/exit-rule/examples/event-email-link-click.json +0 -13
  23. package/skills/automation-flow-coordinate/references/elements/exit-rule/exit-rule.md +0 -83
  24. package/skills/automation-flow-coordinate/references/elements/forward-to-bot-or-agent/examples/forward-to-bot-or-agent.json +0 -69
  25. package/skills/automation-flow-coordinate/references/elements/forward-to-bot-or-agent/forward-to-bot-or-agent.md +0 -274
  26. package/skills/automation-flow-coordinate/references/elements/start/audience-common.md +0 -192
  27. package/skills/automation-flow-coordinate/references/elements/start/automation-event-triggered.md +0 -130
  28. package/skills/automation-flow-coordinate/references/elements/start/data-cloud-data-change-triggered.md +0 -92
  29. package/skills/automation-flow-coordinate/references/elements/start/form-submission-triggered.md +0 -88
  30. package/skills/automation-flow-coordinate/references/elements/start/segment-triggered.md +0 -152
  31. package/skills/automation-flow-coordinate/references/elements/start/start.md +0 -539
  32. package/skills/automation-flow-coordinate/references/elements/subflow/subflow.md +0 -152
  33. package/skills/automation-flow-coordinate/references/elements/wait/wait.md +0 -497
  34. package/skills/automation-flow-coordinate/references/recipes/author/author.md +0 -868
  35. package/skills/automation-flow-coordinate/references/recipes/summarize/element-generic.md +0 -300
  36. package/skills/automation-flow-coordinate/references/recipes/summarize/reference-resolution.md +0 -292
  37. package/skills/automation-flow-coordinate/references/recipes/summarize/summarize.md +0 -323
  38. package/skills/automation-flow-coordinate/references/recipes/testing/examples/debug-output-template.md +0 -109
  39. package/skills/automation-flow-coordinate/references/recipes/testing/shape.md +0 -219
  40. package/skills/automation-flow-coordinate/references/recipes/testing/shared-stages/intent-analyzer.md +0 -180
  41. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/debug.md +0 -175
  42. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/promote.md +0 -255
  43. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/save-debug.md +0 -212
  44. package/skills/automation-flow-coordinate/references/resources/variable/variable.md +0 -171
  45. package/skills/automation-flow-coordinate/references/shared/anti-patterns.md +0 -786
  46. package/skills/automation-flow-coordinate/references/shared/end/end.md +0 -267
  47. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/README.md +0 -69
  48. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/predictions.jsonl +0 -80
  49. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/prompts.jsonl +0 -116
  50. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/flow-type-resolver.md +0 -321
  51. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/taxonomy.json +0 -320
  52. package/skills/automation-flow-coordinate/references/shared/server-functions.md +0 -597
  53. package/skills/automotive-cloud-appraisal-management-settings-configure/SKILL.md +0 -69
  54. package/skills/automotive-cloud-dealer-essentials-configure/SKILL.md +0 -78
  55. package/skills/automotive-cloud-ground-agent-data-pipelines-configure/SKILL.md +0 -373
  56. package/skills/automotive-cloud-ground-mfg-agent-data-pipelines-configure/SKILL.md +0 -273
  57. package/skills/automotive-cloud-mfg-agent-data-pipelines-configure/SKILL.md +0 -259
  58. package/skills/automotive-cloud-mfg-sales-concierge-agent-create/SKILL.md +0 -369
  59. package/skills/automotive-cloud-mfg-sales-concierge-foundation-configure/SKILL.md +0 -542
  60. package/skills/automotive-cloud-mfg-sales-concierge-foundation-coordinate/SKILL.md +0 -159
  61. package/skills/automotive-cloud-mfg-sales-concierge-orchestrator-agent-create/SKILL.md +0 -349
  62. package/skills/automotive-cloud-mfg-sales-concierge-orchestrator-configure/SKILL.md +0 -505
  63. package/skills/automotive-cloud-sales-concierge-agent-create/SKILL.md +0 -380
  64. package/skills/automotive-cloud-sales-concierge-foundation-configure/SKILL.md +0 -567
  65. package/skills/automotive-cloud-sales-concierge-foundation-coordinate/SKILL.md +0 -159
  66. package/skills/automotive-cloud-sales-concierge-orchestrator-agent-create/SKILL.md +0 -360
  67. package/skills/automotive-cloud-sales-concierge-orchestrator-configure/SKILL.md +0 -539
  68. package/skills/automotive-cloud-sales-concierge-search-grounding-configure/SKILL.md +0 -358
  69. package/skills/commerce-b2b-merchant-quote-configure/SKILL.md +0 -602
  70. package/skills/commerce-b2b-store-configure/SKILL.md +0 -251
  71. package/skills/commerce-credit-memo-create/SKILL.md +0 -139
  72. package/skills/commerce-delivery-business-hours-configure/SKILL.md +0 -277
  73. package/skills/commerce-delivery-estimation-apply/SKILL.md +0 -155
  74. package/skills/commerce-delivery-estimation-configure/SKILL.md +0 -377
  75. package/skills/commerce-delivery-routing-specs-integrate/SKILL.md +0 -174
  76. package/skills/commerce-estimate-bopis-query/SKILL.md +0 -279
  77. package/skills/commerce-estimate-delivery-date-query/SKILL.md +0 -349
  78. package/skills/commerce-fees-apply/SKILL.md +0 -227
  79. package/skills/commerce-fulfillment-routing-analyze/SKILL.md +0 -200
  80. package/skills/commerce-guest-buyer-create/SKILL.md +0 -173
  81. package/skills/commerce-location-bopis-configure/SKILL.md +0 -378
  82. package/skills/commerce-location-business-hours-configure/SKILL.md +0 -235
  83. package/skills/commerce-location-delivery-processing-time-configure/SKILL.md +0 -309
  84. package/skills/commerce-location-graph-integrate/SKILL.md +0 -131
  85. package/skills/commerce-location-shipping-carrier-method-configure/SKILL.md +0 -755
  86. package/skills/commerce-location-temporary-operating-hours-configure/SKILL.md +0 -331
  87. package/skills/commerce-merchant-buyer-groups-configure/SKILL.md +0 -579
  88. package/skills/commerce-merchant-buyer-user-onboarding-create/SKILL.md +0 -626
  89. package/skills/commerce-merchant-catalog-configure/SKILL.md +0 -614
  90. package/skills/commerce-merchant-extension-provider-configure/SKILL.md +0 -368
  91. package/skills/commerce-merchant-insights-account-health-churn-analyze/SKILL.md +0 -118
  92. package/skills/commerce-merchant-insights-inventory-returns-analyze/SKILL.md +0 -65
  93. package/skills/commerce-merchant-insights-order-shopper-get/SKILL.md +0 -90
  94. package/skills/commerce-merchant-insights-product-performance-analyze/SKILL.md +0 -72
  95. package/skills/commerce-merchant-insights-query/SKILL.md +0 -279
  96. package/skills/commerce-merchant-storefront-guest-access-configure/SKILL.md +0 -656
  97. package/skills/commerce-order-summary-change-apply/SKILL.md +0 -375
  98. package/skills/commerce-product-details-get/SKILL.md +0 -363
  99. package/skills/commerce-product-search/SKILL.md +0 -563
  100. package/skills/commerce-react-storefront-create/SKILL.md +0 -350
  101. package/skills/commerce-return-order-summary-create/SKILL.md +0 -513
  102. package/skills/commerce-search-relevance-analyze/SKILL.md +0 -757
  103. package/skills/commerce-temporary-processing-time-override-create/SKILL.md +0 -274
  104. package/skills/communications-initial-setup-configure/SKILL.md +0 -630
  105. package/skills/communications-multisite-configure/SKILL.md +0 -571
  106. package/skills/communications-revenue-cloud-settings-configure/SKILL.md +0 -74
  107. package/skills/communications-smb-fiber-catalog-create/SKILL.md +0 -413
  108. package/skills/communications-tmf-integrate/SKILL.md +0 -1368
  109. package/skills/consumer-goods-visit-activity-act4-questions-assign/SKILL.md +0 -448
  110. package/skills/consumer-goods-visit-activity-act5-standard-create/SKILL.md +0 -269
  111. package/skills/consumer-goods-visit-activity-act6-assortment-configure/SKILL.md +0 -271
  112. package/skills/consumer-goods-visit-activity-act7-account-scoping-create/SKILL.md +0 -382
  113. package/skills/consumer-goods-visit-activity-act8-plan-attach-create/SKILL.md +0 -373
  114. package/skills/consumer-goods-visit-activity-act9-proof-validate/SKILL.md +0 -389
  115. package/skills/consumer-goods-visit-and-activity-act1-specification-create/SKILL.md +0 -338
  116. package/skills/consumer-goods-visit-and-activity-act2-template-create/SKILL.md +0 -547
  117. package/skills/consumer-goods-visit-and-activity-act3-definition-create/SKILL.md +0 -346
  118. package/skills/consumer-goods-visit-and-activity-configure/SKILL.md +0 -1110
  119. package/skills/crm-analytics-adoption-insights-configure/SKILL.md +0 -224
  120. package/skills/crm-analytics-custom-report-type-lightning-configure/SKILL.md +0 -418
  121. package/skills/crm-analytics-dashboards-configure/SKILL.md +0 -731
  122. package/skills/crm-analytics-operational-analytics-metadata-bridge-migrate/SKILL.md +0 -233
  123. package/skills/crm-analytics-report-notifications-ui-configure/SKILL.md +0 -184
  124. package/skills/crm-analytics-sharing-inheritance-coverage-analyze/SKILL.md +0 -167
  125. package/skills/crm-analytics-sonic-getting-started-configure/SKILL.md +0 -55
  126. package/skills/crm-analytics-tableau-next-app-deploy/SKILL.md +0 -1350
  127. package/skills/crm-analytics-tableau-next-c360-basemodel-validate/SKILL.md +0 -1862
  128. package/skills/crm-analytics-tableau-next-datacloud-validate/SKILL.md +0 -83
  129. package/skills/crm-analytics-tableau-next-provisioning-validate/SKILL.md +0 -81
  130. package/skills/data360-activation-create/SKILL.md +0 -104
  131. package/skills/data360-activation-external-platform-get/SKILL.md +0 -49
  132. package/skills/data360-activation-target-create/SKILL.md +0 -93
  133. package/skills/data360-activation-v2-create/SKILL.md +0 -456
  134. package/skills/data360-audience-dmo-get/SKILL.md +0 -38
  135. package/skills/data360-calculated-affinity-create/SKILL.md +0 -82
  136. package/skills/data360-calculated-insight-create/SKILL.md +0 -148
  137. package/skills/data360-catalog-metadata-create/SKILL.md +0 -183
  138. package/skills/data360-code-extension-create/SKILL.md +0 -115
  139. package/skills/data360-communication-capping-create/SKILL.md +0 -227
  140. package/skills/data360-connection-create/SKILL.md +0 -491
  141. package/skills/data360-content-lens-create/SKILL.md +0 -181
  142. package/skills/data360-data-action-create/SKILL.md +0 -126
  143. package/skills/data360-data-action-target-create/SKILL.md +0 -181
  144. package/skills/data360-data-clean-room-create/SKILL.md +0 -238
  145. package/skills/data360-data-governance-create/SKILL.md +0 -746
  146. package/skills/data360-data-graph-create/SKILL.md +0 -82
  147. package/skills/data360-data-harmonized-model-object-reference-create/SKILL.md +0 -38
  148. package/skills/data360-data-lake-object-create/SKILL.md +0 -207
  149. package/skills/data360-data-model-object-catalog-get/SKILL.md +0 -49
  150. package/skills/data360-data-model-object-create/SKILL.md +0 -128
  151. package/skills/data360-data-model-object-mapping-create/SKILL.md +0 -106
  152. package/skills/data360-data-space-create/SKILL.md +0 -161
  153. package/skills/data360-data-streams-create/SKILL.md +0 -324
  154. package/skills/data360-engagement-signal-get/SKILL.md +0 -38
  155. package/skills/data360-experiment-create/SKILL.md +0 -82
  156. package/skills/data360-goal-based-campaign-create/SKILL.md +0 -192
  157. package/skills/data360-harmonization-process-history-get/SKILL.md +0 -38
  158. package/skills/data360-harmonized-unstructured-dmo-create/SKILL.md +0 -84
  159. package/skills/data360-identity-resolution-create/SKILL.md +0 -115
  160. package/skills/data360-intelligent-document-processing-create/SKILL.md +0 -148
  161. package/skills/data360-knowledge-graph-construction-create/SKILL.md +0 -93
  162. package/skills/data360-knowledge-graph-create/SKILL.md +0 -216
  163. package/skills/data360-knowledge-space-mcp-configure/SKILL.md +0 -475
  164. package/skills/data360-machine-learning-mcp-configure/SKILL.md +0 -697
  165. package/skills/data360-multi-org-mcp-configure/SKILL.md +0 -117
  166. package/skills/data360-secondary-index-mcp-configure/SKILL.md +0 -126
  167. package/skills/data360-segment-mcp-configure/SKILL.md +0 -159
  168. package/skills/data360-semantic-calculated-dimension-mcp-configure/SKILL.md +0 -93
  169. package/skills/data360-semantic-calculated-measurement-mcp-configure/SKILL.md +0 -93
  170. package/skills/data360-semantic-data-object-mcp-configure/SKILL.md +0 -93
  171. package/skills/data360-semantic-dimension-mcp-configure/SKILL.md +0 -38
  172. package/skills/data360-semantic-engine-mcp-configure/SKILL.md +0 -62
  173. package/skills/data360-semantic-measurement-mcp-configure/SKILL.md +0 -38
  174. package/skills/data360-semantic-metric-mcp-configure/SKILL.md +0 -93
  175. package/skills/data360-semantic-model-mcp-configure/SKILL.md +0 -115
  176. package/skills/data360-standard-mapping-mcp-configure/SKILL.md +0 -38
  177. package/skills/data360-tenant-lifecycle-mcp-configure/SKILL.md +0 -73
  178. package/skills/experience-afv-query/SKILL.md +0 -234
  179. package/skills/experience-agentforce-vibes-in-react-configure/SKILL.md +0 -63
  180. package/skills/experience-apex-components-configure/SKILL.md +0 -69
  181. package/skills/experience-apex-pages-configure/SKILL.md +0 -107
  182. package/skills/experience-app-home-configure/SKILL.md +0 -76
  183. package/skills/experience-aura-lightning-out-access-configure/SKILL.md +0 -58
  184. package/skills/experience-briefcase-configure/SKILL.md +0 -287
  185. package/skills/experience-community-flexi-page-list-create/SKILL.md +0 -74
  186. package/skills/experience-community-template-definition-list-query/SKILL.md +0 -48
  187. package/skills/experience-community-theme-definition-list-query/SKILL.md +0 -38
  188. package/skills/experience-content-assets-configure/SKILL.md +0 -86
  189. package/skills/experience-custom-domain-create/SKILL.md +0 -727
  190. package/skills/experience-defer-rendering-workspace-page-setup-configure/SKILL.md +0 -41
  191. package/skills/experience-field-service-app-builder-configure/SKILL.md +0 -187
  192. package/skills/experience-flow-category-configure/SKILL.md +0 -117
  193. package/skills/experience-formula-configure/SKILL.md +0 -358
  194. package/skills/experience-global-actions-configure/SKILL.md +0 -69
  195. package/skills/experience-global-publisher-layouts-configure/SKILL.md +0 -79
  196. package/skills/experience-instrumentation-configure/SKILL.md +0 -64
  197. package/skills/experience-lex-engagement-configure/SKILL.md +0 -50
  198. package/skills/experience-lightning-bolt-open/SKILL.md +0 -12
  199. package/skills/experience-lightning-out-configure/SKILL.md +0 -129
  200. package/skills/experience-lightning-preview-configure/SKILL.md +0 -67
  201. package/skills/experience-lightning-types-query/SKILL.md +0 -98
  202. package/skills/experience-malware-scan-configure/SKILL.md +0 -71
  203. package/skills/experience-my-salesforce-configure/SKILL.md +0 -126
  204. package/skills/experience-navigation-menus-configure/SKILL.md +0 -235
  205. package/skills/experience-notification-types-configure/SKILL.md +0 -206
  206. package/skills/experience-notifications-configure/SKILL.md +0 -75
  207. package/skills/experience-record-discovery-query/SKILL.md +0 -227
  208. package/skills/experience-regenerate-previews-open/SKILL.md +0 -94
  209. package/skills/experience-sales-cloud-mab-configure/SKILL.md +0 -254
  210. package/skills/experience-schema-builder-open/SKILL.md +0 -38
  211. package/skills/experience-simple-record-home-configure/SKILL.md +0 -110
  212. package/skills/experience-static-resources-configure/SKILL.md +0 -74
  213. package/skills/field-service-setup-coordinate/SKILL.md +0 -62
  214. package/skills/field-service-work-plan-configure/SKILL.md +0 -253
  215. package/skills/fsc-actionable-segmentation-settings-configure/SKILL.md +0 -180
  216. package/skills/fsc-digital-origination-bre-decision-matrix-foundation-create/SKILL.md +0 -196
  217. package/skills/fsc-digital-origination-bre-disclosures-consent-configure/SKILL.md +0 -106
  218. package/skills/fsc-digital-origination-bre-document-upload-configure/SKILL.md +0 -96
  219. package/skills/fsc-digital-origination-bre-permissions-assign/SKILL.md +0 -111
  220. package/skills/fsc-digital-origination-bre-setup-coordinate/SKILL.md +0 -250
  221. package/skills/fsc-digital-origination-bre-stp-eligibility-configure/SKILL.md +0 -122
  222. package/skills/fsc-digital-origination-coordinate/SKILL.md +0 -653
  223. package/skills/fsc-digital-origination-demo-run/SKILL.md +0 -225
  224. package/skills/fsc-digital-origination-execution-guardrails-validate/SKILL.md +0 -112
  225. package/skills/fsc-digital-origination-initial-setup-configure/SKILL.md +0 -396
  226. package/skills/fsc-digital-origination-pricing-setup-coordinate/SKILL.md +0 -336
  227. package/skills/fsc-digital-origination-pricing-setup-data-foundation-create/SKILL.md +0 -208
  228. package/skills/fsc-digital-origination-pricing-setup-procedure-create/SKILL.md +0 -375
  229. package/skills/fsc-digital-origination-product-setup-act1-permissions-assign/SKILL.md +0 -83
  230. package/skills/fsc-digital-origination-product-setup-coordinate/SKILL.md +0 -248
  231. package/skills/fsc-digital-origination-sample-data-create/SKILL.md +0 -206
  232. package/skills/fsc-document-checklist-settings-configure/SKILL.md +0 -57
  233. package/skills/fsc-flexible-hierarchy-configure/SKILL.md +0 -148
  234. package/skills/fsc-flexible-hierarchy-foundation-configure/SKILL.md +0 -1430
  235. package/skills/fsc-flexible-hierarchy-graph-config-create/SKILL.md +0 -471
  236. package/skills/fsc-flexible-hierarchy-rule-based-graph-deploy/SKILL.md +0 -429
  237. package/skills/fsc-pricing-product-configurator-configure/SKILL.md +0 -150
  238. package/skills/fsc-pricing-salesforce-omnistudio-switch/SKILL.md +0 -123
  239. package/skills/fsc-product-act2-catalog-categories-create/SKILL.md +0 -82
  240. package/skills/fsc-product-act3-attributes-create/SKILL.md +0 -249
  241. package/skills/fsc-product-act4-classification-assignment-create/SKILL.md +0 -196
  242. package/skills/fsc-product-act5-considerations-get/SKILL.md +0 -44
  243. package/skills/fsc-stage-management-apex-flow-deploy/SKILL.md +0 -384
  244. package/skills/fsc-stage-management-compliant-data-sharing-configure/SKILL.md +0 -144
  245. package/skills/fsc-stage-management-decision-matrices-create/SKILL.md +0 -107
  246. package/skills/fsc-stage-management-definition-assignments-create/SKILL.md +0 -189
  247. package/skills/fsc-stage-management-definition-create/SKILL.md +0 -108
  248. package/skills/fsc-stage-management-permissions-assign/SKILL.md +0 -143
  249. package/skills/fsc-stage-management-transitions-configure/SKILL.md +0 -139
  250. package/skills/health-cloud-appt-booking-config-configure/SKILL.md +0 -135
  251. package/skills/health-cloud-appt-booking-url-config-configure/SKILL.md +0 -134
  252. package/skills/health-cloud-care-provider-affl-role-config-configure/SKILL.md +0 -136
  253. package/skills/health-cloud-care-provider-search-config-configure/SKILL.md +0 -134
  254. package/skills/health-cloud-care-requests-create/SKILL.md +0 -178
  255. package/skills/health-cloud-initial-configure/SKILL.md +0 -511
  256. package/skills/health-cloud-patient-appointment-scheduling-configure/SKILL.md +0 -1374
  257. package/skills/health-cloud-provider-search-settings-configure/SKILL.md +0 -924
  258. package/skills/health-cloud-referral-management-coordinate/SKILL.md +0 -513
  259. package/skills/health-cloud-timeline-configure/SKILL.md +0 -622
  260. package/skills/health-cloud-virtual-visit-config-configure/SKILL.md +0 -135
  261. package/skills/industries-account-score-settings-query/SKILL.md +0 -78
  262. package/skills/industries-actionable-list-data-sources-dmo-configure/SKILL.md +0 -177
  263. package/skills/industries-ad-product-availability-search/SKILL.md +0 -399
  264. package/skills/industries-advanced-account-forecast-settings-configure/SKILL.md +0 -628
  265. package/skills/industries-advanced-therapy-management-settings-configure/SKILL.md +0 -73
  266. package/skills/industries-atm-settings-starter-configure/SKILL.md +0 -76
  267. package/skills/industries-batch-document-ai-configure/SKILL.md +0 -196
  268. package/skills/industries-behavioral-health-app-settings-configure/SKILL.md +0 -71
  269. package/skills/industries-branch-management-settings-configure/SKILL.md +0 -89
  270. package/skills/industries-bre-decision-table-access-configure/SKILL.md +0 -367
  271. package/skills/industries-brokerage-settings-configure/SKILL.md +0 -41
  272. package/skills/industries-calendar-sync-settings-configure/SKILL.md +0 -89
  273. package/skills/industries-care-request-settings-configure/SKILL.md +0 -218
  274. package/skills/industries-case-management-intelligence-settings-configure/SKILL.md +0 -54
  275. package/skills/industries-catalog-process-attributes-products-configure/SKILL.md +0 -380
  276. package/skills/industries-catalog-process-fulfillment-configure/SKILL.md +0 -216
  277. package/skills/industries-catalog-process-intake-configure/SKILL.md +0 -219
  278. package/skills/industries-catalog-process-knowledge-configure/SKILL.md +0 -153
  279. package/skills/industries-catalog-process-preprocessor-configure/SKILL.md +0 -168
  280. package/skills/industries-cds-general-settings-configure/SKILL.md +0 -69
  281. package/skills/industries-claim-financial-settings-configure/SKILL.md +0 -169
  282. package/skills/industries-clinical-data-model-settings-configure/SKILL.md +0 -136
  283. package/skills/industries-clinical-data-model-settings-starter-configure/SKILL.md +0 -105
  284. package/skills/industries-collection-plan-settings-configure/SKILL.md +0 -132
  285. package/skills/industries-comms-service-console-settings-configure/SKILL.md +0 -159
  286. package/skills/industries-compliance-configure/SKILL.md +0 -102
  287. package/skills/industries-compliance-document-extraction-setup-configure/SKILL.md +0 -76
  288. package/skills/industries-contact-center-app-layout-configure/SKILL.md +0 -88
  289. package/skills/industries-contact-center-components-configure/SKILL.md +0 -96
  290. package/skills/industries-contact-center-path-knowledge-configure/SKILL.md +0 -95
  291. package/skills/industries-contact-center-user-access-assign/SKILL.md +0 -96
  292. package/skills/industries-course-waitlist-config-configure/SKILL.md +0 -162
  293. package/skills/industries-crisis-center-settings-configure/SKILL.md +0 -84
  294. package/skills/industries-custom-object-settings-configure/SKILL.md +0 -94
  295. package/skills/industries-data-cloud-integration-configure/SKILL.md +0 -88
  296. package/skills/industries-data-space-feature-mappings-configure/SKILL.md +0 -245
  297. package/skills/industries-decision-matrix-builder-configure/SKILL.md +0 -78
  298. package/skills/industries-decision-table-hbase-configure/SKILL.md +0 -87
  299. package/skills/industries-decision-table-version-configure/SKILL.md +0 -74
  300. package/skills/industries-decision-tables-builder-configure/SKILL.md +0 -253
  301. package/skills/industries-decision-tables-configure/SKILL.md +0 -439
  302. package/skills/industries-energy-utilities-configure/SKILL.md +0 -251
  303. package/skills/industries-eu-cloud-multisite-configure/SKILL.md +0 -1008
  304. package/skills/industries-eu-new-connections-configure/SKILL.md +0 -30
  305. package/skills/industries-explainability-msg-template-configure/SKILL.md +0 -135
  306. package/skills/industries-expression-set-message-token-configure/SKILL.md +0 -135
  307. package/skills/industries-field-service-settings-configure/SKILL.md +0 -82
  308. package/skills/industries-form-framework-settings-configure/SKILL.md +0 -30
  309. package/skills/industries-fsc-ai-settings-configure/SKILL.md +0 -57
  310. package/skills/industries-fsc-association-engine-settings-configure/SKILL.md +0 -172
  311. package/skills/industries-fsc-b2b-settings-configure/SKILL.md +0 -61
  312. package/skills/industries-fsc-insurance-settings-configure/SKILL.md +0 -58
  313. package/skills/industries-fsc-visa-fulfillment-setup-configure/SKILL.md +0 -103
  314. package/skills/industries-fsc-wealth-agent-settings-configure/SKILL.md +0 -117
  315. package/skills/industries-fsc-wealth-settings-configure/SKILL.md +0 -99
  316. package/skills/industries-fundraising-gift-entry-settings-configure/SKILL.md +0 -120
  317. package/skills/industries-fundraising-rfm-configure/SKILL.md +0 -128
  318. package/skills/industries-fundraising-settings-configure/SKILL.md +0 -145
  319. package/skills/industries-fundraising-source-code-gen-configure/SKILL.md +0 -299
  320. package/skills/industries-google-maps-api-key-settings-configure/SKILL.md +0 -87
  321. package/skills/industries-grantmaking-intelligence-settings-open/SKILL.md +0 -58
  322. package/skills/industries-hc-score-category-settings-configure/SKILL.md +0 -167
  323. package/skills/industries-health-engagement-settings-configure/SKILL.md +0 -218
  324. package/skills/industries-home-health-agentforce-setup-configure/SKILL.md +0 -131
  325. package/skills/industries-home-health-bundling-policy-create/SKILL.md +0 -50
  326. package/skills/industries-home-health-entity-labels-configure/SKILL.md +0 -29
  327. package/skills/industries-home-health-fsl-package-deploy/SKILL.md +0 -71
  328. package/skills/industries-home-health-fsl-settings-validate/SKILL.md +0 -27
  329. package/skills/industries-home-health-guided-setup-care-and-skill-get/SKILL.md +0 -80
  330. package/skills/industries-home-health-guided-setup-configure/SKILL.md +0 -836
  331. package/skills/industries-home-health-guided-setup-enable-org-fsl-get/SKILL.md +0 -55
  332. package/skills/industries-home-health-guided-setup-get-org-ready-get/SKILL.md +0 -61
  333. package/skills/industries-home-health-licenses-assign/SKILL.md +0 -27
  334. package/skills/industries-home-health-operating-hours-create/SKILL.md +0 -40
  335. package/skills/industries-home-health-scheduling-policy-create/SKILL.md +0 -41
  336. package/skills/industries-home-health-service-objective-create/SKILL.md +0 -22
  337. package/skills/industries-home-health-skills-create/SKILL.md +0 -31
  338. package/skills/industries-home-health-users-create/SKILL.md +0 -29
  339. package/skills/industries-icm-act3-toggles-configure/SKILL.md +0 -198
  340. package/skills/industries-icm-act5-genai-suggested-assessments-configure/SKILL.md +0 -361
  341. package/skills/industries-icm-act6-mcg-integration-configure/SKILL.md +0 -550
  342. package/skills/industries-integrated-care-management-configure/SKILL.md +0 -168
  343. package/skills/industries-object-enablement-configure/SKILL.md +0 -86
  344. package/skills/industries-tpm-system-processing-service-configure/SKILL.md +0 -64
  345. package/skills/integration-apex-settings-configure/SKILL.md +0 -61
  346. package/skills/marketing-e360-email-archiving-configure/SKILL.md +0 -73
  347. package/skills/platform-custom-permissions-configure/SKILL.md +0 -687
  348. package/skills/platform-label-workbench-import-create/SKILL.md +0 -67
  349. package/skills/platform-privacy-agent-settings-configure/SKILL.md +0 -752
@@ -1,373 +0,0 @@
1
- ---
2
- name: consumer-goods-visit-activity-act8-plan-attach-create
3
- description: "Act 8 of 9: Plans visits and attaches the Activity Definition to those visits via Assessment Task records. Uses Connect APIs (prepare-assessment-task for bulk task create, assessment-task-visit-planning/visits for visit creation). Handles the full prerequisite chain including the critical AccountTeamMemberPeriod junction records — without which the API returns success but creates zero tasks. Depends on Act 3 (activity) and, if scoped, Act 7 (account scoping). Part of the 9-Act Retail Execution steel thread."
4
- metadata:
5
- version: "1.0"
6
- cliTools:
7
- - tool:
8
- - "sf"
9
- semver: ">=2.0.0"
10
- ---
11
-
12
- # Act 8: Plan Visits & Attach Activity
13
-
14
- **Part of:** [9-Act Retail Execution Steel Thread](../../README.md)
15
- **Depends on:** [Act 3 - Activity Definition](../act3-activity-definition/SKILL.md), [Act 7 - Account Scoping](../act7-account-scoping/SKILL.md) (if scoped)
16
- **Enables:** [Act 9 - Verification](../act9-verification/SKILL.md)
17
-
18
- **Act 8 is where the activity becomes usable — it creates Assessment Tasks and attaches them to visits, making the activity executable by field reps in the mobile app. You MUST complete Act 3 (activity exists) and, if scoping, Act 7 before starting this act.**
19
-
20
- ---
21
-
22
- ## Goal
23
-
24
- Plan visits and attach the Activity Definition to those visits via Assessment Task records — so field reps can execute the activity in the Retail Execution mobile app for every scoped account.
25
-
26
- **Builder's intent:** "Put it on a visit. If a visit exists, attach it. If not, create one. This attaching step is where it usually goes wrong."
27
-
28
- **What you'll create:**
29
- 1. `AssessmentTask` (job) records via the `prepare-assessment-task` Connect API — one per scoped account × covering assignment.
30
- 2. `Visit` records via the `assessment-task-visit-planning/visits` Connect API — created from those task Ids; the response returns the authoritative `visitIds`.
31
-
32
- **What you'll verify (NOT create):** `AccountTeamMemberPeriod` records — the merchandiser-to-account assignments that tell the Connect API which user-account-date combinations should get tasks. These are operational data that must already exist in the org. **If they're missing, surface it as a gap — do NOT fabricate them.**
33
-
34
- **Definition of done:** Assessment Tasks prepared for all scoped accounts and every account has a visit (`visitIds`) — tasks are linked to an existing visit when one satisfies the matching criteria, and a new visit is created when none does. Activity is ready for field reps to execute in the Retail Execution mobile app.
35
-
36
- ---
37
-
38
- ## What this Act does
39
-
40
- At this point Acts 1–7 have produced: Visit Specification (`visitSpecId`), Template + questions (`templateId`), Activity Definition + questions (`activityId`), assortments, and account scoping (`scopedAccountIds[]` or org-wide). Act 8 turns that configuration into executable field work:
41
-
42
- 1. **Verifies the full prerequisite chain** (object permissions + data prerequisites).
43
- 2. **Verifies `AccountTeamMemberPeriod` records exist** — the critical junction that tells the Connect API which user-account-date combinations should get tasks. **These are pre-existing operational assignments; if they're missing, the API returns success but creates 0 tasks — surface that as a gap rather than creating the records.**
44
- 3. **Calls `prepare-assessment-task`** (Connect API) — bulk-creates Assessment Task (job) records.
45
- 4. **Calls `assessment-task-visit-planning/visits`** (Connect API) — creates the Visit records from those task Ids and returns `visitIds`.
46
-
47
- **Builder's mental model:** "Put it on a visit. If a visit exists, attach it. If not, create one." The attaching step is where setups usually fail — almost always because `AccountTeamMemberPeriod` assignments don't exist yet for these merchandisers.
48
-
49
- ---
50
-
51
- ## When to use
52
-
53
- **Invoke this skill when:**
54
- - Acts 1–3 and Act 7 are complete, and you're ready to make the activity executable
55
- - You want bulk visit-task matching across many accounts
56
- - The user asks about "plan visits for assessment tasks", "attach the activity", "create assessment tasks", or "make the activity executable"
57
-
58
- **Trigger phrases:**
59
- - "Attach the activity to visits"
60
- - "Plan the visits and push the activity to field reps"
61
- - "Create the assessment tasks"
62
- - "Act 8" or "plan and attach"
63
-
64
- **Connect API — use when:**
65
- - All 8 data prerequisites are fully configured
66
- - Bulk operation across many accounts (50+)
67
- - You want automatic visit-task matching
68
- - You have `AccountTeamMemberPeriod` records in place
69
-
70
- **Connect API — don't use when:**
71
- - Partial setup (missing any prerequisite)
72
- - You need fine-grained control over task names
73
- - `AccountTeamMemberPeriod` is not configured
74
-
75
- ---
76
-
77
- ## Prerequisites
78
-
79
- | Act | Artifact | Required For |
80
- |-----|----------|--------------|
81
- | Act 1 | Visit Specification + InternalOrganizationUnit | `visitSpecId`, IOU on the activity |
82
- | Act 3 | Assessment Task Definition (active, with IOU/VisitSpecId/validity) | `activityId` to prepare tasks for |
83
- | Act 7 | Account scoping (`AsmtTskDefAcct`) | Which accounts get tasks (or org-wide) |
84
-
85
- **Object permissions** — check the user has access to the required objects:
86
- ```sql
87
- SELECT Parent.Name, Parent.Profile.Name, SobjectType,
88
- PermissionsRead, PermissionsCreate, PermissionsEdit
89
- FROM ObjectPermissions
90
- WHERE SobjectType IN ('AssessmentTask', 'Visit')
91
- AND PermissionsCreate = true
92
- ```
93
- Visit, AssessmentTask need at least `PermissionsRead = true`.
94
-
95
- **The full 8 data prerequisites (ALL required — missing ANY ONE = API returns success but creates 0 tasks):**
96
-
97
- 1. ✅ **AssessmentTaskDefinition** (Activity) with `IsActive = true`, `InternalOrganizationUnitId` set, `VisitSpecId` set, `ValidFrom`/`ValidTo` dates, `ShouldIncludeSpecAcct = true` — from Acts 1–3
98
- 2. ✅ **AsmtTskDefAcct** (account scoping) — links activity to specific accounts — from Act 7
99
- 3. ✅ **VisitSpec** with InternalOrganizationUnit — from Act 1
100
- 4. ✅ **InternalOrganizationUnit** exists — from Act 1
101
- 5. ✅ **Location** records — for `Visit.PlaceId`
102
- 6. ✅ **AccountTeamMemberPeriod** ⭐ **THE CRITICAL ONE** — links User to Account for a specific date period. **Without this, the API returns success but creates 0 tasks.**
103
-
104
- ---
105
-
106
- ## Inputs
107
-
108
- Received from previous Acts (orchestrator integration):
109
- ```yaml
110
- activityId: "0Z4..." # from Act 3
111
- activityName: "Q1 Promotion Compliance" # from Act 3
112
- visitSpecId: "1cb..." # from Act 1
113
- validFrom: "2026-03-01" # from Act 3
114
- validTo: "2026-03-14" # from Act 3
115
- iouId: "0gJ..." # from Act 1/2/3
116
- scopedAccountIds: ["001...", "001..."] # from Act 6, or [] for org-wide
117
- ```
118
-
119
- **Expected output** (returned to orchestrator):
120
- ```yaml
121
- tasksCreated: 40 # upsertedTaskCount from prepare-assessment-task
122
- visitsCreated: 12 # visitCount from assessment-task-visit-planning/visits
123
- duplicateVisitsSkipped: 0 # duplicateVisitCount (a visit already existed for that slot)
124
- visitIds: ["0Z5..."] # authoritative list of created visits — handed to Act 8
125
- ```
126
-
127
- ### Key Concepts (reference before executing)
128
-
129
- **Act 8 uses TWO Connect APIs:**
130
- - **prepare-assessment-task** — bulk-creates Assessment Task (job) records
131
- - **assessment-task-visit-planning/visits** — creates the Visit records from those task Ids (synchronous; returns `visitIds`)
132
-
133
- Critical points:
134
-
135
- - **AccountTeamMemberPeriod is mandatory** — the #1 cause of "success but 0 tasks". The Connect API uses it to determine which user-account-visit combinations should have assessment tasks created. `UsageType` = `"Trade"` (only available value); the `StartDate`/`EndDate` must cover the activity's `ValidFrom`/`ValidTo` range.
136
- - **currentDate must be within ValidFrom/ValidTo** — the `prepare-assessment-task` call's `currentDate` must fall inside the activity's validity window.
137
- - **A Location named exactly `Default Location` must exist** — the visit-creation API anchors the visits it creates to it as the fallback place. Without it the call errors: "We couldn't find a default location record. Make sure a location named Default Location exists in your org."
138
- - **`visitScheduleDate` must be within ValidFrom/ValidTo** and today-or-future.
139
- - **Silent-zero contract** — the prepare API returns `isSuccess: true` even when it creates nothing; always check `upsertedTaskCount`. Note visit creation is a separate call (Step 4).
140
-
141
- ---
142
-
143
- ## Step-by-step procedure
144
-
145
- ### Step 1: Verify all 8 prerequisites are met
146
-
147
- Before calling the Connect API, confirm ALL eight data prerequisites exist (see the Prerequisites section). **If any prerequisite is missing, the API returns `isSuccess: true` but `upsertedTaskCount: 0`.**
148
-
149
- ### Step 2: Verify AccountTeamMemberPeriod records exist (CRITICAL)
150
-
151
- `AccountTeamMemberPeriod` links a merchandiser (User) to an Account for a date period — it's the org's operational assignment data, created when merchandisers are assigned their territories/accounts. **Act 8 does NOT create these records.** It verifies they already exist and cover the activity's validity window.
152
-
153
- For each scoped account-user combination that should have tasks, confirm a record exists covering `ValidFrom`/`ValidTo`:
154
-
155
- ```bash
156
- sf data query \
157
- --query "SELECT AccountId, UserId, StartDate, EndDate FROM AccountTeamMemberPeriod WHERE AccountId IN ('001...','001...') AND UsageType = 'Trade' AND StartDate <= 2026-03-01 AND EndDate >= 2026-03-31" \
158
- --target-org <org-alias>
159
- ```
160
-
161
- **Why this matters:** The Connect API uses `AccountTeamMemberPeriod` to determine which user-account-visit combinations should have Assessment Tasks created. Without a covering record, the API silently creates 0 tasks.
162
-
163
- **If records are missing:** do NOT fabricate them. Merchandiser-account assignments are owned upstream (territory management / account team setup). Surface the missing assignments as a gap — list the account-user combinations that lack a covering `AccountTeamMemberPeriod` and stop, so the right owner can create them. Attaching tasks to accounts no one is assigned to would produce orphaned work.
164
-
165
- ```text
166
- ⏳ Verifying AccountTeamMemberPeriod coverage...
167
- ✅ 40/40 scoped accounts have a covering assignment
168
- ```
169
-
170
- ### Step 3: Call prepare-assessment-task Connect API
171
-
172
- ```bash
173
- POST /services/data/v68.0/connect/industries/retail/prepare-assessment-task
174
- {
175
- "assessmentTaskDefinitionId": "0Z4...",
176
- "currentDate": "2026-03-05" # Must be within ValidFrom/ValidTo
177
- }
178
- ```
179
-
180
- **Response:**
181
- ```json
182
- {
183
- "deletedTaskCount": 0,
184
- "failedCount": 0,
185
- "failedRecords": [],
186
- "isSuccess": true,
187
- "upsertedTaskCount": 40
188
- }
189
- ```
190
-
191
- **What the API does:**
192
- 1. **Validates** all prerequisites are in place
193
- 2. **Creates AssessmentTasks** — one per scoped account (AsmtTskDefAcct) × covering `AccountTeamMemberPeriod` for `currentDate`. NOTE: overlapping AccountTeamMemberPeriod rows for the same account produce **duplicate** tasks.
194
- 3. **Sets Name** from Activity Definition and **Status** to "Incomplete"
195
- 4. **Does NOT create or attach visits** — `ParentId` is left null. Visit creation is Step 4 (`assessment-task-visit-planning/visits`).
196
-
197
- ```text
198
- ⏳ Calling Connect API to prepare assessment tasks...
199
- ✅ API call successful!
200
- 📊 40 Assessment Tasks created and attached
201
- 🗑️ 0 Tasks deleted
202
- ❌ 0 Failed
203
- ```
204
-
205
- ### Step 4: Create visits via assessment-task-visit-planning/visits
206
-
207
- **Purpose:** Create the Visit records the tasks belong to. `prepare-assessment-task` (Step 3) only creates the `AssessmentTask` job records — it does NOT create visits. **This** is the API that turns those jobs into Visits.
208
-
209
- **Prerequisite:** a Location named exactly **`Default Location`** must exist in the org (the API anchors the created visits to it). Without it the call fails with "We couldn't find a default location record. Make sure a location named Default Location exists in your org."
210
-
211
- ```bash
212
- POST /services/data/v68.0/connect/industries/visit/assessment-task-visit-planning/visits
213
- {
214
- "visitScheduleDate": "2026-08-23", # Within ValidFrom/ValidTo; today or future
215
- "internalOrgUnitId": "0gJ...",
216
- "assessmentTaskIds": ["0eg...", "0eg..."] # the task Ids created in Step 3
217
- }
218
- ```
219
-
220
- **Response:**
221
- ```json
222
- {
223
- "visitCount": 1,
224
- "visitIds": ["0Z5..."],
225
- "duplicateVisitCount": 0,
226
- "failedVisitCount": 0,
227
- "responseStatus": "SUCCESS"
228
- }
229
- ```
230
-
231
- **Read the counts, not just the status:**
232
- - `visitCount` — visits created by this call.
233
- - `visitIds` — **the authoritative list of created visits. Hand THESE to Act 8**.
234
- - `duplicateVisitCount` — visits skipped because one already existed for that account/date. Dedup only spans this single call — a background planning job can also create a visit for the same slot, so re-running or mixing with the UI can still leave duplicate visits.
235
- - `failedVisitCount` / `responseStatus` — surface any failures.
236
-
237
- ### Step 5: Verify the visits were created
238
-
239
- Confirm with a SOQL query on the returned Ids:
240
- ```bash
241
- sf data query --target-org <org> \
242
- --query "SELECT Id, AccountId, Status FROM Visit WHERE Id IN ('0Z5...')"
243
- ```
244
- Expect one row per Id in `visitIds`.
245
-
246
- ---
247
-
248
- ## Validation
249
-
250
- Confirm Assessment Tasks were created and attached (Step 3 `upsertedTaskCount` > 0, Step 4 query returns the tasks).
251
-
252
- ### Success Criteria
253
-
254
- - ✓ `prepare-assessment-task` returned `isSuccess: true` **AND** `upsertedTaskCount` matches the expected account/visit count (NOT 0)
255
- - ✓ `failedCount: 0` (or failures reviewed and resolved)
256
- - ✓ `assessment-task-visit-planning/visits` returned `responseStatus: SUCCESS` with `visitCount > 0` and a `visitIds` array
257
- - ✓ A SOQL query on `visitIds` returns one Visit per Id (`PlaceId = Default Location`)
258
- - ✓ `AccountTeamMemberPeriod` records were confirmed to exist (pre-existing, not created here) for every scoped account-user combination, covering the validity window
259
- - ✓ Tasks are visible to the assigned merchandisers for the target date
260
-
261
- ---
262
-
263
- ## End state
264
-
265
- After completing Act 8:
266
-
267
- - ✅ **`AccountTeamMemberPeriod` coverage confirmed** for each account-user combination (verified pre-existing, not created here).
268
- - ✅ **Assessment Tasks created** via `prepare-assessment-task`.
269
- - ✅ **Visits created and verified** via `assessment-task-visit-planning/visits` (`visitIds` in the response, confirmed by SOQL).
270
- - ✅ **The activity is executable** by field reps in the Retail Execution mobile app for the scoped accounts.
271
-
272
- **At this point:**
273
- - Act 8 attaches the activity to the visits that currently exist / were created for this window.
274
- - End-to-end validation (a merchandiser opening a visit and answering questions) is confirmed in Act 9 (Verification).
275
-
276
- **You are NOT done with the full setup** — this is Act 8 of 9. Proceed to Act 9 (Verification).
277
-
278
- ---
279
-
280
- ## Gotchas and common errors
281
-
282
- ### Connect API Zero Tasks Issue (most common)
283
- - ✅ API returns `isSuccess: true`
284
- - ❌ But `upsertedTaskCount: 0`
285
- - 🔍 **Cause:** Missing `AccountTeamMemberPeriod` records
286
- - 🔧 **Fix:** Confirm a covering `AccountTeamMemberPeriod` exists for each user-account-date combo (Step 2). These are pre-existing assignments — if absent, surface a gap for the assignment owner rather than creating them here.
287
-
288
- ### Troubleshooting: "prepare-assessment-task returns 0 tasks"
289
- Causes, in order of likelihood:
290
- 1. ❌ **AccountTeamMemberPeriod missing** (most common) — Check: `SELECT COUNT() FROM AccountTeamMemberPeriod WHERE AccountId IN (...) AND UserId = '...'`; Fix: these are pre-existing merchandiser-account assignments — surface the missing combinations as a gap for the assignment owner (do NOT fabricate them)
291
- 2. ❌ **Date mismatch** — Check: `currentDate` is within the activity's ValidFrom/ValidTo AND Visit `PlannedVisitStartTime` is in range; Fix: align the dates
292
- 3. ❌ **InternalOrganizationUnit not set** — Check: activity definition AND VisitSpec both have `InternalOrganizationUnitId`; Fix: set IOU on both (from Acts 1–3)
293
- 4. ❌ **Account scoping missing** — Check: `SELECT COUNT() FROM AsmtTskDefAcct WHERE AssessmentTaskDefinitionId = '...'`; Fix: run Act 7 to create scoping records
294
-
295
- ### Troubleshooting: "assessment-task-visit-planning/visits creates 0 visits or errors"
296
- 1. ❌ No `Default Location` — create a Location named exactly `Default Location` (the fallback place the API anchors visits to). Error: "We couldn't find a default location record..."
297
- 2. ❌ `visitScheduleDate` outside the activity's ValidFrom/ValidTo, or in the past — use a today-or-future date inside the window
298
- 3. ❌ Empty/invalid `assessmentTaskIds` — pass the task Ids returned by Step 3 (`prepare-assessment-task`)
299
- 4. ❌ Check `internalOrgUnitId` matches the `InternalOrganizationUnitId` from Act 1
300
-
301
- ---
302
-
303
- ## Notes: best practices & architecture
304
-
305
- **AccountTeamMemberPeriod is the linchpin.** The single most important lesson of this act: the prepare API's silent-success contract means a missing team-member-period looks identical to success. These records are pre-existing operational assignments (owned by territory/account-team setup) — verify their coverage first, surface any gaps to the assignment owner, and only call prepare-assessment-task once coverage is confirmed. Act 7 does not create them.
306
-
307
- **Verify, don't trust the success flag.** `isSuccess: true` (prepare) and `responseStatus: SUCCESS` (visits) are each necessary but not sufficient — always read `upsertedTaskCount` and `visitCount`/`visitIds`, then confirm the Visits with a SOQL query.
308
-
309
- **Connect API vs standard sObject API.** The Connect API is for bulk, automatic visit-task matching once all 8 prerequisites are in place. When debugging, drop to the standard sObject API for per-record visibility (task names, ParentId links) — the Connect API abstracts these away.
310
-
311
- **API reference summary:**
312
-
313
- | Operation | Method | Endpoint | Request Body |
314
- |---|---|---|---|
315
- | Prepare tasks (bulk) | POST | `/connect/industries/retail/prepare-assessment-task` | `{assessmentTaskDefinitionId, currentDate}` |
316
- | Create visits | POST | `/connect/industries/visit/assessment-task-visit-planning/visits` | `{visitScheduleDate, internalOrgUnitId, assessmentTaskIds[]}` |
317
- | Verify team member period | GET (SOQL) | `AccountTeamMemberPeriod` | `AccountId, UserId, UsageType, StartDate, EndDate` (confirm coverage; do not create) |
318
-
319
- **Where attachment sits in the lifecycle:**
320
-
321
- ```text
322
- Activity (AssessmentTaskDefinition) ← Act 3: the concrete activity
323
- Account scoping (AsmtTskDefAcct) ← Act 7: which stores are eligible
324
- ↓ (AccountTeamMemberPeriod links users to accounts for the window)
325
- Plan Visits & Attach (this act) ← Act 8: AssessmentTasks created & attached to visits
326
- ↓
327
- Verification (Act 9)
328
- ```
329
-
330
- **Agent implementation flow:** receive inputs from prior Acts → present the form (user-assignment confirmation) → Step 1 verify prerequisites → Step 2 verify AccountTeamMemberPeriod coverage (surface a gap if missing) → Step 3 call prepare-assessment-task → Step 4 call assessment-task-visit-planning/visits to create the visits → Step 5 verify the returned `visitIds` via SOQL → return `tasksCreated: N` / `visitIds` to orchestrator → display completion summary. Typical progress narration:
331
-
332
- ```text
333
- ⏳ Executing Act 8...
334
- - Verifying prerequisites... ✅ All prerequisites met
335
- - Verifying AccountTeamMemberPeriod coverage... ✅ 40/40 accounts assigned
336
- - Confirming Default Location exists... ✅ found
337
- - Preparing assessment tasks... ✅ 40 Assessment Tasks created
338
- - Creating visits from those tasks... ✅ 12 Visits created (visitIds returned)
339
- ✅ Act 8 Complete: tasks prepared and visits created!
340
- ```
341
-
342
- ---
343
-
344
- ## Session state to track & handoff
345
-
346
- > **Internal only — never print this to the user.** These variables (including `act8_complete`) are orchestration bookkeeping. Track them silently to drive the gate below; do **not** echo raw variable names, IDs, or the gate flag into the conversation. When the Act finishes, tell the user only a short plain-language confirmation (e.g., "✅ Act 8 done — visits are planned and the activity is attached").
347
-
348
- Pass these forward to Act 9:
349
-
350
- - `tasks_created` — count of `AssessmentTask` records created and attached (must be > 0).
351
- - `visits_created` / `visits_reused` — how many visits were newly created vs reused.
352
- - `visit_ids` — the visit Ids **created in Step 4**, taken directly from the `visits` API response `visitIds`. **Act 9 iterates these exact Ids** — it must not re-discover visits with a SOQL query, so this list is required, not optional.
353
- - `account_team_member_period_ids` — the `AccountTeamMemberPeriod` records verified to cover the scoped accounts.
354
- - `activity_id` / `visit_spec_id` / `iou_id` — carried from Acts 1–3.
355
- - `act8_complete` — boolean; set to `true` after the Validation checks pass (`upsertedTaskCount` > 0 and verified).
356
-
357
- **Do NOT proceed to Act 9 until `act8_complete = true`.**
358
-
359
- ---
360
-
361
- ## Next Act
362
-
363
- Proceed to **Act 9: Verification** (`../act9-verification/SKILL.md`), which confirms end-to-end that a merchandiser can open a visit and answer the activity's questions.
364
-
365
- ---
366
-
367
- ## References
368
-
369
- - **Act 1:** [Visit Specification Setup](../act1-visit-specification/SKILL.md) ← Provides `visitSpecId` + IOU
370
- - **Act 3:** [Activity Definition](../act3-activity-definition/SKILL.md) ← Provides `activityId` + validity window
371
- - **Act 7:** [Account Scoping](../act7-account-scoping/SKILL.md) ← Provides `AsmtTskDefAcct` scoping (if used)
372
- - **Act 9:** [Verification](../act9-verification/SKILL.md) ← End-to-end field validation
373
- - **9-Act Steel Thread README:** [../../README.md](../../README.md) ← Full flow