Create Messaging Channel
sf_create_messaging_channelCreate a Salesforce messaging channel for SMS, WhatsApp, Facebook, or other digital platforms, with routing to a queue or a bot.
Instructions
Creates a Messaging Channel for Salesforce digital engagement (SMS, WhatsApp, Facebook Messenger, Apple Messages for Business, etc.).
channelType options: SMS, WhatsApp, Facebook, AppleBusinessChat, Line, GoogleBusinessMessages, EinsteinBotChannel, WebChat
phoneNumber: E.164 format phone number for SMS/WhatsApp channels (e.g. +15551234567) pageId: Facebook Page ID or equivalent external platform identifier
routingType: Queue (route to a queue) or Bot (route to an Einstein Bot first) queueName: required when routingType=Queue botName: required when routingType=Bot (bot handles initial messages)
After creating, configure the channel with sf_create_embedded_service to add it to a site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| pageId | No | Facebook Page ID for Facebook Messenger | |
| botName | No | Bot API name for bot-first routing | |
| queueName | No | Queue DeveloperName to route work items to | |
| channelName | Yes | API name / MasterLabel for the Messaging Channel | |
| channelType | Yes | ||
| description | No | ||
| phoneNumber | No | Phone number for SMS/WhatsApp channels | |
| routingType | No | Queue |