marketing-message-test
БесплатноБез исполняемых скриптовНе проверенSalesforce Marketing Cloud / Engagement 360 message preview and test-send. Use this skill when the user wants to render a personalized or unpersonalized…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
marketing-message-test: E360 Message Preview & Test Send
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.
When This Skill Owns the Task
Use marketing-message-test when the user wants to:
- render how an authored message looks for a real recipient (personalized preview)
- render content-only with no recipient (unpersonalized preview)
- send a test message to their own address / phone / individual id
Delegate elsewhere when the user is:
- building Data Cloud segments or calculated insights → data360-segment
- building DMOs, mappings, or identity resolution → data360-harmonize
- activating a segment downstream → data360-activate
Required Context to Gather First
contentKey— required, irreducible. The caller must supply it; it is not derivable.- target org alias (for
sf org open/ access token) - channel — Email, SMS, WhatsApp, Push, In-App, or RCS
- mode — personalized preview, unpersonalized preview, or test send
- for a test send only: the user's own destination(s) —
toAddresses(Email),toPhoneNumbers(SMS/WhatsApp/RCS), ortoIndividualIds(Push/In-App). Never derive these.
Transports
| 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:
- LWR-Apex — not version-gated; pin
v68.0(the path just needs a well-formedvXX.0segment). - Connect REST — real per-resource floors; highest is data-spaces at v62.0, so v62.0+ covers all six channels (others lower — see the reference floor matrix).
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):
- Preview / test-send methods are POST (
--method POST) with a flat JSON body whose keys are exactly the parameter names — no envelope, no wrapper object. - Sender / permission lookups are GET (default method) with args packed into a single
methodParamsquery param (URL-encoded JSON string) appended to the path; no-arg methods omit it.
Core Operating Rules
- Never fabricate a
segmentId,profileId, DMO name, or destination. Every value is either given by the user or derived from the org via the chain below. - Preview needs no sender — skip sender lookups (Part 3 of the reference) unless test-sending.
- Personalized vs unpersonalized: unpersonalized needs only
contentKey; personalized needssegmentId+recipientDataModelObjectName+contentKey+profileId, and theprofileIdmust be a member of thatsegmentId(it comes from that segment's member list — see the chain). - Personalization is supported ONLY with a valid segment and a member of it. The recipient (
profileId) comes solely from the chosen segment's member list, and must be a member of thesegmentIdpassed 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
Установить marketing-message-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл marketing-message-test?
Salesforce Marketing Cloud / Engagement 360 message preview and test-send. Use this skill when the user wants to render a personalized or unpersonalized preview of an E360 message (Email, SMS, WhatsApp, Push, In-App, RCS) from a content key, or fire a test send, over the headless API — no app UI. TRIGGER when: user has a contentKey and wants to see how a message renders for a recipient, preview a message headlessly, or send a test message. DO NOT TRIGGER when: the task is authoring message content, building Data Cloud segments/DMOs (use data360-segment / data360-harmonize), or activating a segment (use data360-activate).
Как установить скилл marketing-message-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл marketing-message-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic