Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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:

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), or toIndividualIds (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-formed vXX.0 segment).
  • 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 methodParams query 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 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).
  • 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 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
Полный SKILL.md на GitHub

Установить marketing-message-test в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/api-contract.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить marketing-message-test с