Newer Version Available
MessagingChannel
Parent Type
File Suffix and Directory Location
MessagingChannel components have the suffix messagingChannel and are stored in the messagingChannels folder.
Version
MessagingChannel components are available in API version 55.0 and later.
Special Access Rules
This type is available if your org has the “Configure Messaging” and “View Setup and Configuration” permissions for Messaging enabled.
Fields
| Field Name | Description |
|---|---|
| automatedResponses |
|
| customParameters |
|
| description |
|
| embeddedConfig |
|
| masterLabel |
|
| messagingChannelType |
|
| messagingKeywords |
|
| sessionHandlerFlow |
|
| sessionHandlerQueue |
|
| sessionHandlerType |
|
| standardParameters |
|
EmbeddedConfig
Represents settings specific to an embedded messaging channel.
| Field Name | Description |
|---|---|
| isEstimatedWaitTimeEnabled |
|
| authMode | |
| verifiedUserJwtExpirationTime |
|
| anonymousUserJwtExpirationTime |
|
| isAttachmentUploadEnabled |
|
| isSaveTranscriptEnabled |
|
| messagingAuthorizations |
|
MessagingAuthorization
MessagingAutoResponse
Represents an automated response used in a channel.
MessagingChannelCustomParameter
Represent a custom parameter added to a channel.
| Field Name | Description |
|---|---|
| actionParameterMappings |
|
| externalParameterName |
|
| masterLabel |
|
| maxLength |
|
| name |
|
| parameterDataType |
|
MessagingChannelActionParameterMapping
Represents a mapping between a parameter and an Omni-Channel flow or agent task.
| Field Name | Description |
|---|---|
| actionParameterName |
|
MessagingChannelStandardParameter
Represents a standard parameter used to pass information into a channel.
| Field Name | Description |
|---|---|
| actionParameterMappings |
|
| externalInteractionId |
|
| externalInteractionName |
|
| externalInteractionType |
|
| parameterType |
|
MessagingKeyword
| Field Name | Description |
|---|---|
| keywordType |
|
| language |
|
| keyword |
|
Declarative Metadata Sample Definition
The following is an example of a MessagingChannel component. This messaging channel passes custom and standard parameters from the messaging channel to a flow, and it routes to a flow with a fallback queue.
1<?xml version="1.0" encoding="UTF-8"?>
2<MessagingChannel xmlns="http://soap.sforce.com/2006/04/metadata">
3 <description>Test in-app messaging channel</description>
4 <masterLabel>TestInAppChannel</masterLabel>
5 <messagingChannelType>EmbeddedMessaging</messagingChannelType>
6 <sessionHandlerQueue>Demo_Queue</sessionHandlerQueue>
7 <sessionHandlerType>Queue</sessionHandlerType>
8 <embeddedConfig>
9 <authMode>Auth</authMode>
10 <isAttachmentUploadEnabled>true</isAttachmentUploadEnabled>
11 <isSaveTranscriptEnabled>false</isSaveTranscriptEnabled>
12 <isEstimatedWaitTimeEnabled>false</isEstimatedWaitTimeEnabled>
13 <verifiedUserJwtExpirationTime>360</verifiedUserJwtExpirationTime>
14 <messagingAuthorizations>
15 <authorizationType>PublicKeyCertificateSet</authorizationType>
16 <authProviderName></authProviderName>
17 <publicKeyCertificateSetName>pcks1</publicKeyCertificateSetName>
18 <enabled>false</enabled>
19 <authIdentifier>auth_identifier_one</authIdentifier>
20 </messagingAuthorizations>
21 </embeddedConfig>
22 <automatedResponses>
23 <autoResponseContentType>MessageDefinition</autoResponseContentType>
24 <messageDefinitionName>Sample</messageDefinitionName>
25 <type>EndUserInactiveResponse</type>
26 <responseTimeoutInMins>10</responseTimeoutInMins>
27 </automatedResponses>
28 <automatedResponses>
29 <autoResponseContentType>MessageDefinition</autoResponseContentType>
30 <messageDefinitionName>Sample</messageDefinitionName>
31 <type>InitialResponse</type>
32 </automatedResponses>
33 <automatedResponses>
34 <autoResponseContentType>MessageDefinition</autoResponseContentType>
35 <messageDefinitionName>Sample</messageDefinitionName>
36 <type>AgentEndEngagementResponse</type>
37 </automatedResponses>
38 <automatedResponses>
39 <autoResponseContentType>MessageDefinition</autoResponseContentType>
40 <messageDefinitionName>Sample</messageDefinitionName>
41 <type>AgentEngagedResponse</type>
42 </automatedResponses>
43 <automatedResponses>
44 <autoResponseContentType>TextResponse</autoResponseContentType>
45 <language>en_US</language>
46 <response>You've opted out of receiving messages from us, so we won't contact you again.</response>
47 <type>OptOutConfirmation</type>
48 </automatedResponses>
49 <automatedResponses>
50 <autoResponseContentType>TextResponse</autoResponseContentType>
51 <language>en_US</language>
52 <response>Custom response1</response>
53 <type>CustomResponse</type>
54 </automatedResponses>
55 <automatedResponses>
56 <autoResponseContentType>TextResponse</autoResponseContentType>
57 <language>en_US</language>
58 <response>Opt In Confirmation response</response>
59 <type>OptInConfirmation</type>
60 </automatedResponses>
61 <automatedResponses>
62 <autoResponseContentType>TextResponse</autoResponseContentType>
63 <language>en_US</language>
64 <response>Text STOP to opt out of further messages.</response>
65 <type>HelpResponse</type>
66 </automatedResponses>
67 <messagingKeywords>
68 <keyword>stopall</keyword>
69 <keyword>cancel</keyword>
70 <keyword>stop</keyword>
71 <keyword>unsubscribe</keyword>
72 <keyword>end</keyword>
73 <keyword>quit</keyword>
74 <keywordType>OptOut</keywordType>
75 <language>en_US</language>
76 </messagingKeywords>
77 <messagingKeywords>
78 <keyword>help</keyword>
79 <keywordType>Help</keywordType>
80 <language>en_US</language>
81 </messagingKeywords>
82 <messagingKeywords>
83 <keyword>customkeyword1</keyword>
84 <keywordType>Custom</keywordType>
85 <language>en_US</language>
86 </messagingKeywords>
87 <messagingKeywords>
88 <keyword>OptInkeyword1</keyword>
89 <keywordType>OptIn</keywordType>
90 <language>en_US</language>
91 </messagingKeywords>
92</MessagingChannel>If you route the messaging channel to a queue, there’s no fallback flow.
1<?xml version="1.0" encoding="UTF-8"?>
2<MessagingChannel xmlns="http://soap.sforce.com/2006/04/metadata">
3 <masterLabel>EmbeddedChannel2</masterLabel>
4 <messagingChannelType>EmbeddedMessaging</messagingChannelType>
5 <sessionHandlerQueue>DemoQueueName</sessionHandlerQueue>
6 <sessionHandlerType>Queue</sessionHandlerType>
7</MessagingChannel>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>MessagingChannel</name>
6 </types>
7 <version>55.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.