/sf-industries-misc:marketing-message-testfrom sf-industries-misc
Renders personalized or unpersonalized previews of Salesforce Marketing Cloud Engagement 360 messages (Email, SMS, WhatsApp, Push, In-App, RCS) from a content key, and fires test sends via the headless API.
Ships in sf-industries-misc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Render a per-channel preview (or fire a test send) for a Marketing Cloud / Engagement 360 message, headlessly, starting from a single contentKey. Covers all six channels: Email, SMS, WhatsApp, Push, In-App, RCS.
Full endpoint tables, request bodies, response-field rules, and the version-floor matrix live in references/api-contract.md. This file is the operating procedure; consult the reference for exact payloads.
Use marketing-message-test when the user wants to:
Delegate elsewhere when the user is:
contentKey — required, irreducible. The caller must supply it; it is not derivable.sf org open / access token)toAddresses (Email), toPhoneNumbers (SMS/WhatsApp/RCS), or toIndividualIds (Push/In-App). Never derive these.| Purpose | Transport | Instance-relative path |
|---|---|---|
| Preview · test send · sender lookups | LWR Apex | lwr/apex/v68.0/… — the exact operation path is on each step's Call line |
| Managed content · data space · DMO · segment · profile | Connect REST | services/data/vXX.0/… (per-resource floors; v62.0+ covers all six channels) |
WhatsApp template fetch (whatsapp-template-fetch) | Headless dispatch | /headless/invoke/… — a dispatch route, so invoke it through the dispatch tool, not sf api request rest (see the reference doc for details) |
Versions:
v68.0 (the path just needs a well-formed vXX.0 segment).Always use sf api request rest — never curl. It attaches the org's bearer token internally, so the credential never enters your context. Never extract a token (e.g. sf org display --json) or put one in an Authorization header — that leaks a live credential and is disallowed. Pass the instance-relative path (no host); the CLI prepends the instance URL and accepts both transports (LWR-Apex paths aren't under services/data/, but any instance-relative path works). One step is the exception — whatsapp-template-fetch is a headless /headless/invoke dispatch route, invoked through the dispatch tool rather than sf api request rest.
# GET (default method); path is instance-relative
sf api request rest 'services/data/v63.0/ssot/data-spaces' --target-org <org>
# POST with a flat JSON body from a file (content-type: application/json is sent by default)
# path = the target operation's **Call** line (e.g. the `preview-sms-unpersonalized` step)
sf api request rest '<lwr/apex Call path>' \
--target-org <org> --method POST --body @body.json
Verb rule (do not violate — wrong verb is rejected):
--method POST) with a flat JSON body whose keys are exactly the parameter names — no envelope, no wrapper object.methodParams query param (URL-encoded JSON string) appended to the path; no-arg methods omit it.segmentId, profileId, DMO name, or destination. Every value is either given by the user or derived from the org via the chain below.contentKey; personalized needs segmentId + recipientDataModelObjectName + contentKey + profileId, and the profileId must be a member of that segmentId (it comes from that segment's member list — see the chain).profileId) comes solely from the chosen segment's member list, and must be a member of the segmentId passed to the render. If the segment has no members — or no segment exists in the content's data space — the personalization render cannot be performed: report cannot personalize — no valid segment member and stop. The unpersonalized preview (contentKey only) is still available; offer it. Never source the recipient from anywhere else (e.g. by listing individuals from the DMO) — a non-member profileId is rejected by the render with an opaque error.send-test-… steps). If the user asked only to preview, never fire a test send.send-test-<channel>, call that channel's permission check (step perm-can-send-test-<channel> — a no-arg GET returning a Boolean). If it returns false, surface a permission error and stop — do not attempt the send. Preview never needs this check.profileId is a Data Cloud profile key (e.g. a1b2c3d4…), NOT a CRM id (003…) or a segment id (1sg…).sf api request rest; don't hand the user raw commands to run.contentKey)Detailed payloads for every step: references/api-contract.md.
GET /services/data/vXX.0/connect/cms/contents/{contentKey} (v57+) → managedContentId, contentBody. Use the CMS Authoring API (keyed by contentKey), not the delivery API — it returns the draft the preview renders.recipientDataModelObjectName. Parse contentBody['lightning:dataProviders'] for objectApiName (that is the DMO) or dataGraphApiName — for the latter, GET /ssot/data-graphs/{dataGraphApiName} (v58+) and read primaryObjectName (its response also returns dataspaceName, usable directly in step 3). If the content declares no data provider, leave the DMO unresolved for now — it comes from the org fallback in step 3, which needs the data space first.dataSpaceName (scopes every /ssot/… call below). GET /ssot/data-spaces (v62+).
ssot__… prefix or an unrecognized name → default; a <prefix>_ token → match against the prefix field and take that entry's name. default on single-space orgs.default on a single-space org, otherwise ask the user which space. Then resolve the DMO from the org via the org-fallback lookup (step messaging-selected-uma-dmo, body { dataSpaceName }). A null result means "no personalized preview available for this org" — report that, do NOT retry.GET /ssot/segments?dataspace=<name> (v55+). Keep the apiName (fetches members) and the 1sg… marketSegmentId (the segmentId).GET /ssot/segments/{segmentApiName}/members?limit=10&dataspace=<name> (v58+) → member id. That id is the profileId; because it's a member of the segment, the render accepts it.cannot personalize — no valid segment member and offer the unpersonalized preview instead. Do not source the recipient elsewhere (e.g. by listing individuals from the DMO) — a profileId that isn't a member of the passed segmentId is rejected by the render with an opaque error.preview-<channel>-personalized, or the …-by-locale variant) with the flat body { segmentId, recipientDataModelObjectName, contentKey, profileId, … }.Unpersonalized short-circuits after step 1: call the channel's unpersonalized-preview operation (step preview-<channel>-unpersonalized) with { contentKey } (add locale for Email's …-by-locale variant).
Test send = the channel's permission check (step perm-can-send-test-<channel>; stop if false), then steps 1–6, then a sender lookup (Part 3 of the reference) for fromAddress/senderId, then the channel's test-send operation (step send-test-<channel>) with the user's supplied destination array.
body for personalized calls, nonAggregateHtmlBody for unpersonalized — read body first, fall back to nonAggregateHtmlBody. Also surface subject and preheader.content string; MMS also carries mediaUrl.{ content, metadata } as JSON strings; reassemble {{k}} slots from the fetched template (see the reference — this is the fiddly one).Fetch media from the rendered
<img src>, not the content definition. Rendered srcs are public-CDN URLs (…salesforce-experience.com/_scs/cms/…) that fetch unauthenticated.contentBody/cms/media/…refs are session-gated — unauthenticated they return an HTML login page (HTTP 200, no error), not image bytes.
If the content declares content variables under sfdc_cms:schema.properties, they render empty unless supplied. Ask the user for a value for each — never invent one — and pass them via recipientAttributesJson (a JSON string), on Email/SMS/WhatsApp/RCS only.
Push and In-App personalized previews do not support content variables. If any are declared in the content definition (
sfdc_cms:schema.propertiesnon-empty) for one of those channels, stop and inform the user it's not supported — do not troubleshoot.
methodParams.contentKey is irreducible — every path bottoms out at it; the user must supply it.messaging-selected-uma-dmo) returning null = "no personalized preview available," not a retryable error.profileId comes only from the chosen segment's member list and must be a member of the segmentId passed to the render. No members (or no segment) → personalization cannot be performed; stop and offer unpersonalized. Never source the recipient from a DMO listing — a non-member profileId is rejected with an opaque error.id (a Data Cloud key, e.g. a1b2c3d4… — not a 1sg… segment id or a 003… CRM id); that id is the profileId.v68.0; the path segment just needs to be well-formed); the REST derivation resources have per-resource minimums. Highest REST floor is data-spaces at v62.0, so target v62.0+ for full six-channel coverage (lower channels work below that).Message: <contentKey> (channel: <Email/SMS/WhatsApp/Push/In-App/RCS>)
Mode: <personalized preview / unpersonalized preview / test send>
Target org: <alias>
Derived inputs: dataSpace=<name> DMO=<…__dlm> segmentId=<1sg…> profileId=<profile key>
API calls: <method — verb — endpoint> (one line each)
Rendered output:
<subject / rendered text / HTML body, per channel>
Next step: <act / adjust inputs / follow-up>
Operations this skill uses — routing and dependency reference.
| Operation | Purpose | Status | Call | Depends on |
|---|---|---|---|---|
cms-content-fetch | read | — | GET /services/data/v63.0/connect/cms/contents/{contentKeyOrId} | — |
messaging-selected-uma-dmo | read | — | POST lwr/apex/v68.0/interaction__MessagingController/getSelectedUnifiedIndividualDmoForUma | data-spaces-list |
data-graph-primary-object | read | — | GET /services/data/v63.0/ssot/data-graphs/{dataGraphApiName} | — |
data-spaces-list | read | — | GET /services/data/v63.0/ssot/data-spaces | — |
dmo-describe | read | — | GET /services/data/v63.0/ssot/data-model-objects/{dmoName} | — |
segments-list | read | — | GET /services/data/v63.0/ssot/segments | data-spaces-list |
segment-members-list | read | — | GET /services/data/v63.0/ssot/segments/{segmentApiName}/members | segments-list |
profile-fetch-by-id | verify | — | GET /services/data/v63.0/ssot/profile/{dmoName}/{profileId} | — |
cms-spaces-list | read | — | GET /services/data/v63.0/connect/cms/spaces | — |
preview-email-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getEmailUnpersonalizedPreviewContent | cms-content-fetch |
preview-email-unpersonalized-by-locale | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getEmailUnpersonalizedPreviewContentByLocale | cms-content-fetch |
preview-email-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getEmailPersonalizedPreviewContent | cms-content-fetch, segments-list |
preview-email-personalized-by-locale | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getEmailPersonalizedPreviewContentByLocale | cms-content-fetch, segments-list |
preview-sms-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getSmsUnpersonalizedPreviewContent | cms-content-fetch |
preview-sms-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getSmsPersonalizedPreviewContent | cms-content-fetch, segments-list |
preview-whatsapp-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getWhatsappUnpersonalizedPreviewContent | cms-content-fetch |
preview-whatsapp-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getWhatsappPersonalizedPreviewContent | cms-content-fetch, segments-list |
preview-push-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getPushUnpersonalizedPreviewContent | cms-content-fetch |
preview-push-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getPushPersonalizedPreviewContent | cms-content-fetch, segments-list |
preview-inapp-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getInAppUnpersonalizedPreviewContent | cms-content-fetch |
preview-inapp-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getInAppPersonalizedPreviewContent | cms-content-fetch, segments-list |
preview-rcs-unpersonalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getRcsUnpersonalizedPreviewContent | cms-content-fetch |
preview-rcs-personalized | read | — | POST lwr/apex/v68.0/interaction__JourneyController/getRcsPersonalizedPreviewContent | cms-content-fetch, segments-list |
whatsapp-template-fetch | read | — | GET /headless/invoke/platform/conversation-setup/whats-app-templates/get-by-id | — |
send-test-email | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestEmail | cms-content-fetch, segments-list, sender-email-from-addresses, perm-can-send-test-email |
send-test-email-by-locale | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestEmailByLocale | cms-content-fetch, segments-list, sender-email-from-addresses, perm-can-send-test-email |
send-test-sms | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestSms | cms-content-fetch, segments-list, sender-sms-codes, perm-can-send-test-sms |
send-test-whatsapp | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestWhatsapp | cms-content-fetch, segments-list, sender-whatsapp-numbers, perm-can-send-test-whatsapp |
send-test-push | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestPush | cms-content-fetch, segments-list, perm-can-send-test-push |
send-test-inapp | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestInApp | cms-content-fetch, segments-list, perm-can-send-test-inapp |
send-test-rcs | write | — | POST lwr/apex/v68.0/interaction__JourneyController/sendTestRcs | cms-content-fetch, segments-list, sender-rcs-agents, perm-can-send-test-rcs |
sender-email-from-addresses | read | — | GET lwr/apex/v68.0/interaction__JourneyController/getFromAddresses | — |
sender-email-dkim-valid | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/fromAddressHasValidDKIM | sender-email-from-addresses |
sender-sms-codes | read | — | GET lwr/apex/v68.0/interaction__JourneyController/getSenderSmsCodes | — |
sender-whatsapp-numbers | read | — | GET lwr/apex/v68.0/interaction__JourneyController/getSenderWhatsappNumbers | — |
sender-whatsapp-waba-ids | read | — | GET lwr/apex/v68.0/interaction__JourneyController/getSenderWabaIdsAndNames | — |
sender-rcs-agents | read | — | GET lwr/apex/v68.0/interaction__JourneyController/getSenderRcsAgents | — |
perm-can-send-test-email | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestEmail | — |
perm-can-send-test-sms | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestSms | — |
perm-can-send-test-whatsapp | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestWhatsapp | — |
perm-can-send-test-push | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestPush | — |
perm-can-send-test-inapp | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestInApp | — |
perm-can-send-test-rcs | verify | — | GET lwr/apex/v68.0/interaction__JourneyController/canUserSendTestRcs | — |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cloudzlab/sf-team-skills --plugin sf-industries-misc13 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./insurance-brokerage-agency-billing-configureConfigure end-to-end Agency Billing on a Salesforce FSC Insurance Brokerage org via dispatch MCP calls. Use this skill when users want to set up brokerage billing, configure agency billing, enable insurance billing features, create billing rules, set up accounting periods, assign billing permission sets, or create a demo policy for the Issue-to-Invoice flow. TRIGGER when: user mentions agency billing setup, brokerage billing configuration, insurance billing enablement, billing treatments, billing rules creation, accounting period setup, insurance policy billing information, or Issue-to-Invoice testing. Also use when users say things like set up my brokerage org for billing, configure billing on my insurance org, enable billing features, create billing treatments, set up GL accounts, or assign billing permissions. DO NOT TRIGGER when: user needs general Revenue Cloud Billing without insurance context, needs CPQ/quoting configuration, or needs claims processing setup./life-sciences-fieldsalesrep-coordinateUse this skill to run the full end-to-end Life Sciences Cloud setup workflow for field sales rep in sequence. Trigger when the user says 'set up Life Sciences Cloud end to end', 'run the full LSC setup', 'orchestrate Life Sciences Cloud configuration', 'complete LSC setup', 'Life Sciences Cloud full install', 'set up Life Sciences Cloud end to end for field sales rep', 'run the full LSC setup for field sales rep', 'orchestrate Life Sciences Cloud configuration for field sales rep', 'complete LSC setup for field sales rep', or 'Life Sciences Cloud full install for field sales rep'. Executes five stages in order: prerequisites validation, starter config deployment, territory configuration, user provisioning, and sample visit creation — gating each stage on the success of the previous one. DO NOT TRIGGER when: user wants to run only one specific stage (prerequisites, config deploy, territory setup, user provisioning, or visit creation individually)./life-sciences-kam-coordinateUse this skill to run the full end-to-end Life Sciences Cloud setup workflow for a key account management (KAM) user in sequence. Trigger when the user says 'set up Life Sciences Cloud end to end for kam user', 'run the full LSC setup for kam user', 'orchestrate Life Sciences Cloud configuration for kam user', 'complete LSC setup for kam user', or 'Life Sciences Cloud full install for kam user'. Executes six stages in order: prerequisites validation, starter config deployment, territory configuration, participant role and sprint creation, KAM data and plan-template (goals, tasks, measures) creation, and KAM user provisioning — gating each stage on the success of the previous one. DO NOT TRIGGER when: the user wants to run only one specific stage individually, or when the request targets a field sales rep rather than a KAM user (use life-sciences-fieldsalesrep-coordinate for that persona)./life-sciences-prerequisites-validateValidate Life Sciences Cloud for Customer Engagement org prerequisites. Use when an admin needs to verify that all required settings, permissions, OWD sharing rules, and feature toggles are correctly configured before deploying Life Sciences Cloud. Checks user profile, permission sets, Life Sciences CE settings, surveys, OWD, inventory, account plans, care plans, Chatter, data protection, multi-currency, state/country picklists, and person accounts. Reports pass/fail for each check with remediation steps. TRIGGER when: user says 'check prerequisites', 'verify org setup for Life Sciences', 'LSC readiness check', 'pre-requisites for Life Sciences Cloud', 'validate org for LSC'. DO NOT TRIGGER when: user wants to automatically enable or configure these settings, or when the user asks for the full end-to-end Life Sciences Cloud setup / orchestration (that is the `life-sciences-fieldsalesrep-coordinate` orchestrator's job — this skill runs only as a standalone prerequisites check)./life-sciences-territory-configureUse this skill to create and activate a Territory Type, Territory Model, and Territories for Life Sciences Cloud. Trigger when the user says 'set up territories', 'create territory model', 'configure territory hierarchy for Life Sciences', 'territory setup for LSC', or 'create territories for Life Sciences Cloud'. Creates a Geographical territory type, an LSC Territory Model, and a 3-level territory hierarchy (Region, District, Territory). Confirms names with the user, shows a preview, then deploys and activates the model. DO NOT TRIGGER when: user wants to validate prerequisites, assign users to territories, create territory assignment rules, or run the full end-to-end Life Sciences Cloud setup / orchestration (that is the `life-sciences-fieldsalesrep-coordinate` orchestrator's job — this skill runs only as a standalone territory setup).3 plugins ship this exact skill · first indexed Oct 9, 2026
Other plugins' skills for the same job