service-de-channel-create
БесплатноБез исполняемых скриптовНе проверен**INTERNAL USE ONLY — invoked by `service-de-headless-channel-configure`.** Insert an Enhanced messaging `MessagingChannel` (plus child…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Inserting Messaging Channels
Reference File Index
| Reference file | Load when |
|---|---|
references/whatsapp.md |
MESSAGE_TYPE=WhatsApp — WABA partnership (Stage 2) + SF-side manage-WABA (Stage 3) prereqs, request body, WhatsApp gotchas. |
references/line.md |
MESSAGE_TYPE=Line — optional token verify, authDetails body shape, LINE gotchas. |
references/apple.md |
MESSAGE_TYPE=AppleBusinessChat — empty-config body, Apple-precondition errors, Apple gotchas. |
references/facebook.md |
MESSAGE_TYPE=Facebook — browser OAuth → page-selection flow, Facebook gotchas. |
references/sms.md |
MESSAGE_TYPE=Text — phone-number platform key, present-but-unvalidated smsProvider, number-provisioning prerequisite (caller's), SMS gotchas. |
references/connect-insert.md |
Shared authProviderId lookup + Connect POST + response-classification detail (Stage 4). |
references/worked-examples.md |
End-to-end traces per type (fresh insert, preflight short-circuit, OAuth). |
What this skill does
Given a {MESSAGE_TYPE} and its inputs, creates a MessagingChannel record with
PlatformType=Enhanced, IsActive=false. The same server-side path
(LiveMessageSetupServiceImpl.addChannel → LiveMessageChannelsUtil.findOrCreateCsotMessagingChannel)
also inserts a MessagingChannelUsage row (DeploymentType=Conversation, DeploymentStatus=New
on fresh insert — Disabled on a channel that was previously activated then deactivated) — we get
it for free.
One primary path for every type: Connect REST API.
POST /services/data/v{V}/connect/livemessage/channels with an org OAuth session managed by
sf api request rest. Public, sanctioned, live since API v66+. No Aura session, no token extracted
into shell state.
Idempotent on (MessagingPlatformKey, MessageType) — re-firing with the same platform key
returns the existing channel's id. This matters because MessagingChannel records are not deletable
via standard means, so the preflight (Stage 1) is the practical idempotency guard.
All types return the same envelope shape, so callers don't branch on type after insert:
{ok, channelId, mcuId, developerName, isActive:false, messageType, messagingPlatformKey, path, created, durationMs}.
Supported types (the only branch point)
{MESSAGE_TYPE} |
Platform key (messagingPlatformKey) |
Prerequisite (caller supplies) | Body extras | Ref |
|---|---|---|---|---|
WhatsApp |
Phone Number ID | service-de-waba-integrate (run in Stage 2-3) |
externalAccountId, isoCountryCode |
whatsapp.md |
Line |
LINE channel id | LINE id + secret + token (LINE Developers Console) | authDetails.{client_secret,access_token} |
line.md |
AppleBusinessChat |
Apple BC Account ID (GUID) | Apple BC Account ID (register.apple.com/business-chat) | (none — empty config) | apple.md |
Facebook |
Facebook Page ID | OAuth handled internally | authDetails: {} (OAuth-derived) |
facebook.md |
Text |
Phone number / short code | number already provisioned (caller supplies) | smsProvider (key required, value may be ""), isoCountryCode |
sms.md |
Unsupported (would need their own leaf logic, not yet built): WeChat, MsCopilot, Alexa.
For these, emit the unsupported-type envelope (Stage 0).
When NOT to use this skill
- End-to-end setup. If the user wants insert → route → activate, invoke
service-de-headless-channel-configure— it orchestrates this skill plus routing, consent, and activation. This skill only handles the insertion step (see Stage 0). - The channel already exists and you only want to re-route / activate it. Skip insertion;
call
service-de-channel-routing-configure/service-de-channel-activatewith the existingchannelId.
Inputs (from caller)
{MESSAGE_TYPE}— one ofWhatsApp,Line,AppleBusinessChat,Facebook,Text. Case-sensitive (matches the SF picklist).Textis the enum value for SMS — there is noSMStype.{ORG_ALIAS}— optional;sfCLI target-org alias. Default:sf config get target-org.{API_VERSION}— optional; Connect API version. Default: the org's current API version (sf org display --json | jq -r '.result.apiVersion'). Always use the org's native version to avoid 404s.{CHANNEL_NAME}— display name shown in Setup → Messaging Settings. Required forAppleBusinessChat(no phone/screen-name fallback); prompted if omitted for others.
Type-specific inputs:
- WhatsApp:
{WABA_ID}(sent asexternalAccountId),{PHONE_NUMBER_ID}(the platform key — must differ from WABA_ID),{ISO_COUNTRY_CODE}(optional, defaultUS). - Line:
{LINE_CHANNEL_ID}(platform key),{LINE_CHANNEL_SECRET},{LINE_ACCESS_TOKEN},{VERIFY_TOKEN_FIRST}(optional, defaulttrue). - AppleBusinessChat:
{APPLE_BC_ID}(platform key, GUID). - Facebook:
{PAGE_ID}(optional — OAuth fetches/prompts if absent). - Text (SMS): `{SMS_NUM
Установить service-de-channel-create в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл service-de-channel-create?
**INTERNAL USE ONLY — invoked by `service-de-headless-channel-configure`.** Insert an Enhanced messaging `MessagingChannel` (plus child `MessagingChannelUsage` as a free side-effect) of any type — WhatsApp, LINE, Apple Business Chat, Facebook, or SMS. Given a `{MESSAGE_TYPE}` and its inputs, runs the shared preflight → Connect-insert → verify flow, branching only where a type differs. Uses `POST /services/data/v{V}/connect/livemessage/channels` — no Aura session, no shell-stored token. **Invoke `service-de-headless-channel-configure` instead** — it handles insert → route → activate in one flow; replaces the four former per-type creation skills.
Как установить скилл service-de-channel-create?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл service-de-channel-create запускает скрипты?
Нет, скилл состоит только из инструкций (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