MessagingChannel defines the configuration for an Embedded Service Messaging channel. It connects authentication, session routing, consent, automated responses, and parameters passed to routing flows or agent tasks. It is separate from EmbeddedServiceConfig, which can reference the channel.
The required messagingChannelType identifies the channel family: EmbeddedMessaging means Enhanced Chat, Custom covers Bring Your Own Channel for Messaging or for CCaaS, and Voice means Service Cloud Voice. Settings under embeddedConfig apply specifically to embedded messaging, not universally to every channel family. Access requires the "Configure Messaging" and "View Setup and Configuration" permissions for Messaging.
Key Elements
| Element | What the Element Controls |
|---|---|
masterLabel |
Required channel label. The component also inherits fullName from the base metadata type. |
messagingChannelType |
Required channel family. Important values include EmbeddedMessaging, Custom, and Voice. The presence of third-party channel values does not, by itself, confirm deployment or retrieval support. |
embeddedConfig.authMode |
Required within the embedded configuration. Allowed values are Auth and UnAuth, not Boolean values. |
embeddedConfig.verifiedUserJwtExpirationTime, embeddedConfig.anonymousUserJwtExpirationTime
|
JSON Web Token (JWT) expiration times, in minutes, for verified and anonymous users respectively. |
embeddedConfig.messagingAuthorizations |
User Verification configuration. Use authorizationType of PublicKeyCertificateSet with publicKeyCertificateSetName. Authorization is disabled by default. |
embeddedConfig.isAttachmentUploadEnabled, embeddedConfig.isSaveTranscriptEnabled
|
Allow inbound file attachments and transcript downloads respectively. Both default to false. |
sessionHandlerType, sessionHandlerUser
|
The required routing method is AgentforceServiceAgent, Flow, Queue, or User. sessionHandlerUser identifies the user configured to handle routing. |
sessionHandlerFlow, sessionHandlerQueue
|
Name the Omni-Channel routing flow and queue. sessionHandlerQueue is documented as required and acts as the fallback when the selected flow cannot route a message. |
queueRoutingConfig |
References QueueRoutingConfig, not the Queue named by sessionHandlerQueue. |
customParameters, standardParameters
|
Define channel inputs and their actionParameterMappings to a flow or agent task. Standard parameterType values are Email, FirstName, LastName, and Subject. |
channelUsages |
Combines a required deploymentType with an optional channelConsentType for each usage. |
messagingKeywords |
Language-specific keyword recognition for embedded messaging. Required keywordType values are OptIn, DoubleOptIn, OptOut, Help, or Custom. |
automatedResponses.type |
Required response category that determines when the response is used, such as a session event, consent prompt, or confirmation. |
automatedResponses.autoResponseContentType |
TextResponse uses response text. MessageDefinition uses messageDefinitionName to identify a messaging component. language supplies the response language. |
automatedResponses.responseTimeoutInMins |
Accepts 5 through 60 minutes. After this interval, the response can no longer be sent; it is not a sending delay. |
Behavior and Constraints
Authentication and User Verification
Authentication mode and authorization settings are separate parts of the embedded configuration. Setting authMode does not replace the nested messagingAuthorizations configuration needed for User Verification.
-
authorizationTypemust bePublicKeyCertificateSetfor a fully functional User Verification setup. This choice requirespublicKeyCertificateSetName, which names aPublicKeyCertificateSetcomponent. -
AuthProvideris exposed as anauthorizationTypevalue but is unsupported and must not be selected. Do not setauthProviderName, even though the field is exposed. -
enableddefaults tofalse. Naming a certificate set does not establish that authorization is enabled. - The required
authIdentifiermust begin with a letter and contain only alphanumeric characters and underscores.
File exchange settings do not enable authentication. isAttachmentUploadEnabled permits files to enter the conversation, while isSaveTranscriptEnabled permits transcript downloads. Each defaults to false. Within embeddedConfig, isEstimatedWaitTimeEnabled also defaults to false.
Routing and parameter mappings
Interpret routing as a combination of sessionHandlerType and its associated settings. sessionHandlerFlow identifies the Omni-Channel flow used to route messaging sessions. If that flow cannot route a message, sessionHandlerQueue supplies the fallback queue. The queue field is documented as required.
The fallback works in one direction only: flow to queue. Queue routing has no fallback flow. Also, queueRoutingConfig and sessionHandlerQueue refer to different metadata types and are not interchangeable.
Both customParameters and standardParameters can contain actionParameterMappings. These mappings describe information passed to an Omni-Channel flow or agent task; they do not replace sessionHandlerFlow as the session-routing flow setting. Each mapping supplies the required actionParameterName.
A custom parameter requires externalParameterName, masterLabel, name, and parameterDataType. Its optional maxLength limits the parameter value's length. Allowed data types are Apex, Boolean, Currency, Date, DateTime, Multipicklist, Number, Picklist, SObject, String, and Time.
Consent, keywords, and responses
Each channelUsages entry requires a deploymentType: DigitalEngagementConversation, UnifiedConversation, MessagingEngagement, or MarketingJourneyBuilder. Its optional channelConsentType is ImplicitOptIn, ExplicitOptIn, or DoubleOptIn.
Consent selection, keyword recognition, and response content serve different purposes. channelUsages records the consent model. messagingKeywords, documented specifically for EmbeddedMessaging channels, assigns keywords to consent, help, or custom categories and requires a language. Defining an automated opt-in response does not select the channel's consent model.
The automated response type determines when it is used. Documented values include AgentEndEngagementResponse, AgentEngagedResponse, CustomResponse, DoubleOptInPrompt, EndUserIdleResponse, EndUserInactiveResponse, HelpResponse, InitialResponse, OptInConfirmation, OptInPrompt, and OptOutConfirmation. Content selection and the 5-to-60-minute sending timeout are separate from this event selection.
Deployment and Retrieval
MessagingChannel components use the messagingChannel suffix and reside in the messagingChannels folder. The type supports * as a member in a package.xml manifest, so a manifest entry with type name MessagingChannel and member * can request all components of this type.
The routing and verification settings can name separate Flow, Queue, QueueRoutingConfig, and PublicKeyCertificateSet components. Those references identify the dependencies relevant to the particular channel. The nested authorization, response, usage, keyword, and parameter structures belong to the channel definition rather than being separate deployable components.
For embedded User Verification configuration, use the supported certificate-set authorization and omit authProviderName. A certificate-set name with enabled left at its default still leaves authorization disabled. For flow routing, preserve the fallback queue rather than treating the flow reference as a replacement for it.
Do not assume that a third-party channel is retrievable or deployable as MessagingChannel solely because its name appears in the messagingChannelType enumeration. The documented scope conflict affects that conclusion.
Relationships
The channel references routing and verification components. Service configuration, menu settings, and call-center configuration can reference the channel in turn. These incoming references are separate from the channel's outgoing dependencies and do not establish a mandatory deployment order.
References
-
Flow:sessionHandlerFlow. -
Queue:sessionHandlerQueue. -
QueueRoutingConfig:queueRoutingConfig. -
PublicKeyCertificateSet:publicKeyCertificateSetName, nested underembeddedConfig.messagingAuthorizations.
Referenced By
-
CallCenter:channel. -
EmbeddedServiceConfig:messagingChannel. -
EmbeddedServiceMenuSettings:channel.
Documentation Inconsistencies
-
Third-party channel scope is contradictory. The
messagingChannelTypeenumeration includesFacebookandWhatsApp, but the type definition explicitly says that third-party Messaging channels such as Facebook Messenger and WhatsApp do not use this metadata type. Enumeration presence alone is not confirmation of retrieval or deployment support. -
The JWT descriptions use Boolean wording for an enumeration. The expiration-field descriptions refer to
authModebeing true or false, but its defined values areAuthandUnAuth. Do not serializeauthModeas a Boolean. -
The first declarative sample does not show the flow routing described in its introduction. It sets
sessionHandlerTypetoQueueand does not supplysessionHandlerFlow. It therefore should not be copied as an example of flow routing with a fallback queue.
Reported Issues
-
A BYOC channel-creation error was reported to originate in packaged channel-definition configuration. In a 2026 sandbox report, the creation wizard ended with an Internal Server Error even though the user was a system administrator with the Partner Messaging User permission set license. The accepted answer attributed the failure to field names in the packaged
ConversationChannelDefinitionand reported success after correcting those names and generating a new package. This is a reported package-specific diagnosis, not a general requirement for allMessagingChanneldeployments. See the BYOC creation-error discussion and the ConversationChannelDefinition reference.
Common Questions
How do I retrieve all MessagingChannel components?
Use MessagingChannel as the type name and * as the member in package.xml. Components use the messagingChannel suffix and are stored in messagingChannels.
Does a messaging routing flow need a fallback queue?
sessionHandlerQueue is documented as required. When a routing flow is selected, that queue handles messages the flow cannot route. Queue routing does not have a fallback flow.
Why isn't User Verification enabled after I add a certificate set?
The certificate-set reference does not enable authorization by itself. Use authorizationType of PublicKeyCertificateSet, supply publicKeyCertificateSetName, and check enabled, which defaults to false. The exposed AuthProvider option is unsupported.
Can I deploy WhatsApp or Facebook channels as MessagingChannel?
The documentation is contradictory: both names appear in the channel-type enumeration, while the type definition says those third-party channels do not use this metadata type. The enumeration alone is not sufficient confirmation that a particular channel can be retrieved or deployed this way.
Does responseTimeoutInMins delay an automated response?
No. It specifies the number of minutes after which the response can no longer be sent, not a delay before sending. Allowed values range from 5 to 60.