service-de-headless-channel-configure

Installation
SKILL.md

Headless Channel Setup (type-agnostic)

What this skill does

Takes a channel type (WhatsApp | Line | AppleBusinessChat | Facebook | Text) plus its type-specific inputs and drives it to an activated MessagingChannel. It first gates on the Enhanced Messaging Terms and Conditions, then runs four core steps plus an optional settings step:

  1. Accept Terms and Conditions — renders the Enhanced Messaging disclaimer and requires the user to certify they have authority to bind their org, mirroring the in-org "Add a Channel" wizard. Blocking — a decline ends the run before any org work. (Stage 0.5, in this skill)
  2. Insert the channel — invokes service-de-channel-create, which handles each type's third-party prereq (e.g. WhatsApp's service-de-waba-integrate). (skill: service-de-channel-create)
  3. Configure routing — sets SessionHandlerId to an Omni-Channel Queue (pick existing or create new). Message-type-agnostic. (skill: service-de-channel-routing-configure)
  4. Configure consent — ensures a valid ConsentType + matching MsgChannelLanguageKeyword record (often a no-op: the insert auto-seeds ImplicitOptIn). Activation's readiness check needs routing AND consent, so this runs before activation. (skill: service-de-channel-settings-configure)
  5. Activate — PATCHes MessagingChannelUsage.DeploymentStatus to Provisioning; the save-hook runs synchronously and returns 204 once the channel is IsActive=true. Message-type-agnostic. (skill: service-de-channel-activate)
  6. Configure requested settings — only if the request asked for auto-responses, keywords, or session inactivity. Runs after activation and is non-blocking: a failure is a warning, never a failed run, and every requested setting is reported as configured, not applicable, or failed. (skill: service-de-channel-settings-configure, Stage 4.5)

Resume-by-default. Each step is idempotent: a re-run detects existing state and skips steps that already succeeded.

Prompt mid-flow. A missing {MESSAGE_TYPE} is asked upfront; routing choices are prompted when step 2 runs.

Reference File Index

Installs
677
GitHub Stars
1.2K
First Seen
Aug 28, 2026