Messaging Admin Implementation Guide
Messaging Admin Implementation Guide
names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What's Messaging? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Limits and Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Supported Editions for Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Compare Messaging Channel Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Messaging Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Lifecycle of a Messaging Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Get Started with Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Turn On Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Give Users Access to Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Set Up Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Add Messaging to the Service Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Messaging for In-App and Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
What’s Messaging for In-App and Web? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Set Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Cookbook for Messaging for In-App and Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Flow Recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
WhatsApp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
Create or Upgrade to an Enhanced Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
General Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Upgrade and Migration Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Compare Standard and Enhanced WhatsApp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Send Automated Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Test Your Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Apple Messages for Business . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Plan Your Customer Journey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
Contacting Customers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Creating Interactive Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Create Your Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Add Apple Pay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Route Apple Messages Inquiries by Intent and Group . . . . . . . . . . . . . . . . . . . . . . . . 182
Test Your Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
LINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
Step 1: Set Up a LINE Official Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Step 2: Prepare for Messaging in Salesforce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Step 3: Connect LINE to Salesforce . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
Step 4: Complete the Connection to LINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Step 5: Activate Your Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Contents
Message with customers in real time from the Service Console on mobile or desktop. Messaging supports WhatsApp, Facebook Messenger,
Apple Messages for Business, LINE, and SMS, as well as website and mobile app messaging. To help customers on additional messaging
channels, connect your preferred messaging service with Bring Your Own Channel (BYOC) or Bring Your Own Channel for CCaaS.
Learn About Messaging Get Started with Messaging Add Messaging Channels
What’s Messaging? Turn On Messaging Messaging for In-App and Web on page 43
Messaging Limits and Considerations Give Users Access to Messaging WhatsApp on page 142
Compare Messaging Channel Capabilities Set Up Routing for Messaging Channels Apple Messages for Business on page 164
Lifecycle of a Messaging Session LINE on page 186
Trailhead: Salesforce Messaging Facebook Messenger on page 193
Community: Digital Engagement Trailblazer SMS on page 206
Community
Connect a Messaging Service Design the Agent Experience Customize Your Channels
Set Up Bring Your Own Channel Add Messaging to the Service Console Update Service Cloud Messaging Channel
Set Up Bring Your Own Channel for CCaaS Standardize Responses with Quick Text Settings
Considerations and Limitations on page 247 Show Agents and Supervisors Customize Auto-Responses in Service Cloud
Mid-Conversation Summaries Messaging Channels
Extend Messaging with Automation Privacy and Ethics in Messaging Messaging for Developers
Interactive Messaging Components Protect Customer Data and Privacy in Messaging Object Model
Using Enhanced Bots in Messaging Channels Messaging Messaging for In-App Developer Guide
1
Provide Conversation Support with Messaging in Service What’s Service Cloud Messaging?
Cloud
Create a Flow to Link Individuals to Customize the Messaging Opt-In and Messaging for Web Developer Guide
Messaging Sessions Opt-Out Experience Bring Your Own Channel Developer Guide
Automatically Trigger an Action Based on Block Sensitive Data in Messaging Sessions
Detected Keywords Accessing Messaging and Voice
Conversation Data
Delete Messaging Customer Data
This Messaging
article for In-App,
applies to: Messaging
for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
2
Provide Conversation Support with Messaging in Service What’s Service Cloud Messaging?
Cloud
Salesforce supports multiple types of Messaging channels. With Messaging for In-App and Web, you can add messaging to your website
or mobile app. With a WhatsApp, Facebook Messenger, LINE, Apple Messages for Business, or SMS channel, you can support customers
in a familiar setting—all from one browser tab. And with Bring Your Own Channel (BYOC) and Bring Your Own Channel for CCaaS, you
can add a partner integration with an external messaging service.
3
Provide Conversation Support with Messaging in Service What’s Service Cloud Messaging?
Cloud
Multi-Channel Support
With Salesforce Messaging, your support team helps customers over their preferred messaging channel without leaving the Service
Console. When customers need help from your business, they can message you on any channel you’ve set up and get help from a service
rep, AI agent, or bot. You choose the channels where you communicate with your customers—for example, you may prefer to set up
only a WhatsApp channel.
Reps in most Messaging channels can also proactively start conversations with customers, or your business can add automation to send
notification messages to customers. If a customer responds to a notification, their response is routed back to your support team.
Routing by Omni-Channel
Salesforce's routing tool assigns incoming messages to queues, flows, or service reps. Queue-based routing is ideal for simple routing
scenarios. Alternatively, use Flow Builder to set up an Omni-Channel flow, which supports more complex routing logic.
Service Console
Incoming messages appear in the Omni-Channel utility or sidebar in the Service Console, just like phone calls. Service reps can accept
a message and start chatting.
The Enhanced Conversation component in the console shows current and past messages exchanged with the customer. Messaging
user records, created for anyone who has exchanged messages with your company, show the user's related Salesforce records and all
of their messaging sessions in a particular channel.
To let service reps gather and share information in familiar formats, create a library of interactive components. Messaging components
are available in several formats, including rich links, questions with options, forms, and time selectors. Reps use the messaging component
action or a custom flow to send a messaging component to a customer during a session. Depending on the channel capabilities, your
team can also send and receive familiar content types such as images, videos, audio messages, and PDFs.
4
Provide Conversation Support with Messaging in Service What’s Service Cloud Messaging?
Cloud
Sometimes, a service rep isn't able to resolve a customer's issue on their own. When this happens, they have options: they can exchange
private messages with a supervisor to troubleshoot, transfer the session to another agent, or if the customer stops responding, mark the
session inactive.
AI Solutions
To reduce the load on your support reps, create an enhanced bot or an AI agent, such as Agentforce Service Agent. An AI agent functions
as an autonomous member of your support team: with the help of the Salesforce AI reasoning engine, it can carry on realistic conversations
with customers, complete a range of actions in Salesforce, and proactively advance your customer service goals. Best of all, setting one
up takes just a few minutes, and you can try it yourself in Trailhead. Alternatively, add an enhanced bot to your Messaging channels to
field common questions. Unlike AI agents, bots rely on scripted conversations and require some human involvement.
AI agents and bots benefit you and your support team in several key ways: They help you resolve cases faster, and shorten messaging
sessions by letting customers self-direct. While these tools are an optional part of Messaging, they can help you scale your business's
customer service strategy, boosting your efficiency without increasing the number of reps.
IN THIS SECTION:
Service Cloud Messaging Limits and Considerations
Before you get started with Messaging, review key limits and considerations.
Supported Editions for Messaging
Salesforce Messaging offers a variety of experiences. You can add messaging to your mobile app or website with Messaging for
In-App and Web, connect third-party messaging apps such as WhatsApp, or integrate your preferred messaging service with Bring
Your Own Channel. Review the supported editions for each messaging type.
Compare Messaging Channel Capabilities in Service Cloud
Explore the capabilities of Messaging channels in Service Cloud.
Messaging Glossary
When you’re setting up a Messaging channel in Service Cloud, it’s helpful to understand the terms that we use to talk about messaging
in Salesforce.
Lifecycle of a Messaging Session in Service Cloud
Learn how Salesforce tracks messaging sessions, from the first message to the last. Understanding session status transitions helps
you route and monitor inquiries effectively.
SEE ALSO:
Trailhead: Salesforce Messaging
5
Provide Conversation Support with Messaging in Service Service Cloud Messaging Limits and Considerations
Cloud
Maximum messages or messaging sessions per • Standard Messaging for Salesforce Classic:
second* 2 messages per second
• Standard Messaging for Lightning
Experience: 12 new messaging sessions per
second, and up to 150 messages per second
thereafter
• Enhanced Messaging and Messaging for
In-App and Web: 50 new messaging
6
Provide Conversation Support with Messaging in Service Service Cloud Messaging Limits and Considerations
Cloud
Limit Value
sessions per second, and up to 1,000 messages per second
thereafter
If limits are reached and a message can’t be sent, Salesforce retries
sending it for 24 hours. The delay typically doesn’t exceed 10
minutes.
Enhanced messaging session expiration An agent’s enhanced messaging session expires 10 seconds after
they close the Service Console, or refresh the page and don’t select
a login option. In standard Omni-Channel, the session expires 30
seconds after the last poll.
* These limits apply collectively to all of your channels in your org. For example, Messaging allows up to 50 new messaging sessions per
second in your enhanced Messaging channels and Messaging for In-App and Web channels combined.
Channel-Specific Considerations
Review limits and considerations for specific Messaging channels and features.
• Considerations for Messaging for In-App and Web
• Considerations for WhatsApp in Service Cloud
• Considerations for Facebook Messenger in Service Cloud
• Considerations for Apple Messages for Business in Service Cloud
• Considerations for LINE in Service Cloud on page 191
• Considerations for Long Codes in Service Cloud
• Considerations for Short Codes in Service Cloud
• Considerations for Broadcast SMS Messaging in Service Cloud
• Considerations for Messaging Components
7
Provide Conversation Support with Messaging in Service Supported Editions for Messaging
Cloud
• Considerations and Limitations for Bring Your Own Channel and Bring Your Own Channel for CCaaS
SEE ALSO:
Compare Messaging Channel Capabilities in Service Cloud
This Messaging
Messaging for In-App and Web article for In-App,
applies to: Messaging
• Available in Lightning Experience only
for Web,
• Available in Enterprise Edition for Service Cloud with the Digital Engagement add-on license standard
• Available in Enterprise Edition for Sales Cloud with the Sales Engagement add-on license and
• Available in Unlimited Edition for Service and Sales Cloud enhanced
WhatsApp,
• Available in Developer Edition standard
and
enhanced
Messaging for WhatsApp, Facebook Messenger, Apple Facebook
Messages for Business, SMS, and LINE Messenger,
standard
• Available in Lightning Experience only
and
• Available in Enterprise, Unlimited, and Developer Editions for Service Cloud or Sales Cloud with enhanced
the Digital Engagement add-on license SMS,
• Outbound messaging in WhatsApp is available with the WhatsApp Outbound Messages add-on enhanced
license Apple
Messages
• SMS short code channels are available with the Short Codes add-on license
for Business,
• Not supported in Government Cloud Plus enhanced
LINE, Bring
Your Own
Bring Your Own Channel and Bring Your Own Channel for Channel,
CCaaS and Bring
Your Own
• Available in Lightning Experience only Channel for
• Available in Enterprise, Unlimited, and Developer Editions for Service Cloud or Sales Cloud with CCaaS
the Digital Engagement add-on license
8
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
9
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
Agent can end Yes Yes Yes Yes Yes Yes Yes
the session
Customer Experience
Messaging Messaging WhatsApp Facebook SMS Apple LINE
for In-App for Web (Enhanced) Messenger (Enhanced) Messages (Enhanced)
(Enhanced) (Enhanced)
Typing Yes Yes No Yes N/A Yes No
indicator:
customer side
10
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
Agent Experience
Messaging Messaging WhatsApp Facebook SMS Apple LINE
for In-App for Web (Enhanced) Messenger (Enhanced) Messages (Enhanced)
(Enhanced) (Enhanced)
Quick text Yes Yes Yes Yes Yes Yes Yes
11
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
Rich Content
Messaging Messaging WhatsApp Facebook SMS Apple LINE
for In-App for Web (Enhanced) Messenger (Enhanced) Messages (Enhanced)
(Enhanced) (Enhanced)
Emojis: Yes Yes Yes Yes Yes Yes Yes
customer to
agent
12
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
File sharing: Yes Yes Yes Yes Yes Yes Yes on page
customer to 191
agent
File sharing: Yes Yes Yes Yes Yes Yes Yes on page
agent to 191
customer
Enhanced link Yes Yes Yes (plain text Yes Yes (plain text Yes Yes
messaging only) only)
components
Question with Yes Yes Yes Yes Yes (plain text Yes Yes
options only)
messaging
components
Time selector Yes Yes Yes Yes Yes (plain text Yes Yes (plain text
messaging only) only)
components
Form Yes Yes Yes (plain text Yes (plain text Yes (plain text Yes Yes (plain text
messaging only) only) only) only)
components
Notification Yes Yes Yes Yes (plain text Yes (plain text Yes Yes
messaging only, no flow only)
components support)
Payment Yes (plain text Yes (plain text Yes (plain text Yes (plain text Yes (plain text Yes Yes (plain text
messaging only) only) only) only) only) only)
components
13
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
Custom Yes (plain text Yes (plain text Yes (plain text Yes (plain text Yes (plain text Yes Yes (plain text
messaging only) only) only) only) only) only)
components
Automated Responses
Messaging Messaging WhatsApp Facebook SMS Apple LINE
for In-App for Web (Enhanced) Messenger (Enhanced) Messages (Enhanced)
(Enhanced) (Enhanced)
Conversation Yes Yes Yes Yes Yes Yes Yes
acknowledgment
14
Provide Conversation Support with Messaging in Service Compare Messaging Channel Capabilities in Service Cloud
Cloud
SEE ALSO:
Service Cloud Messaging Limits and Considerations
Compare Messaging for In-App and Web Capabilities to Chat Capabilities
Compare Standard and Enhanced WhatsApp Channel Capabilities
Compare Standard and Enhanced Facebook Messenger Channel Capabilities
Compare Standard and Enhanced SMS Channel Capabilities
Compare Bring Your Own Channel to Bring Your Own Channel for CCaaS Capabilities
15
Provide Conversation Support with Messaging in Service Messaging Glossary
Cloud
Messaging Glossary
When you’re setting up a Messaging channel in Service Cloud, it’s helpful to understand the terms
EDITIONS
that we use to talk about messaging in Salesforce.
Available in: Lightning
Term Definition Experience. View required
Asynchronous Messaging sessions can be started, stopped, then re-engaged at any editions.
time. Closing the messaging window doesn’t delete the conversation This Messaging
history, giving agents and customers more flexibility. article for In-App,
applies to: Messaging
Channel A way for customers to exchange messages with your business. Salesforce
for Web,
supports these channel types in Messaging: Facebook Messenger, standard
WhatsApp, Apple Messages for Business, SMS, LINE, Messaging for In-App, and
Messaging for Web, Bring Your Own Channel, and Bring Your Own enhanced
Channel for CCaaS. To connect a third-party account such as a WhatsApp WhatsApp,
account to Salesforce, you create a Messaging channel in Setup. In your standard
channel settings, you can customize the agent experience and add and
automation. enhanced
Facebook
Conversation A conversation includes one or more messaging sessions associated with
Messenger,
a single messaging user. Messaging offers asynchronous, persistent standard
conversations that store all messaging history. Some conversations and
include a single messaging session, while others include multiple. As a enhanced
rule, admins can't end conversations, and need to understand this SMS,
concept only when they’re deleting or exporting data or setting the enhanced
display frequency of the pre-chat form. Apple
In Messaging for In-App and Web, the conversation boundaries determine Messages
how much messaging history customers see: for Business,
enhanced
• In Messaging for In-App and Web channels with user verification, LINE, Bring
conversations don’t end and verified users always see their Your Own
conversation history in the messaging window. Channel,
• In Messaging for In-App and Web channels without user verification, and Bring
customers can click End Conversation in the chat window. In this Your Own
unverified scenario, Messaging for Web customers see conversation Channel for
history for up to 6 hours in the messaging window, and Messaging CCaaS
for In-App customers always see conversation history in the
messaging window.
Conversation Channel An entity in Salesforce that contains metadata for any Bring Your Own
Definition Channel and Bring Your Own Channel for CCaaS channel integration. It's
also linked to your messaging channel via a ChannelDefinition foreign
key that populates the Conversation Channel Definition field. You must
unlink the Conversation Channel Definition field before you can uninstall
your Bring Your Own Channel or Bring Your Own Channel for CCaaS.
CORS Allowlist Entry Cross-Origin Resource Sharing (CORS) lets web browsers request
resources from other domains. When you add your top-level domain
when setting up a Messaging for Web channel, the CORS allowlist
16
Provide Conversation Support with Messaging in Service Messaging Glossary
Cloud
Term Definition
prevents requests to Salesforce Lightning apps unless the request comes from your approved URL
list.
Custom Parameter A way to further customize the Messaging experience or routing for a particular channel. For example,
create a custom parameter to share a customer’s name and email address with an agent or to link
a customer’s pre-chat form values to a Messaging for In-App and Web channel. Manage custom
parameters in your messaging channel’s settings in Setup.
Embedded Service Deployment Create deployments to implement Messaging on your app or website and control the functionality.
Manage your deployments on the Embedded Service Deployment Settings page in Setup. There,
you can edit your messaging settings, select branding, add pre-chat values, and install a JavaScript
code snippet to deliver conversations to your website, download a configuration file to provide
conversations from your mobile app, and more.
Enhanced Messaging A new platform that supports a wider range of content formats and more efficient operations than
Standard Messaging. WhatsApp, Facebook Messenger, SMS, LINE, Apple Messages for Business, Bring
Your Own Channel, and Bring Your Own Channel for CCaaS are available as enhanced channels. You
can upgrade standard channels to enhanced channels, and can maintain both standard and enhanced
channels in Salesforce. Going forward, new features are available exclusively in enhanced channels,
and standard channels are scheduled for retirement in July 2025 (WhatsApp) and February 2026
(SMS and Facebook Messenger).
Inbound Messaging Messaging sessions initiated by your customer—for example, a customer sends you a message in
Facebook Messenger.
Messaging Component Structured content that agents can send to customers in a messaging session to share or gather
information. Several types of messaging components are available, including enhanced links, questions
with options, time selectors, and forms. These content formats help you standardize your external
messaging and let customers and agents communicate in familiar ways.
Messaging Session An exchange of one or more messages between your business and a customer that takes place over
a Messaging channel. Messaging sessions end differently depending on your channel and device:
• In Messaging for In-App with or without User Verification, the messaging session ends when the
agent clicks End Chat.
• In Messaging for Web without User Verification, the messaging session ends when the customer
or agent clicks End Chat.
• In Messaging for Web with User Verification, the messaging session ends when the agent clicks
End Chat.
• In standard and enhanced Messaging channels, the messaging session ends when one of these
actions takes place:
– The messaging user opts out of receiving messages in the channel.
– The agent clicks End Chat and closes the messaging session tab.
– (Standard channels only) A flow or process sends an automatic notification, creating an
outbound messaging session with an unchanging status of Ended.
Messaging User A record representing a user who communicates with your company over a particular channel, such
as Facebook Messenger. When a customer sends a message to your company, a messaging user
record is created for the customer to track their activity in that messaging channel. Depending on
17
Provide Conversation Support with Messaging in Service Messaging Glossary
Cloud
Term Definition
which data is available, the record can include the customer’s name, phone number or Facebook
name, and consent status. You can link a messaging user record to a contact or other type of record
so all the customer’s messaging sessions are in one place. Messaging user records are required for
your recipients, even if you’re sending messages to contacts, employees, or person accounts.
Parameter Mapping A way to map standard and custom parameters to flows or agent tasks. Manage your parameter
mappings in your messaging channel’s settings in Setup.
Persistent Conversation history remains in the conversation window after the conversation is over. In Messaging
for In-App and Web, conversation history is also shared across devices if User Verification is active,
and all underlying messaging channels associated with your devices share a Configuration Name.
In other Messaging channels, conversation history persists across devices without the need for User
Verification.
Pre-Chat Fields A way to collect customer details before an agent starts a conversation in a Messaging for In-App
and Web channel. Ask customers to fill out visible pre-chat fields, or use our API to fill in hidden
pre-chat fields. Send this data to your agents using Omni Flow.
Proactive Messaging Messaging sessions initiated by an agent or automation in Salesforce, for example, an agent messages
a customer in your WhatsApp channel, or a flow or process sends an automatic notification or
broadcast. Agents can proactively message customers in all channels except Messaging for Web,
though this functionality is beta in standard WhatsApp and standard Facebook Messenger channels.
You can also set up automated message notifications in standard Messaging channels, enhanced
WhatsApp channels, enhanced Apple Messages for Business channels, and Messaging for In-App
and Web.
Routing The logic that determines how customer inquiries in a Messaging channel are routed. The Salesforce
routing tool is Omni-Channel, and you can configure it to route customer messages to queues, bots,
or agents. Queue-based routing is ideal for simple routing scenarios. Omni-Channel flow routing
lets you use Flow Builder to define routing rules and dynamically route messages to the most qualified
available agent or bot. Omni-Channel flows unify the routing setup for all supported channels,
including voice calls, chats, messaging, cases, leads, and custom objects.
SEE ALSO:
What’s Service Cloud Messaging?
Lifecycle of a Messaging Session in Service Cloud
Set Up Messaging for In-App and Web
18
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
• The platform type of the associated Messaging channel (standard or enhanced) This Messaging
• Who initiated the session (the customer or the business) article for In-App,
applies to: Messaging
• The type of channel (SMS, Messaging for In-App and Web, and so on)
for Web,
standard
Enhanced Messaging Sessions (Customer-Initiated) and
enhanced
Review possible status transitions for messaging sessions that customers initiate in enhanced WhatsApp,
Messaging channels and Messaging for In-App and Web. standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
19
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
In Messaging for In-App and Web channels, you can set a time limit for customer inactivity after which a session’s status automatically
updates to Inactive. In other channels, agents must mark the session inactive.
The automatic status update from Inactive to Ended may take up to 30 hours.
In a status-based capacity model, when an agent goes offline, the agent’s active messaging sessions change to Inactive rather than
Waiting.
20
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
While this diagram shows possible status transitions in enhanced messaging sessions initiated by agents, automated message notifications
work a bit differently. When a flow sends an automated message like a delivery notification, the message is captured in a single messaging
session with an unchanging status of Ended.
The automatic status update from Inactive to Ended may take up to 30 hours.
21
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
While this diagram shows possible status transitions in standard messaging sessions initiated by agents, automated message notifications
work a bit differently. When a process or flow sends an automated message like a delivery notification, the message is captured in a
single messaging session with an unchanging status of Ended.
22
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
messages about new products, but hasn’t sent a unique inquiry that requires the attention of a bot or agent. The Consent status
value helps you design routing flows that exclude consent-related messaging sessions from routing.
Inactive
(Enhanced channels and Messaging for In-App and Web only) A previously active messaging user received a message, but stopped
responding before their issue was resolved. Agents can mark a session inactive by selecting Mark Inactive next to the End Chat
option. If a tab-based capacity model is used, agents can also close the session tab and select No Customer Response. And in
Messaging for In-App and Web channels, you can automatically mark sessions inactive if the customer doesn’t respond within a
specified time period.
Marking a session inactive frees up the agent’s capacity, and also serves as a way to put the messaging user on hold. With tab-based
capacity, if the messaging user sends a message after a session is marked inactive, the session status updates to Waiting and the
session is rerouted to the next available agent. With status-based capacity, the same agent continues helping the customer. Inactive
sessions switch to the Ended status after approximately 24 hours.
Error
(Enhanced channels and Messaging for In-App and Web only) Salesforce failed to create or update a messaging session or a messaging
user record. Errors can be caused by misconfigured triggers or field requirements on the Messaging Session or Messaging User
objects. Salesforce tracks these failed messaging sessions and their error reasons in the Error Reason field on the Messaging Session
object.
If the same issue caused the messaging user’s previous messaging session to end in an error, Salesforce updates the previous session’s
Last Modified Date field instead of logging a new failed session.
Ended
The messaging user is no longer communicating with an agent. Possible reasons for this status include:
• The messaging user opted out of receiving messages in the channel.
• The agent closed the messaging session tab and ended the session.
• A flow or process created an outbound messaging session.
• The session was inactive for more than 30 hours.
• An agent initiated the messaging session, and the customer didn’t respond within 24 hours (standard channels) or 48 to 54
hours (enhanced channels).
It’s up to you to define when a session ends. For example, let your support team know when it’s appropriate to inactivate a session rather
than ending it. An agent can begin a new messaging session with a messaging user only after the user’s previous session has ended
with a status of Ended or Error.
Messaging sessions with a status of Ended or Error can be deleted. Sessions can’t be mass-deleted, but you can delete individual sessions
on the session record page.
IN THIS SECTION:
Ending or Inactivating Messaging Sessions Automatically
In certain circumstances, a messaging session’s status can automatically change to Inactive or Ended. Learn when and how these
automatic updates occur.
SEE ALSO:
What’s Service Cloud Messaging?
End a Messaging Session
Customize the Messaging Opt-In and Opt-Out Experience
Set Up Routing for Messaging Channels in Service Cloud
23
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
This time begins counting down after the agent’s first response to the customer’s last message. Here’s an example where the timeout
limit is 5 minutes:
Customer: “I think so, let me check.”
24
Provide Conversation Support with Messaging in Service Lifecycle of a Messaging Session in Service Cloud
Cloud
Agent: “Hello, were you able to find the ID?” (Timer starts)
Agent: “Hello? Is it me you’re looking for?”
If the customer doesn’t respond, the session status updates to Inactive 5 minutes after they sent “Hello, were you able to find the ID?”
If the agent needs to send another message after the session is inactive, they can start a new session if it's supported in the channel. If
the customer sends a message after a session is inactive, the messaging session status switches to Waiting and the session is routed to
your support team.
Note: In all types of messaging channels, a session is ended automatically if the customer sends an opt-out keyword.
25
Provide Conversation Support with Messaging in Service Get Started with Messaging in Service Cloud
Cloud
This Messaging
article for In-App or
doesn’t Messaging
apply to: for Web
channels
26
Provide Conversation Support with Messaging in Service Turn On Messaging in Service Cloud
Cloud
This Messaging
article for In-App or
doesn’t Messaging
apply to: for Web
channels
USER PERMISSIONS
27
Provide Conversation Support with Messaging in Service Give Users Access to Messaging in Service Cloud
Cloud
This Standard
article and
applies to: enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Messaging
article for In-App or
doesn’t Messaging
apply to: for Web
channels
28
Provide Conversation Support with Messaging in Service Give Users Access to Messaging in Service Cloud
Cloud
Assign permissions to users who will message with customers or supervise agents in Messaging
USER PERMISSIONS
channels.
Users who will help customers in Messaging for In-App and Web require different permissions. For To assign permission set
details, see the Messaging for In-App and Web documentation on user access. licenses:
• Manage Users
To create permission sets:
Step 1: Assign the Messaging Permission Set License • Manage Profiles and
Permission Sets
All users who will engage with customers in messaging sessions or supervise messaging agents
need the Messaging permission set license. To edit users:
• Manage Internal Users
1. From Setup, enter Users in the Quick Find box, and select Users.
To assign permission sets:
2. Select the user you want to assign the permission set license to.
• Assign Permission Sets
3. In the Permission Set License Assignments related list, click Edit Assignments.
4. Enable the Messaging User permission set license.
5. Click Save.
6. Repeat this process for all users that require Messaging.
29
Provide Conversation Support with Messaging in Service Give Users Access to Messaging in Service Cloud
Cloud
e. Click Save.
f. In the details page, select Service Presence Statuses Access and click Edit.
g. Move your Messaging presence status to the Enabled Service Presence Statuses list, and click Save.
h. Go back to the permission set overview page, and select Object Settings > Messaging Sessions.
i. Click Edit, give view access to all, and the appropriate access for your users or roles.
j. Click Save.
k. Go back to the Object Settings page and select Messaging Users.
l. Click Edit, give view access to all, and the appropriate access for your users or roles.
m. Click Save.
n. Go back to the Object Settings page and select App Permissions.
o. Click Edit, then select these user permissions: End Messaging Session (for standard channels), Messaging Agent, Agent Initiated
Outbound Messaging (for standard channels), Initiate Messaging Sessions (for enhanced channels), Access Conversation Entries,
and Create Public Links.
p. To let agents transfer messaging sessions to flows or send messaging components using flows, select the Run Flows permission.
q. To let agents use Messaging on the Salesforce mobile app, select the Message on Mobile permission.
r. Click Save.
SEE ALSO:
Set Up Routing for Messaging Channels in Service Cloud
30
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
When you configure routing for your enhanced Messaging channels, you can choose between This Standard
using status-based and tab-based capacity. Here’s how they’re different. article and
applies to: enhanced
Tab-Based Capacity Status-Based Capacity WhatsApp,
standard
What determines an agent’s The number of their open tabs The status of their accepted and
capacity and sessions work enhanced
Facebook
Maximum capacity per agent 100 tabs at a time 100 work items at a time
Messenger,
What happens when an agent The agent is prompted to either The messaging session’s status standard
closes a messaging session tab end the session or mark it and ownership are unaffected, and
inactive. and the agent isn’t prompted enhanced
to end or inactivate the session. SMS,
In standard (non-console) apps, enhanced
this behavior makes it easier for Apple
Messages
agents to navigate between
for Business,
messaging session records
enhanced
without session ownership
LINE, Bring
being affected.
Your Own
What happens when a The session is routed to the The same agent receives the Channel,
customer re-engages in an support team as if it were a customer’s new message and and Bring
inactive messaging session new session. More complex continues helping the Your Own
routing logic is required to customer. Channel for
CCaaS
ensure that it’s reassigned to
the same agent. This Messaging
article for In-App or
What happens when an agent The agent’s active messaging The agent’s active messaging
doesn’t Messaging
goes offline sessions update to Waiting and sessions remain active.
apply to: for Web
are routed to your support channels
team.
Capacity settings are configured on the Omni-Channel Settings and Service Channels pages in Setup. To learn more, see Understanding
Capacity Models. Status-based capacity is available in enhanced Messaging channels and Messaging for In-App and Web.
IN THIS SECTION:
Route Service Cloud Messaging Sessions with Omni-Channel Flows
Dynamically route customer messages sent over a Messaging channel to the right agent, queue, or bot. Build a template-based flow
in Flow Builder and assign it to one or more Messaging channels.
31
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
SEE ALSO:
Add the Omni-Channel Component to a Lightning App
Omni-Channel Utility for Lightning Console Apps
32
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
33
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
Example: Maria, the Salesforce admin at Ursa Major Solar, wants all VIP customers routed directly to Jessica, her most experienced
agent. All other customers will be routed to a queue of Ursa Major’s agents. Here’s what she does.
• Simplify the template so it has just two routing decision outcomes: VIP Customer and Other Customers. The VIP Customer
outcome checks the account name of the messaging user’s contact record. If it’s one of Ursa Major’s three biggest accounts,
the customer is considered a VIP.
• Add a Check Availability for Routing element at the beginning of the first routing path. Choose the option to route to an agent
and select Jessica. Then, add a variable to show the number of agents online, and add a decision element with Yes and No
outcomes. If the customer is a VIP and Jessica is available, their session is routed to her. If Jessica is offline, the customer is
routed to the queue.
• Edit the remaining flow elements and replace any placeholders with real values. For example, update all service channel
placeholders to list your Messaging service channel.
34
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
Tip: For help incorporating a bot into your flow, see Route Conversations to and from Your Enhanced Bot.
35
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
SEE ALSO:
Route Conversations to and from Your Enhanced Bot
Advanced Routing with Omni-Channel Flows
How Does an Omni-Channel Flow Work?
Route Apple Messages Inquiries by Intent and Group
36
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
This Standard
article and
applies to: enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Messaging
article for In-App or
doesn’t Messaging
apply to: for Web
channels
37
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
Route customer messages to the appropriate queue using an Omni-Channel routing configuration.
USER PERMISSIONS
Queue-based routing, an alternative to Omni-Channel flows, is ideal for simple routing scenarios.
For help configuring routing for Messaging for In-App and Web, see the Messaging for In-App and To create or change queues:
Web setup documentation. • Customize Application
AND
Set Up Queue-Based Routing for a New Messaging Channel Manage Public List
Views
If your Messaging channel doesn’t exist yet, create the channel and set up queue-based routing at
To set up and edit
the same time. These steps apply only for standard and enhanced Facebook Messenger channels Messaging channels:
and enhanced WhatsApp channels. • Configure Messaging
1. From Setup, in the Quick Find box, enter Messaging, and then select Messaging Settings. To view channels:
2. Under Channels, click New Channel. • View Setup and
Configuration
3. Follow the prompts to create your channel.
4. Select Create a new queue. Follow the prompts to:
a. Create a queue.
b. Create a routing configuration.
c. Adjust the agent messaging workload.
d. Exit the setup flow.
5. On the Messaging Settings page, find your new channel in the list.
6. In the channel’s action menu, select Edit to view your channel’s routing settings and update them if needed.
6. Create presence statuses for Messaging. If you’re not sure which statuses to create, start with these three: Available - Messaging, On
Break, Busy.
7. Create an Omni-Channel queue to receive incoming messages. Add Messaging Session as a supported object.
8. Create a routing configuration for your queue.
9. Associate your routing configuration and agents with the queue.
38
Provide Conversation Support with Messaging in Service Set Up Routing for Messaging Channels in Service Cloud
Cloud
10. On the Messaging Settings page in Setup, find your channel in the list.
11. In the channel’s action menu, select Edit.
12. Edit the properties in the Routing section.
a. (Standard channels only) Leave Enable Advanced Routing deselected, and for Routing Type, select Omni-Channel.
b. (Enhanced channels only) For Routing Type, select Omni-Queue.
c. For Queue, select the queue that receives and prioritizes this channel’s messaging sessions.
SEE ALSO:
Route to a Queue
39
Provide Conversation Support with Messaging in Service Add Messaging to the Service Console
Cloud
40
Provide Conversation Support with Messaging in Service Add Messaging to the Service Console
Cloud
Example: In this sample Messaging Session page layout for enhanced channels, agents can see the user details right above the
conversation. From the right-hand pane, they can take a recommended action, view their after conversation work countdown, or
run a flow to send a messaging component.
41
Provide Conversation Support with Messaging in Service Add Messaging to the Service Console
Cloud
42
Provide Conversation Support with Messaging in Service Add Flexibility and Power with Messaging for In-App and
Cloud Web
Note: Auto-response messaging components, which are available only for Messaging for In-App and Web, aren’t sent from the
Service Console. Instead, they’re selected in the channel’s settings. The components are sent to the customer automatically when
a messaging session starts or ends, or when an agent joins.
SEE ALSO:
Set Up a Flow to Send Time Selectors in Messaging Sessions
Set Up a Flow to Send Questions with Options in Messaging Sessions
Send Messaging Components in Messaging Sessions
Add Flexibility and Power with Messaging for In-App and Web
Start a conversation with customers on your mobile app or website. Messaging for In-App and Web delivers enhanced pre-chat support
to pinpoint customer needs and access records before the agent connects in the Service Console. Custom branding and mobile push
notifications provide a modern experience.
43
Provide Conversation Support with Messaging in Service Add Flexibility and Power with Messaging for In-App and
Cloud Web
Android SDK Release Notes Compare Messaging for In-App and Web
Capabilities to Chat Capabilities
iOS Examples & Reference
MIAW Demo Video
Android Examples & Reference
IN THIS SECTION:
What’s Messaging for In-App and Web?
Understand how your customer’s information flows from a pre-chat form, to record generation and connection to the right agent.
Set Up Messaging for In-App and Web
Understand the four stages of setting up Messaging for In-App and Web. We recommend following them in order for a smooth
experience.
Cookbook for Messaging for In-App and Web
Check out our recipes for optimizing Messaging for In-App and Web to see if one fits your use case.
Flow Recipes for Messaging for In-App and Web
Design Omni-Channel Flows to accomplish your Messaging for In-App and Web use case.
44
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
45
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
IN THIS SECTION:
Considerations when Replacing Chat with Messaging for In-App and Web
Beginning in Summer ’23, Salesforce Chat is in maintenance-only mode, and we are no longer building new features. Consider
switching to Messaging for In-App and Web, a modernized alternative that offers an asynchronous, persistent conversation experience
with your customers. Learn more about product improvements, feature comparisons, and setup considerations to prepare for your
move to Messaging for In-App and Web.
Plan for Messaging for In-App and Web
Before configuring a messaging experience, consider your organization’s current support goals. This step helps you select the right
Omni-Channel routing, pre-chat form fields, and custom parameters to personalize the experience.
Create a Synchronous Messaging Experience in Messaging for In-App and Web
Messaging for In-App and Web provides an asynchronous messaging experience, which allows the end user to start, stop, and
resume the same conversation when it’s convenient. However, Messaging for In-App and Web also supports synchronous conversations
with a clear beginning and end.
Considerations and Limitations for Messaging for In-App and Web
Before starting your setup process, review the considerations and limitations for Messaging for In-App and Messaging for Web.
Rate Limits for Messaging for In-App and Web
Before starting your setup process, review the rate limits for Messaging for In-App and Web.
Considerations when Replacing Chat with Messaging for In-App and Web
Beginning in Summer ’23, Salesforce Chat is in maintenance-only mode, and we are no longer
EDITIONS
building new features. Consider switching to Messaging for In-App and Web, a modernized
alternative that offers an asynchronous, persistent conversation experience with your customers. Messaging for In-App and
Learn more about product improvements, feature comparisons, and setup considerations to prepare Web is available in Lightning
for your move to Messaging for In-App and Web. Experience. View required
editions
The Conversation Is Now Asynchronous and Persistent Chat is available in
Chat was session-based, which meant that conversations ended when your customer closed the Salesforce Classic and
conversation window or lost connection with an agent. Messaging conversation history remains Lightning Experiences. View
required editions.
in the window beyond a single interaction. With Messaging for In-App and Web, agents and
customers can start and stop the conversation, then pick it back up at a later time. Customers can This article applies to:
also message across tabs and devices without disconnecting the conversation. Messaging for In-App and
Messaging for Web
channels and Chat
Messaging for In-App and Web Is Part of the New Conversation Platform channels.
Messaging for In-App and Web is one of many channels built on our new conversation platform.
This article doesn’t apply
The conversation platform also houses Service Cloud Voice, Enhanced Messaging channels such
to: Standard and
as WhatsApp, and Partner Messaging Channels. This shared platform has several benefits.
enhanced WhatsApp,
• When we roll out a new feature, it’s often shared across all channels on the conversation platform. standard and enhanced
Agents get a consistent experience, regardless of channel. Facebook Messenger,
• We built these channels to scale beyond the customer support use case. For example, we built standard and enhanced
SMS, enhanced Apple
agent-initiated outbound messaging with lead generation for sales teams in mind.
Messages for Business,
Bring Your Own Channel,
and Bring Your Own
Channel for CCaaS.
46
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
47
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
– Similar to web chat, copy the code snippet generated for your deployment and paste it into your website.
• To add Messaging for Web to your Experience Cloud site or Commerce Cloud site:
– Drag the Embedded Messaging component into the footer of the site builder template, and configure its properties.
IN THIS SECTION:
Compare Messaging for In-App and Web Capabilities to Chat Capabilities
Review the benefits of Messaging for In-App and Web, and compare the modernized channel to our legacy chat product.
Migrate from Chat to Messaging for In-App and Web
Ready to make the switch from legacy chat? Messaging for In-App and Web is built on a more advanced platform than chat, so
there’s no automatic migration from one channel to the other. Create your workflow for Messaging, build the channel in a sandbox,
test it, then deploy it live. After Messaging is live, deprecate your legacy chat channel.
Alternative Solutions for Chat Features That Aren’t Available in Messaging for In-App and Web
Planning to replace Chat with Messaging for In-App and Web, but don’t see a Chat feature available in Messaging? Review this list
of alternative solutions.
48
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
Chat is available in
Persistent No Yes Yes
Salesforce Classic and
Conversation History
Lightning Experiences. View
(with User Verification)
required editions.
Asynchronous No Yes Yes
This article applies to:
Conversations (with Messaging for In-App and
User Verification) Messaging for Web
Cross-device No Yes Yes channels and Chat
channels.
conversations (with
User Verification) This article doesn’t apply
to: Standard and
Session Continuity Yes N/A Yes
enhanced WhatsApp,
Across Tabs
standard and enhanced
Session Continuity Yes N/A Yes Facebook Messenger,
Across Subdomains standard and enhanced
SMS, enhanced Apple
Settings Messages for Business,
Bring Your Own Channel,
Route to Agent, Yes Yes Yes and Bring Your Own
Queue, Bot, or Skills Channel for CCaaS.
Works in the Salesforce No Yes Yes
Mobile App
49
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
IP Blocking Yes No No
50
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
Customer Experience
Supported Sites
51
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
52
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
When you’re ready to design your workflow, review Plan for Messaging for In-App and Web.
53
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
Alternative Solutions for Chat Features That Aren’t Available in Messaging for In-App and Web
Planning to replace Chat with Messaging for In-App and Web, but don’t see a Chat feature available
EDITIONS
in Messaging? Review this list of alternative solutions.
Note: If your business has a use case for a feature that’s not yet available in Messaging for Messaging for In-App and
In-App and Web, we want to know. Work with your Account team to submit a Voice of the Web is available in Lightning
Experience. View required
Customer request or submit the use case on Ideas Exchange.
editions
Chat Feature Messaging for In-App and Web Alternative Solution Chat is available in
Salesforce Classic and
Queue Position Estimated Wait Time
Lightning Experiences. View
IP Blocking Use a custom object and Omni-flow to check. required editions.
LWC Messaging for In-App and Web supports Lightning Web This article applies to:
Components in your pre-chat form. To customize anything Messaging for In-App and
Messaging for Web
else, use a messaging component and send it via an agent or
channels and Chat
a bot.
channels.
54
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
55
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• Object lookup and creation added to your Omni Flow provides agents with customer records as leads, cases, or contacts, so they
have everything they need at their fingertips. Learn More on page 108
• Branding, yes! You can customize the look and feel of your messaging experience for mobile and web channels. Pick colors and
fonts and customize your window.
• Custom Labels can match the voice and tone of your website. Update your label text and add some zing to your messaging window
for mobile or web.
• Messaging Components let you send structured content to customers for a more interactive and efficient messaging experience.
Learn More
• Push notifications for your mobile channel are an effective way to stay in touch with customers. Configure this feature as part of your
deployment setup. Learn More
• Mobile SDK information is available for developers in our Messaging for In-App Developer Guide. Learn More
Asynchronous • A full conversation history is available • It’s not appropriate for emergency or
to the agent for context. real-time use cases.
56
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• Each agent is able to manage a higher • To make sure that message history
number of concurrent sessions. doesn’t get exposed to unauthorized
• It’s appropriate for use cases that don’t parties, additional setup work is
require immediate action or resolution. required.
57
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
If you choose not to use Estimated Wait Time, you can use a Conversation Acknowledgment auto-response component. You customize
a message that’s sent to the end user as soon as the conversation starts. You can use this component to welcome them, set expectations
for a general wait time, or let them know that they can start typing a message.
Learn more about Estimated Wait Time and Auto-Response Components.
58
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
59
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• User verification is supported on an external website and on some Aura sites (Build Your Own Aura, Help Center, and Customer
Service templates). It’s not supported on other Experience Cloud or Commerce Cloud sites.
• Messaging for the Web supports subdomain session continuity, so end users can continue a messaging conversation while navigating
from your domain (www.example.com) to any subdomains that you have (help.example.com). To confirm which domain and
subdomains work with your deployment, go to Setup > User Interface > Sites and Domains > Sites, then select the unique site
associated with your deployment from the Site Label column. Locate the domain and subdomain under Trusted Domains for Inline
Frames.
Note: If your domain was created before the Summer ‘23 release, republish your deployment to make the domain and
subdomain appear here.
• If a verified user is participating in more than one conversation, the Messaging for Web client opens to the conversation that was
most recently started.
Setup
• To make sure that Messaging for In-App and Web works optimally, republish your deployment after testing newly added features.
For best performance, republish your deployment only outside of business hours or when you expect the fewest active messaging
conversations.
• Messaging for In-App and Web isn’t supported on .mil sites.
• Messaging for In-App and Web complies with these certifications: ISO 27001, ISO 27017, ISO 27018, SOC 1, SOC 2, SOC 3, HIPAA,
NEN 7510, C5 (ISAE 3000), ASP/Saas, and ASIP Santé HDS.
• Salesforce is committed to our customers’ success, including supporting them on their GDPR compliance journeys.
Seehttps://www.salesforce.com/privacy/regions/.
• Subdomain session continuity can be blocked in these scenarios.
– If you block third-party cookies in the Chrome or Edge desktop experiences.
– If you prevent cross-site tracking in the Safari desktop and iOS experiences.
• Some malware software tools that block malicious downloads also prevent the HTML5 feature Server Sent Events (SSE) from working
properly. As a result, messages aren’t shown to the customer in the conversation window. To resolve this issue, work with your IT
team to allowlist the SSE connections.
• To have a working pre-chat form, a user must have the Routing Type set as OmniFlow and a flow that uses the pre-chat dataset in
the related messaging channel.
• After you select a deployment type, web or mobile, you can’t change the type later. Instead, create another deployment. You can’t
delete sites that are created with a deployment.
60
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• If you create or edit a web or mobile deployment, click Publish on the Embedded Service Deployment Settings page. The changes
can take up to 10 minutes to finish due to caching.
• After you add a messaging channel to your mobile or web deployment, you can’t change to a different channel later.
• We don’t support adding custom CSS to Messaging for In-App and Web deployments. If you have custom CSS in your embedded
component, it’s your responsibility to test your chat window each release to make sure that it functions properly.
• We don’t support using change sets for deploying Messaging for In-App and Web.
• Alternate Header Color is configurable in Branding setup, but it’s not supported in a messaging window.
• All field values that are set in a pre-chat form are passed to an Omni-Channel flow as a string-type variable, including checkboxes
and numbers.
• If you create a custom pre-chat field, go to the deployment settings to add a Custom Label, because no default option is available.
To find the new field, in the Label Group, select Pre-Chat.
• If you enable Terms and Conditions but you disable the pre-chat form, Terms and Conditions are shown at the beginning of every
conversation, not every session. To display Terms and Conditions more frequently, such as mid-conversation, enable the pre-chat
form. If you don’t want customers to see the pre-chat form, consider adding a single hidden field.
• In a Messaging for Web deployment, a supported language is required for the web client to load. Salesforce offers three levels of
language support. To use an end-user or platform-only language, enable the end-user or platform-only language and then add a
valid code for your language setting in the code snippet.
• Each custom label supports up to 1000 characters.
61
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• You can add a Messaging for Web deployment to an external website, an Experience Cloud site, or a Commerce Cloud site. In
Experience Cloud, we support Build Your Own (Aura), Customer Account Portal, Partner Central, Help Center, Customer Service, Build
Your Own (LWR), and Microsite (LWR) templates. In Commerce Cloud, we support B2B Commerce (LWR), B2C Commerce (LWR),
and B2B Commerce (Aura) templates.
• To effectively use an iframe with your website and reduce JavaScript library conflicts, Messaging for Web creates a unique site that
appears in your All Sites list in Setup. Don’t reuse this generated site URL, which has reduced security, for other purposes. Don’t
modify this URL through Experience Builder or Workspace links.
• If you add Messaging for In-App and Web to an app built with Mobile Publisher, you can’t allow customers to download an individual
file that’s sent from an agent or the entire transcript of their messaging conversation.
• It’s not possible to maintain an Embedded Service Chat, Channel Menu, and Messaging for Web deployment on the same third party
website or Experience site. Remove Embedded Service Chat and Channel Menu before adding Messaging for Web. Alternatively,
add Messaging for Web to your Channel Menu.
• Business hours rely on the time set by your device, such as a computer or smartphone. Typically, your device automatically sets the
time to align with your time zone. If you edit your device’s clock to display an artificial time, your business hours sometimes reflect
the new artificial time.
Note:
– Modifications to a Business Hours record linked to a deployment may take up to two hours to take effect because of the
caching properties associated with the Business Hours record.
– Replacing a Business Hours record with another in a deployment and then publishing may result in a delay of up to 10
minutes, due to the caching expiry of the deployment itself.
• The Test Messaging feature in the Embedded Service Deployment Settings page doesn't appear in a sandbox environment that’s a
copy of your production environment. To enable it, add your Embedded Service Deployment to your VisualForce page.
Agent Experience
• To end a conversation, agents working in Service Console can click End Chat before closing the Messaging Session tab (MS-xxxxxxx).
Closing the tab without clicking End Chat prevents future inbound messages from appearing in the Omni queue.
• Quick text is available to Messaging for In-App and Web agents. Messaging for In-App and Web doesn’t support Quick text folders.
• Agents can send and receive these file-attachment types: PDF, .png, .jpeg, .jpg, .bmp, .gif, and .tiff.
Customer Experience
• Messaging for In-App and Web doesn’t set cookies.
• A user sees delivery and read receipts when chatting with an agent. But if they reload a browser page, the sent, delivery, and read
receipts are lost.
• If the estimated wait time is less than 1 minute, we round it up to 1 minute.
• Customers can resend a failed message after an outage within the browser tab where the message was originally sent. If a customer
has multiple tabs open, each showing the same messaging conversation, the resend option appears only in the tab where the
message failed.
• When a user opens and chats across multiple tabs or windows, the browser is limited by a maximum number of open connections.
If the maximum is reached, some tabs can’t receive new conversation entries. Refer to a specific browser’s SSE connection limits.
• These browser settings block third-party web storage, preventing subdomain session continuity: Chrome’s incognito mode, Microsoft
Edge’s balanced tracking prevention, and Firefox’s default setting to block cross-site tracking cookies.
• AppleWebKit, which is currently on all iOS browsers, partitions web storage by domain. This partitioning prevents subdomain session
continuity on all iOS browsers.
62
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
• Previews for attached image files aren’t visible to your customers when they select the eye icon to view during a conversation.
• Customers can send and receive these file attachment types: PDF, .png, .jpeg, .jpg, .bmp, .gif, and .tiff.
• Messaging for In-App and Web customers can send and receive attachments up to 5 MB.
• Messaging for In-App and Web customers can send up to five file attachments, each up to 5 MB, in one conversation update.
• Messaging for In-App and Web customers can preview a PDF by clicking its thumbnail in the messaging window. In Firefox, Messaging
for Web customers must first “unblock Third-party cookies” from their Firefox browser settings.
• If your Messaging for In-App and Web deployment is hosted on an app built with Mobile Publisher, end users can’t download a file
that was sent by an agent.
SEE ALSO:
Enhanced Bots Considerations
Messaging for In-App iOS Known Issues
Messaging for In-App Android Known Issues
Messaging for In-App Developer Guide
Messaging for Web Developer Guide
63
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
64
Provide Conversation Support with Messaging in Service What’s Messaging for In-App and Web?
Cloud
65
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
66
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Understand the four stages of setting up Messaging for In-App and Web. We recommend following
USER PERMISSIONS
them in order for a smooth experience.
To set up this feature:
Important: Before setting up a new channel, see Reimagine Messaging for Mobile Apps
• Customize Application
and Websites and Planning Questions and Checklist to review your choices. Remember to
test the experience in a sandbox before setting up in a production environment. AND
Modify Metadata
Follow the four stages of setup in order, as some steps depend on the completion of previous steps.
Through Metadata API
Functions
1. Prepare a 2. Configure a 3. Set up a pre-chat 4. Add a bot or push
Salesforce org deployment form notifications To modify permission sets
and profiles:
Give agents the right Connect your channel Create an optional Set up an optional bot
• Manage Profiles and
permissions, set up with a new web or pre-chat form with or mobile push Permission Sets
Omni-Channel, create mobile deployment. standard or custom notifications to
an Omni Flow, add a Set branding and fields to gather critical supercharge your
messaging channel, configure more details for agents. messaging channel.
connect to the Service features.
console, and add user
verification.
IN THIS SECTION:
Give Users Access to Messaging for In-App and Web
To let agents message with customers, create and assign a permission set for Messaging for In-App and Web agents.
Prepare a Salesforce Org for Messaging for In-App and Web
Build a strong foundation for your new messaging channel. Create a new Salesforce org, set up Omni-Channel and Omni Flow, and
add your messaging channel. Connect to the Service console and configure your routing so the right agent responds to customers.
Persist Secure Messaging History Across Multiple Devices with User Verification
Securely connect your customers to their messaging history and persist conversations across devices with user verification.
Configure a Messaging for Web Deployment
Connect your messaging channel to a website with a new embedded deployment. Create and customize your deployment, add it
to your site, and set up security.
Configure a Messaging for Web Deployment in an Experience Builder or Commerce Cloud site
Use the Embedded Messaging component to add Messaging for Web to your Experience Builder or Commerce Cloud site.
Configure a Messaging for In-App Deployment
Connect your messaging channel to a mobile app with a new embedded deployment. You create a mobile deployment, and set
up additional features and push notifications for the customer experience.
Configure a Custom Client Deployment for Messaging for In-App and Web
To enjoy granular control of your web or mobile app messaging experience, create a custom client deployment for Messaging for
In-App and Web. While our web or mobile deployments rely on our web client and mobile SDK, a custom client deployment lets
you deliver a highly customized UI with the Messaging for In-App and Web REST API.
Customize Pre-Chat for Messaging for In-App and Web
Ask customers to fill out visible pre-chat fields before starting a messaging session, or auto-fill hidden pre-chat fields when the
conversation begins. Add standard and custom fields to your pre-chat form.
67
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
68
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
69
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
To let agents message with customers, create and assign a permission set for Messaging for In-App
USER PERMISSIONS
and Web agents.
To assign permission set
Note: If the Messaging for In-App and Web User permission set license or the Messaging
licenses:
for In-App and Web Agent app permission isn’t available, assign the Service Cloud user license • Manage Users
to your users instead.
To create permission sets:
1. Assign the Messaging for In-App and Web User permission set license. • Manage Profiles and
a. From Setup, enter Users in the Quick Find box, and select Users. Permission Sets
b. Select the user you want to assign the permission set license to. To edit users:
• Manage Internal Users
c. In the Permission Set License Assignments related list, click Edit Assignments.
To assign permission sets:
d. Enable the Messaging for In-App and Web User permission set license. • Assign Permission Sets
e. Click Save.
f. Repeat this process for all users that require Messaging for In-App and Web.
4. Edit the permission set under Object Settings > Messaging Sessions to:
a. Enable the messaging presence status.
b. Give your users the appropriate access for their role.
IN THIS SECTION:
Give Non-Agents Access to Messaging for In-App and Web Transcripts
To let non-agents view Messaging for In-App and Web transcripts,, give them access to the Messaging Session record and give them
the Access Conversation Entries app permission.
70
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
71
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
72
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
9. Name the New Action. Use recordId variable as the input value. Select Messaging for the Service Channel.
10. Specify Queue, Agent, Bot, or Skills as the Route To value.
a. If you select Queue, use the Queue ID for the queue where you want to direct the work.
b. If you select Agent, add the agent’s name via the Agent ID field.
c. If you select Bot, search for the bot name.
d. If you select Skills, add the Skill Requirement List.
Note: You don’t need to turn the Messaging toggle On before creating a Messaging for In-App or Web deployment. The Messaging
toggle is for Facebook, WhatsApp, and SMS messaging only.
1. From Setup, in the Quick Find box, enter Messaging Settings, and select Messaging Settings.
2. On the Messaging Settings page, select New Channel.
3. Start the add channel process, and select the Messaging for In-App and Web type.
4. Enter your unique Channel Name and save your work.
5. On the next page, under Routing Type, select Omni-Flow. Select the Flow Definition and the Fallback Queue that you created earlier.
Choosing Omni-Flow allows you to work with our Pre-Chat form and Bots enhancements.
6. Add additional customer experience enhancements like showing estimated wait time, enabling user verification, or adding messaging
components to automate conversations.
7. Return to the Messaging Settings related list, and click the name of your channel.
8. Click Activate.
9. If it’s your first time activating a channel after the Summer ‘23 release, review the terms and conditions. Then, check the box to
acknowledge reading it, and click Accept.
10. Your channel is active when the Activate button says Active.
73
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Persist Secure Messaging History Across Multiple Devices with User Verification
Securely connect your customers to their messaging history and persist conversations across devices
EDITIONS
with user verification.
Add user verification to: Available in: Lightning
Experience. View required
• Maximize data privacy with secure tokens that verify your customer’s identity.
editions.
• Allow conversations to persist across multiple devices. For example, if a user signs in to your
mobile app and starts a messaging session, and then later logs in to your website, they can This Messaging
continue the messaging conversation there, seeing the same conversation history in both article for In-App
places. applies to: and
Messaging
• Enable asynchronous conversations. For example, your customer can start a conversation, walk for Web
away from their device for hours, and return to the same conversation at any time. channels
• Extend your customer’s access to their Messaging for Web conversation history. Without User
This Standard
Verification, Messaging for Web customers can view their conversation history in the messaging
article and
window for six hours. With User Verification, your customer can always see their conversation
doesn’t enhanced
history after logging in. Messaging for In-App continues to show messaging history for an
apply to: WhatsApp,
unlimited time frame.
standard
Important: User verification is available for a mobile app, an external website, or some Aura and
sites (Build Your Own Aura, Help Center, and Customer Service templates). User verification enhanced
doesn’t work with Experience Builder or Commerce Cloud sites. When you’re using the Facebook
Messenger,
Messaging for In-App SDK for mobile apps, we don’t support verified users alongside unverified
standard
users. Your mobile app implementation must be designed for either verified users or unverified
and
users.
enhanced
SMS,
IN THIS SECTION: enhanced
Apple
Understanding User Verification
Messages
When setting up your Messaging implementation, it’s often valuable for your agents to know for Business,
that they’re speaking to a customer, or prospective customer, who has been verified by your enhanced
authentication system. You can continue a conversation with a verified user, even when they’re LINE, Bring
on a different device, or when they reach out at a later time. The User Verification feature for Your Own
Messaging for In-App and Web uses a token system to ensure that the agent is speaking to Channel,
someone who has been verified. and Bring
Set Up User Verification Your Own
Channel for
Let customers have secure conversations with User Verification. Add keys or an Endpoint URL
CCaaS
to create a keyset, and then turn on User Verification in Setup.
Troubleshooting User Verification
USER PERMISSIONS
Use these troubleshooting tips to diagnose issues with User Verification.
User Verification Terms To set up this feature:
To set up User Verification, you must be familiar with tokens, keys, and keysets. These terms • Customize Application
describe the fundamental concepts associated with this feature. If you want more context, this
article breaks down the terms to understand.
74
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Note: This documentation assumes that you already set up Messaging for In-App or This Standard
Messaging for Web. To learn more, see Add Flexibility and Power with Messaging for In-App article and
doesn’t enhanced
and Web.
apply to: WhatsApp,
standard
Set Up Keys in Salesforce and
enhanced
When setting up User Verification in Salesforce Setup on page 78, you can upload JSON Web Keys
Facebook
(JWK), or you can provide an endpoint that delivers this same information to Salesforce. This decision
Messenger,
determines how Salesforce attempts to access your keyset when verifying your token. The user
standard
experience is the same for either flow.
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
Other details about the key: We require a 2048-bit minimum RSA key length. Also, the `n` (modulus) and `e` (exponent) properties of
the JWK should be Base64 URL encoded.
How Do I Do This?
If you already have an endpoint or a keyset using your existing certificate, follow the instructions in Set Up User Verification on page 78.
If you want to test this feature by creating a certificate, a key, and a token, see our GitHub repository. This repo walks you through creating
a test certificate, creating a JWK, and creating a JWT. After you have a JWK and JWT, follow the instructions in Set Up User Verification
on page 78.
75
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
After Salesforce verifies the token with the keyset, the verified user can have a conversation with an agent and all message history is
associated with that user.
Other details about the token: The “sub” value in the JWT is stored as part of the Messaging Platform Key field of the Messaging End User
record. For instance, if the “sub” value is user-123, the Messaging Platform Key might be
v2/iamessage/AUTH/{auth_id_info}/uid:user-123.
How Do I Do This?
To learn how to use our API to pass a token, refer to our developer documentation for User Verification (Web, iOS, Android).
If you need help creating a token, use the command-line tool in our GitHub repository.
How Do I Do This?
To learn how to use our API to clear the session, refer to our developer documentation for User Verification (Web, iOS, Android).
76
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Final Thoughts
Handling authorization and verification takes some time to set up. But when you have the mechanism in place, you ensure that your
customers can have a secure, verified conversation with one of your skilled agents.
SEE ALSO:
Add Flexibility and Power with Messaging for In-App and Web
Set Up User Verification
User Verification Terms
Troubleshooting User Verification
GitHub: Key and Token Command-Line Utility
Messaging for Web Developer Guide
Messaging for In-App Developer Guide
77
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Important: User verification is available for a mobile app, an external website, or some Aura Available in: Lightning
sites (Build Your Own Aura, Help Center, and Customer Service templates). User verification Experience. View required
editions.
doesn’t work with Experience Builder or Commerce Cloud sites. When you’re using the
Messaging for In-App SDK for mobile apps, we don’t support verified users alongside unverified This Messaging
users. Your mobile app implementation must be designed for either verified users or unverified article for In-App
users. applies to: and
Messaging
for Web
Add Your Keys or Endpoint URL to Create a Keyset
channels
Create a keyset for Messaging for In-App and Web user verification. Choose whether to create your
This Standard
keyset from an endpoint URL or by manually uploading your keys.
article and
1. From Setup, in the Quick Find box, enter User Verification, and then select Messaging doesn’t enhanced
for In-App and Web User Verification. apply to: WhatsApp,
2. To create a Keyset from an Endpoint URL: standard
and
a. Click New Keyset. enhanced
b. Name your keyset and indicate the JSON web key issuer. Enter an issuer that matches the Facebook
iss parameter value in the JWT payload. Messenger,
standard
c. Under Type, select Endpoint URL, and add your JWKS URL Response to the Endpoint URL and
field. Note the following when creating your URL: enhanced
• The JWKS URL Response must be hosted outside of Salesforce. SMS,
enhanced
• Formatting matters. Here’s an example endpoint format:
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
78
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
79
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
When user verification is turned on, the field is labeled Authorization Token Expiration Time for Verified Users and it controls how
long until Salesforce calls your client API (Web, iOS, Android) so that you can either let the session expire, or provide a valid identity token
to renew the session. The default value for this field is 60 minutes.
SEE ALSO:
Understanding User Verification
Troubleshooting User Verification
Messaging for Web Developer Guide
Messaging for In-App Developer Guide
80
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
{
"kid":"123456",
"alg":"RS256",
"use":"sig",
"kty":"RSA",
"x5c":["<Your public certificate>"],
"y":"y",
"n":"<Base64-encoded modulus>",
"e":"<Base64-encoded public exponent>",
"crv":"crv",
"d":"d",
81
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
"k":"k"
}
In some cases, the key fails to upload because of issues related to the certificate. Answer these certificate-related questions.
• Has the certificate expired? The certificate must be valid for at least 10 days.
• Are you generating the keys using the public certificate? Don’t use the private certificate.
• Is your certificate valid? To test your certificate, refer to the certificate guidelines below.
Certificate Test Guidelines
1. Create an empty text file, and give it the .pem extension.
2. Add -----BEGIN CERTIFICATE----- to the beginning of the file.
3. Copy the certificate from the JWK into a file.
4. Add -----END CERTIFICATE----- to the end of the file.
5. Run this keytool command.
keytool -printcert -file <PublicCertFilename.pem>
Warning: Don’t share production JWTs with other organizations and don’t paste production JWTs into sites or tools.
• Does your JWT use the same issuer as the issuer that you specified in Salesforce Setup?
• Was the JWT created using the same JWKS uploaded and configured with the Messaging Channel?
• Is the JWKS for the private key used to sign the JWT? If the uploaded JWKS isn’t for the private key used to sign the JWT, validation
fails.
• Are the `n` (modulus) and `e` (exponent) properties of the key Base64 URL encoded? You must Base64-encode these values.
• Is the key identifier the same for the public/private certificate pair?
• Is the expiry date valid for the certificate uploaded in Salesforce Setup? Confirm that it was.
SEE ALSO:
Understanding User Verification
Set Up User Verification
82
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
{
"name": "Carrie",
"age": 135,
"isHappy": true,
"favorite_colors": ["blue", "green", "yellow"],
"catch_phrase": "I can’t believe I’m 135 years old!"
}
83
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
A JWT is a compact, self-contained way to pass information between two parties. The data in a JWT is stored as a JSON object. It’s often
digitally signed so that the recipient can verify the integrity of the data. A JWT is also typically encoded to ensure that it’s URL-safe when
being passed.
A JWT consists of three parts: a header, a payload, and a signature. The header contains information about how the token is signed. The
payload contains information about the user and other data. The signature contains the signed result of the header, the payload, and
the secret. The signature doesn’t encrypt the data, the signature ensures that the data hasn’t been tampered with.
To learn more, see RFC 7519.
How do we use it for Messaging for In-App and Web?
A JWT ensures that we display the right conversation history for the right user. After verifying that the token is valid, we use the subject
of the token, the “sub” property, to identify the user and display their conversation history. The “sub” value in the JWT is stored as part
of the Messaging Platform Key field of the Messaging End User record. For instance, if the “sub” value is user-123, the Messaging
Platform Key might be v2/iamessage/AUTH/{auth_id_info}/uid:user-123.
Show me an example!
This JSON is a sample header.
{
"kid": "123456",
"typ": "JWT",
"alg": "RS256"
}
Where hhhhhhh represents the header, ppppppp represents the payload, and sssssss represents the signature.
This data is a sample encoded JWT.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Warning: Don’t share production JWTs with other organizations and don’t paste production JWTs into sites or tools.
JSON Web Key (JWK) and JSON Web Key Set (JWKS)
What is it?
A JWK represents a public cryptographic key that can be used to verify the validity of a token (for user verification, this token is a JSON
Web Token). A set of JWK keys is known as a JSON Web Key Set (JWKS).
To learn more, see RFC 7517.
84
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
SEE ALSO:
Understanding User Verification
Set Up User Verification
85
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for Web
applies to: channels
This Messaging
article for In-App,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
86
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Connect your messaging channel to a website with a new embedded deployment. Create and
USER PERMISSIONS
customize your deployment, add it to your site, and set up security.
In this stage of Messaging for Web setup, you’ll: To set up this feature:
• Customize Application
1. Publish a deployment.
AND
2. Customize a deployment.
Modify Metadata
3. Add the deployment to your website. Through Metadata API
Functions
4. Set security protocols for your deployment.
To modify permission sets
Note: Steps 3 and 4 depend on the type of site you add messaging to. Experience Builder
and profiles:
and Commerce Cloud sites on page 92 have a unique set of instructions that differ from
• Manage Profiles and
external web sites. Choose the correct set of instructions for your use case. Permission Sets
Publish a Deployment
To create a web deployment (don’t reuse an old one), follow these steps.
For mobile, see Configure a Mobile Deployment.
1. Enable digital experiences in your org.
2. From Setup, in the Quick Find box, enter Embedded Service Deployments, and select Embedded Service Deployments.
3. Click the New Deployment button. Choose your conversation type, Messaging for In-App and Web.
4. Select Web as the deployment destination for your channel.
5. Name your Embedded Service deployment, which creates the API Name.
87
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
6. Enter the top level Domain name of the website, such as example.com. This name covers any subdomains of the URL, such as
help.example.com. For an Experience Builder or Commerce Cloud site on page 92 deployment, go to Domains in Setup, and copy
the Experience Cloud Site Domain.
a. To change the domain that’s associated with your embedded service deployment, go to Setup > User Interface > Sites and
Domains > Sites, and select your site from the Site Label column. Your site is formatted as ESW_[deploymentname]_[numbers].
88
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Under Trusted Domains for Inline Frames, find the domain or subdomain that you want to change, and click Edit. Save your
changes.
7. Select the Messaging Channel you created in Messaging Settings and add to the deployment. If you haven’t created a channel,
go to Messaging Settings.
8. Save your work.
9. Create and publish your new deployment, which takes a few minutes. Don’t navigate away from the page until it’s complete.
10. To ensure that Messaging for In-App and Web continues to work optimally, always republish your deployment after testing newly
added features.
Optionally customize the following aspects of your deployment in Embedded Service Deployment Settings:
89
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Branding Set colors and fonts, and upload avatars to Avatar images are sourced from a web page.
match your branding in the customer-facing Generate the URL for each image.
messaging window. We recommend using
an avatar image that’s 40 x 40 pixels. We
don’t support adding custom CSS to your
deployment.
Pre-Chat Select the standard and custom fields that To add visible or hidden fields to your
customers must fill out before messaging pre-chat form, create a custom parameter
with an agent. Add hidden pre-chat fields on the messaging channel for the
to collect information automatically, behind deployment. See Customize Pre-Chat for
the scenes. Messaging for In-App and Web on page 102.
Custom Labels Write your own labels for fields and alt text Before you create custom labels, enable
in your messaging experience. Select the translation workbench, add your supported
language you want each label to appear in. language or languages, and assign your
translators. See Enable Translation
Workbench and Add Translated Languages
and Translators.
Code Snippet Copy the code snippet to add the Embed messaging in an Experience Builder
messaging deployment to your website. or Commerce Cloud site with the Embedded
Skip this action if embedding messaging in Messaging component, not a code snippet.
an Experience Builder or Commerce Cloud See next section to Add Messaging to your
site. See next section to add messaging to external website.
your website.
90
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
3. Paste the code before the closing body tag (</body>) on each web page where you want the messaging button to appear.
Don’t place the code in your header. Make sure you’ve added a valid language code for your language setting in the snippet.
4. Ensure that the header of the chat button page doesn’t contain a referrer policy of no-referrer. Specifically, the page must
not include this line: <meta name="referrer" content="no-referrer" />. Other referrer policies work fine, such
as origin.
5. Optionally, include the Meta Tag Code Snippet in the head element to make your page responsive to all devices. If your page already
has the meta tag, adding this snippet isn’t necessary. The code is the only one that goes in the header section of each web page
where embedded messaging appears.
SEE ALSO:
Configure a Messaging for Web Deployment in an Experience Builder or Commerce Cloud site
91
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for Web
applies to: channels
This Messaging
article for In-App,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
92
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Use the Embedded Messaging component to add Messaging for Web to your Experience Builder
USER PERMISSIONS
or Commerce Cloud site.
Note the following considerations before you begin. To set up this feature:
• Customize Application
• We support the following Experience Builder templates: Build Your Own (Aura), Customer
AND Modify Metadata
Account Portal, Partner Central, Help Center, Customer Service, Build Your Own (LWR), and
Through Metadata API
Microsite (LWR). Functions
• We support the following Commerce Cloud templates: B2B Commerce (LWR), B2C Commerce
(LWR), and B2B Commerce (Aura). To modify permission sets
and profiles:
• If you use the Embedded Service or Channel Menu components on your Experience Builder • Manage Profiles and
site, remove them. Use the Page Structure panel to find and remove the extra components. Permission Sets
• To effectively iFrame your website and reduce JavaScript library conflicts, Messaging for Web To add the Embedded
creates a unique site that appears in your All Sites list in Setup. Don’t reuse this generated site Messaging component to
URL, which has reduced security, for other purposes. Don’t modify this generated site through an Experience Builder site:
Builder or Workspace links. • Create and Setup
Experiences
In this stage of Messaging for Web setup, you’ll:
1. Publish a deployment in your Experience Builder or Commerce Cloud site.
2. Set security protocols for your deployment.
3. Learn where to add additional code when using the Messaging for Web JavaScript API.
Property Details
Embedded Web Deployment Choose your Embedded Service Deployment for Messaging for
Web.
Enhanced Service URL Select the URL from your Messaging for Web setup, which
matches the scrt2 field in your code snippet.
Site Endpoint Select the site endpoint, which matches the site endpoint on
the Embedded Service Deployment Settings page for your
deployment.
Chat Button Visibility Default Visibility means that the chat button is shown by default
or according to any business hours that are configured.
Always Visible overrides your existing visibility settings and
ensures that the chat button is always shown on page load.
Always Hidden overrides your existing visibility settings and
ensures that the chat button is always hidden on page load.
93
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
After publishing your site, the conversation and active messaging button appears on your site.
Click Edit Head Markup and then add your JavaScript code within a <script> tag.
94
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
SEE ALSO:
Messaging for Web Developer Guide
95
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for In-App
applies to: channels
This Messaging
article for Web,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
96
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Connect your messaging channel to a mobile app with a new embedded deployment. You create
USER PERMISSIONS
a mobile deployment, and set up additional features and push notifications for the customer
experience. To set up this feature:
To create a new mobile app deployment, follow these steps. For website deployments, see Configure • Customize Application
a Messaging for Web Deployment. AND
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then Modify Metadata
select Embedded Service Deployments. Through Metadata API
Functions
2. Click the New Deployment button. Choose your conversation type, Messaging for In-App
and Web. To modify permission sets
and profiles:
3. Select Mobile as the deployment destination for your channel. • Manage Profiles and
Permission Sets
4. Name your Embedded Service deployment, which generates the API Name.
5. Select the Messaging Channel that you created in Messaging Settings, and add it to the deployment. If you haven’t created a
channel, go to Messaging Settings.
6. Save your work.
97
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
9. Optionally, prepare a pre-chat form that customers must fill out before messaging with an agent.
a. Click Edit Pre-Chat to select the standard and custom fields for the form. See Customize Pre-Chat for Messaging for In-App and
Web on page 102.
b. Click Set Custom Labels to write your own labels for fields, alt text in your messaging experience, and select the language you
want each label to appear in. To create labels in more than one language, first enable translation workbench, add your supported
languages, and assign your translators. See Enable Translation Workbench and Add Translated Languages and Translators.
10. Optionally, set up push notifications for your mobile apps. See Set Push Notifications for Messaging for In-App on page 403.
11. In the Mobile Configuration section of deployment settings, click Get Code File to download the JSON configuration file,
configFile.json.
98
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
12. After you create or edit a deployment, you must click the Publish button on the deployment settings page.
13. To ensure that Messaging for In-App and Web continues to work optimally, always republish your deployment after testing newly
added features.
Note: If you’re building an Android project, save this JSON file in your assets folder. For iOS, add the JSON file to your project so
that you can access the contents from your code. See the In-App Developer Guide for more details.
SEE ALSO:
Customize Pre-Chat for Messaging for In-App and Web
99
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Configure a Custom Client Deployment for Messaging for In-App and Web
EDITIONS
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
100
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
To enjoy granular control of your web or mobile app messaging experience, create a custom client
USER PERMISSIONS
deployment for Messaging for In-App and Web. While our web or mobile deployments rely on our
web client and mobile SDK, a custom client deployment lets you deliver a highly customized UI To set up this feature:
with the Messaging for In-App and Web REST API. • Customize Application
The Messaging for In-App and Web REST API can be used to create conversations that house AND
messaging sessions, generate access tokens, and send messages and files. You can also integrate Modify Metadata
an external bot solution or partner-supported messaging solutions. Through Metadata API
Functions
In this stage of Messaging for In-App and Web setup, publish a deployment, customize your
deployment, and reference the deployment when invoking public REST API endpoints. To modify permission sets
and profiles:
• Manage Profiles and
Publish a Deployment Permission Sets
Create a custom client deployment that can be referenced in public REST API endpoints.
1. Complete the steps in Prepare a Salesforce Org for Messaging for In-App and Web:
a. Configure Omni-Channel.
b. Create an Omni-Channel flow to route messages.
c. Create a Messaging for In-App and Web channel on the Messaging Settings page.
d. Configure the Service Console to support messaging.
2. From Setup, in the Quick Find box, enter Embedded Service Deployments, and select Embedded Service Deployments.
3. Click New Deployment.
4. Select Messaging for In-App and Web, and then click Next.
5. Click Custom Client, and then click Next.
6. Name your Embedded Service deployment, and customize the API name if desired.
7. Select the Messaging for In-App and Web channel that you created earlier. If you haven’t created one yet, go to the Messaging
Settings page and do so.
8. Save your work.
9. Create and publish your new deployment, which takes a few minutes. Don’t navigate away from the page until it’s complete.
Reference Your Deployment with the Messaging for In-App and Web REST API
Supply your deployment name when invoking a public endpoint from the Messaging for In-App and Web REST API.
101
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
102
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Ask customers to fill out visible pre-chat fields before starting a messaging session, or auto-fill hidden
USER PERMISSIONS
pre-chat fields when the conversation begins. Add standard and custom fields to your pre-chat
form. To set up this feature:
In this stage of Messaging for In-App and Web setup, you: • Customize Application
AND
1. Create custom parameters, which help map your pre-chat form to your flow.
Modify Metadata
2. Add visible fields to your pre-chat form. Through Metadata API
3. Add hidden fields to your pre-chat form. Functions
Create Custom Parameters for Pre-Chat To modify permission sets
1. From Setup, in the Quick Find box, enter Messaging Settings, and then select and profiles:
Messaging Settings. • Manage Profiles and
Permission Sets
2. Click the name of your messaging channel.
3. Under Custom Parameters, click New.
4. Fill in the details of your parameter. To make mapping easy and transparent, match the parameter name and channel variable name.
Channel Variable Name appears as a selection when adding custom fields to your pre-chat form. Think of each custom parameter
as the link between your pre-chat form’s custom fields (both hidden and visible) and your flow.
Note: String is the only option for Data Type. While the pre-chat form lets you show visible fields formatted as text, email,
phone, number, dropdown, and checkbox fields, a flow automatically converts these fields to string fields. If you use a flow to
send information from a pre-chat field to another record, the output appears as a string field. While most letters, numbers,
and special characters allowed by the original field type are allowed by a string field, differences sometimes occur. For example,
the flow converts a checkbox field to a string statement of true or a string statement of false in the resulting flow output. As
another exception, the flow passes the original dropdown API value from a pre-chat form’s dropdown field, not the custom
label for that field value.
5. Save your changes, and create additional custom parameters for each hidden or visible field that you plan to add to your pre-chat
form.
103
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Note: A hidden field and a visible field that exist on the same pre-chat form can’t have the same parameter name. For the best
experience, add no more than 5 or 6 visible pre-chat fields.
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then select Embedded Service
Deployments.
2. Select View from the dropdown menu for your deployment.
3. Click Edit Pre-Chat.
4. Select Activate the pre-chat feature.
5. Choose whether to show the pre-chat form with every conversation, or with every session.
• If you select Every Conversation, the display frequency of the pre-chat form depends on whether you add user verification to
your messaging channel. If you add user verification, a Messaging for In-App and Web conversation has no end. Your customer
sees the pre-chat form only when messaging you for the first time. If you don’t add user verification, a customer can click End
Chat to end a conversation. They see the pre-chat form the first time that they message, and each subsequent time that they
start a new conversation after ending the previous one.
• If you select Every Session, the display frequency of the pre-chat form also depends on whether you add user verification to
your messaging channel:
– In Messaging for In-App without user verification, the messaging session ends when the agent clicks End Chat. Your customer
sees the pre-chat form the first time that they message you, and each time they begin a new session after an agent ended
the previous one.
– In Messaging for Web without user verification, the messaging session ends when the customer or agent clicks End Chat.
Your customer sees the pre-chat form the first time that they message you, and each time they begin a new session after a
previous session is ended.
– In Messaging for In-App with user verification, the messaging session ends when the agent clicks End Chat. Your customer
must be logged in to see the messaging conversation, including the pre-chat form. Your customer sees the pre-chat form
the first time that they message you, and the next time they log in and begin a new session after a previous session was
ended by an agent.
– In Messaging for Web with User Verification, the messaging session ends when the agent clicks End Chat. Your customer
sees the pre-chat form the first time that they message you, and the next time they begin a new session after the previous
session was ended by an agent.
104
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
• If you selected Dropdown as your field type, also add a Dropdown Name, Dropdown API Name, and Dropdown API Values.
There are a few things to note:
– Each pre-chat form can have up to 5 custom dropdown fields and each dropdown can have up to 200 values.
– A dropdown API name can only be used one time per org. If you delete a dropdown api name from your org, you still
can’t use it again in that same org.
– Format each dropdown API value to start with a letter, contain only alphanumeric characters, and use underscores
instead of spaces.
– We recommend creating a custom label for each dropdown value that displays on your pre-chat form, as it’s what your
customer sees. You can create a custom label in each of your supported languages. If you don’t create custom labels,
your customer sees the dropdown API values, which can include underscores.
– We pass the original dropdown API value to your flow, not your custom labels.
• Click Next.
• On the next page, optionally select a Default Dropdown API Value for your dropdown field, which appears in the field if a
selection isn’t already made. Also, order your dropdown field values.
d. Click Save (if you created a custom dropdown field) or click Done (for all other custom field types).
e. Save your changes to the pre-chat form.
f. To create a custom label for a custom field, return to the deployment settings page and click Set Custom Labels.
105
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
g. Select the language for this custom label. You must create a custom label for each language that you support.
h. Select Pre-Chat as the chat group.
i. Under Label Group, select Dropdown Values to customize the labels for your field’s dropdown API values. Or, select Pre-Chat
Form to customize the label for standard fields, or custom email, number, phone, checkbox, and text fields.
j. Under Label Type, select Standard.
k. Enter a custom label for your custom field, and then click Finish.
l. Repeat this step for each language that you support.
Tip: Update your privacy policy to include what data you collect with hidden fields. Consider linking to the policy with a Messaging
Component in the conversation. Collect the minimum amount of data needed for an agent to do their job, and only store this
data for as long as it's needed to close the case. Learn how to delete data.
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then select Embedded Service
Deployments.
2. Select View from the dropdown menu for your deployment.
3. Click Edit Pre-Chat.
4. Select Activate the pre-chat feature if it’s not already selected.
5. Under Hidden Pre-Chat Fields, click to highlight a custom parameter from the Available list. Custom parameters appear if they’re
associated with the messaging channel for this deployment and if they’re not already in use as a visible or hidden field on this
deployment. A hidden pre-chat field must be a Text type field and can’t be required.
6. To move your field to the Selected list, click the arrow pointing toward the Selected list.
106
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
SEE ALSO:
Use Pre-Chat with an Enhanced Bot
Messaging for Web Developer Guide
Messaging for In-App Developer Guide
107
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
USER PERMISSIONS
108
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Update Your Omni-Channel Flow to Set Field Values in the Messaging Session
Return to the Omni-Channel Flow that you created in the first stage of setup on page 72. Add one more element to store your pre-chat
fields.
Note: String is the only option for Data Type. While the pre-chat form lets you show visible fields formatted as text, email, phone,
number, dropdown, and checkbox fields, a flow automatically converts these fields to string fields. If you use a flow to send
information from a pre-chat field to another record, the output appears as a string field. While most letters, numbers, and special
characters allowed by the original field type are allowed by a string field, differences sometimes occur. For example, the flow
converts a checkbox field to a string statement of true or a string statement of false in the resulting flow output. As another
exception, the flow passes the original dropdown API value from a pre-chat form’s dropdown field, not the custom label for that
field value.
1. From Setup, in the Quick Find box, enter Flows, and then select Flows.
2. Find and select your previous flow from the list.
3. Add an input variable for each pre-chat field.
• The API Name must be identical to the Flow Variable Name from Parameter Mappings.
• The Data Type must be set to Text.
• The variable must be Available for input.
109
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
4. Create an Update Records element before the Route Work element in your flow. Specify conditions to identify records and set fields
individually. Select Messaging Session as the object. In the Filter Records section, filter based on the recordId value.
110
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
5. Under Set Field Values for the messaging session records, enter each field name under Field, and enter its corresponding flow variable
name under Value.
111
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
112
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
7. Save this flow as a new version, and verify that it’s activated.
Note: When the agent clicks End Chat, the messaging session ends. If the customer continues the conversation, another session
is created. By default, pre-chat data isn’t carried over to this new session.
IN THIS SECTION:
Use Pre-Chat API to Pass Customer Information to the Agent in an External Website
To provide agents with customer information that helps move an interaction forward, send end-user data to the agent console via
the pre-chat API.
113
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Use Pre-Chat API to Pass Customer Information to the Agent in an Experience Site
To provide agents with customer information that helps move an interaction forward, send end-user data to the agent console via
the pre-chat API.
SEE ALSO:
Use Pre-Chat with an Enhanced Bot
Use Pre-Chat API to Pass Customer Information to the Agent in an External Website
To provide agents with customer information that helps move an interaction forward, send end-user
EDITIONS
data to the agent console via the pre-chat API.
This recipe combines common use cases as examples of data that you can send to agents using Available in: Lightning
the pre-chat API. First, pass the end user’s login ID to the agent so that verification is done. Then, Experience. View required
to prevent loss on large orders, we pass the customer’s shopping cart value to the agent. To editions.
accomplish these goals, create custom hidden pre-chat fields that route the data to Salesforce
This Messaging
custom fields via a flow. Then edit the code snippet, telling it to auto-populate the hidden pre-chat for Web
article
fields. applies to: channels
Before building this recipe, consider these caveats.
This Messaging
• You can reference fields from the Messaging Session object or the Messaging User object article for In-App,
(because it's linked to Messaging Session) in an auto-response formula template for Start doesn’t standard
Conversation, End Conversation, and Inactive Conversation. You can’t reference fields from the apply to: and
Messaging Session or Messaging User objects in Conversation enhanced
• Salesforce custom object fields are different from pre-chat custom fields. This recipe references WhatsApp,
both types of fields. Learn more about the relationship and differences between these two standard
and
types of fields.
enhanced
1. Create custom fields on Salesforce objects. In this example, create a Customer ID field and a Facebook
Shopping Cart Value field on the messaging session or messaging user objects. Messenger,
2. If your Service Console doesn’t show the object where you stored the fields, edit the layout to standard
give agents easy access. In this example, we edit the Service Console to give easy access to the and
enhanced
Messaging Session and Messaging User objects.
SMS,
3. To capture the data that gets sent to the Salesforce custom fields from step 1, create hidden enhanced
pre-chat fields. In this example, create custom parameters called Customer ID and Shopping Apple
Cart Value in Messaging Settings for the channel, and then select them as hidden pre-chat fields Messages
in Embedded Services Pre-Chat Form settings. for Business,
enhanced
4. Map your custom pre-chat fields to your Salesforce custom fields, and then populate the
LINE, Bring
Salesforce fields using a flow. In this example, we map the pre-chat field called Customer ID to
Your Own
the Salesforce field called Customer ID. Then we map the pre-chat field called Shopping Cart
Channel,
Value to the Salesforce field called Shopping Cart Value. With the flexibility of flows, you can
and Bring
combine or slice data or populate any other objects, such as Case or Contact, as needed. Your Own
5. Update your embedded messaging code snippet, instructing it to auto-populate the pre-chat Channel for
fields that you created in step 2. The code in this example uses the Pre-Chat API to send Customer CCaaS
ID and Shopping Cart Value to your pre-chat fields automatically. Before adding to your code
snippet, consider these caveats.
a. The first section of the code contains an example of the standard code snippet for your Embedded Service deployment. Yours
looks slightly different due to your unique deployment ID and name.
114
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
b. To complete the recipe, add the code that starts with the comment line Passing Web Context to Prechat -
BEGIN.
c. The first section assigns static values to these variables, but you can change them to reflect how you get these values. The next
section populates the visible pre-chat fields. The final section populates hidden pre-chat fields.
d. We use different code settings in assigning the values. For example, the first and last names are locked and not editable by users.
<script type='text/javascript'>
function initEmbeddedMessaging() {
try {
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter
'en' or 'en-US'
embeddedservice_bootstrap.init(
'00DDn00000DuiyZ',
'Cookbook_MIAW_Deployment',
'https://csg-gr-cdo-summer23.my.site.com/ESWCookbookMIAWDeployme1710815189835',
{
scrt2URL: 'https://csg-gr-cdo-summer23.my.salesforce-scrt.com'
}
);
} catch (err) {
console.error('Error loading Embedded Messaging: ', err);
}
};
window.addEventListener("onEmbeddedMessagingReady", e => {
//log event
console.log("onEmbeddedMessagingReady event triggered");
115
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
</script>
Use Pre-Chat API to Pass Customer Information to the Agent in an Experience Site
To provide agents with customer information that helps move an interaction forward, send end-user
EDITIONS
data to the agent console via the pre-chat API.
` Available in: Lightning
Experience. View required
This recipe combines common use cases as examples of data that you can send to agents using
editions.
the pre-chat API. First, pass the end user’s login ID to the agent so that verification is done. Then,
to prevent loss on large orders, we pass the customer’s shopping cart value to the agent. To This Messaging
accomplish these goals, create custom hidden pre-chat fields that route the data to Salesforce article for Web
custom fields via a flow. Then edit the code snippet, telling it to auto-populate the hidden pre-chat applies to: channels
fields.
This Messaging
Before building this recipe, consider these caveats. article for In-App,
• You can reference fields from the Messaging Session object or the Messaging User object doesn’t standard
(because it's linked to Messaging Session) in an auto-response formula template for Start apply to: and
Conversation, End Conversation, and Inactive Conversation. You can’t reference fields from the enhanced
WhatsApp,
Messaging Session or Messaging User objects in Conversation
standard
• Salesforce custom object fields are different from pre-chat custom fields. This recipe references and
both types of fields. Learn more about the relationship and differences between these two enhanced
types of fields. Facebook
1. Create custom fields on Salesforce objects. In this example, create a Customer ID field and a Messenger,
Shopping Cart Value field on the messaging session or messaging user objects. standard
and
2. If your Service Console doesn’t show the object where you stored the fields, edit the layout to enhanced
give agents easy access. In this example, we edit the Service Console to give easy access to the SMS,
Messaging Session and Messaging User objects. enhanced
3. To capture the data that gets sent to the Salesforce custom fields from step 1, create hidden Apple
pre-chat fields. In this example, create custom parameters called Customer ID and Shopping Messages
Cart Value in Messaging Settings for the channel, and then select them as hidden pre-chat fields for Business,
enhanced
in Embedded Services Pre-Chat Form settings.
LINE, Bring
4. Map your custom pre-chat fields to your Salesforce custom fields, and then populate the Your Own
Salesforce fields using a flow. In this example, we map the pre-chat field called Customer ID to Channel,
the Salesforce field called Customer ID. Then we map the pre-chat field called Shopping Cart and Bring
Value to the Salesforce field called Shopping Cart Value. With the flexibility of flows, you can Your Own
combine or slice data or populate any other objects, such as Case or Contact, as needed. Channel for
CCaaS
5. Create and deploy a custom LWC component that fetches the user information.
116
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
a. In the newly created custom LWC component folder, here is a template of the custom component.
b. The .js-meta.xml file.
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>55.0</apiVersion>
<isExposed>true</isExposed>
<masterLabel>[give a component name here]</masterLabel>
<description>Set logged in User details for Embedded Messaging
component</description>
<targets>
<target>lightningCommunity__Page</target>
<target>lightningCommunity__Default</target>
</targets>
</LightningComponentBundle>
117
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
bubbles: true,
composed: true
});
6. In the Experience Site Builder, drag your custom LWC component into the template footer.
7. Go to Settings Advanced Edit Head Markup, paste the following sample script into the head markup.
<script>
var fname, lname, email;
window.addEventListener('userInfo', function(e){
console.log("userInfo received");
fname = e.detail.fname;
lname = e.detail.lname;
email = e.detail.email;
});
window.addEventListener("onEmbeddedMessagingReady", e => {
embeddedservice_bootstrap.prechatAPI.setVisiblePrechatFields({
"_firstName": {
"value": fname,
"isEditableByEndUser": true
},
"_lastName": {
"value": lname,
"isEditableByEndUser": true
},
"_email": {
"value": email,
"isEditableByEndUser": true
}
});
});
</script>
8. Update your embedded messaging code snippet, instructing it to auto-populate the pre-chat fields that you created in step 2. The
code in this example uses the Pre-Chat API to send Customer ID and Shopping Cart Value to your pre-chat fields automatically.
Before adding to your code snippet, consider these caveats.
a. The first section of the code contains an example of the standard code snippet for your Embedded Service deployment. Yours
looks slightly different due to your unique deployment ID and name.
b. To complete the recipe, add the code that starts with the comment line Passing Web Context to Prechat -
BEGIN.
118
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
c. The first section assigns static values to these variables, but you can change them to reflect how you get these values. The next
section populates the visible pre-chat fields. The final section populates hidden pre-chat fields.
d. We use different code settings in assigning the values. For example, the first and last names are locked and not editable by users.
e. Your page or site template must have the Embedded Messaging component.
f. An Experience site doesn’t allow you to directly paste in a code snippet. Include Prechat API in the header markup. Add your
code at Experience Builder Settings Advanced Edit Head Markup.
g. In the Experience site code sample, we don’t include a baseline code snippet, such as the initEmbeddedMessaging()
function. That’s because such baseline code is already included in the Embedded Messaging LWC component.
h. This example includes an event listener on userInfo. This sends a logged-in customer’s information directly to the prechat form
without asking the customer to enter it again. The example makes the fields editable by customers. You can also change the
isEditableByEndUser configuration to lock it down.
119
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
This Messaging
article for Web
applies to: channels
2. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then
This Messaging
select Embedded Service Deployments.
article for In-App,
3. Click the downward arrow to the right of your deployment, and then select View. doesn’t standard
4. On the Test Messaging card, click Test Messaging. apply to: and
enhanced
5. Click to open the messaging conversation window and initiate a messaging session as a WhatsApp,
customer. standard
6. In the console tab, verify that you received a conversation request. Accept the request and try and
sending a message. enhanced
Facebook
If set up properly, you’re able to request a chat and complete the form as the customer. Also, the Messenger,
pre-chat information is sent to the agent before the conversation begins. standard
Tip: To turn on and customize Messaging for In-App and Web in your sandbox, ensure that and
enhanced
you have the correct edition on page 9. If you’re a Service Cloud Enterprise customer, reach
SMS,
out to your Account Executive for the Digital Engagement add-on SKU. If you’re a Sales Cloud
enhanced
Enterprise customer, reach out to your Account Executive for the Sales Engagement add-on
Apple
SKU. Match your sandbox licenses to your production org by refreshing your sandbox, creating
Messages
a sandbox, or using the license-matching method. Then, Set Up Messaging for In-App and for Business,
Web in sandbox. enhanced
LINE, Bring
SEE ALSO: Your Own
Channel,
Developer Guide: Test Messaging for In-App
and Bring
Your Own
Channel for
CCaaS
120
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
121
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
122
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
Update Your Messaging for Web Deployment After Upgrading to Enhanced Domains
EDITIONS
This Messaging
article for Web
applies to: channels
This Messaging
article for In-App,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
123
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
To ensure that your Messaging for Web deployment remains active after you enable enhanced
USER PERMISSIONS
domains, republish your deployment. If you use Messaging for Web in an Experience Builder site,
update your allowlisted URLs. To set up this feature:
In Winter ’24, all orgs get enhanced domains and the feature can’t be disabled. For more information, • Customize Application
see Enhanced Domains Timeline. AND Modify Metadata
Through Metadata API
After enhanced domains are deployed, a Messaging for Web deployment that was previously Functions
published no longer appears to your customer. Admins must take additional steps to republish all
pre-existing deployments. These steps differ between messaging that’s embedded in a third-party To modify permission sets
website and messaging that’s embedded in an Experience Builder site. and profiles:
• Manage Profiles and
Note: A new Messaging for Web deployment that is published for the first time after the Permission Sets
upgrade to enhanced domains go live to customers. No additional steps are required.
To add the Embedded
Messaging component to
an Experience Builder site:
Republish Your Website After Upgrading to Enhanced Domains
• Create and Setup
After upgrading to enhanced domains, republish any Messaging for Web deployments that are live Experiences
in your website.
Take these steps if you meet this criteria.
• You enabled enhanced domains, or Salesforce enforced enhanced domains in your org.
• Your website site had a published Messaging for Web deployment before enhanced domains were enabled.
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then click Embedded Service
Deployments.
2. Click the edit button to the right of your deployment, and then select View.
3. Click Publish.
2. Add the new enhanced service URL to the Trusted URLs list in Setup.
a. In Experience Builder, highlight and copy the enhanced service URL from the Enhanced Service URL dropdown. If it’s difficult
due to URL length, copy it from the code snippet in the Embedded Service Deployments Settings page for your messaging for
web deployment.
b. From Setup, in the Quick Find box, enter Trusted URLs, and then select Trusted URLs.
c. Click New Trusted URL.
124
Provide Conversation Support with Messaging in Service Set Up Messaging for In-App and Web
Cloud
d. Name it, and then paste the copied URL into the URL field.
e. Select connect-src (scripts).
f. Save your changes.
3. Add the new enhanced service URL to the Trusted URLs list for your Experience Builder site.
a. In Experience Builder, click Settings.
b. Select Security & Privacy.
c. Click + Add Trusted Site.
d. Name it, and again paste your enhanced service URL into the URL field.
e. Click Add Site.
5. Update your embedded service deployment to use the new enhanced domain.
a. Return to the All Sites landing page, and copy the domain portion of the URL for your site.
b. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then click Embedded Service
Deployments.
c. Click the edit button to the right of your deployment, and then select Edit.
d. Paste the domain you just copied into the Domain field, and then save your changes.
125
Provide Conversation Support with Messaging in Service Cookbook for Messaging for In-App and Web
Cloud
126
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
127
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To set up Omni-Channel
Flow and Messaging:
• Customize Application
To modify permission sets
and profiles:
• Manage Profiles and
Permission Sets
128
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
If you’re new to messaging, read the requirements and then follow the steps to Prepare a Salesforce Org for Messaging for In-App and
Web with Omni-Channel, Omni Flow, and a new Messaging channel. Then configure your Messaging for In-App Deployment or configure
your Messaging for Web Deployment.
Decide on the combination of standard and custom fields, which link as parameters to your flow. Pick the standard fields for your use
case. If you need specific information for your agents, create your own custom fields. We recommend a maximum of 5-6 total fields.
129
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
4. For this example, use Add Field to select First Name and then Last Name, which are standard fields.
130
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
131
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
16. If you want the customer to complete the fields, check the Required box.
132
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
17. Review the Pre-Chat form order, set the toggle to Active, and save your work.
Parameters are the connection points between your pre-chat form and the flow. To map your standard and custom Pre-Chat field values,
follow these steps.
Note: To create a custom label for pre-chat fields, return to the deployment settings page and select the Custom Labels section.
Find your custom field in the Label Group Pre-Chat. All custom fields require a custom label because there’s no default label.
Important: To use the Custom Label panel, the admin must authorize a logged-in user as a translator in the Salesforce User
language and the translated label language. Then, the user can customize the words or phrases.
Note: If you edit a deployment, you must click the Publish button on the Embedded Service Deployment Settings page. The
changes can take up to 10 minutes to complete.
1. From Setup, in the Quick Find box, enter Messaging Settings, and then click to select.
2. Find the Messaging Channel Name you set up for your Messaging for In-App or Web deployment from the list and select it.
3. In the Parameter Mapping section, click New.
4. In the Parameter field, select an item for your Pre-Chat form.
5. Add a Flow Variable Name that describes the action. The Flow Variable Name matches what you use for Omni-Flow.
Note: Standard Parameter API Names, such as first name and last name, have an underscore and no spaces. For example,
_FirstName and _LastName. Custom Parameters don’t have underscores.
133
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
Return to the Omni-Channel Flow that you created when you set up your Salesforce org on page 72. Previously, you selected the Route
To Queue action to direct a customer request to the right queue. In this section, we add one more element to store your pre-chat fields.
Before starting, you must create three custom fields on the Messaging Session object, FirstName, LastName, and
CustomerAccountNumber. See Create Custom Fields.
1. From Setup, in the Quick Find box, enter Flows, and then click to select.
2. Find and select your previous flow from the list.
3. Add an input variable for each pre-chat field. The API Name must be identical to the Flow Variable Name from Parameter Mappings.
The variable must be Available for input.
4. Create an Update Records element before the Route Work element in your flow. Select Specify conditions to identify records
and set fields individually. Select Messaging Session as the object. In the Filter Records section, filter based on the recordId
value.
134
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
5. Set the Field Values for the Messaging Session Records so that the fields match the custom field names, which in this case is
associated with the Messaging Session.
135
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
136
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
With this flow, an agent sees the customer’s pre-chat inputs of first name, last name, and customer account number in the Session record
as they connect.
137
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
Important: This scenario is more likely to occur in Messaging for In-App where a customer This Standard
can continue a conversation long after the agent has ended the chat. However, it can also article and
doesn’t enhanced
occur with Messaging for Web customers when the customer sends more messages from
apply to: WhatsApp,
the same messaging window.
standard
1. From Setup, in the Quick Find box, enter Flows, and then select Flows. and
2. Find and select your previous flow from the list. enhanced
Facebook
3. Before handling the pre-chat input variables or routing the work, add a check to determine if Messenger,
we have a pre-existing session from the same conversation. If so, we use that information to standard
repopulate the input variables. and
a. Use a Get Records element to get the current messaging session using the recordId enhanced
input. SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To set up Omni-Channel
Flow and Messaging:
• Customize Application
To modify permission sets
and profiles:
• Manage Profiles and
Permission Sets
138
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
b. Use a Get Records element to find a pre-existing messaging session with the same ConversationId as the current
messaging session. We also make sure that the Id isn’t the same as the current messaging session. In this example, we sort the
results by creation date so that we can ensure that the first result is the first session. We then only return the first result.
c. To determine if this session is the first messaging session, use a Decision Tree element and check if the previous result is null.
139
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
f. After this new logic, you can handle the pre-chat input variables and route the work in just the same way as you did in your
original flow.
4. The following screenshot illustrates what your new flow could look like. The new logic is highlighted.
140
Provide Conversation Support with Messaging in Service Flow Recipes for Messaging for In-App and Web
Cloud
5. Click Done.
6. Save this flow as a new version, and verify that it’s activated in your org.
SEE ALSO:
Persist Secure Messaging History Across Multiple Devices with User Verification
141
Provide Conversation Support with Messaging in Service Set Up WhatsApp in Service Cloud
Cloud
142
Provide Conversation Support with Messaging in Service Set Up WhatsApp in Service Cloud
Cloud
You can create one or more enhanced WhatsApp channels on the Messaging Settings page in Setup. Each channel is linked to a different
WhatsApp number.
Get Started
IN THIS SECTION:
Create or Upgrade to an Enhanced WhatsApp Channel in Service Cloud
Set up an enhanced WhatsApp channel to let your support team help customers over WhatsApp. This article also explains how to
upgrade to an enhanced WhatsApp channel from a standard channel or move a number from an external business service provider.
Considerations for WhatsApp in Service Cloud
WhatsApp Business lets businesses communicate with users of the WhatsApp messaging app. Review important considerations
before creating a WhatsApp channel in Service Cloud.
Considerations for Upgrading or Migrating to Enhanced WhatsApp
Review these considerations before you upgrade from a standard to an enhanced WhatsApp channel, or before you migrate a phone
number from an external business service provider (BSP) to an enhanced WhatsApp channel.
Compare Standard and Enhanced WhatsApp Channel Capabilities
View a side-by-side comparison of standard and enhanced WhatsApp channels. Going forward, new features are available exclusively
in enhanced WhatsApp channels.
143
Provide Conversation Support with Messaging in Service Set Up WhatsApp in Service Cloud
Cloud
144
Provide Conversation Support with Messaging in Service Create or Upgrade to an Enhanced WhatsApp Channel in
Cloud Service Cloud
This Enhanced
article WhatsApp
applies to: channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
145
Provide Conversation Support with Messaging in Service Create or Upgrade to an Enhanced WhatsApp Channel in
Cloud Service Cloud
Set up an enhanced WhatsApp channel to let your support team help customers over WhatsApp.
USER PERMISSIONS
This article also explains how to upgrade to an enhanced WhatsApp channel from a standard
channel or move a number from an external business service provider. To set up WhatsApp
channels:
Important: Standard WhatsApp channels are scheduled for retirement in mid-2025 due to • Configure Messaging
changes in the WhatsApp API, and as of July 1, 2024, you can’t create new standard WhatsApp AND View Setup and
channels. To avoid service interruptions, upgrade your standard WhatsApp channels to Configuration
enhanced channels before July 30, 2025. See Considerations for Upgrading or Migrating to
To create WhatsApp
Enhanced WhatsApp. channels:
Each enhanced WhatsApp channel in Salesforce is linked to a WhatsApp Business account (WABA). • System Administrator
When you set up your channel, we walk you through creating a WABA that's associated with your AND Configure
phone number. If your WABA is created in Meta Business Manager outside of the channel setup Messaging
flow in Salesforce, you can't use it with a Salesforce channel. OR
To minimize downtime that can occur during an upgrade or migration to an enhanced WhatsApp Configure Messaging
channel, use a test or low-traffic phone number at first. After you set up and test your routing AND Customize
Application AND
configuration, channel settings, message templates, and customer experience, you can then create
Manage Auth. Providers
your enhanced channel with your desired number and apply your already-tested customizations. AND View Setup and
Configuration AND
Modify All Data
Step 1: Prepare to Create Your Channel
To get started, review key considerations and configure the Service Console, user access, and routing.
For channel upgrades and migrations, turn off two-step verification to make your number available.
1. Review our WhatsApp phone number criteria, account criteria, channel limitations, and migration considerations. See the resources
linked at the end of this article.
2. If you’re upgrading from a standard WhatsApp channel, submit a request to [email protected] to turn off
two-step verification for your number. To avoid service interruptions, upgrade your standard WhatsApp channels to enhanced
channels before July 30, 2025.
3. If you’re migrating your number from another business service provider (BSP) and can’t access your original WhatsApp Business
account, ask the BSP to turn off two-step verification for your number. Contact WhatsApp if you’re not sure who your previous BSP
was. If you do have access to your original account, do it yourself:
a. Log into Meta Business Manager as an admin.
b. Select your WABA and enter WhatsApp Business Manager.
c. In the settings of the phone number that you’re migrating, turn off two-step verification.
d. Click the link in the email verification sent by WhatsApp.
146
Provide Conversation Support with Messaging in Service Create or Upgrade to an Enhanced WhatsApp Channel in
Cloud Service Cloud
8. When a message notifies you that you’re almost ready to chat, click Finish.
9. In Salesforce Setup, the channel setup flow shows that your WhatsApp account is connected. Click Next. If you selected a WhatsApp
Business account that can’t be used, we let you know here.
10. Select your WhatsApp number and click Next.
11. Enter your chat acknowledgment message and click Next. If needed, you can edit this auto-response and others later in your channel
settings.
12. Choose how to route incoming messages to agents.
a. To set up a basic routing solution from scratch, select Create a new queue. The flow walks you through creating a queue and
routing configuration and adjusting agent messaging workload.
b. To use an existing queue or an Omni-Channel flow, which supports more complex routing logic and lets you route to bots, select
Set up routing later.
147
Provide Conversation Support with Messaging in Service Create or Upgrade to an Enhanced WhatsApp Channel in
Cloud Service Cloud
b. If you want to route to an Omni-Channel flow: In the Routing section, select the Omni-Flow routing type. Select your
Omni-Channel flow in the Flow Definition field, and select a fallback queue to receive any messaging sessions that the selected
flow can’t route.
c. If you want to route to a queue: In the Routing section, select the Omni-Queue routing type, and select a queue to receive this
channel’s incoming messages.
d. Save your changes.
Important: After you create your channel, you might be tempted to log into the WhatsApp mobile or desktop application with
this number. Don’t! Otherwise, you won’t be able to activate the channel in Salesforce.
SEE ALSO:
Enhanced Messaging Channel Activation Checklist
Considerations for WhatsApp in Service Cloud
Considerations for Upgrading or Migrating to Enhanced WhatsApp
Increase Messaging Productivity
148
Provide Conversation Support with Messaging in Service Considerations for WhatsApp in Service Cloud
Cloud
Important: Standard WhatsApp channels are scheduled for retirement in mid-2025 due to Available in: Lightning
changes in WhatsApp's API, and as of July 1, 2024, you can’t create new standard WhatsApp Experience. View required
editions.
channels. To avoid service interruptions, upgrade your standard WhatsApp channels to
enhanced channels before July 30, 2025. For help, see Considerations for Upgrading or This Standard
Migrating to Enhanced WhatsApp. article and
applies to: enhanced
WhatsApp
General Account Limits and Considerations channels
• Your Meta Business Account can be associated with multiple WhatsApp Business accounts Messaging
This
(WABA). Across all of the WABAs associated with your Meta Business Account, you can use up for In-App,
article
to 20 WhatsApp phone numbers. This limit may differ if WhatsApp considers one of your Messaging
doesn’t
numbers a verified Official Business Account, which is a label reserved for notable brands. And apply to: for Web,
if you maintain WhatsApp channels with another business service provider in addition to standard
Salesforce, those channels also count against your limit. Here’s how to request a change to this and
limit: enhanced
Facebook
– If you’re using only standard WhatsApp channels, email the Salesforce WhatsApp enablement
Messenger,
team at [email protected].
standard
– If you’re using enhanced WhatsApp channels and manage your own WABA in Meta Business and
Manager, contact WhatsApp Direct Support. Select Ask a question, select the topic WABiz: enhanced
Account & WABA, and select Request type: Increase phone number limit. SMS,
enhanced
• In standard and enhanced WhatsApp channels, you can create and use up to 250 messaging
Apple
templates per WABA. For standard channels, create templates on the Messaging Templates
Messages
page in Setup and submit them to Salesforce for review by WhatsApp. For enhanced channels, for Business,
create templates in WhatsApp Business Manager and then create a notification messaging enhanced
component in Salesforce for each template. LINE, Bring
• Group WhatsApp chats aren't supported in standard or enhanced WhatsApp channels. If a Your Own
messaging user adds another WhatsApp user to a messaging session with your business, their Channel,
messages aren't delivered and the session doesn't appear in the Omni-Channel utility or sidebar. and Bring
Your Own
• Meta occasionally delays the delivery of messages that they consider damaging to their
Channel for
messaging ecosystem – for example, when a business tries to send a message to a customer
CCaaS
who has not replied to a previous message from the business within a specified time frame. If
you encounter this error, don’t immediately attempt to resend the message. Retry sending the
message after progressively longer intervals until it is successfully delivered.
• Depending on how the Meta API processes messages, inbound or outbound messages sent in quick succession may not be delivered
in the intended order. This may happen if the messages are sent by a bot or with a poor network connection or carrier issues; it can
also occur if the messages and attachments have different sizes.
149
Provide Conversation Support with Messaging in Service Considerations for WhatsApp in Service Cloud
Cloud
Content Sharing
You can send many types of content in WhatsApp channels. For a full list, see Compare Standard and Enhanced WhatsApp Channel
Capabilities.
WhatsApp has these limitations related to sharing content.
• The following content types and interactions aren’t supported in standard or enhanced channels: Stickers, locations, contacts, polls,
tap-back reactions, and message deletion.
• If a customer sends unsupported content such as a sticker or location, an error message notifies agents that the customer sent a
message with unsupported content. Agents can ask the customer to share the information another way.
• When a customer sends an image, the agent sees a preview in the Service Console and can download the image. File previews aren’t
supported, but agents can download files.
• If a customer replies to a previous message in the WhatsApp chat, agents see the reply but not the original message that the customer
was replying to.
150
Provide Conversation Support with Messaging in Service Considerations for WhatsApp in Service Cloud
Cloud
Pricing
You can send some types of WhatsApp messages to customers at no charge, while other types incur charges. Talk to your Salesforce
account executive to understand when you’ll be charged for sending a message in WhatsApp.
Business Verification
Some businesses can verify their business in WhatsApp, which gives them access to extra technologies, developer features, and higher
limits. We recommend verifying your business before you create a WhatsApp account in Salesforce. See the Meta documentation.
WhatsApp requires you to proactively and explicitly receive an end user’s consent before sending them notifications. You must receive
this consent outside of WhatsApp. You can receive it from another communication channel, such as email or text message, or as part
of your company’s normal business processes. After you receive an end user’s consent outside of WhatsApp, you can use this information
to send notifications. See WhatsApp Business Policy.
End users don’t have to provide advance, explicit consent to initiate an inbound customer care interaction. To learn more about how
customers opt in and out of communication, see Customize the Messaging Opt-In and Opt-Out Experience.
151
Provide Conversation Support with Messaging in Service Considerations for WhatsApp in Service Cloud
Cloud
Numbers in use in a Marketing Cloud OK to use only if you create your channel using Unified Messaging. If Unified Messaging
Engagement WhatsApp channel, or isn’t used, you must designate separate WABAs for Service Cloud and Marketing Cloud
numbers whose WABA is linked to a Engagement channels. See Migrate to Unified WhatsApp from Marketing Cloud
Marketing Cloud Engagement WhatsApp Engagement or Digital Engagement.
channel
Numbers already activated in a standard OK to use. You must ask Salesforce OK to use. You can transfer the number to
WhatsApp channel Customer Support to move a WhatsApp an enhanced channel yourself.
number from one standard channel to
another.
Note: The WhatsApp messaging channel involves integrations with one or more Non-SFDC Applications, including Twilio, Inc.
and WhatsApp, as further detailed in the Messaging Notices and Licensing Information Documentation, available here. By activating
the WhatsApp messaging channel, you're affirming that you have the authority to bind your company/organization to any Non-SFDC
Application terms and conditions that are set forth in the Messaging Notices and Licensing Information Documentation.
SEE ALSO:
Considerations for Upgrading or Migrating to Enhanced WhatsApp
Trailhead: WhatsApp in Service Cloud
Service Cloud Messaging Limits and Considerations
152
Provide Conversation Support with Messaging in Service Considerations for Upgrading or Migrating to Enhanced
Cloud WhatsApp
• More session statuses means more insight into messaging activity. Enhanced sessions include several extra session statuses,
including Inactive, Consent, and Error. You can reference these session statuses when setting up reports and designing message
routing logic.
• Agents have more options in the Service Console. In the Enhanced Conversation component, agents have access to a row of
action buttons that let them send content such as quick text, messaging components, files, and emoji. Agents can also raise a flag
to request help from a supervisor and exchange “whispered” messages with the supervisor that are captured in the session transcript.
• Agents use a different quick action to start conversations. To initiate messaging sessions in enhanced WhatsApp channels,
agents use the Send Message global action. In standard WhatsApp channels, agents use the Start Conversation quick action (beta).
153
Provide Conversation Support with Messaging in Service Considerations for Upgrading or Migrating to Enhanced
Cloud WhatsApp
The Send Message action is available in the global action menu, which means agents can initiate a messaging session from any
page in Salesforce.
• Automated outbound message notifications are sent in a different way. Automated message notifications are messages that
are based on a WhatsApp message template and sent to customers via a flow at particular times—for example, when a case status
changes or an order ships. In standard channels, Salesforce admins create their templates in Setup and use the Message Notification
flow action to send the messages at particular times. In enhanced channels, admins create their templates in WhatsApp Business
Manager, create notification messaging components that are linked to those templates, and then use the Send Conversation Messages
flow action to send the messages.
For a side-by-side comparison of standard and enhanced WhatsApp channels, see Compare Messaging Channel Capabilities in Service
Cloud.
Conversation history Not transferred. Messaging sessions from the Not transferred.
standard channel remain available in your Salesforce
org to users with permission.
Message templates and Not transferred, but you can copy templates from your original WABA to your enhanced channel WABA.
automated message See Send Automated Messages in Enhanced Messaging Channels.
sending
Omni-Channel flow Not transferred, but admins can update the enhanced Not applicable.
routing or queue and channel settings to reference the right flow or queue.
routing configuration We also recommend upgrading to enhanced
Omni-Channel routing.
Bot routing configuration Not transferred. You can use only enhanced bots in Not applicable.
enhanced WhatsApp channels, as opposed to
standard bots.
Sensitive data rules Not transferred, but you can create replacement Not applicable.
sensitive data rules for enhanced channels.
154
Provide Conversation Support with Messaging in Service Considerations for Upgrading or Migrating to Enhanced
Cloud WhatsApp
Channel menu Automatically transferred, because the phone number remains the same. Check that your WhatsApp option
configuration in your channel menu uses the universal link format.
Conversation History
When an agent is engaged in a messaging session, they see a continuous transcript of the messaging user’s conversations with your
business that occurred in that channel. However, the transcript doesn’t show messages that were sent outside of the channel. These
include messages that the messaging user exchanged with your business:
• In a standard WhatsApp channel
• When the phone number was associated with an external BSP
In a migration from an external BSP, no conversation data is transferred to the new enhanced channel. In a standard-to-enhanced
upgrade, the standard channel’s conversation history is still available in Salesforce. To find it, go to the messaging user record that’s
associated with the standard channel and view their messaging sessions.
For example, Maria is a longtime customer. She has exchanged messages with your business in a standard WhatsApp channel. When
you upgrade your standard channel to an enhanced channel, here’s how her messaging data is organized in Salesforce.
155
Provide Conversation Support with Messaging in Service Considerations for Upgrading or Migrating to Enhanced
Cloud WhatsApp
Activate your channel during a low-traffic time to avoid two possible disruptions that can occur during an upgrade or migration:
• You can experience a short period of messaging loss when you activate your channel.
• If a customer is engaged in an active messaging session in your standard channel as you’re upgrading to an enhanced channel, it’s
possible that customer messages sent after the enhanced channel is activated won’t arrive. In this situation, close their open session
in the standard channel. Then, create a messaging user for the customer in the enhanced channel that includes their consent
preference gathered in the standard channel. Finally, send an automated or manual message to them in the enhanced channel to
continue helping them.
Important: Your customers’ consent status—Implicitly Opted In, Explicitly Opted In, or Opted Out—isn’t transferred when you
upgrade or migrate to an enhanced WhatsApp channel. To transfer this data to your new channel, we recommend creating
messaging user records for your existing customers that are linked to your enhanced channel and include their consent status
from the standard channel. When a customer has a messaging user record that’s linked to your enhanced WhatsApp channel,
your support team can initiate a conversation with them or send them automated messages unless the customer opted out of
receiving WhatsApp messages from you. If a customer messages you first after an upgrade, a messaging user record is created for
them automatically.
SEE ALSO:
Enhanced Messaging Channel Activation Checklist
Considerations for WhatsApp in Service Cloud
Set Up a WhatsApp Unified Messaging Channel
156
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced WhatsApp Channel
Cloud Capabilities
Important: Standard WhatsApp channels are scheduled for retirement in mid-2025 due to Available in: Lightning
changes in the WhatsApp API, and as of July 1, 2024, you can’t create new standard WhatsApp Experience. View required
editions.
channels. To avoid service interruptions, upgrade your standard WhatsApp channels to
enhanced channels before July 30, 2025. See Considerations for Upgrading or Migrating to This Standard
Enhanced WhatsApp. article and
Enhanced WhatsApp channels are built on our new conversation platform. The conversation platform applies to: enhanced
also houses Service Cloud Voice, Messaging for In-App and Web, and all other enhanced Messaging WhatsApp
channels
channels, such as Facebook Messenger. This shared platform has several benefits.
• When we roll out a new feature, it’s often shared across all channels on the conversation platform. This Messaging
Agents get a consistent experience, regardless of channel. article for In-App,
doesn’t Messaging
• These channels are designed to scale beyond the customer support use case. for Web,
apply to:
standard
Capability Standard WhatsApp Enhanced WhatsApp and
Setup and Routing enhanced
Facebook
Automated channel setup No Yes Messenger,
standard
Can upgrade from standard N/A Yes and
channels enhanced
Can migrate from an external Partially—Migrations from Yes SMS,
business service provider cloud-based implementations enhanced
Apple
aren’t supported.
Messages
Omni-Channel Flow routing Yes Yes for Business,
enhanced
Queue-based routing Yes Yes LINE, Bring
Enhanced routing No Yes Your Own
Channel,
Tab-based capacity Yes Yes and Bring
Your Own
Status-based capacity No Yes Channel for
Available with Sales Cloud Yes Yes CCaaS
Agent can start session Yes, via the Start Conversation Yes, via the Send Message
quick action (beta) global action
157
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced WhatsApp Channel
Cloud Capabilities
Customer Experience
Agent Experience
Content Sharing
158
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced WhatsApp Channel
Cloud Capabilities
GIFs Yes No
159
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced WhatsApp Channel
Cloud Capabilities
Automated Responses
After-hours response No No
Inactive conversation No No
SEE ALSO:
Considerations for Upgrading or Migrating to Enhanced WhatsApp
Create or Upgrade to an Enhanced WhatsApp Channel in Service Cloud
Set Up a WhatsApp Unified Messaging Channel
160
Provide Conversation Support with Messaging in Service Send Template-Based Automated Messages in WhatsApp
Cloud
Note: When you create a standard WhatsApp template in Setup, you must also select one of ten categories in the Template
Category field. This field merely helps you organize your templates in Salesforce. It isn’t related to the official WhatsApp categories,
and doesn’t affect the way that WhatsApp processes notifications based on the template.
161
Provide Conversation Support with Messaging in Service Send Template-Based Automated Messages in WhatsApp
Cloud
original WABA to the WABA associated with your enhanced channel. Template copying occurs on your channel’s record home page in
Setup, in the Message Templates section.
If you plan to migrate message templates from one WABA to another, keep these considerations in mind.
• If a template fails to be copied to the destination WABA that you specify, recreate the template in WhatsApp Business Manager.
• Buttons and dynamic footers aren’t supported in WhatsApp templates that are linked to a notification messaging component.
Remove them from the template in WhatsApp Business Manager. If a template contains buttons or a dynamic footer, those sections
aren’t visible or configurable in the Messaging Component Builder.
SEE ALSO:
Meta Documentation: Create message templates for your WhatsApp Business account
Meta Documentation: Template Categorization
Meta Documentation: Template Guidelines
162
Provide Conversation Support with Messaging in Service Test Your WhatsApp Channel in Service Cloud
Cloud
Important: Standard WhatsApp channels are scheduled for retirement in mid-2025 due to Available in: Lightning
changes in WhatsApp's API, and as of July 1, 2024, you can’t create new standard WhatsApp Experience. View required
editions.
channels. To avoid service interruptions, upgrade your standard WhatsApp channels to
enhanced channels before July 30, 2025. For help, see Considerations for Upgrading or This Standard
Migrating to Enhanced WhatsApp. article and
applies to: enhanced
Important: We highly recommend designating separate numbers for sandbox and
WhatsApp
production. A number can be associated with only one org at a time, and moving a number channels
from sandbox to production or sandbox to sandbox takes some time. Using separate numbers
makes your channel rollout easier and gives you more freedom to experiment in your sandbox This Messaging
in the future. article for In-App,
doesn’t Messaging
Action Instructions apply to: for Web,
standard
(Optional) Set up 1. Match your sandbox org licenses to your production org by refreshing and
Messaging in your your sandbox, creating a new sandbox, or using the license-matching enhanced
sandbox. Facebook
method.
Messenger,
2. Complete the steps in Get Started with Messaging in Service Cloud. standard
3. Create your WhatsApp channel. For standard channels, when you and
file your case with Salesforce Customer Support, request separate enhanced
numbers for sandbox and production. For enhanced channels, when SMS,
enhanced
you create your channel, just enter the number you designated for
Apple
sandbox testing.
Messages
for Business,
Test your channel in 1. Log into Salesforce as an agent. enhanced
sandbox or production.
2. From the app launcher, open the app that contains Messaging. This LINE, Bring
is usually the Service Console. Your Own
Channel,
3. In the Omni-Channel utility or sidebar, change your Omni-Channel and Bring
presence status so that you’re online and available to receive Your Own
messages. Channel for
4. From a separate WhatsApp account, send a message to the number CCaaS
associated with your channel.
5. Look for the incoming message in Omni-Channel. Click the check USER PERMISSIONS
mark icon to accept the message and open the chat window.
To send and receive
6. Exchange messages in the channel. Experiment with sending images, messages in Messaging:
files, and messaging components and test the auto-responses that • View Setup and
you’ve configured. Configuration
7. When you’re done, click End Chat. To end Messaging sessions:
• End Messaging Session
163
Provide Conversation Support with Messaging in Service Get Started with Apple Messages for Business in Service
Cloud Cloud
Action Instructions
(Optional) Switch from sandbox If you need to move your WhatsApp channel implementation or number from sandbox to production,
to production. here’s how. These steps also apply for a sandbox-to-sandbox move.
1. Create a change set to move your Messaging implementation from sandbox to production, or
manually repeat the setup steps in production.
2. If you couldn’t designate a separate number for your sandbox, move the number to a new
channel in production.
a. Standard channels: File a case with Salesforce Customer Support to move the number to a
new channel in production.
b. Enhanced channels: Designate a unique WABA for your sandbox and another for your
production org. In WhatsApp Business Manager, delete the phone number from the sandbox
org’s WABA and add the number to the production org’s WABA. This assigns the WABA a
new phone number ID that can be used in a new channel in production.
Refreshing a sandbox updates its org ID and therefore removes any enhanced WhatsApp channel’s
connection to its WhatsApp number. To associate the number with a new enhanced WhatsApp
channel in a different org, follow step 2b to delete the number from its current WABA and add it to
another WABA that you link to a new channel.
SEE ALSO:
Sandboxes: Staging Environments for Customizing and Testing
Learn About Apple Messages Create Your Channel Customize the Console Experience
Compare Messaging Channel Capabilities Turn On Messaging in Service Cloud on Add Messaging to the Service Console on
in Service Cloud on page 9 page 27 page 40
Plan Your Apple Messages for Business Create an Apple Messages for Business Give Users Access to Messaging in Service
Customer Journey on page 166 Channel in Service Cloud on page 173 Cloud on page 28
164
Provide Conversation Support with Messaging in Service Get Started with Apple Messages for Business in Service
Cloud Cloud
Contacting Customers in Apple Messages Customize the Messaging Opt-In and Set Up Routing for Messaging Channels in
for Business on page 167 Opt-Out Experience on page 283 Service Cloud on page 31
Creating Interactive Content for Apple Route Apple Messages Inquiries by Intent
Messages for Business on page 169 and Group on page 182
Considerations for Apple Messages for
Business in Service Cloud on page 171
Add Apple Pay Add Interactive Content Extend Your Channel with Automation
Add Apple Pay to a Messaging Channel on Interactive Messaging Components on page Send Automated Messages in Enhanced
page 179 287 Messaging Channels on page 406
Create and Send Payment Requests in Get to Know the Messaging Component Using Enhanced Bots in Messaging Channels
Messaging Sessions on page 360 Builder on page 302 on page 418
Set Up a Flow to Send Payment Requests in Create and Send Secure Forms in Messaging Create a Flow to Link Individuals to
Messaging Sessions on page 365 Sessions on page 347 Messaging Sessions
Create and Send Authentication Requests Automatically Trigger an Action Based on
in Messaging Sessions on page 354 Detected Keywords
Share External Apps in Messaging Sessions
on page 368
Privacy and Ethics in Messaging Help Customers in Your Channel Messaging for Developers
Protect Customer Data and Privacy in Enhanced Messaging Channel Activation Messaging Object Model
Service Cloud Messaging on page 447 Checklist on page 279 Salesforce Object Reference Guide
Block Sensitive Data in Messaging Test Your Apple Messages for Business
Accessing Messaging and Voice Channel in Service Cloud on page 185
Conversation Data Message with Customers in the Service
Console on page 460
Activating and Deactivating Messaging
Channels in Service Cloud on page 282
165
Provide Conversation Support with Messaging in Service Plan Your Apple Messages for Business Customer Journey
Cloud
What text-only reusable content do you want To show reps a list of text responses that they
service reps to be able to send to customers? can choose from, use quick text or suggested
replies. Quick text and suggested replies
standardize the content and tone of your
support team’s messages and save reps and
customers time. See:
• Standardize Responses with Quick Text
• Suggest Replies with Einstein Service Replies
and Reply Recommendations
166
Provide Conversation Support with Messaging in Service Contacting Customers in Apple Messages for Business
Cloud
167
Provide Conversation Support with Messaging in Service Contacting Customers in Apple Messages for Business
Cloud
This image shows Apple Messages for Business entry points in a mobile app, website, and email. These entry points include the Apple
Messages icon and custom text, such as Message Us.
SEE ALSO:
Apple Documentation: Entry Points Overview
Start a Messaging Session with a Customer
168
Provide Conversation Support with Messaging in Service Creating Interactive Content for Apple Messages for Business
Cloud
169
Provide Conversation Support with Messaging in Service Creating Interactive Content for Apple Messages for Business
Cloud
170
Provide Conversation Support with Messaging in Service Considerations for Apple Messages for Business in Service
Cloud Cloud
SEE ALSO:
Interactive Messaging Components
Get to Know the Messaging Component Builder
Send Images and Files in Messaging Sessions
Send Messaging Components in Messaging Sessions
171
Provide Conversation Support with Messaging in Service Considerations for Apple Messages for Business in Service
Cloud Cloud
Apple Messages for Business channels have these limitations related to sharing content.
• If a customer sends unsupported content such as an .mpeg file, an error message notifies agents that the customer sent a message
with unsupported content. Agents can ask the customer to share the information another way.
• When a customer sends an image, the agent sees a preview in the Service Console and can download the image. File previews aren’t
supported, but agents can download files.
• Agents see customers’ tapback reactions, but can’t add their own.
172
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
This Enhanced
article Apple
applies to: Messages
for Business
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
173
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
Create a Messaging channel where your support team helps customers using Apple Messages for
USER PERMISSIONS
Business. Customers message your business from the Apple Messages app, and service reps reply
from the Service Console. To set up Messaging:
• Configure Messaging
To authorize Apple
Messages for Business:
• Customize Application
AND
Manage Auth. Providers
174
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
4. In Apple Business Register, log in and select Messages for Business Accounts.
5. Create an Apple Messages for Business account.
a. When prompted for an account type, expand the advanced options and select Internal test account instead of Commercial
account.
b. In the Messaging Platform section, select Salesforce Messaging. If a different service provider is listed, remove it and add
Salesforce Messaging.
6. Wait for Apple to approve your account changes, which can take up to a day. When you see a Test your messaging service
provider connection link in your account settings in Apple Business Register, your changes are approved.
7. Click Test your messaging service provider connection.
8. To finish creating your channel in Salesforce, click Connect.
175
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
4. In the Automated Responses section, add language-specific consent keywords and responses and save your changes.
5. Create a library of messaging components that service reps can send to customers. To meet Apple standards, your channel must
include some interactive content via messaging components. For help with this and other customizations, such as sensitive data
rules and auto-responses, see Increase Messaging Productivity on page 273.
176
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
2. Submit your video to your Salesforce account team, who then share it with Apple for review.
3. If you receive feedback, address it and send an updated video to your Salesforce account team.
Tip: If you created your test channel in a sandbox, use a change set to move your messaging configurations, such as messaging
components, to production.
1. In Setup, enter Messaging Settings in the Quick Find box and select Messaging Settings.
2. In the Channels section, click New Channel, click Start, and then select Apple Messages for Business.
3. Click Go to Apple Business Register.
4. In Apple Business Register, log in and select Messages for Business Accounts.
5. Create a Messages for Business account, or select one to update. When prompted for an account type, leave Commercial account
selected.
6. Complete or update your account details.
a. Click Get started, and review and accept the Messages for Business policies.
b. Enter your details in the Account Applicant section, and select the commercial account.
c. Provide your business’s contact information and location details.
d. Enter a response time, which is an estimate of your response time to customer messages.
e. Set the response hours, which define the hours during which your business actively responds to messages.
f. Review and verify the compliance requirements.
g. Upload your brand logo as a 1,024-pixel square.
h. Upload a wide logo and select your colors, and review your wide logo.
177
Provide Conversation Support with Messaging in Service Create an Apple Messages for Business Channel in Service
Cloud Cloud
Stage 7: Go Live
After the experience review is complete, activate your channel in Setup and then activate your entry points. During this phase, you can
request help from Apple with any final account adjustments.
1. In Setup, enter Messaging Settings in the Quick Find box and select Messaging Settings.
2. Click the name of your Apple Messages for Business channel.
3. Click Activate Channel at the top of the channel page.
4. Review the activation checklist and verify that you completed it, and then click Activate.
5. Activate any entry points that you planned to use. For example, implement Message Suggest or add an Apple Messages link to your
website or mobile app. For help, see Ready to Launch in the Apple documentation.
You’ve done it! After your channel and entry points are activated, inquiries sent to your business in Apple Messages are routed to your
support team.
178
Provide Conversation Support with Messaging in Service Add Apple Pay to a Messaging Channel
Cloud
179
Provide Conversation Support with Messaging in Service Add Apple Pay to a Messaging Channel
Cloud
Important: Merchant domains in Apple expire about every six months. Apple notifies you when a domain is about to expire. For
Apple Pay to continue working in your Apple Messages for Business channel, you must repeat this domain verification process
periodically, before your domain expires.
180
Provide Conversation Support with Messaging in Service Add Apple Pay to a Messaging Channel
Cloud
181
Provide Conversation Support with Messaging in Service Route Apple Messages Inquiries by Intent and Group
Cloud
This Messaging
Step 1: Set Up Your Links article for In-App,
doesn’t Messaging
Configure a link that leads to your Apple Messages for Business channel, and add the link to a
apply to: for Web,
website or mobile app. standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
182
Provide Conversation Support with Messaging in Service Route Apple Messages Inquiries by Intent and Group
Cloud
For details, see the Apple documentation: Group and Intent ID-based Routing.
b. Add flow decisions that reference these variables. For example, this decision is based on the intentId variable. The Default
Outcome can handle scenarios where the intentId is blank.
183
Provide Conversation Support with Messaging in Service Route Apple Messages Inquiries by Intent and Group
Cloud
When an Apple Messages for Business session is created in your channel in the future, it will be routed according to your flow’s logic.
184
Provide Conversation Support with Messaging in Service Test Your Apple Messages for Business Channel in Service
Cloud Cloud
This Enhanced
Action Instructions article Apple
(Optional) Set up applies to: Messages
1. Match your sandbox org licenses to your production org by refreshing for Business
Messaging in your your sandbox, creating a new sandbox, or using the license-matching
sandbox. channels
method.
This Messaging
2. Complete the steps in Get Started with Messaging in Service Cloud.
article for In-App,
3. Create your Apple Messages for Business channel, using the account doesn’t Messaging
you designated for sandbox testing. apply to: for Web,
standard
Test your channel in and
1. Log into Salesforce as an agent.
sandbox or production. enhanced
2. From the app launcher, open the app that contains Messaging. This WhatsApp,
is usually the Service Console. standard
3. In the Omni-Channel utility or sidebar, change your Omni-Channel and
presence status so that you’re online and available to receive enhanced
Facebook
messages.
Messenger,
4. From a personal Apple Messages account, send a message to the standard
account associated with your channel. and
5. Look for the incoming message in Omni-Channel. Click the check enhanced
mark icon to accept the message and open the chat window. SMS,
enhanced
6. Exchange messages in the channel. Experiment with sending images, LINE, Bring
files, and messaging components, and test the auto-responses that Your Own
you’ve configured. Channel,
7. When you’re done, click End Chat. and Bring
Your Own
(Optional) Migrate Create a change set to move any Messaging configurations, such as Channel for
your changes from messaging components, to production or to another sandbox. Or, CCaaS
sandbox to manually repeat the setup steps in production, making sure not to use
production. the Apple Messages for Business account that you designated for sandbox USER PERMISSIONS
testing.
To send and receive
messages in Messaging:
• View Setup and
Configuration
To end Messaging sessions:
• End Messaging Session
185
Provide Conversation Support with Messaging in Service Create a LINE Messaging Channel in Service Cloud
Cloud
This Enhanced
article LINE
applies to: channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
Bring Your
Own
Channel,
and Bring
Your Own
Channel for
CCaaS
186
Provide Conversation Support with Messaging in Service Create a LINE Messaging Channel in Service Cloud
Cloud
Create an enhanced Messaging channel in Salesforce that's connected to the LINE messaging app,
USER PERMISSIONS
widely used in Japan. With a LINE channel, your support team can address inquiries sent over LINE
directly from the Service Console. To set up Messaging:
When an end user sends your business a message in LINE, Omni-Channel routes the message to a • Configure Messaging
bot or agent in Omni-Channel according to your preferences. Agents can send and receive images, To view Messaging
emoji, stickers, links, videos, and questions with clickable options. And admins can easily move LINE channels:
channels between Salesforce orgs, such as from a sandbox to production. • View Setup and
Configuration
To create Messaging
channels:
• System Administrator
AND Configure
Messaging
OR
Configure Messaging
AND Customize
Application AND
Manage Auth. Providers
AND View Setup and
Configuration AND
Modify All Data
187
Provide Conversation Support with Messaging in Service Step 1: Set Up a LINE Official Account
Cloud
IN THIS SECTION:
Considerations for LINE in Service Cloud
LINE lets businesses communicate with users of the LINE messaging app. Review important considerations for creating and managing
LINE channels in Service Cloud.
3. In your account settings, copy the following values. You’ll need them when you set up your channel in Salesforce.
a. Channel Name: Equivalent to your Account Name in the LINE Official Account Manager
b. Channel ID: Found in the Messaging API section
c. Channel Secret: Found in the Messaging API section
4. Issue a channel access token in the LINE Developers Console. The token is used to verify that Salesforce has permission to use the
channel.
a. In the LINE Official Account Manager, go to the Messaging API section of your account settings.
b. Click the link to open the LINE Developers Console, and click the Messaging API tab.
c. In the Channel Access Token field, issue your token and then copy it. You’ll need it when you set up your channel in Salesforce.
188
Provide Conversation Support with Messaging in Service Step 3: Connect LINE to Salesforce
Cloud
7. On the final screen, click Go to Channel Settings to add your routing preferences. If you already closed the setup flow, click your
channel's name on the Messaging Settings page.
a. On the channel record home page, click Edit.
b. In the Omni-Channel Routing section, select a routing type. Omni-Flow lets you route messages using an Omni-Channel flow,
and supports bots. Omni-Queue lets you route using a queue and routing configuration.
c. If you selected the Omni-Flow routing type, select a flow in the Flow Definition field and a back-up queue in the Fallback Queue
field.
189
Provide Conversation Support with Messaging in Service Step 4: Complete the Connection to LINE
Cloud
2. In a separate tab, go to the LINE Developers Console and find the Webhook URL field on the Messaging API tab.
While this field is also visible in the LINE Official Account Manager, the Developers Console contains additional settings that you
must update.
190
Provide Conversation Support with Messaging in Service What's Next?
Cloud
What's Next?
When your channel is active, LINE messages are routed to your support team according to the queue or Omni-Channel flow that you
selected. Your work doesn’t need to end there, though. To get more out of your LINE channel, explore these resources.
• Increase Messaging Productivity on page 273
• Work with Messaging Data on page 446
• Message with Customers in the Service Console on page 460
Tip: If your channel is active but you’re not able to send or receive messages, double-check that you completed Step 4: Complete
the Connection to LINE. If this step isn’t completed, your channel won't function even if it's active.
191
Provide Conversation Support with Messaging in Service Considerations for LINE in Service Cloud
Cloud
Limitations
• The unsend feature in LINE isn’t supported in Salesforce. If an end user unsends a message in a LINE conversation, the message is
still visible in the conversation transcript in Salesforce.
192
Provide Conversation Support with Messaging in Service Create a Facebook Messenger Channel in Service Cloud
Cloud
This Standard
article and
applies to: enhanced
Facebook
Messenger
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
193
Provide Conversation Support with Messaging in Service Create a Facebook Messenger Channel in Service Cloud
Cloud
Let customers communicate with your business using Facebook Messenger. Customers send
USER PERMISSIONS
messages to your Facebook page, and agents reply from the Service Console. To control how
incoming messages are routed, link an Omni-Channel flow or routing configuration to your Facebook To set up Messaging:
Messenger channel. • Configure Messaging
Important: Standard Facebook Messenger channels are scheduled for retirement, and we’re To view Facebook
limiting the ability to create standard channels. To avoid service interruptions, upgrade your Messenger channels:
• View Setup and
standard Facebook Messenger channels to enhanced channels before February 14, 2026.
Configuration
Enhanced Facebook Messenger offers many of the standard Facebook Messenger features
you love on page 198 plus session transfers, interactive messaging components, and enhanced To create Facebook
bot support. See Upgrading from Standard to Enhanced Messaging on page 275. Messenger channels
• System Administrator
Before you start, you need a Facebook account, Facebook username and password, and a Facebook AND Configure
page. Use this information to authenticate, or log in, to Facebook so that you can select the Facebook Messaging
pages to use with Messaging. You must be the administrator of the Facebook page to add the page OR
to Messaging.
Configure Messaging
1. From Setup in Lightning Experience, enter Messaging in the Quick Find box, and select AND Customize
Messaging Settings. Application AND
Manage Auth. Providers
2. In the Channels section, click New Channel > Start > Facebook Messenger. AND View Setup and
3. Choose a channel type of Enhanced (recommended) or standard. Because new features are Configuration AND
available exclusively in enhanced channels going forward, we no longer recommend creating Modify All Data
standard channels. To authorize Facebook:
If you don’t see the option to select a type, the channel you’re creating will be an enhanced • Customize Application
AND Manage Auth.
channel.
Providers
4. Follow the prompts to log into Facebook and select a Facebook page to use with Messaging.
You can select only one Facebook page at a time.
194
Provide Conversation Support with Messaging in Service Create a Facebook Messenger Channel in Service Cloud
Cloud
7. Click Next.
8. Choose how to route incoming messages to agents.
a. To set up a basic routing solution from scratch, select Create a new queue. The flow walks you through creating a queue and
routing configuration and adjusting agent messaging workload.
b. To use an existing queue or an Omni-Channel flow, which supports more complex routing logic and lets you route to bots, select
Set up routing later.
11. Now that you’ve set up your channel, take advantage of other features to customize the messaging experience for agents and
customers. Set up notifications for your channel, customize your opt-in and opt-out keywords, create custom auto-responses, add
an Einstein bot, and more. See Increase Messaging Productivity.
IN THIS SECTION:
Considerations for Facebook Messenger in Service Cloud
Review these considerations before creating a standard or enhanced Facebook Messenger channel.
Compare Standard and Enhanced Facebook Messenger Channel Capabilities
View a side-by-side comparison of standard and enhanced Facebook Messenger channels. Going forward, new features are available
exclusively in enhanced Facebook Messenger channels.
Test Your Facebook Messenger Channel in Service Cloud
Test your Facebook Messenger channel to ensure that it’s working the way you expect. Using a sandbox is optional, but a good idea.
Move Your Messaging Channels from Salesforce Classic to Lightning Experience
Messaging in Salesforce Classic depends on the LiveMessage managed package, while Messaging in Lightning Experience uses
standard Salesforce objects and features. Learn how to move your SMS or Facebook Messenger channels to Lightning Experience.
195
Provide Conversation Support with Messaging in Service Considerations for Facebook Messenger in Service Cloud
Cloud
196
Provide Conversation Support with Messaging in Service Considerations for Facebook Messenger in Service Cloud
Cloud
Content Sharing
You can send several types of content in Facebook Messenger channels. For a full list, see Compare Standard and Enhanced Facebook
Messenger Channel Capabilities. Enhanced Facebook Messenger channels support more content types than standard Facebook Messenger
channels.
SEE ALSO:
Upgrading from Standard to Enhanced Messaging
What’s Service Cloud Messaging?
Service Cloud Messaging Limits and Considerations
Test Your Facebook Messenger Channel in Service Cloud
197
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced Facebook Messenger
Cloud Channel Capabilities
Important: Standard Facebook Messenger channels are scheduled for retirement, and we’re Available in: Lightning
limiting the ability to create standard channels. To avoid service interruptions, upgrade your Experience. View required
editions.
standard Facebook Messenger channels to enhanced channels before February 14, 2026.
Enhanced Facebook Messenger offers many of the standard Facebook Messenger features This Standard
you love plus session transfers, interactive messaging components, and enhanced bot support. article and
See Upgrading from Standard to Enhanced Messaging on page 275. applies to: enhanced
Enhanced Facebook Messenger channels are built on our new conversation platform. The Facebook
Messenger
conversation platform also houses Service Cloud Voice, Messaging for In-App and Web, and all
channels
other enhanced Messaging channels, such as WhatsApp. This shared platform has several benefits.
• When we roll out a new feature, it’s often shared across all channels on the conversation platform. This Messaging
Agents get a consistent experience, regardless of channel. article for In-App,
doesn’t Messaging
• These channels are designed to scale beyond the customer support use case. for Web,
apply to:
standard
Capability Standard Facebook Enhanced Facebook and
Messenger Messenger enhanced
Setup and Routing WhatsApp,
standard
Automated channel setup No Yes and
enhanced
Can upgrade from standard N/A Yes SMS,
channels enhanced
Omni-Channel Flow routing Yes Yes Apple
Messages
Queue-based routing Yes Yes for Business,
enhanced
Enhanced routing No Yes LINE, Bring
Tab-based capacity Yes Yes Your Own
Channel,
Status-based capacity No Yes and Bring
Your Own
Available with Sales Cloud Yes Yes
Channel for
Messaging Session Start and End CCaaS
Agent can start session Yes, via the Start Conversation Yes, via the Send Message
quick action (beta) global action
198
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced Facebook Messenger
Cloud Channel Capabilities
Customer Experience
Agent Experience
199
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced Facebook Messenger
Cloud Channel Capabilities
Content Sharing
Images Yes, up to 25 MB: .jpg, .jpeg, .png Yes, up to 25 MB: .jpg, .jpeg, .png, .bmp, .tiff
Automated Responses
Inactive conversation No No
200
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced Facebook Messenger
Cloud Channel Capabilities
SEE ALSO:
Upgrading from Standard to Enhanced Messaging
Considerations for Facebook Messenger in Service Cloud
Create a Facebook Messenger Channel in Service Cloud
201
Provide Conversation Support with Messaging in Service Test Your Facebook Messenger Channel in Service Cloud
Cloud
Important: Standard Facebook Messenger channels are scheduled for retirement, and we’re Available in: Lightning
limiting the ability to create standard channels. To avoid service interruptions, upgrade your Experience. View required
editions.
standard Facebook Messenger channels to enhanced channels before February 14, 2026.
Enhanced Facebook Messenger offers many of the standard Facebook Messenger features This Standard
you love on page 198 plus session transfers, interactive messaging components, and enhanced article and
bot support. See Upgrading from Standard to Enhanced Messaging on page 275. applies to: enhanced
We recommend creating a separate Facebook page for testing purposes that you associate with a Facebook
Messenger
sandbox. This way, even after your channel is live in production, you can use your sandbox to test
channels
further changes.
A Facebook page can technically be associated with messaging channels in more than one Salesforce This Messaging
org. However, we don’t recommend linking the same Facebook page to both your sandbox and article for In-App,
doesn’t Messaging
production orgs. Doing so can lead to duplicate auto-responses and a confusing customer
apply to: for Web,
experience.
standard
and
Action Instructions enhanced
(Optional) Set up WhatsApp,
1. Contact your account executive for the Digital Engagement add-on
Messaging in your standard
SKU. and
sandbox.
2. Match your sandbox org licenses to your production org by refreshing enhanced
your sandbox, creating a new sandbox, or using the license-matching SMS,
method. enhanced
Apple
3. Complete the steps in Get Started with Messaging in Service Cloud.
Messages
for Business,
Test your channel in 1. Log into Salesforce as an agent. enhanced
sandbox or production. LINE, Bring
2. From the app launcher, open the app that contains Messaging. This
Your Own
is usually the Service Console.
Channel,
3. In the Omni-Channel utility or sidebar, change your Omni-Channel and Bring
presence status so that you’re online and available to receive Your Own
messages. Channel for
4. In another browser, log into a Facebook account that’s not associated CCaaS
with your channel.
5. In Facebook Messenger, send a message to the Facebook page that USER PERMISSIONS
is associated with your channel.
To send and receive
6. Look for the incoming message in Omni-Channel. Click the check messages in Messaging:
mark icon to accept the message and open the chat window. • View Setup and
Configuration
7. Exchange messages in the channel. Experiment with sending images,
files, and quick text, and test the auto-responses that you’ve To end Messaging sessions:
configured. • End Messaging Session
202
Provide Conversation Support with Messaging in Service Test Your Facebook Messenger Channel in Service Cloud
Cloud
Action Instructions
(Optional) Switch from sandbox If you need to move your Facebook Messenger channel implementation or number from sandbox
to production. to production, or from sandbox to another sandbox, here’s how.
1. Create a change set to move your Messaging implementation from sandbox to production, or
manually repeat the setup steps in production.
2. If you didn’t designate a separate Facebook page for your sandbox, move the page to production.
a. Log in to Facebook and navigate to the Facebook page that you want to migrate.
b. Select Settings > Advanced Messaging.
c. Under Connected Apps, select Remove next to the Salesforce Service Cloud listing.
d. Log in to your Salesforce production org.
e. In Setup, enter Messaging in the Quick Find box, and select Messaging Settings.
f. Click New Channel and add the Facebook page as a channel.
SEE ALSO:
Sandboxes: Staging Environments for Customizing and Testing
Change Sets
203
Provide Conversation Support with Messaging in Service Move Your Messaging Channels from Salesforce Classic to
Cloud Lightning Experience
204
Provide Conversation Support with Messaging in Service Move Your Messaging Channels from Salesforce Classic to
Cloud Lightning Experience
a. Follow the instructions in Omni-Channel for Administrators. Assign the Messaging Session object to your queue.
Note: The LiveMessage session (Installed Package: LiveMessage for Salesforce) object is a remnant of Classic LiveMessage.
You can ignore it.
7. Convert your automated triggered messages to messaging notifications. For instructions, see Set Up Automatic Message Notifications.
8. Copy or document any processes and data that reference classic LiveMessage’s custom objects. While this step isn't required, the
information can be useful. After messaging traffic is cut over and your classic LiveMessage licenses expire, access to its custom
objects, data, and associated processes is blocked.
9. Important: Everything beyond this point can affect your service. Proceed only when you’re ready to fully migrate to Messaging
in Lightning Experience.
File a new case in Salesforce Help to switch SMS traffic from classic LiveMessage to Messaging in Lightning Experience.
Include this information in your case:
• Topic: Service Cloud
• Category: Messaging
• Subject: Lightning Migration for <Organization Name>
• Org ID of the org that you want to migrate. Specify that you must schedule the cutover of your numbers from classic LiveMessage
to Lightning Experience.
• Every phone number that you want to migrate, including long code and short code numbers. Indicate whether you plan to seek
exceptions or want to enable more numbers.
When your case is accepted, a support agent offers you a few time slot options for the conversion. When the conversion occurs
during your scheduled time slot, messaging traffic moves to your new Lightning Omni-Channel queue. It can take up to 4 hours for
carriers to accept the traffic routing updates. In the meantime, check both consoles for message delivery.
b. Associate your Facebook page with your Lightning org. For help, see Create a Facebook Messenger Channel in Service Cloud.
11. Change your Omni-Channel configuration. If you already use Omni-Channel in Salesforce Classic, update your queue configurations
and swap out LiveMessage Session (Installed Package: LiveMessage for Salesforce) for Messaging Session. Omni-Channel doesn't
work properly if you have both Salesforce Classic and Lightning Experience configured to use it.
SEE ALSO:
Compare Messaging Channel Capabilities in Service Cloud
What’s Service Cloud Messaging?
205
Provide Conversation Support with Messaging in Service Set Up SMS Channels in Service Cloud
Cloud
206
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced SMS Channel Capabilities
Cloud
SEE ALSO:
Upgrading from Standard to Enhanced Messaging
Update Service Cloud Messaging Channel Settings
Customize Auto-Responses in Service Cloud Messaging Channels
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love plus session transfers and enhanced bot support. See This Standard
Upgrading from Standard to Enhanced Messaging on page 275. article and
Enhanced SMS channels are built on our new conversation platform. The conversation platform applies to: enhanced
also houses Service Cloud Voice, Messaging for In-App and Web, and all other enhanced Messaging SMS
channels
channels, such as WhatsApp. This shared platform has several benefits.
• When we roll out a new feature, it’s often shared across all channels on the conversation platform. This Messaging
Agents get a consistent experience, regardless of channel. article for In-App,
doesn’t Messaging
• These channels are designed to scale beyond the customer support use case. for Web,
apply to:
standard
Capability Standard SMS Enhanced SMS and
Provisioning Methods enhanced
WhatsApp,
Long codes Yes Yes standard
and
Toll-free long codes (US) Yes Yes enhanced
Toll-free long codes (Canada) Yes Yes Facebook
Messenger,
Short codes (US) Yes Yes enhanced
Apple
Short codes (Canada) Yes Yes
Messages
Setup and Routing for Business,
enhanced
Automated channel setup No (must create a case) No (must create a case) LINE, Bring
Your Own
Can upgrade from standard N/A Yes
Channel,
channels
and Bring
Omni-Channel Flow routing Yes, in Lightning Experience Yes Your Own
only Channel for
CCaaS
Queue-based routing Yes Yes
207
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced SMS Channel Capabilities
Cloud
Agent can start session Yes, via the Start Conversation quick action Yes, via the Send Message global action
(beta)
Available session statuses New, Waiting, Active, Ended New, Consent, Waiting, Active, Inactive,
Ended, Error
Customer Experience
Agent Experience
208
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced SMS Channel Capabilities
Cloud
Content Sharing
Text Yes. For short codes: 160 characters. For long Yes. For short codes: 160 characters. For long
codes and toll-free long codes: 912 codes and toll-free long codes: 912
characters, or 396 characters if the message characters, or 396 characters if the message
includes special characters. includes special characters.
Images* Yes, except for short codes: .jpg, .jpeg, .png. Yes, except for short codes: .jpg, .jpeg, .png.
Limits vary by carrier: Limits vary by carrier:
• AT&T: 1 MB • AT&T: 1 MB
• T-Mobile: 1 MB • T-Mobile: 1 MB
• Verizon: 1.2 MB • Verizon: 1.2 MB
• Sprint: 2 MB • Sprint: 2 MB
• US cellular: 500 KB • US cellular: 500 KB
PDFs No No
Audio files No No
Video files No No
209
Provide Conversation Support with Messaging in Service Compare Standard and Enhanced SMS Channel Capabilities
Cloud
Automated Responses
Inactive conversation No No
* Sending images is supported only in standard and enhanced SMS channels associated with US and Canada long codes and toll-free
long codes. It isn’t supported for short codes.
SEE ALSO:
Upgrading from Standard to Enhanced Messaging
210
Provide Conversation Support with Messaging in Service SMS Terminology in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article and
applies to: enhanced
SMS
Message Types channels
Person-to-Person (P2P) Messaging
This
P2P describes conventional two-way SMS or MMS messaging between individuals. P2P for In-App,
article
messaging is lower-volume. The expectation is for one outbound message to every inbound Messaging
doesn’t
message, with no more than a 3-to-1 ratio. P2P messages typically use long codes, though this apply to: for Web,
practice can vary by country. standard
Application-to-Person (A2P) and
A2P generally refers to anything that isn’t considered P2P, including chatbots and automated enhanced
campaigns. Sometimes A2P messaging is referred to as enterprise or business messaging. A2P WhatsApp,
standard
messaging has higher expected volumes than P2P and is typically outbound. However,
and
depending on the number, A2P can include two-way conversational messaging. A2P messages
enhanced
typically use short codes (toll-free is available for the U.S. only). Account permissions limit
Facebook
throughput for A2P messages and rate limits apply.
Messenger,
enhanced
Apple
Message Use Case
Messages
The message use case is relevant when determining a solution that is right for your company. for Business,
Inbound enhanced
LINE, Bring
A message sent from a customer to your company’s number.
Your Own
Inbound-Initiated Channel,
A conversation initiated by a customer. and Bring
Outbound Your Own
A message sent from your company’s number to a customer. Outbound messages can be Channel for
CCaaS
initiated by an agent, sent through a campaign, initiated by a chatbot, and triggered by an
application.
Outbound-Initiated
A conversation initiated by an agent.
Automated Outbound
Bulk or outbound messages triggered by an action in Salesforce or with a bot. A Salesforce admin can trigger an outbound message
based on a record change in their org. Examples include messages alerting customers of changes to their case or order, messages
acknowledging a request for more information from a new lead, and service alerts.
Outbound Campaign (Broadcast)
A message sent to a list, most commonly used for service-related initiatives. These messages are medium-to-high volume and
typically one way, although the product allows outbound messaging to convert to a conversation when a recipient replies to the
message.
211
Provide Conversation Support with Messaging in Service SMS Terminology in Service Cloud
Cloud
Number Types
Your company can send messages using several different types of numbers. It's important to understand these terms, particularly because
several of them overlap with each other conceptually. For instance, a toll-free number is a type of long code.
Long Codes
These numbers are standard phone numbers like landlines, mobile numbers, and toll-free numbers that can be different lengths
based on the country. Typically, long codes are used for interactive conversations or P2P messaging.
A2P Long Code
A number used specifically for A2P communication.
Short Codes
These numbers are shorter than a long code, between 4–8 digits depending on the country of origin. Short codes are only supported
in the US and Canada. These codes are used for sending high-volume A2P messages, such as automated campaigns, surveys, and
announcements. They can support message volumes of 10–500 messages/second. The specific volume limit is country-specific and
doesn’t translate to the platform throughput. Short codes are registered with the local carrier for use case approval.
Toll-Free Number
A type of long code that uses a toll-free number.
Mobile Number (or MSISDN)
A phone number used to identify a mobile subscriber.
Other Terms
Short Message Service (SMS)
SMS messages are sent over a cellular network and support text content. An SMS message can contain 140 bytes of content.
Multimedia Messaging Service (MMS)
MMS messages are sent over a cellular network and can be used to send pictures, video, audio, and phone contacts.
GSM-7
This type of character encoding requires 7 bits per character.
Unicode
This type of character encoding is a more flexible and powerful standard than GSM-7. UTF-8 is the most common unicode encoding
type. It uses 1 byte for the first 128 characters and up to 4 bytes for other characters.
Segmentation
If an SMS message is more than 140 bytes, it is segmented into multiple messages. In this case, each segmented message can contain
up to 133 bytes. The remaining 7 bytes are used for the header that describes the segment order. Up to six segmented messages
can be grouped together.
212
Provide Conversation Support with Messaging in Service SMS Number Types in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article and
Review the terms on page 211 and filter guidelines on page 215 before continuing. applies to: enhanced
SMS
For number availability by country basis, see Messaging Regulations by Country. Salesforce will channels
text-enable numbers on behalf of its customers. Depending on the country, customers can use
their existing number or a number provided by Salesforce. This Messaging
article for In-App,
The following table details the number type available for the most common use cases. Messaging
doesn’t
apply to: for Web,
Standard Toll-Free Short Codes A2P Long Mobile/MSISDN standard
Long Codes Long Codes Codes (Salesforce-Provided) and
(Salesforce-Provided) enhanced
United States Inbound-Initiated Inbound-Initiated Inbound-Initiated Not Available Not Available WhatsApp,
standard
Outbound-Initiated Outbound-Initiated Outbound-Initiated and
enhanced
Automated Automated
Facebook
Outbound Outbound Messenger,
Campaigns enhanced
Apple
Canada Messages
Inbound-Initiated Inbound-Initiated Inbound-Initiated Not Available Not Available
for Business,
Outbound-Initiated Outbound-Initiated Outbound-Initiated enhanced
Automated LINE, Bring
Outbound Your Own
Channel,
Campaigns and Bring
Your Own
Other Not Available Not Available Not Available Inbound-Initiated Inbound-Initiated Channel for
Countries CCaaS
Outbound-Initiated Outbound-Initiated
Automated Automated
Outbound Outbound
Campaigns
The following table provides more details about the different number types.
213
Provide Conversation Support with Messaging in Service SMS Number Types in Service Cloud
Cloud
Throughput 1–2 msgs/sec 10–100 msgs/sec (U.S. only), all 10–500 msgs/sec
1:1 message ratio; 3:1 max* other follow Long Code P2P
214
Provide Conversation Support with Messaging in Service SMS Carrier Filtering in Service Cloud
Cloud
215
Provide Conversation Support with Messaging in Service SMS Carrier Filtering in Service Cloud
Cloud
216
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
This Standard
article and
applies to: enhanced
SMS
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
217
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
Let customers communicate with your support team using SMS text messaging. Customers can
USER PERMISSIONS
send text messages to a ten-digit long code or toll-free long code number owned by your company,
and agents reply from the Service Console. To set up Messaging:
• Configure Messaging
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the
ability to create standard channels. To avoid service interruptions, upgrade your standard To view SMS channels:
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many • View Setup and
Configuration
of the standard SMS features you love on page 207 plus session transfers and enhanced bot
support. See Upgrading from Standard to Enhanced Messaging on page 275. To create SMS channels:
• System Administrator
Note: SMS channels are either part of the services branded as standard Messaging or AND Configure
Enhanced Messaging. Enhanced Messaging features are provided using infrastructure different Messaging
from standard Messaging. Any service level commitments and any security, privacy, data OR
storage or processing locations or data recovery measures that are specific to standard
Configure Messaging
Messaging may be different for Enhanced Messaging, and such information for Enhanced AND Customize
Messaging is as described in the applicable Trust and Compliance Documentation. Enhanced Application AND
Messaging features and functionality may also vary from standard Messaging features and Manage Auth. Providers
functionality. Enhanced Messaging and standard Messaging are subject to the relevant AND View Setup and
Documentation and all terms on your company’s order form for Digital Engagement. Configuration AND
Modify All Data
SMS long code messaging is available in Australia, Austria, Belgium, Brazil, Canada, Denmark, Finland,
France, Germany, Hong Kong, Hungary, Ireland, Malaysia, Norway, the Philippines, Poland, Portugal,
Singapore, Spain, Sweden, Switzerland, Taiwan, the United Kingdom, and the United States.
You can use most existing US or Canadian numbers for long code SMS channels, or you can request a new in-country long code number
from Salesforce. Either way, to create your channel, you must file a case with Salesforce Customer Support.
Here’s what to expect from the setup process:
218
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
a. From Setup in Lightning Experience, in the Quick Find box, enter Messaging, and then select Messaging Settings.
b. In the Channels section, click New Channel, and then click Start.
c. Click SMS Text Messaging, and then select a channel type of Enhanced.
Because new features are available exclusively in enhanced channels going forward, we no longer recommend creating standard
channels.
d. Download and complete the LOA. In your LOA, provide the phone number you want to use. The LOA lets Salesforce enable your
phone number for your channel.
e. Click Finish to end the setup flow.
3. Request the creation of your SMS channel by filing a case with Salesforce.
a. In Salesforce Help, click Contact Support in the top left corner. Log in, if needed.
b. On the Support home page, click Create a Case > Product or Technical Support.
c. Provide these details in your case.
Use an existing number (US and Canada only) Request a new number (supported countries only)
219
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
7. When you receive a confirmation email from Salesforce that your channel is ready, go to the Messaging Settings page in Setup. Find
your channel in the list, and then customize its settings and auto-responses.
Important: If you ask Salesforce to enable an existing phone number for use with Messaging, phone numbers are activated after
you complete the Messaging setup instructions. Not all phone numbers can be enabled. When Salesforce receives your signed
Letter of Authorization, your phone number will be enabled within 3 business days for 1-800 numbers and within 1 business day
for all other numbers.
Registering a new phone number in the US and Canada can take 1-2 weeks for toll-free numbers, and 1-4 weeks for 10-digit long
codes. While Salesforce Customer Support can provide new toll-free and long code numbers, it has no control over number
registration.
IN THIS SECTION:
Considerations for Long Codes in Service Cloud
Use text messaging to help agents connect with customers even when they’re on the go. Review these considerations before setting
up an SMS channel for a ten-digit long code or toll-free long code number.
SMS Regulations by Country
Regulations for SMS communication differ by country and carrier. Before you set up an SMS channel in Service Cloud Messaging,
review your country’s messaging regulations to avoid fines or blocked messages.
220
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
Content Sharing
You can send several types of content in SMS channels that are associated with a long code phone number. For a full list with limits, see
Compare Standard and Enhanced SMS Channel Capabilities.
221
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
• If you didn’t create standard Messaging channels before the Summer ’24 release, you can’t create standard SMS channels. All SMS
channels that you create are enhanced channels.
• If you have one or more standard SMS channels, you can convert them to enhanced channels in a simple upgrade process. Upgrading
is a one-way move, so you can’t change an enhanced channel to a standard channel. It’s also okay to have both standard and
enhanced channels in Salesforce.
• Currently, it’s not possible to migrate an enhanced SMS channel to a Unified Messaging channel.
SEE ALSO:
Upgrading from Standard to Enhanced Messaging
Service Cloud Messaging Limits and Considerations
What’s Service Cloud Messaging?
222
Provide Conversation Support with Messaging in Service Create SMS Long Code Channels in Service Cloud
Cloud
223
Provide Conversation Support with Messaging in Service Create SMS Short Code Channels in Service Cloud
Cloud
This Standard
article and
applies to: enhanced
SMS
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
224
Provide Conversation Support with Messaging in Service Create SMS Short Code Channels in Service Cloud
Cloud
Use short code phone numbers to send recurring messages and one-time alerts to your US and
USER PERMISSIONS
Canadian customers. When customers respond, they can have two-way conversations with support
agents. Short codes have high throughput, which means you can send high volumes of one-to-one To set up Messaging:
messages. • Configure Messaging
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the To view SMS channels:
ability to create standard channels. To avoid service interruptions, upgrade your standard • View Setup and
Configuration
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot To create SMS channels:
support. See Upgrading from Standard to Enhanced Messaging on page 275. • System Administrator
AND Configure
Note: SMS channels are either part of the services branded as standard Messaging or Messaging
Enhanced Messaging. Enhanced Messaging features are provided using infrastructure different OR
from standard Messaging. Any service level commitments and any security, privacy, data
Configure Messaging
storage or processing locations or data recovery measures that are specific to standard AND Customize
Messaging may be different for Enhanced Messaging, and such information for Enhanced Application AND
Messaging is as described in the applicable Trust and Compliance Documentation. Enhanced Manage Auth. Providers
Messaging features and functionality may also vary from standard Messaging features and AND View Setup and
functionality. Enhanced Messaging and standard Messaging are subject to the relevant Configuration AND
Documentation and all terms on your company’s order form for Digital Engagement. Modify All Data
Watch a video
Setting up a standard or enhanced short code SMS channel involves a multi-step application process. Approving and provisioning a
short code can take 10–16 weeks. Here’s what to expect from the setup process:
To get started, go to Service Cloud-Digital Engagement Messaging: Short Code Application Process.
225
Provide Conversation Support with Messaging in Service Create SMS Short Code Channels in Service Cloud
Cloud
IN THIS SECTION:
Considerations for Short Codes in Service Cloud
When you use short codes, your business is required to follow carrier compliance requirements, industry standards, and applicable
laws. Short codes are only supported in the US and Canada.
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article and
applies to: enhanced
SMS
What are Short Codes? channels
Short codes are 5- or 6-digit phone numbers. Unlike long code phone numbers, short codes have
This Messaging
few limits on throughput, volume, or inbound-to-outbound ratios. That's why we recommend
article for In-App,
them for high-volume use cases, like recurring messages and alerts.
doesn’t Messaging
You can use short codes for single-message and recurring-message programs. We currently support apply to: for Web,
only service use cases—not marketing promotions. standard
and
Your company's automated responses can be a maximum of 160 characters.
enhanced
For more information about using short codes in the US, see the CTIA Short Code Monitoring WhatsApp,
Handbook. standard
and
enhanced
How are Short Code Messages Routed? Facebook
Short code channels use the same Omni-Channel routing as your other channels. If a customer Messenger,
responds to an agent-initiated outbound message, their message is routed to the agent who started enhanced
the conversation. Otherwise, inbound messages are added to the queue or skill and assigned to an Apple
available agent. To learn more about Omni-Channel routing, see Omni-Channel for Administrators. Messages
for Business,
enhanced
Opting in to Messages LINE, Bring
Customers must opt in to receiving messages before your business can start sending them. For Your Own
Channel,
example, customers can:
and Bring
• Enter their phone number in an online form Your Own
• Sign up at a point-of-sale location Channel for
CCaaS
• Send a text to your short code number
This type of opt-in is called explicit opt-in. When a customer sends a text to your short code, we
send them your opt-in prompt. You can customize this text, along with your other short code responses, by navigating to Setup >
Messaging Settings > Edit > Opt-In Confirmation.
Your opt-in prompt must contain certain details. Here's an example:
226
Provide Conversation Support with Messaging in Service Create SMS Short Code Channels in Service Cloud
Cloud
To subscribe to [Campaign Name] [Description] Alerts, reply YES. Reply HELP for help.
Reply STOP to cancel at any time. Msg&data rates may apply.
When they respond with an opt-in keyword, we mark the Messaging User object as explicitly opted in and send them a confirmation
text. You can customize this response for every language you support.
Here's an example:
You’re now subscribed to [Campaign Name] [Description] Alerts. Reply HELP for help.
Reply STOP to cancel at any time. Call [toll-free number] for support. Msg&data rates
may apply.
Optionally, you can require customers to verify that they want to receive texts from your businesses. This extra step is called double opt-in.
You can add this requirement for your short code channel by navigating to Setup > Messaging Settings > Edit > Required Double
Opt-In. Write your double opt-in keywords and a double opt-in prompt. You can customize this response for every language you support.
Here's an example:
To confirm your subscription to [Campaign Name] [Description] Alerts, reply START.
Reply HELP for help. Reply STOP to cancel at any time. Msg&data rates may apply.
Tip: We suggest keeping your opt-out confirmation text short. Here's an example:
You are unsubscribed from [Campaign Name] [Description] Alerts. No more messages
will be sent. Reply HELP for help or call (toll free number).
Anyone who texts an opt-out keyword to your short code receives this response, even if they aren't subscribed to your messages.
Requesting Help
You're required to send a compliant response when a Messaging user texts a help keyword to your short code. You can customize the
response text by navigating to Setup > Messaging Settings > Edit > Help Response. You can customize this response for every
language you support.
Your help response must contain certain details. Here's an example:
[Campaign Name] [Description] Alerts: Help at [source of help] or [toll free number].
Msg&data rates may apply. [Message frequency]. Text STOP to cancel.
Anyone who texts a help keyword to your short code receives this response, even if they aren't subscribed to your messages.
To stay compliant, your help response must contain these details:
• Campaign name—The name of your company or organization
• Description—A single word or phrase to define the alerts, such as “Account Alerts”
• Help sources—You must provide a toll-free phone number or a support email address, in addition to any other forms of help
• Disclaimer—Msg&data rates may apply.
• Message frequency—Must be specific, but can be any interval, such as “1 message per day,” “2 messages per month,” or “1 message
per transaction.” "Message frequency varies" is also acceptable.
227
Provide Conversation Support with Messaging in Service Create SMS Short Code Channels in Service Cloud
Cloud
SEE ALSO:
Service Cloud Messaging Limits and Considerations
Test Your SMS Channel in Service Cloud
228
Provide Conversation Support with Messaging in Service Test Your SMS Channel in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article SMS
To create an SMS channel in either sandbox or production, you must file a case with Salesforce applies to: channels
Support. When you file the case, we recommend requesting separate numbers for sandbox and Messaging
This
production. A number can only be associated with a single org at a time. for In-App,
article
Salesforce Support can move a number from a standard SMS channel in sandbox to a standard SMS doesn’t Messaging
channel in production. However, using separate numbers makes your channel rollout easier and apply to: for Web,
gives you more freedom to experiment in your sandbox org in the future. If you’re testing a standard standard
SMS channel associated with a short code, you might decide to use the same short code number and
for both sandbox and production, and ask Salesforce Support to move it from sandbox to production enhanced
WhatsApp,
when you're done testing. Talk with your account executive to understand the cost of short code
standard
numbers. SMS messages sent through a sandbox org are treated as normal messages and deducted
and
from your total conversation allowance.
enhanced
Moving a number from an enhanced channel in sandbox to an enhanced channel in production Facebook
is supported. However, you must then file a case with Salesforce Customer Support to start messaging Messenger,
traffic in the channel. enhanced
SMS,
Action Instructions enhanced
Apple
(Optional) Set up 1. Contact your account executive for the Digital Engagement add-on Messages
Messaging in your SKU. for Business,
sandbox. enhanced
2. Match your sandbox org licenses to your production org by refreshing LINE, Bring
your sandbox, creating a new sandbox, or using the license-matching Your Own
method. Channel,
3. Complete the steps in Get Started with Messaging in Service Cloud. and Bring
Your Own
Test your channel in Channel for
1. Log into Salesforce as an agent.
sandbox or production. CCaaS
2. From the app launcher, open the app that contains Messaging. This
is usually the Service Console.
USER PERMISSIONS
3. In the Omni-Channel utility or sidebar, change your Omni-Channel
presence status so that you’re online and available to receive To send and receive
messages. messages in Messaging:
• View Setup and
4. From your phone, send a text message to the phone number that Configuration
is associated with this channel.
To end Messaging sessions:
5. Look for the incoming message in Omni-Channel. Click the check • End Messaging Session
mark icon to accept the message and open the chat window.
6. Exchange messages in the channel. Experiment with sending text
and images, and test the auto-responses that you’ve configured.
229
Provide Conversation Support with Messaging in Service Test Your SMS Channel in Service Cloud
Cloud
Action Instructions
7. When you’re done, click End Chat.
(Optional) Switch from sandbox If you need to move your SMS channel implementation or number from sandbox to production, or
to production. from sandbox to another sandbox, here’s how.
1. Create a change set to move your Messaging implementation from sandbox to production, or
manually repeat the setup steps in production.
2. (Standard channels only) If you couldn’t designate a separate number for your sandbox, file a
case with Salesforce Customer Support to move the number to a new channel in production or
in another sandbox.
SEE ALSO:
Sandboxes: Staging Environments for Customizing and Testing
Change Sets
230
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
231
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
4. Add the Broadcast Messages tab to the Service Console so your team can view sent broadcast messages.
Note: For usage restrictions that apply to this product, see this document.
For information on the features included in the Digital Engagement subscription, see our pricing docs.
IN THIS SECTION:
Considerations for Broadcast SMS Messaging in Service Cloud
Review considerations and tips regarding Broadcast Messaging for standard SMS channels.
Create and Assign a Broadcaster Permission Set for SMS
Give broadcasters permission to send one-to-many messages in a standard SMS messaging channel. Optionally, set them up with
Messaging and Omni-Channel permissions to have one-to-one conversations with recipients.
Write Effective Broadcast Messages
Broadcast informative, useful messages to customers and employees in a standard SMS channel in Service Cloud.
Add the Broadcast Messages Tab to an App
If you’re using broadcasting in your standard SMS channel in Service Cloud, let your broadcasters view your company’s sent messages
on the Broadcast Messages tab.
Send Broadcast Messages
Send a bulk SMS from a contact, employee, person account, or messaging user list view in a standard SMS channel. View your
company’s sent broadcast messages in the Broadcast Messages tab.
232
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
233
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
234
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Note: Users with these permissions can send one-to-many SMS and one-to-one SMS, assuming that Omni-Channel is enabled
and your broadcasters are added to a messaging queue. If you want your broadcasters to send one-to-one messages, in addition
to these steps, you must set up Service Presence Status Access and enable End Messaging Session.
235
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article SMS
Create Broadcast Messaging Templates applies to: channels
Write messages for broadcasters to send to recipients. Broadcasters can’t create templates or Messaging
This
send a message without a template, so create as many templates as you think your team needs. for In-App,
article
For instructions, see Send Automated Messages in Standard Messaging Channels . doesn’t Messaging
apply to: for Web,
Tip: To visually group your broadcast messages and help your team find what they’re
standard
looking for, add a prefix to your template names. For example, name your waitlist-related
and
message templates “Waitlist - Joined,” “Waitlist - 10 Min Warning,” and “Waitlist -
enhanced
Removed.” WhatsApp,
Mind the Character Limit standard
Text messages are limited to 160 characters for most carriers. If your message exceeds your and
carrier’s limit, your message is sent in multiple text messages. Keep your message short to avoid enhanced
paying for extra messages. Facebook
Messenger,
Stay On Topic enhanced
Your recipients opted in to your messages for a specific purpose. Avoid sending frequent, SMS,
off-topic messages or sharing information that’s better suited for email. If recipients feel like enhanced
you’re oversharing, they opt out. Apple
Personalize Sparingly Messages
It’s great to include your recipient’s name in a message here and there with a merge field. But for Business,
too much personalization can be overwhelming, and it can use up your character count. enhanced
LINE, Bring
Use a Link Shortener Your Own
If you include links in your messages, use a link shortener to save space. Links count against the Channel,
160-character limit. and Bring
Include a Call to Action Your Own
A call to action makes your message more useful to recipients. For example: Channel for
CCaaS
• When you send an informational message, consider including a link they can visit to learn
more.
• When you remind recipients about an event or appointment, provide a text reply or phone number they can use to confirm or
cancel.
• When you notify recipients about their spot on a wait-list, tell them how they can remove their name if they change their mind.
236
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Example:
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the ability to create standard channels.
To avoid service interruptions, upgrade your standard SMS channels to enhanced channels before February 14, 2026.
Enhanced SMS offers many of the standard SMS features you love on page 207 plus session transfers and enhanced bot
support. See Upgrading from Standard to Enhanced Messaging on page 275.
Queue Notifications
To manage a queue, we recommend sending a text when the recipient joins the list, when they are at the top of the list, and when they
remove themselves from the list.
Recipient Joined the List
You’re in line for Business Name. We’ll send an update when you’re next in line. Text CANCEL to cancel.
Recipient is at the Top of the List
You’re next in line to shop at Store Name! You have 10 min to check in. Text CANCEL to cancel.
Recipient Left the List
You’ve been removed from the list. We hope to see you another time.
Appointment Reminders
Send confirmations and reminders for appointments. We recommend letting the recipient know that they’ve scheduled their appointment
and what they can do to cancel or reschedule. Consider moving appointment confirmations to text so your staff can respond to other
phone calls.
Appointment was Scheduled or Rescheduled
Your appointment is scheduled for WED 7/1 @ 11am. Text YES to confirm. Call 000-000-0000 to reschedule.
Appointment Confirmation with Instructions
Confirmed! Arrive 15 min before your appt. Call 000-000-0000 for help.
237
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Employee Messages
Communicate important information to your employees. The Employee object is available only if you’ve purchased Work.com.
Wellness Survey Notification
This week’s wellness survey is ready for you. Please respond by 11/9: shortlink
Temporary Location Closure
We’re temporarily closing the Main St. location 1/4-1/24. Call 000-000-0000 to request a transfer.
238
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article SMS
The Broadcast Messages tab displays the name, template, content, and number of recipients for applies to: channels
each sent message. You can add the tab to both standard and console navigation apps. Messaging
This
1. Go to Setup > Apps > App Manager. article for In-App,
doesn’t Messaging
2. Open the menu next to a Lightning app, and click Edit.
apply to: for Web,
3. In Lightning App Builder, click Navigation Items. standard
4. Select Broadcast Messages, and move it to the Selected Items list. and
enhanced
5. Click Save. WhatsApp,
6. To return to the App Manager page, click Back. standard
and
To confirm that Broadcast Messages was added to your app, open the app using the App Launcher. enhanced
You can open Broadcast Messages from the navigation menu. Facebook
Messenger,
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To view apps:
• View Setup and
Configuration
To manage apps:
• Customize Application
239
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
240
Provide Conversation Support with Messaging in Service Set Up Broadcast Messaging in Service Cloud
Cloud
Important: Standard SMS channels are scheduled for retirement, and we’re limiting the Available in: Lightning
ability to create standard channels. To avoid service interruptions, upgrade your standard Experience. View required
editions.
SMS channels to enhanced channels before February 14, 2026. Enhanced SMS offers many
of the standard SMS features you love on page 207 plus session transfers and enhanced bot This Standard
support. See Upgrading from Standard to Enhanced Messaging on page 275. article SMS
applies to: channels
Note: Broadcast messages can't be sent in SMS channels that use Omni-Channel flow routing.
In your SMS channel settings, make sure that Enable Advanced Routing isn't selected. This Messaging
1. Open a contact, employee, person account, or messaging user list view. Employee is available article for In-App,
doesn’t Messaging
only if your company purchased Work.com.
apply to: for Web,
If you want to message only a subset of people in the list view, select them. If you select no standard
one, then your message is sent to everyone in the list view. and
enhanced
2. Click Send Message.
WhatsApp,
3. Confirm the sender numbers that you want to send this message from, and click Next. standard
4. Give your message an internal name. and
enhanced
5. Select a messaging template. If you don’t see one that fits, ask your Salesforce admin to create Facebook
one for you. Messenger,
6. Click Next. enhanced
SMS,
7. Review your message, and click Send.
enhanced
To see sent broadcast messages, open the app containing the Broadcast Messages tab. Then select Apple
Broadcast Messages from the navigation menu. You can see each message name, the template Messages
used, the message content, and the number of recipients. for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To send one-to-many
messages:
• Send One-to-Many
Messages
241
Provide Conversation Support with Messaging in Service Bring Your Own Channel to Salesforce
Cloud
Get Started Enable Bring Your Own Channel Enable Bring Your Own Channel For
Set Up Bring Your Own Channel Prepare Your Agents to Use Bring Your Own CCaaS
Set Up Bring Your Own Channel for CCaaS Channel Prepare Your Agents to Use Bring Your Own
Messaging Glossary Prepare Your Salesforce Org for Bring Your Channel for CCaaS
Own Channel Prepare Your Salesforce Org for Bring Your
Considerations and Limitations for Bring Own Channel for CCaaS
Your Own Channel and Bring Your Own Create a Bring Your Own Channel
Channel for CCaaS Messaging Channel Create a Bring Your Own Channel for CCaaS
Messaging Channel
Lifecycle of a Messaging Session in Service
Cloud Add Messaging to a Partner Telephony
Contact Center
242
Provide Conversation Support with Messaging in Service Bring Your Own Channel to Salesforce
Cloud
243
Provide Conversation Support with Messaging in Service Compare Bring Your Own Channel to Bring Your Own
Cloud Channel for CCaaS Capabilities
Compare Bring Your Own Channel to Bring Your Own Channel for CCaaS
Capabilities
Explore the capabilities of Bring Your Own Channel and Bring Your Own Channel for CCaaS Messaging
EDITIONS
channels in Service Cloud, and compare them side by side.
Bring Your Own Channel and Bring Your Own Channel for CCaaS messaging channels are built on Available in: Lightning
our new conversation platform. The conversation platform also houses Service Cloud Voice, Experience. View required
Messaging for In-App and Web, and all other enhanced Messaging channels, such as WhatsApp. editions.
This shared platform has several benefits.
This Bring Your
• When we roll out a new feature, it’s often shared across all channels on the conversation platform. article Own
Agents get a consistent experience, regardless of channel. applies to: Channel and
• These channels are designed to scale beyond the customer support use case. Bring Your
Own
Because Bring Your Own Channel and Bring Your Own Channel for CCaaS messaging channels Channel for
depend on Messaging and CCaaS partner integrations, feature support varies based on partner CCaaS
implementation.
This Messaging
article for In-App,
Capability Bring Your Own channel Bring Your Own Channel
doesn’t Messaging
for CCaaS
apply to: for Web,
Setup and Routing standard
and
Automated channel setup Yes Yes enhanced
Can upgrade from standard N/A N/A WhatsApp,
channels standard
and
Omni-Channel Flow routing Yes Yes enhanced
Facebook
Queue-based routing Yes Yes Messenger,
Enhanced routing Yes Yes standard
and
Agent and queue syncing No Yes enhanced
between Salesforce and partner SMS,
enhanced
Partner-owned consent No Yes Apple
Tab-based capacity Yes Yes Messages
for Business,
Status-based capacity Yes Yes and
enhanced
Available with Sales Cloud Yes Yes
LINE
Messaging Session Start and End channels
Automated outbound No No
messages
244
Provide Conversation Support with Messaging in Service Compare Bring Your Own Channel to Bring Your Own
Cloud Channel for CCaaS Capabilities
Capability Bring Your Own channel Bring Your Own Channel for CCaaS
Agent can end session Yes Yes
Customer Experience
Window branding and customization Yes (API only) Yes (API only)
Agent Experience
Channel menu No No
245
Provide Conversation Support with Messaging in Service Compare Bring Your Own Channel to Bring Your Own
Cloud Channel for CCaaS Capabilities
Capability Bring Your Own channel Bring Your Own Channel for CCaaS
Content Sharing
Time selector messaging components Yes (plain text only) Yes (plain text only)
Notification messaging components Yes (no automation support; manual Yes (no automation support; manual
sending only) sending only)
Automated Responses
246
Provide Conversation Support with Messaging in Service Considerations and Limitations for Bring Your Own Channel
Cloud and Bring Your Own Channel for CCaaS
Capability Bring Your Own channel Bring Your Own Channel for CCaaS
Channel consent type: Explicit opt-in Yes Yes
Considerations and Limitations for Bring Your Own Channel and Bring Your
Own Channel for CCaaS
Before starting your setup process, review the considerations and limitations for Bring Your Own
EDITIONS
Channel and Bring Your Own Channel for CCaaS.
Available in: Lightning
Experience. View required
Setup
editions.
• You can associate one Conversation Channel Definition with multiple messaging channels.
This Bring Your
• Third-party bots are only supported for Bring Your Own Channel for CCaaS and aren’t currently article Own
supported for Bring Your Own Channel. applies to: Channel and
Bring Your
Own
Agent Experience Channel for
• These components are supported: Questions with Static Options, Notifications, Time Selectors, CCaaS
Enhanced Links. Quick replies, Buttons, List selectors, Forms, and Carousels.
This Messaging
• Dynamic content in messaging components isn’t supported. article for In-App,
• Read receipts and delivery receipts are only available on the agent’s side. They’re visible in real doesn’t Messaging
time and aren’t available after the messaging session ends. apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
247
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
• Agents remain firmly rooted within the Omni Agent Console. This Bring Your
• Supervisors get a comprehensive view of agent metrics and embedded coaching and training article Own
solutions with Omni Supervisor. This view aggregates data from all channels, including external applies to: Channel
channels that are connected with an API. Messaging
This
• Customer data is unified across all channels in Data Cloud. article for In-App,
• Omni-Channel Flow routes sessions. doesn’t Messaging
apply to: for Web,
• Run partner AI and Bots inside of the Service Console, together with Einstein. standard
and
enhanced
Setup Overview
WhatsApp,
Setup for Bring Your Own Channel is simple. Download a managed package from AppExchange, standard
create an Omni-Channel Flow for routing, and then install the Bring Your Own Channel messaging and
channel through a setup flow. enhanced
Facebook
Messenger,
IN THIS SECTION:
standard
Prepare Your Agents to Use Bring Your Own Channel and
Give agents the Service Cloud User license and prepare the agent console for Bring Your Own enhanced
Channel. SMS,
enhanced
Prepare Your Salesforce Org for Bring Your Own Channel Apple
Before you set up Bring Your Own Channel, enable Omni-Channel, create a flow, and customize Messages
the agent console. for Business,
Create a Bring Your Own Channel Messaging Channel enhanced
LINE, and
To create a Bring Your Own Channel (BYOC) messaging channel, follow the setup flow.
Bring Your
Uninstall Bring Your Own Channel Own
Remove a Bring Your Own Channel messaging channel from your Salesforce org. Channel for
CCaaS
248
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
2. Give your SCRT2 Integration User Read and Create access to the custom platform event for your This Bring Your
Bring Your Own Channel messaging channel. article Own
applies to: Channel
a. From Setup, in the Quick Find box, enter Permission Sets, and then select
Permission Sets. This Messaging
b. Click SCRT2 Integration User. article for In-App,
doesn’t Messaging
c. Click Object Settings. for Web,
apply to:
d. Click the name of the custom platform event installed as part of your managed package. standard
and
e. Click Edit, and select the Read and Create checkboxes.
enhanced
f. Click Save. WhatsApp,
standard
3. Create presence statuses for messaging. and
4. Give your agents access to presence statuses. enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, and
Bring Your
Own
Channel for
CCaaS
USER PERMISSIONS
To edit users:
• Manage Internal Users
To assign permission sets:
• Assign Permission Sets
249
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, and
Bring Your
Own
Channel for
CCaaS
250
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
Before you set up Bring Your Own Channel, enable Omni-Channel, create a flow, and customize
USER PERMISSIONS
the agent console.
To set up Omni-Channel
and create and save
Set Up Omni-Channel Lightning pages in the
1. Enable Omni Channel. Lightning App Builder:
• Customize Application
2. Create a Service Channel for messaging.
To create or change queues:
3. Create a queue where you want to route incoming messaging sessions. Add Messaging Session • Customize Application
as a supported object. AND Manage Public List
Views
Create an Omni Flow To open, edit, or create a
flow in Flow Builder:
1. From Setup, in the Quick Find box, enter Flows, and then select Flows. • Manage Flow
2. Click New Flow.
3. In the All + Templates tab, select Omni-Channel Flow.
4. From the Manager tab, create a new resource.
5. Select Variable as your Resource Type.
6. For the API Name, enter recordId. The API name is case-sensitive and must be recordId. The messaging channel uses this value
to pass information into this Omni-Channel flow.
7. For the Data Type, specify text.
8. Select Available for input, and then click Done.
9. From the Elements tab, select a Route Work action in your flow.
10. Name the New Action. Use recordId variable as the input value. Select Messaging for the Service Channel.
11. Specify Queue, Agent, Bot, or Skills as the Route To value.
a. If you select Queue, use the Queue ID for the queue where you want to direct the work.
b. If you select Agent, add the agent’s name via the Agent ID field.
c. If you select Bot, search for the bot name.
d. If you select Skills, add the Skill Requirement List.
251
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
This Messaging
Create a Bring Your Own Channel Messaging Channel article for In-App,
doesn’t Messaging
1. From Setup, enter Messaging Settings, and then select Messaging Settings. for Web,
apply to:
2. Click New Channel. standard
and
3. Select the Conversation Channel Definition tile that represents the Managed Package that you
enhanced
installed in step 1, and click Next. WhatsApp,
4. Give your Bring Your Own Channel messaging channel a name. standard
and
5. Click anywhere to populate the Developer Name field.
enhanced
6. Save your changes. Facebook
7. Under Omni-Channel Routing, click Edit. Messenger,
standard
8. Select Omni-Flow as the Routing Type. and
9. In the Flow Definition field, select the name of the flow that you created previously. enhanced
SMS,
10. Save your changes.
enhanced
11. Click Activate. Apple
Messages
for Business,
Create and Configure a Connected App for OAuth Integration enhanced
1. If it’s required by your Messaging provider, set up and configure your own connected app for LINE, and
OAuth on page 269. Bring Your
Own
Channel for
Test Your Bring Your Own Channel Messaging Channel CCaaS
1. Open the Service Console app, and go to the Omni-Channel utility bar at the bottom of the
console, provided it’s installed. Go online as the agent assigned to the messaging button. USER PERMISSIONS
2. Open the app where your customers initiate Bring Your Own Channel, and start a conversation.
To install packages:
3. In the console tab, verify that you received a conversation request. Accept the request and try • Download AppExchange
sending a message. Packages
To set up and edit
Messaging channels:
• Configure Messaging
252
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel
Cloud
253
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
254
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
255
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
Prepare Your Agents to Use Bring Your Own Channel for CCaaS
Give agents the Service Cloud User license and prepare the agent console for Bring Your Own
EDITIONS
Channel for CCaaS.
1. Assign licenses to your Bring Your Own Channel for CCaaS agents. Available in: Lightning
Experience. View required
• Digital Engagement add-on license with Partner Messaging
editions.
• Service Cloud Voice Partner Telephony add-on license (if using Voice in your contact center)
This Bring Your
2. Assign permission sets to your Bring Your Own Channel for CCaaS agents. article Own
• Contact Center Bring Your Own Channel User permission set applies to: Channel for
CCaaS
• Contact Center Agent (Partner Telephony) permission set (if using Voice in your contact
center) This Messaging
article for In-App,
3. Give your SCRT2 Integration User Read and Create access to the custom platform event for your doesn’t Messaging
Bring Your Own Channel messaging channel. apply to: for Web,
a. From Setup, in the Quick Find box, enter Permission Sets, and then select standard
and
Permission Sets.
enhanced
b. Click SCRT2 Integration User. WhatsApp,
c. Click Object Settings. standard
and
d. Click the name of the custom platform event you just created. enhanced
e. Click Edit, and select the Read and Create checkboxes. Facebook
Messenger,
f. Click Save.
standard
4. Create presence statuses for messaging. and
enhanced
5. Give your agents access to presence statuses. SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, and
Bring Your
Own
Channel
USER PERMISSIONS
To edit users:
• Manage Internal Users
To assign permission sets:
• Assign Permission Sets
256
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
Prepare Your Salesforce Org for Bring Your Own Channel for CCaaS
EDITIONS
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, and
Bring Your
Own
Channel
257
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
Before you set up Bring Your Own Channel for CCaaS, enable Omni-Channel, create a flow, and
USER PERMISSIONS
customize the agent console.
To set up Omni-Channel
and create and save
Set Up Omni-Channel Lightning pages in the
1. Enable Omni Channel. Lightning App Builder:
• Customize Application
2. Create a Service Channel for messaging.
To create or change queues:
3. Create a queue where you want to route incoming messaging sessions. • Customize Application
a. Add Messaging Session as a supported object. AND Manage Public List
Views
b. Optionally, add Voice Call as a supported object if you plan to manage both Messaging and
Voice through the same queue in your partner contact center. To open, edit, or create a
flow in Flow Builder:
c. If your CCaaS partner processes routing in their system, set the routing model of the queue’s • Manage Flow
routing configuration to external routing. If Salesforce manages routing, set the routing
model to any other value.
258
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
4. Name the page, and then select Messaging Session as the object.
5. On the next screen, select CLONE SALESFORCE DEFAULT PAGE and finish.
6. When you’re inside the app builder, add the Enhanced Conversation component to the page.
7. Activate the page.
259
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
260
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
1. From Setup, in the Quick Find box, enter Contact Centers. Select Partner Contact Centers or Partner Telephony Contact
Centers, depending on your setup.
2. Select the contact center.
3. On the Contact Center details page, in the Contact Center Users section, add users to the partner contact center.
SEE ALSO:
Prepare Your Agents to Use Bring Your Own Channel for CCaaS
Set Up Contact Center Users
261
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
USER PERMISSIONS
262
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
This process is similar to how you map queues specifically for telephony provider queues. For partner contact centers, you can map one
Salesforce Messaging, Voice, or combined Messaging and Voice queue to one queue on the partner's side.
1. From Setup, enter Contact Centers in the Quick Find box, and then select Partner Contact Centers or Partner Telephony
Contact Centers, depending on your setup.
2. Click the contact center name for which you want to add and map queues.
3. In the Contact Center Queues section, click Add.
4. Select the Salesforce queue that you want to add to the contact center.
5. Choose to automatically create the corresponding queue in the CCaaS partner system (recommended) or select a preexisting CCaaS
partner queue.
6. Add members of the contact center to the queue.
263
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
7. Select Finish.
SEE ALSO:
Map Your Salesforce Queues to Telephony Provider Queues
264
Provide Conversation Support with Messaging in Service Set Up Bring Your Own Channel for CCaaS
Cloud
Before you begin, install a managed package from a CCaaS provider to support Bring Your Own This Bring Your
Channel for CCaaS and Service Cloud Voice. article Own
applies to: Channel for
Tip: If you want to add Service Cloud Voice to a partner contact center instead of the other CCaaS
way around, see Add a Voice Channel to a Partner Contact Center.
This Messaging
1. From Setup, in the Quick Find box, enter Messaging Settings, and then select
article for In-App,
Messaging Settings. Messaging
doesn’t
2. Click New Channel. apply to: for Web,
standard
3. Select the Conversation Channel Definition tile that represents the managed package that you
and
installed, and click Next.
enhanced
4. Choose to use an existing contact center, and select the Partner Telephony Contact Center you WhatsApp,
want to add the Messaging channel to. standard
and
5. Give your Messaging channel a name.
enhanced
6. Click anywhere to populate the API Name field. Facebook
7. Save your changes. Messenger,
standard
8. Under Omni-Channel Routing, click Edit. and
9. Select Omni-Flow as the Routing Type. enhanced
SMS,
10. In the Flow Definition field, select the name of the flow that you created previously.
enhanced
11. Save your changes. Apple
12. Click Activate. Messages
for Business,
enhanced
LINE, and
Bring Your
Own
Channel
USER PERMISSIONS
265
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
Extend Bring Your Own Channel and Bring Your Own Channel for CCaaS
Go further with your Bring Your Own Channel or Bring Your Own Channel for CCaaS messaging
EDITIONS
channel setup.
Available in: Lightning
IN THIS SECTION: Experience. View required
editions.
Route Data to Objects in Bring Your Own Channel and Bring Your Own Channel for CCaaS
Use parameters, parameter mappings, and flows to route customer data to Salesforce objects. This Bring Your
This data gives agents more context for who they’re messaging with. For example, create a article Own
Support Reason dropdown menu, and then route the customer’s input to the Messaging Session applies to: Channel and
object. Bring Your
Own
Set Up and Configure Your Own OAuth Connected App Channel for
Certain Messaging partners and CCaaS providers require you to set up and manage your own CCaaS
connected app to provide authentication for the integration between their platform and the
Salesforce Interaction Service API. Check with your provider whether setting up your own This Messaging
article for In-App,
connected app is a required setup step for their Bring Your Own Channel or Bring Your Own
doesn’t Messaging
Channel for CCaaS integration. First create the connected app and edit policies for it, and then
apply to: for Web,
update the Conversation Channel Definition (CCD).
standard
Set Up an Einstein Bot for Bring Your Own Channel or Bring Your Own Channel for CCaaS and
When you install a managed package to set up Bring Your Own Channel or Bring Your Own enhanced
Channel for CCaaS, your Messaging or CCaaS partner vendor may include a sample Einstein WhatsApp,
Bot with associated flows. Clone or adjust the sample Einstein bot and flows to fit your use case, standard
for example, to route an inbound message from a bot to an agent. If your managed package and
doesn’t include a sample bot, you can still create an Einstein bot and associate it with your enhanced
messaging channel. Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
266
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
Route Data to Objects in Bring Your Own Channel and Bring Your Own Channel for
CCaaS
Use parameters, parameter mappings, and flows to route customer data to Salesforce objects. This
EDITIONS
data gives agents more context for who they’re messaging with. For example, create a Support
Reason dropdown menu, and then route the customer’s input to the Messaging Session object. Available in: Lightning
We recommend that the Partner writes help documentation to explain exactly how to connect Experience. View required
parameters, parameter mappings, and flows. Because Bring Your Own Channel and Bring Your Own editions.
Channel for CCaaS messaging channels aren’t using a Salesforce client, we don’t have full control
This Bring Your
over the mechanics. Use this help topic to familiarize yourself with the basic building blocks that Own
article
are hosted in Salesforce. applies to: Channel and
Bring Your
Own
Channel for
CCaaS
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
Parameters enhanced
A parameter establishes the data that you want to collect from your customer. For example, an Apple
Order Number parameter collects a unique order number that a customer inquires about. Messages
for Business,
and
enhanced
LINE
channels
267
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
Parameter Mapping
Parameter mapping connects a parameter to a flow variable. This mapping sends the data collected by the parameter into a flow, where
it’s routed to a Salesforce object. In this example, we’re routing data collected by the Order Number parameter and sending it into an
order_number flow variable.
Omni-Channel Flow
An Omni-Channel Flow takes the flow variable, which receives data from the parameter, and sends that data from the flow variable to
an object. In this example, we’re sending an order number from a flow variable to a Salesforce custom field on the Messaging Session
object called “Order Number.”
268
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
269
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
Certain Messaging partners and CCaaS providers require you to set up and manage your own
USER PERMISSIONS
connected app to provide authentication for the integration between their platform and the
Salesforce Interaction Service API. Check with your provider whether setting up your own connected To read, create, update, or
app is a required setup step for their Bring Your Own Channel or Bring Your Own Channel for CCaaS delete connected apps:
integration. First create the connected app and edit policies for it, and then update the Conversation • Customize Application
Channel Definition (CCD). AND either Modify All
Data OR Manage
Tip: To check whether your Messaging or CCaaS provider requires you to set up your own Connected Apps
connected app, from Setup, go to Messaging Settings and select the Messaging channel you
To update all fields except
created. In the Conversation Channel Definition section, if you see Manage Conversation
Profiles, Permission Sets,
Channel Definition, you must create your own connected app. Otherwise, the partner and Service Provider SAML
provider manages the OAuth connected app for you. Attributes:
• Customize Application
AND either Modify All
Create a Connected App for OAuth Data OR Manage
In Salesforce, set up a connected app to provide authentication for the integration between your Connected Apps
Messaging or CCaaS provider’s platform and the Salesforce Interaction Service API.
To update Profiles,
1. If you don’t have a self-signed certificate, follow the steps to Create a Private Key and Self-Signed Permission Sets, and Service
Digital Certificate. Make sure you have the certificate saved in your system. You upload the file Provider SAML Attributes:
when you create the connected app. • Customize Application
AND Modify All Data
2. From Setup, in the Quick Find box, enter App Manager, and then select App Manager. AND Manage Profiles
3. Click New Connected App. and Permission Sets
4. In the Connected App Name field, enter a unique name for the connected app. The name
you enter automatically appears in the API Name field. Don’t change the API Name.
5. In the Contact Email field, enter the email address of the person for Salesforce to contact if needed.
6. Select the Enable OAuth Settings checkbox, and configure these settings:
a. Add a callback URL (endpoint), which is the same as the OAuth redirect URI. We recommend you use
https://salesforce.com to start with.
b. Select Use digital signatures, then click Choose File and select the public key file in your system to upload it.
c. Add the OAuth scopes: Access Interaction API resources (interaction_api) and Perform Requests at any time
(refresh_token, offline_access)
7. Select Issue JSON Web Token (JWT)-based access tokens for named users.
8. Save your changes, then click Continue.
270
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
SEE ALSO:
Configure Basic Connected App Settings
Enable OAuth Settings for API Integration
271
Provide Conversation Support with Messaging in Service Extend Bring Your Own Channel and Bring Your Own Channel
Cloud for CCaaS
Set Up an Einstein Bot for Bring Your Own Channel or Bring Your Own Channel for
CCaaS
When you install a managed package to set up Bring Your Own Channel or Bring Your Own Channel
EDITIONS
for CCaaS, your Messaging or CCaaS partner vendor may include a sample Einstein Bot with
associated flows. Clone or adjust the sample Einstein bot and flows to fit your use case, for example, Available in: Lightning
to route an inbound message from a bot to an agent. If your managed package doesn’t include a Experience. View required
sample bot, you can still create an Einstein bot and associate it with your messaging channel. editions.
1. From Setup, in the Quick Find box, enter Einstein Bots, and then select Einstein Bots.
This Bring Your
2. In the My Bots list, for the sample bot, click the dropdown and select Clone, or edit the sample article Own
bot to meet your needs. applies to: Channel for
CCaaS
3. The sample bot may include a simple inbound Omni-Channel flow. It appears in the Inbound
Omni-Channel Flows section of the Bot Overview page. To use this flow: This Messaging
• In Flow Builder, specify a fallback queue in the Route Work Action element. Then make any article for In-App,
doesn’t Messaging
other customizations and activate the flow.
apply to: for Web,
• Add your flow to your Bring Your Own Channel for CCaaS Messaging channel. You can add standard
your flow to an existing channel from the Inbound Omni-Channel Flows section of the Bot and
Overview page. Otherwise, go to the Messaging Settings page in Setup. Then select enhanced
Omni-Flow under Omni-Channel Routing and specify the inbound flow. WhatsApp,
standard
4. If the sample bot doesn’t include an inbound Omni-Channel flow, create an inbound and
Omni-Channel flow from scratch. enhanced
5. The sample bot includes an Outbound Omni-Channel Flow that appears in the Settings section Facebook
of the Bot Overview page. Add a different flow, or edit the sample flow in Flow Builder to meet Messenger,
your needs. standard
and
6. In Einstein Bot Builder, click Activate to activate the bot. enhanced
7. For Bring Your Own Channel for CCaaS only, if your partner CCaaS vendor controls routing, SMS,
contact the partner vendor to finish set up routing for the flow associated with your Einstein enhanced
bot. They will need the flow ID and fallback queue ID. If Salesforce controls routing, this step Apple
isn’t necessary. Messages
for Business,
enhanced
SEE ALSO: LINE, and
Clone an Enhanced Bot Bring Your
Using Enhanced Bots in Messaging Channels Own
Channel
USER PERMISSIONS
272
Provide Conversation Support with Messaging in Service Increase Messaging Productivity
Cloud
273
Provide Conversation Support with Messaging in Service Increase Messaging Productivity
Cloud
Track your service team’s messaging activity. Report on Messaging Activity in Service Cloud Standard and enhanced
Manage Agents, Queues, and Skills with Omni Messaging channels and
Supervisor Messaging for In-App and
Web
Customize agent keyboard actions. Customize the Enter or Return Key in Messaging for Messaging for Web
Web
Show the Emoji Keyboard in Messaging for Web
Show customers their estimated wait time to be Show Customers an Estimated Wait Time in the Messaging for In-App and
connected to an agent. Messaging Window Web
Hide the messaging window outside of your business Set Business Hours in Messaging for In-App and Web Messaging for In-App and
hours. Web
View or update a channel’s basic settings, such as its Update Service Cloud Messaging Channel Settings Standard and enhanced
name and routing preferences. Messaging channels
Create a library of standard text snippets that agents Set Up and Use Quick Text Standard and enhanced
can insert into messaging sessions. Einstein Reply Recommendations Messaging channels and
Messaging for In-App and
Web
Give agents a set amount of time after a messaging Configure After Conversation Work Time Standard and enhanced
session to wrap up their work before the next session. Messaging channels and
Messaging for In-App and
Web
Automatically send the customer a survey when a Gather Feedback at the End of a Messaging Session Standard Messaging
messaging session ends. channels
Set Up Post-Chat Surveys for Messaging for In-App Messaging for In-App and
and Web Web
Trigger an action, such as an agent flag raise, when Automatically Trigger an Action Based on Detected Enhanced Messaging
an agent or customer enters a keyword in a Keywords channels and Messaging
messaging session. for In-App and Web
Show agents and supervisors an AI-generated Show Agents and Supervisors Mid-Conversation Enhanced Messaging
summary of an ongoing messaging session when Summaries channels and Messaging
they accept or monitor a session. for In-App and Web
Extract contact reasons from Messaging sessions and Build an Einstein Conversation Mining Report Enhanced Messaging
build a report to identify top case drivers. channels and Messaging
for In-App and Web
To give agents more information about the person Individual-Object Linking Enhanced Messaging
they’re messaging with, automatically search, link, or channels and Messaging
screen-pop records during messaging sessions. for In-App and Web
274
Provide Conversation Support with Messaging in Service Upgrading from Standard to Enhanced Messaging
Cloud
275
Provide Conversation Support with Messaging in Service Upgrading from Standard to Enhanced Messaging
Cloud
Turn off two-step verification for Submit a request to [email protected] Create or Upgrade to an Enhanced
your number. (WhatsApp only) to turn off two-step verification for your number. WhatsApp Channel in Service Cloud
Create an enhanced bot. Replace any standard Einstein bots that you’re using with Using Enhanced Bots in Messaging
an enhanced bot that you can include in your routing logic. Channels
Standard bots can’t be used in enhanced channels.
Update your routing logic. Create an Omni-Channel flow that routes messages sent to Route Service Cloud Messaging
your WhatsApp number. Messages sent to your upgraded Sessions with Omni-Channel Flows
channel can then be routed to enhanced bots, service reps, Update Service Cloud Messaging
and queues. If you’re using standard skills-based routing, Channel Settings
you must switch to a skills-based Omni-Channel routing
flow.
This task includes additional tasks that you must complete
after the upgrade:
• If you’re using bots and want to repurpose an existing
flow that was already routing messages in your standard
channel, update the flow after the channel upgrade so
that it routes to an enhanced bot instead of a standard
bot. An Omni-Channel flow can’t route messages to
both standard and enhanced bots.
• If you created a new flow for your upgraded channel,
edit your channel’s routing settings and select the new
flow.
276
Provide Conversation Support with Messaging in Service Upgrading from Standard to Enhanced Messaging
Cloud
Set up productivity tools. Create a Messaging Session page layout for enhanced Add Messaging to the Service Console
channels that includes the Enhanced Conversation page Block Sensitive Data in Messaging and
component. The Conversation page component, used in Voice Transcripts
standard channels, can’t be used in enhanced messaging
sessions. Interactive Messaging Components
Update your channel’s End Unassigned messaging sessions are automatically ended Customize Auto-Responses in Service
Conversation auto-response to during an SMS or Facebook Messenger channel upgrade. Cloud Messaging Channels
let customers know about the When a session is ended, the customer receives the End
upgrade. (SMS & Facebook Conversation auto-response that’s configured in your
Messenger only) channel settings. Optionally, update this auto-response
before you upgrade to set customers’ expectations. Here’s
an example:
We’re doing some planned maintenance so we can serve you
better in WhatsApp. If you still need help, please respond to this
message.
After the upgrade, change the message back to its previous
version.
Pause activity in your channel. If your standard channel has any active messaging sessions
(SMS & Facebook Messenger that are assigned to a service rep, we can’t complete the
only) upgrade. Ask all reps to close their active sessions in the
channel and log out of Omni-Channel.
Optionally, you can also reassign the channel to a queue
with no assigned service reps until the upgrade is complete.
Unassigned messaging sessions are automatically ended
during the upgrade, so after it’s complete, clear the holding
queue by assigning its sessions to reps in Omni Supervisor.
While WhatsApp upgrades don’t require you to pause
channel activity, we recommend using a test or low-traffic
phone number at first. This way, you can test your routing
277
Provide Conversation Support with Messaging in Service Upgrading from Standard to Enhanced Messaging
Cloud
Ready to Upgrade?
After completing the preparation tasks, you can perform the upgrade yourself.
• To upgrade a standard SMS or Facebook Messenger channel, find your channel on the Messaging Settings page and select Upgrade
to Enhanced. This process typically takes less than a minute. If you were using a standard bot in your channel before the upgrade,
your customers may experience some downtime while you update your routing settings to route to an enhanced bot.
• Upgrading a standard WhatsApp channel works a little differently. Instead of changing your channel’s platform type from standard
to enhanced, you create and activate a separate enhanced channel. Follow the steps in Create or Upgrade to an Enhanced WhatsApp
Channel in Service Cloud.
When the Messaging Settings page shows your channel with a Platform Type of Enhanced, the upgrade is complete. Optionally, click
the channel name to review and update its routing, auto-response, or opt-in settings.
278
Provide Conversation Support with Messaging in Service Enhanced Messaging Channel Activation Checklist
Cloud
This Enhanced
article WhatsApp,
applies to: enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
WhatsApp,
standard
Facebook
Messenger,
standard
and
enhanced
SMS, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
279
Provide Conversation Support with Messaging in Service Enhanced Messaging Channel Activation Checklist
Cloud
(Required) Set your message routing preferences. In your channel settings in Setup, choose your routing type and
select either an Omni-Channel flow and fallback queue (includes
bot support) or a queue (no bot support). If you created a queue
during channel creation, you’re all set.
While you’re configuring routing, we recommend turning on
enhanced Omni-Channel routing, which includes features such as
an inbox-style view of work items.
(Required) Configure the Service Console. Configure the Service Console and the Messaging Session record
page so agents can help customers in enhanced Messaging
channels. Use different page layouts for standard and enhanced
channels.
(Required) Customize your channel auto-responses on page 419 Customize auto-responses for common scenarios in messaging
and learn about the opt-in and opt-out experience. sessions, and set keywords that customers can use to perform
actions such as opting out of receiving messages.
(Required—LINE only) Complete the connection in LINE on page In the LINE Developers Console, provide an essential URL from
186. Salesforce and update other settings.
(Recommended) Create messaging user records for existing If you’re upgrading from a standard channel or migrating your
customers so that agents can initiate messaging sessions in your number from an external business service provider, preserve
channel. existing customers’ consent preferences by creating messaging
user records for them. Each record links the customer to your
channel and contains their consent status: implicitly opted in,
explicitly opted in, or opted out.
(Recommended) Create an enhanced bot. Incorporate an enhanced bot into your support process to lighten
the load on human service agents. Create a bot, and then reference
it in an Omni-Channel flow to control which sessions are routed
to it.
(Recommended—WhatsApp only) Set up automated messaging Create a flow that sends customers automated messages notifying
and copy message templates. them about product deliveries, case updates, or something else.
Each notification message is based on an approved WhatsApp
template. Optionally, copy templates from other WhatsApp
Business accounts. For example, if you’re upgrading from a standard
channel, copy the templates from your standard channel’s account.
Templates can be copied before or after your enhanced channel
is activated.
(Recommended) Create a library of interactive content for agents Help your team share and gather information faster by creating
and bots. messaging components, which can be questions with clickable
options, time selectors, or other formats. Agents can send
messaging components to customers during messaging sessions.
280
Provide Conversation Support with Messaging in Service Enhanced Messaging Channel Activation Checklist
Cloud
IN THIS SECTION:
Activating and Deactivating Messaging Channels in Service Cloud
Several types of enhanced Messaging channels include the option to activate, deactivate, or refresh the channel. These options give
you more control over when a channel goes live. Review tips for activating a channel, deactivating a channel, and refreshing a
channel’s connection to an external messaging app such as WhatsApp.
281
Provide Conversation Support with Messaging in Service Enhanced Messaging Channel Activation Checklist
Cloud
To pause messaging traffic in an enhanced Messaging channel, select Deactivate Channel on the This Messaging
channel record home page. Deactivating stops the flow of messages to and from Salesforce in the article for In-App,
channel, including auto-responses. However, customers can still send you messages. doesn’t Messaging
apply to: for Web,
You can reactivate a channel at any time, but keep these items in mind: standard
• When a LINE, WhatsApp, or Apple Messages for Business channel is deactivated, there’s no way WhatsApp,
for you to view and respond to messages sent to your messaging account. standard
Facebook
• When a Facebook Messenger channel is deactivated, you can go to the Facebook Messenger
Messenger,
admin dashboard to view and respond to messages sent to your messaging account.
standard
• If you’re deactivating your channel as a temporary measure, we recommend reactivating within and
48 hours to avoid missing customer messages. Here’s why: 48 hours after deactivation, all open enhanced
messaging sessions in your channel will be ended. Open sessions include those in which a SMS, Bring
customer sent you a message while the channel was deactivated. If you reactivate the channel Your Own
later, those sessions are available in Salesforce, but they aren’t routed to your support team Channel,
because their status is Ended. By reactivating before 48 hours have passed, you ensure that and Bring
those new messages are routed to your support team. Your Own
Channel for
CCaaS
Refreshing a Channel's Connection
Sometimes, a connection to an external messaging app gets interrupted or stuck in a pending state.
Refreshing restores the connection so your team can continue helping customers. It doesn’t affect open messaging sessions. Depending
on the channel type, we may ask you to reenter some channel details.
Certain channel actions are limited in enhanced WhatsApp channels:
• Don’t refresh an enhanced WhatsApp channel’s connection more than 10 times in 72 hours.
• Don’t activate and deactivate an enhanced WhatsApp channel more than 5 times in 72 hours. Refreshing a sandbox deactivates any
active channels in the sandbox.
282
Provide Conversation Support with Messaging in Service Customize the Messaging Opt-In and Opt-Out Experience
Cloud
283
Provide Conversation Support with Messaging in Service Customize the Messaging Opt-In and Opt-Out Experience
Cloud
Just as customers have their own consent level for a channel, you choose a required consent level for each channel that you create.
When a customer’s consent level for a channel meets the required consent level, they can receive messages on the channel.
Explicit Opt-In The customer explicitly consents to receive messages from your company. Here’s what that might
look like:
• Customer: Hi, I need help with an order.
• You: (Opt-in prompt) Thanks for connecting with us! To opt in to receiving messages, reply Yes.
• Customer: (Opt-in keyword) Yes
• You: (Opt-in confirmation) Thanks for opting in and allowing us to send you messages.
Double Opt-In The customer explicitly consents to receive messages from your company, and then confirms their
consent. Here’s what that might look like:
• Customer: Hi, I need help with an order.
• You: (Opt-in prompt) Thanks for connecting with us! To opt in to receiving messages, reply Yes.
• Customer: (Opt-in keyword) Yes
• You: (Double opt-in prompt) To confirm your response, reply Start.
• Customer: (Double opt-in keyword) Start
• You: (Opt-in confirmation) Thanks for opting in and allowing us to send you messages.
Opt-Out The customer sends an opt-out keyword, such as STOP. When a customer opts out, they receive an
opt-out confirmation message. They then stop receiving messages, and all of their open chats are
closed.
In addition to using opt-out keywords, customers can opt out from receiving messages in Apple
Messages by swiping left on a chat in Apple Messages to delete it, and then replying Yes to the
confirmation prompt.
If a customer blocks your company on Facebook Messenger, agents can’t contact that customer
again. If a customer deletes the Facebook Messenger message thread, agents can’t contact that
customer again until the customer resumes the conversation.
284
Provide Conversation Support with Messaging in Service Customize the Messaging Opt-In and Opt-Out Experience
Cloud
For help customizing each auto-response, see Customize Auto-Responses in Service Cloud Messaging Channels.
285
Provide Conversation Support with Messaging in Service Customize the Messaging Opt-In and Opt-Out Experience
Cloud
We get you started with some default opt-in and opt-out keywords, but you can replace these keywords with your own. For help
customizing each auto-response, see Customize Auto-Responses in Service Cloud Messaging Channels.
SEE ALSO:
Messaging User Fields
Object Reference: MessagingEndUser
286
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
287
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Here are some ways that messaging components can help you create a consistent, familiar, and fast service experience for customers.
Find out what the customer needs help Create a question with static options Use the messaging component action in
with. component that shows the customer a list the messaging window to select and send
of common contact reasons to choose from. the component.
Determine which order the customer is Create a question with dynamic options Run a flow to send the component.
inquiring about. component that shows the customer a list
of their recent orders to choose from.
Find an open appointment time that works Create a time selector component that Run a flow to send the component.
for the customer. shows the customer a list of available time
slots to choose from.
At the end of a messaging session, Create an auto-response component that No agent action needed. In the settings of
automatically send a link to a customer includes a personalized survey link. a Messaging for In-App and Web channel,
satisfaction survey. admins select an auto-response component
in the Conversation Acknowledgment, Start
Conversation, Inactive Conversation, and
End Conversation fields. The appropriate
component is sent automatically when the
customer sends an opening message, the
288
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Quickly gather information from customers Create a form component that generates a Use the messaging component action in
by having them respond to a series of record, such as a contact or work order, from the messaging window to select and send
questions. a customer’s responses. the component.
Request payments using Apple Pay. Create a payment component that sends Run a flow to send the component.
customers a payment request.
Verify a customer’s identity using a Create an authentication component that Use the messaging component action in
third-party authentication provider such as prompts customers to log into Google. the messaging window to select and send
Google. the component.
Share an external app in messaging Create a custom component that lets Use the messaging component action in
sessions, such as your company mobile app. customers access your mobile app’s the messaging window to select and send
functionality, such as product browsing, the component.
from within the messaging session.
Send automated messages to notify Create a notification component that a flow No agent action needed. Admins create a
customers about case updates, product sends to customers when certain criteria are flow that sends the component when
shipments, or something else. met. specific criteria are met.
Create and manage messaging components on the Messaging Components page in Setup.
IN THIS SECTION:
Messaging Component Types and Formats
With messaging components, you can send structured content such as questions with options in enhanced Messaging channels
and Messaging for In-App and Web. Learn the purpose, format, and setup process of each component type.
Get to Know the Messaging Component Builder
The Messaging Component Builder is your workshop where you can customize and preview all types of messaging components.
Learn where and how to get things done in the Builder.
Create and Send Enhanced Links in Messaging Sessions
An enhanced link is a web page link that includes an image and custom link text. Create enhanced link messaging components that
agents can send to customers in supported enhanced Messaging channels or Messaging for In-App and Web.
Create and Send Questions with Static Options in Messaging Sessions
Create questions with static options to help agents quickly gather information from customers. For example, create a question that
asks customers to select the reason for their inquiry. Agents can send the question component to customers in supported enhanced
Messaging channels and Messaging for In-App and Web.
Create and Send Questions with Dynamic Options in Messaging Sessions
To quickly locate the record that a customer is inquiring about, let agents send customers a question with a dynamic list of records
to choose from. For example, ask customers to choose from a list of their recent orders or cases. Create your question and options
in Setup, and then add a flow that agents run to send the question to customers in a messaging session.
Create and Send Time Selectors in Messaging Sessions
Prompt customers to select from a list of time slots during messaging sessions. For example, ask customers to select a time for a
service visit or delivery. Create a time selector messaging component, and then link it to a flow and an Apex class.
289
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
290
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Question with Question with a list of Messaging for In-App and Intermediate
static options predefined clickable Web: Card Carousel, (about 10
choices. Buttons, Quick Replies, Text minutes).
Ideal for: Standardizing Enhanced WhatsApp:
common introductory Buttons, List Selector, Text
questions, such as the Enhanced Facebook
reason for a customer’s Messenger: Buttons, Card
inquiry. Carousel, Quick Replies, Text
291
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Question with dynamic Question with a list of customer-specific Messaging for In-App and Web: Card Advanced (30 or more
options records. Carousel, Buttons, Quick Replies, Text minutes).
Ideal for: Identifying the record that the Enhanced WhatsApp: Buttons, List Requires flows.
customer is asking about. For example, Selector, Text
ask customers to choose from a list of Enhanced Facebook Messenger:
their recent orders or cases. Buttons, Card Carousel, Quick Replies,
Text
Enhanced SMS: Text
Enhanced Apple Messages for Business:
List Selector, Quick Replies, Text
Enhanced LINE: Card Carousel, Buttons,
Quick Replies, Text
Bring Your Own Channel and Bring
Your Own Channel for CCaaS: Card
Carousel, Buttons, List Selector, Quick
Replies, Text
Time selector Prompt with a list of open time slots. Messaging for In-App and Web: Advanced (30 or more
Ideal for: Scheduling appointments. For Buttons, Quick Replies, Text minutes).
example, ask customers to select a time Enhanced WhatsApp: Buttons, List Requires flows and Apex.
for a service visit or delivery. Selector, Text
Enhanced Facebook Messenger:
Buttons, Quick Replies, Text
Enhanced SMS: Text
Enhanced Apple Messages for Business:
Time Selector, Quick Replies, Text
Enhanced LINE: Text
Bring Your Own Channel and Bring
Your Own Channel for CCaaS: Text
292
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Form List of secure fields for customers to Messaging for In-App and Web: Form, Intermediate (about 10
complete. Text minutes).
Ideal for: Generating records from Enhanced WhatsApp: Text
customer responses, such as contacts Enhanced Facebook Messenger: Text
or work orders.
Enhanced SMS: Text
Enhanced Apple Messages for Business:
Form, Text
Enhanced LINE: Text
Bring Your Own Channel and Bring
Your Own Channel for CCaaS: Form,
Text
Notification Informational message, such as a Messaging for In-App: Rich Link, Text Advanced (30 or more
delivery update. Enhanced WhatsApp: External minutes).
Ideal for: Notifying customers about Template, Text Requires flows.
case or order updates. Enhanced Facebook Messenger: Text
(no flow support; only manual sending
from the Service Console is supported)
Enhanced SMS: Text
Enhanced Apple Messages for Business:
Rich Link, Text
Enhanced LINE: Rich Link, Text
Bring Your Own Channel and Bring
Your Own Channel for CCaaS: Rich Link,
Text
Authentication Screen where customers enter login Messaging for In-App and Web: Text Advanced (30 or more
credentials for an authentication service Enhanced WhatsApp: Text minutes).
such as Google. Requires Apex.
Enhanced Facebook Messenger: Text
Ideal for: Verifying a customer’s identity.
Enhanced SMS: Text
Enhanced Apple Messages for Business:
Authentication, Text
Enhanced LINE: Text
293
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Custom External app embedded in a messaging Messaging for In-App and Web: Text Intermediate (about 10
session. Enhanced WhatsApp: Text minutes).
Ideal for: Sharing an app with Enhanced Facebook Messenger: Text
customers, such as your own mobile
app. Enhanced SMS: Text
Enhanced Apple Messages for Business:
External Application, Text
Enhanced LINE: Text
Bring Your Own Channel and Bring
Your Own Channel for CCaaS: Text
If you add multiple formats to a messaging component, Salesforce uses the most suitable format while trying to respect your priority
order.
294
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: Create a question with options component with five options. Add the Buttons and Quick Replies formats, with Buttons
as the highest-priority format. In a Facebook Messenger conversation, the component appears in the Quick Replies format because
the Buttons format supports only three options. If the component includes only three options, the higher-priority format is used.
295
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
296
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
297
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
298
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Text • Used for: All types of components Here’s what the auto-generated Text format of a
question with static options looks like in the
• Supported in: All types of channels
Messaging Component Builder.
• Displays a customizable plain text version of a
messaging component. The Text format is the
default format for messaging components, and
is used if the formats added to the component
aren’t available or supported in a channel. The
Text format of a messaging component is
automatically added when you create the
component, and uses formula templates to
display the same text as other formats.
299
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
300
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
SEE ALSO:
Supported Functions in Messaging Component Formulas
Facebook Documentation: Quick Replies
Facebook Documentation: Buttons
Facebook Documentation: Generic Template (Carousel)
Facebook Documentation: Media Template
WhatsApp Documentation: Interactive Object
Apple Documentation: Interactive Message Types
301
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
302
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
The component name appears in the header bar. The tabs in the left-hand navigation menu each contain settings that control the
appearance and behavior of your messaging component.
Constants Manage standard and custom constants that you can • View and edit standard constants.
reference in your component’s properties. The text
• Add and remove custom constants, which
and images that you provide when creating your
can be images or text.
component are all saved as standard constants. You
can also add custom constants. For example, to show • Edit list options and add images to them.
an image in the component link sent to customers,
add the image as a custom constant and then
reference it in a component property.
303
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Customization This tab appears only for form components. • View the global action associated with the
component.
• Update the number of minutes after
which links to the form expire in
messaging sessions.
Payment Provider This tab appears only for payment components. View the payment provider associated with
your messaging component.
Authentication Provider This tab appears only for authentication components. View the authentication provider associated
with your messaging component.
Component Formats Manage the formats that the component is available Click a format tab to complete these tasks.
in. The Text (plain text) format is added by default, • View the channels that support that
but all components offer additional formats that you format.
can add to control its appearance and behavior.
• Customize the format properties for the
When you add a format to the component, it appears
component. Configure each property to
as a tab in the Component Formats section.
use a literal value, a constant, or a formula
template that references the component’s
constants or parameters.
• View a preview of the component in that
format.
SEE ALSO:
Messaging Component Types and Formats
Add Dynamic Content to Messaging Components
Add Images to Messaging Components with Constants, Parameters, and Formulas
304
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
Bring Your
Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
Facebook
Messenger,
standard
and
enhanced
SMS, and
enhanced
LINE
channels
305
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
An enhanced link is a web page link that includes an image and custom link text. Create enhanced
USER PERMISSIONS
link messaging components that agents can send to customers in supported enhanced Messaging
channels or Messaging for In-App and Web. To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
Note: In enhanced WhatsApp and LINE channels, enhanced link components are available only in the Text format. When this
format is used, customers may see a link preview on page 477 or just the link title and URL. If you plan to create a screen flow that
automatically shares links in WhatsApp or LINE, enhanced link components are a good option. Otherwise, agents can simply copy
and paste a URL into a messaging session.
306
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
5. Enter a name and description for your enhanced link—for example, Company Home Page or Services Website.
These values aren’t visible to customers, but agents see the name in the list of messaging components in the Service Console. Assign
a name that indicates the link’s destination and purpose so agents know when to use it.
6. Click Done.
The Messaging Component Builder opens.
7. On the Component Details page, further customize your component.
a. In the Component Formats section, control the way your link appears in each type of Messaging channel. Click Add Format,
select a format, and then click Done.
Note: Each type of messaging channel has its own supported formats. To find out which formats a channel type supports,
see Messaging Component Types and Formats. If you plan to use the component in several types of Messaging channels,
it’s a good idea to add at least one format per channel type. For example, if an enhanced link component will be used in
both enhanced Facebook Messenger channels and Messaging for In-App and Web, you can add the Media and Rich Link
formats, respectively.
307
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
c. In the Component Properties pane, configure your title, image, and URL for each format. To keep it simple, select Constant for
each Type field and select the only available constant, which comes from the information that you entered a few steps ago.
Then, click Save.
308
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
You can configure an enhanced link component to use dynamic inputs—for example, to show different images or lead to
different URLs depending on the nature of the messaging session. However, using constants is more straightforward. To view,
edit, or create constants, click Constants in the left-hand sidebar.
d. Arrange the formats you selected in priority order. If a component can’t be shown in the highest-priority format, the next format
is used.
e. When you’re done editing your component, click Save and then click Back to exit the Messaging Component Builder.
309
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
2. Optionally, use the filter at the top to show only enhanced links.
3. Select the link you want to share and click Insert.
A placeholder appears below the message field. No preview of the component is available.
4. Click Send.
Example: When an agent sends an enhanced link component in an enhanced Facebook Messenger channel, the agent sees:
310
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
311
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
312
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Create questions with static options to help agents quickly gather information from customers. For
USER PERMISSIONS
example, create a question that asks customers to select the reason for their inquiry. Agents can
send the question component to customers in supported enhanced Messaging channels and To create messaging
Messaging for In-App and Web. components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
313
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
6. Click Done.
The Messaging Component Builder opens.
7. On the Component Details page, further customize your component.
a. In the Component Formats section, control the way your component appears in each type of Messaging channel. Click Add
Format, select a format, and then click Done.
Note: Each type of messaging channel has its own supported formats. To find out which formats a channel type supports,
see Messaging Component Types and Formats. If you plan to use the component in several types of Messaging channels,
it’s a good idea to add at least one format per channel type. For example, if a question with options component will be
used in both enhanced Facebook Messenger and enhanced WhatsApp channels, you can add the Buttons and List Selector
formats, respectively.
314
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
c. In the Component Properties pane, configure each format’s properties. To keep it simple, select Constant for each Type field
and select the only available constant, which comes from the information that you entered a few steps ago. Then, click Save.
d. Arrange the formats you selected in priority order. If a component can’t be shown in the highest-priority format, the next format
is used.
e. To show an image with each list option, click Constants in the left sidebar. Edit each constant and upload an image. Some
component formats don’t support images.
f. When you’re done editing your component, click Save, then click Back to exit the Messaging Component Builder.
315
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
2. Optionally, use the filter at the top to show only questions with options.
3. Select the link you want to share and click Insert.
A placeholder appears below the message field. No preview of the component is available.
4. Click Send.
Example: When an agent sends a question with options component in an enhanced Facebook Messenger channel, the agent
sees:
316
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
317
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
318
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
To quickly locate the record that a customer is inquiring about, let agents send customers a question
USER PERMISSIONS
with a dynamic list of records to choose from. For example, ask customers to choose from a list of
their recent orders or cases. Create your question and options in Setup, and then add a flow that To create messaging
agents run to send the question to customers in a messaging session. components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
1. From Setup, in the Quick Find box, enter Messaging Components, and then select Messaging Components.
2. Click New Component, and then click Next.
3. Click Question with Options, and then select Dynamic Options.
4. Enter your question. For example, Where are you located? If you plan to use your component in enhanced WhatsApp
channels, keep your question under 20 characters and your options under 24 characters.
5. Select an object. Only Case, Product, Asset, Order, and custom objects can be selected.
6. From the list of object fields, select the plain text display field. For example, if you’re working with a custom Location object, select
the Location Name field to show a list of location names.
319
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Note: Each type of messaging channel has its own supported formats. To find out which formats a channel type supports,
see Messaging Component Types and Formats. If you plan to use the component in several types of Messaging channels,
it’s a good idea to add at least one format per channel type. For example, if a question with options component will be
used in both enhanced Facebook Messenger and enhanced WhatsApp channels, you can add the Buttons and List Selector
formats, respectively.
320
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
After you create your component, it’s time to link it to a flow that agents can use to send it to a customer. Then, add the flow to the
Service Console and test it.
IN THIS SECTION:
Set Up a Flow to Send Questions with Options in Messaging Sessions
To let agents send a question with dynamic options in supported enhanced Messaging channels or Messaging for In-App and Web,
create a flow and associate it with your question component. Then, add the flow to the Service Console.
SEE ALSO:
Messaging Component Types and Formats
Add Dynamic Content to Messaging Components
321
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
a. To add a Record Collection Variable and show a collection of records, select Allow multiple This Standard
values (collection). The flow must populate the variable with the same object type that article WhatsApp,
the messaging component needs. For example, if your messaging component shows a list doesn’t standard
of cases, your flow should produce a variable that is a collection of Case records. apply to: Facebook
Messenger,
b. Add a Get Records element and define conditions to get the records of interest. For example, and
if your messaging component shows a list of cases, create an element that gets cases with standard
a high priority and a status of New. and
enhanced
4. Add a Screen flow component. Within that screen, add an Enhanced Message component. SMS
a. For Messaging Session ID, enter the recordId Variable that you created in step 2. channels
b. Select the messaging component that you want to use.
c. For Record Variable, enter the Record Collection Variable described in step 3.
322
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
c. Click Send.
In this enhanced Facebook Messenger channel, the agent sees:
323
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: This flow sends a question with options component that prompts the customer to select the case that they’re inquiring
about. The component is linked to the flow on the screen labeled Case Screen.
SEE ALSO:
Build a Flow
Flow Screen Input Component: Enhanced Message
324
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
and
enhanced
Apple
Messages
for Business
channels
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
325
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Prompt customers to select from a list of time slots during messaging sessions. For example, ask
USER PERMISSIONS
customers to select a time for a service visit or delivery. Create a time selector messaging component,
and then link it to a flow and an Apex class. To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
1. From Setup, in the Quick Find box, enter Messaging Components, and then select Messaging Components.
2. Click New Component, and then click Next.
3. Click Time Selector.
4. Enter a prompt and a plain text option, and then click Next. If you plan to use your component in enhanced WhatsApp channels,
keep your prompt under 20 characters.
326
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
6. Click Done.
The Messaging Component Builder opens.
7. On the Component Details page, further customize your component.
a. In the Component Formats section, control the way your component appears in each type of Messaging channel. Click Add
Format, select a format, and then click Done.
Note: Each type of messaging channel has its own supported formats. To find out which formats a channel type supports,
see Messaging Component Types and Formats. If you plan to use the component in several types of Messaging channels,
it’s a good idea to add at least one format per channel type. For example, if a time selector component will be used in
both enhanced Facebook Messenger and enhanced WhatsApp channels, you can add the Buttons and List Selector formats,
respectively.
d. Arrange the formats you selected in priority order. If a component can’t be shown in the highest-priority format, the next format
is used.
e. When you’re done editing your component, click Save > Back to exit the Messaging Component Builder.
After you create your component, it’s time to link it to a flow that agents can use to send it to a customer. The flow must also reference
an Apex class that provides the list of available time slots. Then, add the flow to the Service Console and test it.
IN THIS SECTION:
Set Up a Flow to Send Time Selectors in Messaging Sessions
Let agents send time selector components in supported enhanced Messaging channels and Messaging for In-App and Web. Create
a screen flow, associate it with a messaging component and an Apex class, and add it to the Service Console.
327
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
328
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
329
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: This flow sends a time selector component and asks the customer to select a time slot for an appointment. The
component is linked to the flow on the screen labeled Time selected screen.
SEE ALSO:
Build a Flow
Flow Screen Input Component: Enhanced Message
Set Up a Flow to Send Questions with Options in Messaging Sessions
Example: Apex Class for Time Selector Messaging Components
330
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
331
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
Bring Your
Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
332
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Create a text or link response that’s sent automatically when a customer initiates a messaging
USER PERMISSIONS
session, an agent joins, a customer stops responding, or a session ends. Auto-response messaging
components are supported only in Messaging for In-App and Web, Bring Your Own Channel, and To create messaging
Bring Your Own Channel for CCaaS. components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
With auto-response messaging components, you can automate common actions. For example:
• At the start of each messaging session, send a welcome message with a link to your Terms and Conditions web page.
• At the end of each messaging session, send a link to a page showing your current promotions.
• At the end of each messaging session, send a link to a customer satisfaction survey.
• When a customer remains inactive for a certain number of minutes, send them a message letting them know that the agent is
moving on to another customer.
To use auto-response components, create the component in Setup. Then, add the component to a Messaging for In-App and Web
channel and specify when it’s sent.
1. From Setup, enter Messaging Components in the Quick Find box, and then select Messaging Components.
2. Click New Component, and then click Next.
3. Select Auto-Response, and then click Next.
4. Enter the auto-response. For example: Thanks for letting us help you today!
If you plan to include a link, enter the introductory text only. You can add the link in a minute. For example: Sign up for our
newsletter.
5. Enter a name and description for your component, and click Done.
The Messaging Component Builder opens.
6. On the Component Details page, further customize your auto-response.
a. If your auto-response is text-only, you’re all set. Skip to step 8.
333
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
b. To add a link to your auto-response, click Add Format and select Web Page.
c. Click Web Page in the left-hand menu and customize its properties in the Component Properties pane.
d. Under Message Configuration, select Constant for Type and $Constants.Title for Constant. This adds the auto-response text
that you provided earlier.
e. Under URL Configuration, select Literal and enter the link URL.
f. Under Display Configuration, select Chat Message or Popup. In Messaging for In-App, all auto-responses appear as chat
messages regardless of this setting.
g. (Optional) Under Web Page Parameters, reference parameters specific to the messaging session, web page, or app.
h. Click Save.
7. Configure the plain text version of your auto-response to include the URL.
a. Click Text in the left-hand menu.
b. Edit the Formula Template field to include the URL.
334
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
c. Click Save.
9. Optionally, use the Messaging for In-App or Web APIs (Web, iOS, Android) to send additional parameter values to the component.
10. Test the component in a Messaging for In-App and Web session.
Keep these considerations in mind.
• The messaging component action in the messaging window doesn’t show auto-response components. These components are sent
only if they’re selected in a Messaging for In-App and Web channel’s settings.
• When an auto-response component is sent in a Messaging for In-App and Web channel, agents see a generic placeholder in the
transcript. Agents can’t see the content of the auto-response.
IN THIS SECTION:
Set Up Post-Chat Surveys for Messaging for In-App and Web
At the end of a Messaging for In-App and Web session, automatically send the customer a link to a Salesforce Feedback Management
survey.
Troubleshooting Auto-Response Messaging Components
You can encounter error messages when sending an auto-response messaging component.
335
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
SEE ALSO:
Add Dynamic Content to Messaging Components
Customize Auto-Responses in Service Cloud Messaging Channels
Messaging for Web Developer Guide
Messaging for In-App Developer Guide
336
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
337
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
At the end of a Messaging for In-App and Web session, automatically send the customer a link to
USER PERMISSIONS
a Salesforce Feedback Management survey.
To create messaging
components:
Step 1: Create Your Survey
• Customize Application
You can send post-chat surveys created in Salesforce Feedback Management or via a third-party AND View Setup and
solution. This article focuses on surveys created in Salesforce Feedback Management. Configuration
1. Ensure that you have the correct licensing for Salesforce Surveys, then create a survey in OR
Salesforce. Optionally, include merge fields to personalize the text shown in the survey. System Administrator
2. Generate and copy your survey link. The link automatically contains several parameters, such To set up and edit
as an invitationId, surveyName, and UUID. Messaging channels:
• Configure Messaging
Step 2: Create an Auto-Response Messaging Component To view channels:
• View Setup and
Create an auto-response messaging component that’s linked to your survey. This component is
Configuration
used to send the survey at the end of a messaging session.
1. From Setup, enter Messaging Components in the Quick Find box, and then select
Messaging Components.
2. Click New Component.
3. Select Auto-Response, and then click Next.
4. Enter your introductory text without your survey link.
5. Enter a name and description for your component, and click Done.
The Messaging Component Builder opens.
6. On the Component Details page, further customize your auto-response.
a. Click Add Format, select Web Page, and then click Done.
b. Select Web Page in the left-hand menu and configure its properties in the Component Properties pane.
338
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
c. Under Message Configuration, select Constant for Type and $Constants.Title for Constant. Completing this step ensures that
your survey introductory text appears above the link.
d. Under URL Configuration, select Survey Link for Type.
e. Under Display Configuration, select Popup to open the survey link in the chat window, or Chat Message to show the survey
link as a clickable link preview. In Messaging for In-App, all auto-responses appear as chat messages regardless of this setting.
f. Save your changes.
7. Update the plain text version of your component, which is used if the Web Page format isn’t available.
a. Click Text in the left-hand menu.
b. The Formula Template field contains your survey introductory text. After the text, add the survey URL that you copied from the
Survey Builder.
339
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
3. Select the survey you created, and click Save to return to the list of channels.
4. Click the name of your Messaging for In-App and Web channel.
5. Scroll to the Automated Responses section of the channel settings.
6. In the End Conversation field, select your auto-response component.
7. Save your changes.
The survey link is sent to customers when a Messaging for In-App and Web session ends.
340
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Here’s how one of the survey screens might look to a Messaging for Web customer.
When the auto-response is sent in a Messaging for In-App and Web session and the user completes the survey, a survey invitation record
is automatically created.
• If the messaging user is associated with a contact, lead, or case that includes a contact, the identifying record is associated with the
survey response. When you view the survey responses in the Analyze tab of the Survey Builder, the Participant ID is the record ID of
the contact, lead, or case.
• If the messaging user is anonymous, meaning it isn’t associated with a contact, lead, or case that includes a contact, the survey
response isn’t linked to the messaging user. As a workaround, include a required survey question where the person provides their
name, and use the name and survey response date to match the response to a contact or messaging session.
SEE ALSO:
Troubleshooting Auto-Response Messaging Components
341
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
342
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
343
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for Web,
applies to: Bring Your
Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Messaging
article for In-App,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
and
enhanced
LINE
channels
344
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
To personalize the URL being sent by an auto-response messaging component, use a placeholder.
USER PERMISSIONS
Personalizing the URL creates a dynamic experience for the end user. For example, use a placeholder
to reference a language code in the URL, which presents the URL to the end user in their preferred To create messaging
language. components:
• Customize Application
AND View Setup and
Understand Placeholders Configuration OR System
There are two types of placeholders that you can use to personalize an auto-response URL. Administrator
1. Core Parameters, also known as Web Page Parameters - These parameters typically represent To set up and edit
Messaging channels:
messaging session-related values. They’re configured in Salesforce in the Messaging Component
• Configure Messaging
builder under Web Page Parameters.
To view channels:
2. Client Page Parameters, frequently known as API parameters - These parameters typically
• View Setup and
represent page-specific or end user context, such as language or location. They’re configured Configuration
on the customer’s website using JavaScript and the Auto-Response API.
345
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
346
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web, and
enhanced
Apple
Messages
for Business
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
347
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
To let agents send secure forms to customers in supported Messaging channels, create a form
USER PERMISSIONS
messaging component. Forms let you quickly gather sensitive information from customers, such
as network passwords or credit card information. To create messaging
When a customer submits their form responses, Salesforce creates a record of them. Admins control components:
• Customize Application
whether agents can see the responses. A customer can’t view their submitted responses.
AND View Setup and
Each form is linked to a “Create a record” global action in Salesforce, such as a global action to create Configuration
a contact record. The record’s visibility settings for each field determine which form responses are OR
visible to agents.
System Administrator
348
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
f. Add fields from any object to the action layout, and customize their order. Global actions that are linked to a form messaging
component can contain these types of fields: Text, Text Area, Text Area (Long), Email, Checkbox, Date/Time, Number, Phone,
Picklist, Picklist (Multi-Select), and URL. All other field types, including lookup fields, aren’t supported. If an unsupported field is
added to the global action layout, it won't be visible in the form component and can cause an error. We recommend creating
help text for any field that requires a specific format, such as a Phone field.
6. Click Next and add a name and description for your component.
These values aren’t visible to customers, but agents see the name in the list of messaging components in the Service Console. Assign
a name that indicates the component’s purpose so agents know when to use it.
7. Click Done.
The Messaging Component Builder opens.
349
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
8. In the Component Formats section, control how the component looks in messaging sessions. Click Add Format, select Form, and
then click Done.
9. In the left-hand sidebar, click the Form format type to update its properties. First, select the top field in the form preview to edit the
form’s overall properties. Then, select one field at a time to configure the prompt, response, and keyboard shown for that field.
These properties apply only to Apple Messages for Business, and aren't used in Messaging for In-App and Web: Initial Message, Initial
Image, Welcome Screen Title, and Welcome Screen Message.
10. After you update the Form format properties, click Save.
11. In the left-hand sidebar, click the Text format type to update its properties.
The plain text version is sent if your preferred format isn’t available or doesn’t load. While global action-based forms can’t be sent in
plain text, you can edit your component’s plain text version so it contains a link to a public form or shows a text-only list of the
questions that appear in your form.
350
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
12. In the left-hand sidebar, click Customization. Optionally, change the expiration limit for the form. By default, when the form is sent
in a messaging session, customers have 5 minutes to submit their responses before the link expires.
13. When you’re done editing your component, click Save. Agents can now select it from a list of messaging components in the Service
Console.
14. If you want your form component to be used in a Messaging for Web deployment for an Experience Builder or Commerce Cloud
site, republish your deployment after creating or editing the component. Otherwise, messaging users can’t receive the form in
messaging sessions.
351
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: When an agent sends a form component in a Messaging for In-App channel, the customer sees the form’s initial
message and image (if you provided one) in a chat bubble. After opening the link, the customer proceeds through the welcome
screen and form questions, which appear in separate screens.
352
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
When the customer submits the form, the conversation transcript updates to show the record that was created by the form’s
associated global action. The customer sees the form confirmation message and image in the chat bubble, but isn’t notified that
a record was created.
If a customer refreshes their browser tab while filling out a form, their form responses are cleared for security reasons. After a
customer submits a form, they can’t click the form link in their messaging session to submit new responses. If needed, the agent
can resend the form component to gather new responses.
353
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Enhanced
article Apple
applies to: Messages
for Business
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
354
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Let agents verify a customer’s identity during an enhanced Apple Messages for Business messaging
USER PERMISSIONS
session. Using an authentication messaging component, prompt the customer to log into an
authentication provider such as Google. To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
You can authenticate users with one of Salesforce’s standard authentication providers, such as Google, Salesforce, and Facebook. Or,
you can create a custom authentication provider, which involves a few extra steps.
4. On the Apex Classes page in Setup, create an Apex class to be used during authentication. The class must implement the
RichMessaging.AuthRequestHandler interface. For details and an example, see AuthRequestHandler Interface.
5. If you’re using a custom authentication provider and your Apex class makes any HTTP callouts to fetch information, add each HTTP
base URL as a corresponding remote site on the Remote Site Settings page in Setup.
6. If you didn’t already, add and configure your authentication provider in Setup.
a. On the Auth Providers page in Setup, click Edit next to an existing authentication provider or click New to add one.
b. Select Link to messaging components.
c. In the Registration Handler field, select the Apex class that you created.
d. In the Token Endpoint URL field, add the Token URL that you copied from your authentication app.
355
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
5. Leave the plain text version of your component as is, and click Next.
6. Add a name and description for your component.
These values aren’t visible to customers, but agents see the name in the list of messaging components in the Service Console. Assign
a name that indicates the component’s purpose so agents know when to use it.
356
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
8. In the Component Formats section, control how the component looks in messaging sessions. Click Add Format, select
Authentication, and then click Done.
9. In the left-hand sidebar, click the Authentication format type to update its properties.
a. Leave the Authentication Configuration section, which shows your authentication provider’s scope and secret as read-only
values, as is.
b. In the Message Configuration section, provide a prompt that asks the customer to enter their login credentials. Customers click
the prompt to view the login screen. To use the prompt that you entered when you created the component, select Constant
and select the only available constant.
c. In the Confirmation Configuration section, select Literal and enter a message to show to customers after they enter their login
credentials.
d. In the Image Configuration section, provide an image to show with the component. To use the image that you uploaded when
you created the component, select Constant and select the only available constant.
10. Optionally, in the left-hand sidebar, click the Text format type to update the plain text version of your component.
11. In the Details section of your component, find the Callback URL field and copy the URL.
12. Click Save.
Your component is available to agents in the Service Console.
13. Add two redirect URLs to allow the identity provider to communicate with Salesforce.
a. In the settings of your external identity provider, go to the authentication app you created.
b. Add two URLs to the list of redirect URLs: https://auth.businesschat.apple.com and the callback URL that you
copied from your authentication component details.
357
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
2. Optionally, use the filter at the top to show only authentication components.
3. Select the component that you want to share and click Insert.
A placeholder appears below the message field. No preview of the component is available.
4. Click Send.
5. The customer clicks the component link and enters their login credentials.
6. If the credentials are correct, you—the agent—see an Authentication successful message. If the credentials are incorrect, you see
an Authentication denied message. You can give them a second chance by sending the authentication component again.
358
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: When an agent sends an authentication component in an enhanced Apple Messages for Business channel, the customer
sees:
To view all authentication attempts made in a messaging session, go to the Messaging Session Authentication Results related list on
the messaging session record. Each record in this list shows the verification level, status of the authentication request (active or expired),
and the time that the request expired or will expire.
By default, authentication requests that use Salesforce-supported authentication providers expire after one hour, but you can change
this limit using Apex. External authentication providers have their own expiration limits.
359
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Enhanced
article Apple
applies to: Messages
for Business
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
360
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Request payments from customers during messaging sessions with a payment messaging
USER PERMISSIONS
component. Agents can send the component to prompt the customer to make a payment with
Apple Pay. To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
1. Configure your Apple Pay settings and Messaging channel settings, and create a payment processing Apex class. For steps, see Add
Apple Pay to a Messaging Channel.
2. In Setup, go to the Messaging Components page.
3. Click New Component.
4. Click Payment, and then click Next.
5. Select the ProcessPaymentHandler Apex class that you created, and enter a prompt. Provide a URL that is sent if the component
must be sent in plain text format, and select or upload an image that appears with the payment request.
361
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
The prompt, plain text URL, and image are all saved as constants behind the scenes. You can reference those constants when you
customize your component’s behavior and appearance in the Messaging Component Builder.
6. Edit the plain text version of your component to add text to accompany the URL you entered. The URL is represented on this screen
as {!$Constants.Url}.
The plain text format is used if the component is sent in a Messaging channel that’s not an enhanced Apple Messages for Business
channel, or if the preferred format isn’t available.
7. Click Next and add a name and description for your component.
8. Click Done. The Messaging Component Builder opens.
362
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
9. Add a format to customize how the component looks in messaging sessions. Click Add Format, select Payment, and then click
Done.
10. In the left-hand sidebar, click the Payment format type to update its properties.
363
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
a. To use the prompt and image you provided earlier, in the Prompt Configuration and Image Configuration sections, select
Constant and select the only available constant.
b. For currency, provide your three-letter ISO 4217 currency code for the currency used in your payment requests.
c. For Merchant Domain, provide the domain that you saved when verifying your merchant domain while adding Apple Pay to
your channel.
11. After you update the remaining format properties, click Save. Next, create Apex classes and a flow that agents can run to send the
payment component to customers.
When you create a payment component, three standard parameters are also created. You can reference these parameters in flows, Apex,
or the component properties.
• PaymentLineItems: The items for purchase that are listed in the payment request. When a payment request is sent, an Apex class
populates the list of items.
• PaymentTotal: The total listed on the payment request. When a payment request is sent, an Apex class calculates the total.
• ShippingMethods: The shipping methods that you support. When a payment request is sent, an Apex class populates the shipping
method information.
To view the parameters, open your messaging component in the Messaging Component Builder and click Parameters in the left-hand
sidebar.
364
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
IN THIS SECTION:
Set Up a Flow to Send Payment Requests in Messaging Sessions
Create Apex classes and a screen flow that agents can run to send payment messaging components to customers in messaging
sessions. The flow executes the Apex classes and passes the transaction details into the payment messaging component.
This Messaging
1. Go to the Apex Classes page in Setup. article for In-App,
2. Create a series of Apex classes that determine the content of payment requests using your own doesn’t Messaging
product information. For reference documentation, see RichMessaging Namespace. apply to: for Web,
standard
3. In Flow Builder, create a screen flow that agents can run to send a payment messaging and
component to customers in messaging sessions. enhanced
4. Add the flow to the Messaging Session page layout so agents can run it during messaging WhatsApp,
sessions. See Add Messaging to the Service Console. standard
and
5. Send the component in enhanced Apple Messages for Business channels. enhanced
a. During an active messaging session, in the Service Console, find the Flow component that’s Facebook
linked to the question with options. Messenger,
standard
b. Run the flow that’s linked to your payment component. The admin configures the flow’s
and
steps, start button label, and location, so it may look different from our example. enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
365
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
e. If a message indicates that the payment was not successful, agents can try again by resending the payment component. Payment
requests expire after 5 minutes.
366
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: In this example flow, after a starting screen prompts the agent to click Next, three Apex actions execute the payment
line items, shipping methods, and payment totals Apex classes. A final screen inserts the payment messaging component into
the message body to be sent by the agent.
367
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Enhanced
article Apple
applies to: Messages
for Business
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
368
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Create a custom messaging component so agents can embed an external mobile app in enhanced
USER PERMISSIONS
Apple Messages for Business messaging sessions. Customers can then access the app’s capabilities,
such as search functionality, within their Apple Messages chat. To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
You can also use custom messaging components to share custom Lightning Web Components, custom iMessage extensions, or any
URL that opens in a web view.
For example, suppose you want to let customers browse your products without navigating away from Apple Messages. Create a custom
messaging component that’s linked to your business’s mobile app. When agents send the component in a messaging session, customers
can click it to open the app within Apple Messages. They can then use the app’s product search to find the product they’re looking for.
369
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
9. After you’re finished updating the External Application format properties, click Save.
10. In the left-hand sidebar, click the Text format type to customize the plain text version of your component, which is used if your
preferred format isn’t available or won’t load.
11. When you’re done editing your component, click Save. Agents can now select it from a list of messaging components in the Service
Console.
370
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
2. Optionally, use the filter at the top to show only custom components.
3. Select the component that you want to share and click Insert.
A placeholder appears below the message field. No preview of the component is available.
4. Click Send.
371
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
372
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
• Formula templates consist of a text body with possible merge fields. When a message that This Messaging
includes a formula template is sent, the merge fields are replaced with contextual information article for In-App,
such as an order number or customer name. Use formula templates to customize the Text applies to: Messaging
version of a messaging component. for Web,
enhanced
• sObject formulas are object-specific formulas that create field values based on contextual data.
WhatsApp,
Use sObject formulas to customize any supported format of a messaging component except
enhanced
for Text.
Facebook
Formula templates and sObject formulas can contain both plain text and contextual data from a Messenger,
data source. Two types of data sources are supported: constants and parameters. enhanced
Apple
Data Source Definition How to Reference Messages
for Business,
Constant Metadata that is defined as part $Constants.<constant_name> enhanced
of the messaging component. In this syntax, replace LINE, Bring
Constants support multiple <constant_name> with Your Own
data types, including text, URL, the name of a constant. For Channel,
and image. example: and Bring
Your Own
$Constants.Title
Channel for
CCaaS
Parameter Metadata that is defined as part $Parameters.<parameter_name>
of the messaging component, In this syntax, replace This Standard
with the data that it contains <parameter_name> with article WhatsApp,
provided dynamically when a the name of a parameter. For doesn’t standard
message is rendered. apply to: Facebook
example:
Parameters support the same Messenger,
$Parameters.MyCaseParam
data types as constants and and
references to records such as standard
cases or products. and
enhanced
SMS
channels
IN THIS SECTION:
Customizing Messaging Components with Formula Templates
When you create a messaging component, you can add and configure one or more formats to control the component’s appearance
in different Messaging channels. The default format of messaging components is Text, which is a plain text version of the component.
Customizing Messaging Components with sObject Formulas
Use sObject formulas to control the way that your messaging components appear in any non-Text format.
Supported Functions in Messaging Component Formulas
Before you customize components in the Messaging Component Builder, review which functions are and aren’t supported.
373
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
374
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
The center of the Messaging Component Builder shows a preview of the component in the selected format. In the properties panel on
the right, you can edit the formula template for any fields with a type of Template.
375
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
The merge field’s formula template (used to generate list items) can reference any constant, parameter, and any of these merge fields
related to the list item being generated.
• $ListItem.Index—the current index of the entry of the list being created.
• $ListItem.Value—the actual value of the current entry of the list being created.
• $ListItem.IsFirst—true when the first list item is being created, and false otherwise.
• $ListItem.IsLast—true when the final list item is being created, and false otherwise.
Use $ListItem.IsFirst and $ListItem.IsLast to apply special logic to the first or last list item.
Example: Here’s a formula template for the Text format of a question component with static options. The formula template uses
an OptionsList List Template merge field to show the list of options.
{!$Constants.Title}{!BR()}
Select an option:{!BR()}
{!$ListTemplates.OptionsList}
The definition of the OptionsList merge field references the Options list constant and includes the following formula template to
generate each list item:
{!$ListItem.Index}. {!$ListItem.Value.Name}{!IF(NOT($ListItem.IsLast),BR(),””)}
The definition is structured to insert a line break after all list items except the last one.
Each item in the list is a complex type with multiple fields (Name, Image, and Subtitle). In this example, only the Name field of the Option
entry is used to create list values.
When the formula templates are evaluated and the list items are created, the plain text version of the messaging component appears
as follows, depending on how the constants are set up:
What do you need help with?
Select an option:
1. Cancel my order
2. Change my shipping address
3. Change the delivery date
IN THIS SECTION:
Send a Personalized Customer Greeting with a Formula Template
Send a personalized greeting to an end-user automatically when an agent accepts their messaging session. Create a Start Conversation
auto-response messaging component that contains a formula template.
376
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
377
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
378
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
379
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
• SECOND
• MILLISECOND
• ADDMONTHS
• WEEKDAY
• DATEVALUE
• DATETIMEVALUE
• ISNUMBER
• ISNULL
• ISBLANK
380
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
• ISPICKVAL
• NULLVAL
• BLANKVALUE
• MOD
• MAX
• MIN
• ROUND
• GEOLOCATION
• ABS
• SQRT
• CEILING
• FLOOR
• MCEILING
• MFLOOR
• LOG
• EXP
• LN
• DISTANCE
• VALUE
• LEN
• LEFT
• MID
• RIGHT
• BEGINS
• CONTAINS
• SUBSTITUTE
• TRIM
• LPAD
• RPAD
• UPPER
• LOWER
• FIND
• CURRENCYRATE
• IF
• CASE
• INCLUDES
• CASESAFEID
• BR
• TRUE
• FALSE
381
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
• NULL
• NOUNESCAPE_STRING_LITERAL
• STRING_LITERAL
• TEMPLATE_STRING_LITERAL
• NUBMER
• IDENT
• MESSAGINGIMAGE
Unsupported Functions
HTML-generating functions aren’t supported.
• IMAGE
• HYPERLINK
• GETSESSIONID
• PREDICT
• DYNAMIC_REF (”[]”)
• DYNSAMICREF_IDENT
SEE ALSO:
Add Dynamic Images to Messaging Components
382
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
383
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Show messaging components in a customer’s preferred language with the help of Translation
USER PERMISSIONS
Workbench. For example, when you send a French-speaking customer a question with three options,
show the question and options translated into French. To create messaging
components:
Note: Automated messaging doesn’t yet support translated messaging components. If • Customize Application
you’re using a flow to automatically send notification messaging components, the original, AND View Setup and
untranslated version of the component is sent to customers. Configuration
OR
SEE ALSO: System Administrator
Enable or Disable Translation Workbench
To send and receive
Add Translated Languages and Translators messages in Messaging:
Export Data Translation Files • Messaging Agent
Import Translated Files To import and export
translation files:
Configure Field-Level Security
• Manage Translation
AND Customize
Step 1: Set Up Translation Workbench Application
384
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
5. If another format was added, click the format name in the left-hand sidebar.
6. In the properties pane, verify that the Type field for all text to be translated is set to Constant and that a constant is selected in the
field after it. In this example, the Quick Replies format on a question with static options component is correctly configured.
385
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
7. After you configure the properties of all formats added to your component, save your changes.
Note: Some text in a messaging component doesn’t need to be translated, such as URLs. This text can stay as literal text in a
formula template or component property.
Important: A messaging component is translated only if Translation Workbench contains translations of all of the component's
text constants. For example, if your component includes three constants, provide translations of all three constants. If a translation
of any constant is missing, the component isn't translated. This rule helps agents avoid sending a message that uses multiple
languages.
Provide translations manually:
1. In Setup, go to the Translate page under Translation Workbench.
2. In the Language field, select the language to which you want to translate your messaging component; for example, French.
3. In the Setup Component field, select Messaging Component.
4. In the Messaging Component field, select the developer name of the component to be translated.
5. In the Object field, select Messaging Component Name. The component name appears in a table.
6. Hover over the table and click the pencil icon, then enter the translation of the messaging component name. For example, agents
whose language is set to French see the French name of the component in the Service Console.
7. In the Object field, select Constant Values. All of the component’s constants appear in a table.
8. Hover over the table and click the pencil icon, then enter the translation of each constant.
9. Save your changes.
To provide translations in a batch, export a data translation file from the Export page in Setup under Translation Workbench. When
exporting, select the Messaging Component Name or Constant Values object. After completing one file per language, import them on
the Import page.
386
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Example: Your default org language is English, and you created a range of messaging components in English. To support your
French-speaking customers, you upload French translations of the components in Translation Workbench.
When a customer initiates a messaging session with a French message, the agent updates the Messaging User Language on the
session record to French. Any components that the agent sends during the session appear to the customer in French.
If a component is available in an agent’s default language, the agent sees the component name in their language in the list of messaging
components shown in the Service Console. Otherwise, it shows the original component name.
Note: Auto-response messaging components are messages sent at key moments in a conversation: when the customer sends
an opening message, the agent joins, the customer stops responding, or the session ends. They're used in Messaging for In-App
and Web, Bring Your Own Channel, and Bring Your Own Channel for CCaaS. While auto-response messaging components can be
translated like any other component, the messaging session record must list a Messaging User Language so Salesforce knows
what language to use. Because the Conversation Acknowledgment auto-response is sent before an agent can join the session
and identify the messaging user's language, this particular auto-response is never translated.
387
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
Static Versus Dynamic Images article for In-App,
If you want a messaging component to always show the same (static) image or images, use constants applies to: Messaging
to define the images. Using constants is the simplest way to include images in a messaging for Web,
enhanced
component.
WhatsApp,
To show different (dynamic) images in a messaging component based on messaging session enhanced
characteristics or other custom criteria, provide the images via parameters or sObject formulas. Facebook
Adding dynamic images is more advanced than adding static images, but it’s an effective way to Messenger,
personalize messages sent to customers. For example, in a list of the customer’s three most recently enhanced
purchased products, show an image of each product next to the product name. Or in an enhanced Apple
link messaging component, show a URL and image that vary depending on the season or the end Messages
user’s location. for Business,
enhanced
LINE, Bring
Get Started Your Own
Channel,
and Bring
IN THIS SECTION:
Your Own
Add Static Images to Messaging Components Channel for
If you want a messaging component to always show the same image or images, define the CCaaS
images in the Messaging Component Builder using constants. Standard constants are
This Standard
auto-created, while you create custom constants manually.
article WhatsApp,
Add Dynamic Images to Messaging Components doesn’t standard
If you want a messaging component to show different images depending on the situation, apply to: Facebook
define the images in the Messaging Component Builder by using parameters or sObject formulas. Messenger,
Adding dynamic images to messaging components is more advanced than adding static images, and
but it’s an effective way to personalize messages sent to customers. standard
and
enhanced
SMS
channels
388
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
389
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
If you want a messaging component to always show the same image or images, define the images
USER PERMISSIONS
in the Messaging Component Builder using constants. Standard constants are auto-created, while
you create custom constants manually. To create messaging
First, let’s review the differences between standard and custom image constants. While this article components:
• Customize Application
focuses on image constants, the same principles apply for text and URL constants. All constants are
AND View Setup and
found on the same tab in the Messaging Component Builder. Configuration
OR
Type How It’s Examples Editable? Deletable?
Created System Administrator
Standard image When you upload • When you Yes, from the No, but you can To send and receive
constants an image during Constants tab in replace an messages in Messaging:
create an
the New the Messaging original uploaded • Messaging Agent
enhanced link
Component and upload Component image by editing
setup flow, a an image to Builder. its standard
standard constant show with constant. You can
is created for it. the link, the also choose not
image is to use the
saved as a constant.
standard
constant.
• When you
create a
payment
messaging
component
and upload
an image to
show with it,
the image is
saved as a
standard
constant.
Custom image Add custom • After creating Yes, from the Yes, from the
constants constants after a question Constants tab in Constants tab in
finishing the New with options, the Messaging the Messaging
Component add a custom Component Component
setup flow. Use image Builder. Builder.
the ImageAsset constant to
type. show with
the question.
• After creating
a form
messaging
component,
add a custom
image
390
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
Now, review the process for adding static images to a messaging component.
391
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
5. To send the component during a messaging session, agents can select it from a list in the messaging component action and click
Send. If you configured an image property to use an image constant, the customer sees the image in the messaging component.
Note: In some list formats such as List Selector and Card Carousel, you can show an image with each list option. To add images
to your list options, edit each item in the Options section of the Constants tab when viewing your messaging component. Then,
reference that constant in the format’s image property for its list options.
SEE ALSO:
Add Dynamic Images to Messaging Components
Send Messaging Components in Messaging Sessions
392
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
and
enhanced
SMS
channels
393
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
If you want a messaging component to show different images depending on the situation, define
USER PERMISSIONS
the images in the Messaging Component Builder by using parameters or sObject formulas. Adding
dynamic images to messaging components is more advanced than adding static images, but it’s To create messaging
an effective way to personalize messages sent to customers. components:
• Customize Application
When an agent or bot sends a messaging component with dynamic images, Salesforce provides
AND View Setup and
the right images based on parameters that you set. For example, in a list of the customer’s three Configuration
most recently purchased products, show an image of each product next to the product name. Or
OR
in an enhanced link messaging component, show a URL and image that vary depending on the
season or the end user’s location. System Administrator
Images can be provided as Image ID parameters or URL parameters, depending on how your image To send and receive
is stored in Salesforce. Alternatively, define images using an sObject formula. messages in Messaging:
• Messaging Agent
Let’s walk through these steps to create an enhanced link messaging component with a dynamic image.
1. Create the messaging component in Setup.
a. From Setup, enter Messaging Components in the Quick Find box, and then select Messaging Components.
b. Click New Component.
c. Complete the flow to create your enhanced link. Because an image is required, upload a generic image.
When the component is created, the Messaging Component Builder opens.
394
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
b. For each format that you add, click its name in the navigation menu and check the properties pane to see how many images
you can include. Look for properties with “Image” in the title. The Rich Link format has one image property.
3. In a separate browser tab, prepare the images that you plan to use in your messaging component. Upload them as files or assets,
or store them in a custom field that contains a URL leading to the image.
Tip: If you save the images as files or assets, perform a query from the Salesforce Developer Console to gather the image ID
of the associated ContentVersion or ContentAsset record. You can then reference this ID in your flow. ContentVersion IDs start
with 069, while ContentAsset IDs start with 03S. In this example ContentVersion URL, the ID is 0691Q00000YOjliQAD:
https://yourwebsite.com/lightning/r/0691Q00000YOjliQAD/view.
4. Back in the Messaging Component Builder, create a custom parameter to provide the link image.
a. From the Parameters tab, click New in the Custom Parameters section.
You can add up to 5 custom parameters.
b. Enter a name and API name, and select ImageId as the type.
c. Select Required if the parameter must be provided for the component to be sent.
The flow to insert the component fails if it doesn’t provide this parameter.
395
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
6. On the Flows page in Setup, create a screen flow that agents can run to send the messaging component to a customer. While flows
are highly customizable, refer to these steps for guidance.
a. Create a text variable named recordId and make it available for input. This resource stores the ID of the messaging session.
b. Create a second text variable named imageId and make it available for input. This resource stores the ID of the image asset.
c. Add a screen containing an Enhanced Message component.
d. In the inputs section of the Enhanced Message component, enter your recordId variable as the Messaging Session ID and select
the messaging component.
e. In the custom parameters section of the Enhanced Message component, select the custom imageId parameter and imageId
variable.
396
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
f. Add other flow logic to define when a particular image is used. For example, use a decision element paired with assignment
elements to populate the imageId variable with a specific ContentVersion ID based on the user’s location. Or, add a Get Records
screen that retrieves a ContentVersion or ContentAsset record matching your criteria.
g. Save, debug, and activate your flow.
7. Add the flow to your Messaging Session page layout. See Add Messaging to the Service Console.
8. To send the messaging component in a messaging session with its images populated, the agent runs the flow in the Service Console.
397
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
The button text is provided via a standard parameter, shown in the Button Configuration section. The accompanying flow can then
define which records are shown as list options, while the MessagingImage formula transforms each record’s image URL into the
image shown with the list option.
398
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
399
Provide Conversation Support with Messaging in Service Interactive Messaging Components
Cloud
• If you create a form component for use in a Messaging for Web deployment for an Experience Builder or Commerce Cloud site,
republish your deployment after creating or editing the component. Otherwise, messaging users can’t receive the form in messaging
sessions.
Notification Components
• Notification messaging components can be sent manually using the messaging component action in the messaging window, or
via a flow using the Send Conversation Messages flow action.
• Automated messaging doesn’t yet support translated messaging components. If you’re using a flow to automatically send notification
messaging components, the original, untranslated version of the component is sent to customers.
• To be sent in a WhatsApp channel, a notification messaging component must be linked to a WhatsApp messaging template that is
created in WhatsApp Business Manager and approved by WhatsApp. For details, see Send Automated Messages in Enhanced
Messaging Channels.
• Buttons and dynamic footers aren’t supported in WhatsApp templates that are linked to a notification component, and should be
removed from the template in WhatsApp Business Manager. Buttons invite a response from the customer, whereas notification
components are designed to share information that requires no response. If a template contains buttons or a dynamic footer, those
sections aren’t visible or configurable in the Messaging Component Builder.
• When a notification messaging component is sent to a customer in an enhanced WhatsApp channel, it counts as one outbound
message regardless of whether it’s sent within the 24-hour customer care window.
• In enhanced Facebook Messenger, enhanced LINE, Bring Your Own Channel, and Bring Your Own Channel for CCaaS, notification
messaging components are available only in the Text (plain text) format, and can only be sent manually using the messaging
component action in the messaging window of the Service Console. You can’t use flows to send notification messaging components
in these channels.
• If you use the metadata API to redeploy a notification messaging component that’s linked to an approved WhatsApp template—for
example, if you’re migrating components between orgs—you must then reconfigure the component to avoid problems during
sending. Open the component in the Messaging Component Builder, remove the External Template format, re-add the same format,
and reconfigure its properties.
• The messaging component action in the messaging window doesn’t show questions with dynamic options or time selectors. Agents
can send these types of components to customers by running a flow in the Service Console to insert the component into the message
field, and then clicking Send.
400
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
Payment Components
Currently, Apple Pay payments made in Apple Messages for Business channels via a payment messaging components are supported
only in the sandbox. Don’t add Apple Pay to your channel in production.
Note: In enhanced Facebook Messenger, enhanced LINE, Bring Your Own Channel, and Bring Your Own Channel for CCaaS,
agents can send notification messaging components manually from the Service Console by clicking the messaging component
action and selecting a component. However, you can’t send them via automation.
401
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
IN THIS SECTION:
Set Push Notifications for Messaging for In-App
Set push notifications for your iOS or Android mobile apps in your Messaging for In-App channel. Unlike messages that are automated
or sent by agents, push notifications are temporary and don’t appear in a user’s messaging history.
Send Automated Messages in Enhanced Messaging Channels
Using a flow and a notification messaging component, send customers automated messages to notify them about a product delivery,
case update, or something else.
Send Automated Messages in Standard Messaging Channels
Using a flow, send customers automated, template-based messages in standard Messaging channels to notify them about a product
delivery, case update, or something else.
402
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
This Messaging
article for In-App
applies to: channels
This Messaging
article for Web,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
403
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
Set push notifications for your iOS or Android mobile apps in your Messaging for In-App channel.
USER PERMISSIONS
Unlike messages that are automated or sent by agents, push notifications are temporary and don’t
appear in a user’s messaging history. To set up this feature:
Before you set up push notifications, review and prepare platform-specific information. • Customize Application
AND
To learn more about iOS device notifications, see Apple’s Notifications Overview. You also need
access to the Apple credentials for iOS. Modify Metadata
Through Metadata API
To learn more about Android device notifications, see Google’s Notifications Overview. Before you Functions
set up push notifications, also complete these setup tasks for Android.
To modify permission sets
1. Confirm that you have access to the Firebase credentials for Android.
and profiles:
2. Enable the Firebase Cloud Messaging API by visiting • Manage Profiles and
Permission Sets
https://console.developers.google.com/apis/api/fcm.googleapis.com/overview?project=projectID
(enter your projectID in the URL).
3. Apply the Firebase Cloud Messaging API Admin role to your Google Cloud project’s service account that you authorized in Salesforce.
With this role, you can create & send push notifications. For your list of Google accounts, visit
https://console.cloud.google.com/iam-admin/iam?project=projectID (enter your projectID in
the URL).
With your platform information ready, follow these steps.
1. From Setup, in the Quick Find box, enter Embedded Service, and then select Embedded Service Deployments.
2. Next to the Embedded Service deployment that you want, click View .
3. From the Push Notifications section, click Set Notifications.
404
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
Field Purpose/Limitation
App Identifier The application bundle of your iOS app.
APNS Host Select the host that matches your application build, either
Production or Development.
Key Identifier The 10-character key ID from Apple for your encryption key.
Team Identifier The 10-character team ID for developing your company’s apps.
Signing Key Upload the token connection .p8 signing key file provisioned
in the Apple Developer account associated with your application.
Field Purpose/Limitation
Firebase Project Name The name of the Firebase project associated with your Android
app.
Firebase Database URL The Firebase URL for the database associated with your app.
Usually in the form
https://projectName.firebase.com.
Service Account JSON The service account file provisioned from the Firebase Project
associated with your application. Contains project information
and a private signing key for authorization to FCM services.
Note: Each deployment contains a pair of Apple and Android notification credentials. To ensure the mobile app uses the correct
credentials, configure the deployment’s developerName in the mobile SDK.
405
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
This Messaging
article for In-App,
applies to: enhanced
WhatsApp,
enhanced
SMS,
enhanced
LINE, and
enhanced
Apple
Messages
for Business
channels
This Messaging
article for Web,
doesn’t standard
apply to: and
enhanced
Facebook
Messenger,
standard
WhatsApp,
standard
SMS, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
406
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
Using a flow and a notification messaging component, send customers automated messages to
USER PERMISSIONS
notify them about a product delivery, case update, or something else.
Automated messages appear in a customer’s messaging history. They don’t require a response, but To open, edit, or create a
if the customer does respond, their response is routed back to your support team. flow in Flow Builder:
• Manage Flow
To create, edit, or view
processes:
• Manage Flow
AND View All Data
To create messaging
components:
• Customize Application
AND View Setup and
Configuration
OR
System Administrator
Step 1: (Enhanced WhatsApp Only) Prepare Your Templates in WhatsApp Business Manager
In WhatsApp channels, automated messages must be based on a WhatsApp template that you create in WhatsApp Business Manager.
When an automated message is sent in an enhanced WhatsApp channel, it counts as one outbound message regardless of whether it’s
sent within the 24-hour customer care window.
1. If you’re upgrading from a standard channel or migrating a number from an external business service provider (BSP), copy your
message templates from the original WhatsApp Business account (WABA) to the new WABA associated with your enhanced channel.
a. In Setup, go to the Messaging Settings page.
b. In the list of channels, click the name of your enhanced WhatsApp channel.
c. In the Message Templates section, enter the ID of your original WABA that was associated with your standard channel or external
BSP. The original WABA and your new channel WABA must be associated with the same Meta Business ID.
d. Click Copy Templates.
407
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
e. When you receive confirmation that the templates were copied, navigate to your new WABA’s settings in WhatsApp Business
Manager.
2. In WhatsApp Business Manager, create new message templates or recreate any that couldn’t be copied from a previous WABA.
a. Follow the WhatsApp documentation: Create message templates for your WhatsApp Business account.
b. Important: Remove any buttons or dynamic footers from your templates. Buttons invite a response from the customer, whereas
notification components are designed to share information that requires no response. If a template contains buttons or a dynamic
footer, those sections aren’t visible or configurable in the Messaging Component Builder.
c. Wait until your template status updates to indicate that it’s approved, which can take up to a day.
2. (Messaging for In-App and Apple Messages for Business only) Optionally, include a rich link in your automated message.
a. Click Add Format. Select Rich Link, and then click Done.
408
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
b. In the left-hand menu, click Constant to replace the example URL and link title with your own.
c. In the left-hand menu, click Rich Link to confirm the format properties. For the image, URL, and link title, select Constant and
select the only available constant.
d. Save your changes.
3. (Enhanced WhatsApp channels only) Connect your messaging component to an existing WhatsApp message template.
a. On the Details page of your component in the Messaging Component Builder, click Add Format. Select External Template,
and then click Done.
409
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
410
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
a. In the Messaging Users field, select the collection variable that you created.
b. In the Messaging Component field, select your new messaging component.
c. Select when the message can be sent.
d. Select whether to apply the messaging end user's consent preferences for a channel when determining who receives the message
(recommended).
You can use values from earlier in a flow to set inputs for the message. If the action fields don’t contain valid inputs, the flow fails.
To track messages sent by this flow action, query the ConvMessageSendRequest object.
Tip: If needed, agents can also manually send notification messaging components to customers. Click the messaging component
action in the messaging window, and select and send the component.
SEE ALSO:
Flow Core Actions: Send Conversation Messages
411
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
USER PERMISSIONS
To create messaging
templates and view errors:
• Configure Messaging
To view channels:
• View Setup and
Configuration
412
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
If you’re creating a standard WhatsApp template, copy and paste the approved template while replacing the parameter
placeholders with your merge fields. The remaining template content must match your WhatsApp submission exactly, including
spaces and line breaks.
e. Select the channels where this template will be available: All channels, SMS, WhatsApp, or Facebook Messenger.
f. Optionally, select a template category if the template will be used in standard WhatsApp channels. The Template Category field
merely helps you organize your templates in Salesforce, and doesn’t affect the way that WhatsApp processes templated messages.
g. Click Save.
After you create a messaging template, create a flow that manages the sending of the message.
IN THIS SECTION:
Create a Flow to Send Messages in Standard Channels
Set up automation that sends template-based messages in standard Messaging channels when certain conditions are met.
Troubleshoot Errors for Automated Messages in Standard Messaging Channels
If something goes wrong when a flow tries to send a message notification in a standard Messaging channel, review the Messaging
Templates error log to find out what happened.
413
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
414
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
Note: Though both are optional, use either Recipient Phone Number or Recipient Record ID to ensure the
Message Notification action works.
SEE ALSO:
Build a Flow
415
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
This Standard
article WhatsApp,
applies to: standard
Facebook
Messenger,
and
standard
SMS
channels
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To create messaging
templates and view errors:
• Configure Messaging
To view channels:
• View Setup and
Configuration
416
Provide Conversation Support with Messaging in Service Set Up Automated Notifications in Service Cloud Messaging
Cloud
2. To view an error’s details, click the down arrow in the error’s action menu and select View.
When you're troubleshooting errors, keep this information in mind.
Messaging sends messages only to recipients who meet certain criteria.
Recipients are excluded when they don’t meet all the criteria:
• The recipient must have a corresponding Messaging User record.
• The Mobile Number field on the Messaging User record must be populated.
• The recipient must be opted in to receiving messages from you.
• The sender numbers you select must be associated with a messaging queue.
Broadcast messaging templates can’t be deleted after use.
If a template has been used in a broadcast message, you can’t delete it. Check the Conversation Broadcasts tab to see whether a
template has been used.
Recipients might receive multiple messages.
If they’re opted into multiple sender numbers, recipients can receive multiple messages. We recommend regularly reviewing your
Messaging User records to remove duplicates and check your recipients’ opt-in statuses.
Messaging templates aren’t supported in some Messaging channels.
Messaging templates are used only in standard SMS, standard Facebook Messenger, and standard WhatsApp channels. Enhanced
channels and Messaging for In-App and Web use a different method for sending automated messages.
Messaging errors are automatically deleted after 30 days. Deleted errors no longer appear in the error log. You can also delete an error
from the list view or error detail page.
SEE ALSO:
Messaging Error Codes in Service Cloud
Report on Messaging Activity in Service Cloud
417
Provide Conversation Support with Messaging in Service Using Enhanced Bots in Messaging Channels
Cloud
418
Provide Conversation Support with Messaging in Service Customize Auto-Responses in Service Cloud Messaging
Cloud Channels
1. From Setup in Lightning Experience, enter Messaging in the Quick Find box, and then select This Messaging
Messaging Settings. article for In-App,
applies to: Messaging
2. Find your channel in the list. Click the down arrow on the right-hand side and select Edit.
for Web,
Important: In enhanced Messaging channels and Messaging for In-App and Web, standard
clicking Edit shows only some of the channel settings. To edit additional auto-response and
settings, such as the required level of consent and language-specific keywords, click the enhanced
channel name in the list of channels. WhatsApp,
standard
3. In the Automated Responses section, enter the messages that you want to send to customers. and
enhanced
4. Save your changes.
Facebook
Messenger,
Field Description Example Required? standard
Conversation The reply sent to a customer’s initial Thanks for your No and
Acknowledgment message. It assures the customer that message. An enhanced
you received their message. In agent will be with SMS,
enhanced
channels that require customers to you shortly. Just
Apple
opt in to receiving messages, the so you know, we
Messages
conversation acknowledgment is sent record and track
for Business,
after the opt-in confirmation. conversations to
enhanced
If a bot is in use, the Conversation help improve LINE, Bring
Acknowledgment field is disabled your experience. Your Own
because the bot responds to the Channel,
customer’s initial message. In and Bring
Messaging for In-App and Web Your Own
channels, create an auto-response Channel for
messaging component to use as your CCaaS
Conversation Acknowledgment
message. USER PERMISSIONS
Start The message sent to a customer when Hello, how can I No To set up and edit
Conversation an agent joins the conversation. In help you today? Messaging channels:
Messaging for In-App and Web • Configure Messaging
channels, create an auto-response To view channels:
messaging component to use as your • View Setup and
Start Conversation message. Configuration
End Conversation The message sent to a customer when Thanks again for No
the agent or customer ends the contacting us. We
conversation. In Messaging for In-App appreciate your
and Web channels, create an business.
419
Provide Conversation Support with Messaging in Service Customize Auto-Responses in Service Cloud Messaging
Cloud Channels
Inactive Conversation (Messaging for In-App and Web only) The message It looks like you’re busy, No
sent when a conversation is automatically marked so we’re going to help
inactive after a specified period of inactivity. Create another customer now.
an auto-response messaging component to use as
your End Conversation message.
Opt-In Prompt (Not available in Messaging for In-App and Web) Asks
To subscribe to Short codes only
customers to opt in to receive messages on this [Campaign Name]
channel. To opt in, customers can reply with an opt-in
[Description] Alerts, reply
keyword. You can’t customize the prompt for other START. Reply HELP for
languages. help. Reply STOP to
To customize the opt-in prompt for enhanced cancel at any time.
Messaging channels, set the channel’s Consent Type Msg&data rates may
to Explicit Opt-In. apply.
Opt-In Keywords (Not available in Messaging for In-App and Web) START, OPT IN Short codes only
Keywords your customers can send to agree to
receive messages on this channel. You can add opt-in
keywords for every language you support.
Opt-In Confirmation (Not available in Messaging for In-App and Web) The By default, the opt-in SMS and short codes only
message sent after a customer sends an opt-in message is “Thanks for
keyword. The confirmation acknowledges that the opting in and allowing us
customer consents to receiving messages from your to send you messages.”
company on this channel.
In enhanced Messaging channels, customers don’t
receive an opt-in confirmation when they’re implicitly
opted in to receive messages.
Opt-Out Keywords Keywords your customers can send to opt out of STOP Yes
receiving messages on this channel. When a
customer sends an opt-out keyword, they receive an
opt-out confirmation, and then stop receiving
messages. You can add opt-out keywords for every
language you support. The default keywords are:
• Stop
• Stopall
• Unsubscribe
• Cancel
• End
• Quit
Opt-Out Confirmation The message sent after a customer sends an opt-out By default, the opt-out Yes
keyword. You can customize this for every language message is “You’ve opted
420
Provide Conversation Support with Messaging in Service Customize Auto-Responses in Service Cloud Messaging
Cloud Channels
Double Opt-In Prompt (Not available in Messaging for In-App and Web) Asks To confirm your Short codes only
customers to confirm that they agree to receive subscription to
messages on this channel. This message is sent in [Campaign Name]
channels that require double consent. To opt in, [Description] Alerts, reply
customers can reply with a double opt-in keyword. YES. Reply HELP for help.
Reply STOP to cancel at
any time. Msg&data rates
may apply.
Double Opt-In Keywords (Not available in Messaging for In-App and Web) CONFIRM, YES, Y
Keywords your customers can send to doubly agree
to receive messages on this channel. You can add
double opt-in keywords for every language you
support. Your opt-in keywords and double opt-in
keywords should be different.
Help Keywords Keywords your customers can send to request help HELP, AIDE Short codes only
during a conversation. You can add help keywords
for every language you support.
Help Response The response sent to customers when they send a [Campaign Name] Short codes only
help keyword. You can customize this for every [Description] Alerts: Help
language you support. at [source of help] or [toll
free number]. Msg&data
rates may apply.
[Message frequency].
Text STOP to cancel.
Custom Keywords Keywords your customers can send to receive a INFO Short codes only
custom response. For example, use custom keywords
to automate the sharing of company-specific
information, or to comply with country-specific
regulations. You can add custom keywords for every
language you support.
Custom Response The response sent to customers when they send a [Campaign Name] Short codes only
custom keyword. You can customize this for every [Description] Alerts:
language you support. Contact us at [web URL]
or [email address].
Msg&data rates may
apply. [Message
frequency]. Text STOP to
cancel.
421
Provide Conversation Support with Messaging in Service Customize Auto-Responses in Service Cloud Messaging
Cloud Channels
Tip: In addition to customizing auto-responses, save agents time during messaging sessions by giving them predefined “quick
text” messages, like greetings, answers to common questions, and descriptions of company policies. Quick text can include merge
fields, line breaks, and special characters, and is a great way to standardize your company messaging.
SEE ALSO:
Customize the Messaging Opt-In and Opt-Out Experience
Create and Send Auto-Response Components in Messaging Sessions
Standardize Responses with Quick Text
Messaging for Web Developer Guide
Messaging for In-App Developer Guide
422
Provide Conversation Support with Messaging in Service Update Service Cloud Messaging Channel Settings
Cloud
Note: If you don’t see a setting, click Edit in the channel’s action menu to view additional Available in: Lightning
settings. Experience. View required
editions.
This Messaging
General Channel Settings article for In-App,
applies to: Messaging
Field Description for Web,
standard
Active Not editable. Indicates whether the channel’s
and
messaging traffic is traveling to and from
enhanced
Salesforce. Some channels must be activated
WhatsApp,
on page 282 in Setup.
standard
Business Hours The operating hours for your business, when and
agents are available. Available only if Einstein enhanced
Bots is in use. Facebook
Messenger,
Channel Address Identifier A UUID that identifies a deployed messaging standard
channel. This identifier is unique across orgs, so and
a channel with the same Messaging Platform enhanced
Key in a sandbox and production has a different SMS,
Channel Address Identifier for each. enhanced
Apple
Channel Name The name of the channel. Messages
For Facebook Messenger channels, if you update for Business,
the name of your Facebook page in Facebook, enhanced
the old name still appears in the Messaging LINE, Bring
Your Own
channels list view. To show the new name,
Channel,
delete and re-add the channel for that page.
and Bring
Your Own
Developer Name The developer name of the channel. This value
Channel for
is a concatenation of the messaging platform
CCaaS
key and the channel type.
Messaging Platform Key (Not editable) A unique key for a channel that
the end user can message.
• In SMS, WhatsApp, and LINE channels, the
platform key is the phone number
associated with this channel.
• In Facebook Messenger channels, the
platform key is the Facebook page ID
associated with this channel.
423
Provide Conversation Support with Messaging in Service Update Service Cloud Messaging Channel Settings
Cloud
Field Description
• In Apple Messages for Business channels, the platform key is
the Apple Messages identifier.
• In Messaging for In-App and Web, the platform key is identical
to the Channel Address Identifier.
To encrypt this field, use deterministic encryption. If you use
probabilistic encryption, Messaging doesn't work as expected.
Unified Messaging Enabled If selected, indicates that the channel is in use in a Unified
Messaging channel.
Routing Settings
Field Description
Enable Advanced Routing Route the channel’s messaging sessions based on the logic in the
specified Omni-Channel flow. If not selected, sessions are routed
to a specific queue.
Enabling advanced routing doesn’t enable enhanced
Omni-Channel routing, which is a separate feature that can’t be
used with standard Messaging channels.
This field is available only in standard channels.
424
Provide Conversation Support with Messaging in Service Update Service Cloud Messaging Channel Settings
Cloud
Field Description
Fallback Queue The queue that receives messaging sessions that the Omni-Channel
flow is unable to route.
This field is available in standard channels if Enable Advanced
Routing is selected, and visible in enhanced channels if the
routing type is Omni-Flow.
Flow Definition The Omni-Channel flow used to route messages in this channel.
This field is available in standard channels if Enable Advanced
Routing is selected, and visible in enhanced channels if the
routing type is Omni-Flow.
Queue The queue that messages sent to this channel are routed to. You
can’t delete queues.
Routing Configuration The routing configuration used to route messages in this channel.
A routing configuration defines the relative priority and relative
size of work items, and specifies how work items are routed to
agents.
This field is available in standard channels if the routing type is
Channel Skills.
425
Provide Conversation Support with Messaging in Service Update Service Cloud Messaging Channel Settings
Cloud
Connected App Type The owner of the connected app used to manage authentication
between the Salesforce Interaction Service API and the Messaging
or CCaaS partner’s system. If set to Partner, the partner creates
the connected app and includes it in their managed package. If
set to Customer, the admin creates the connected app.
This field is available only in Bring Your Own Channel and Bring
Your Own Channel for CCaaS.
Conversation Channel Definition A record in Salesforce that contains metadata for any Bring Your
Own Channel or Bring Your Own Channel for CCaaS integration.
This field is available only in Bring Your Own Channel and Bring
Your Own Channel for CCaaS.
Authorization Token Expiration Time for Verified Users The expiration time in minutes of the Salesforce authorization token
for verified users. When the token expires, your web or in-app client
must provide a valid user identity token.
This field is available only in Messaging for In-App and Web.
426
Provide Conversation Support with Messaging in Service Update Service Cloud Messaging Channel Settings
Cloud
Field Description
Automatically mark conversations inactive after a period of If selected, the status of a messaging session changes to Inactive
customer inactivity after a specified period of inactivity.
This field is available only in Messaging for In-App and Web, Bring
Your Own Channel, and Bring Your Own Channel for CCaaS.
Let customers download their conversation transcripts If selected, customers can download a PDF of their conversation
transcript.
This field is available only in Messaging for In-App and Web.
Let customers send attachments to agents If selected, customers can send file attachments to agents.
This field is available only in Messaging for In-App and Web.
Show estimated wait time If selected, customers see their estimated wait time to chat with
an agent.
This field is available only in Messaging for In-App and Web.
SEE ALSO:
Customize Auto-Responses in Service Cloud Messaging Channels
427
Provide Conversation Support with Messaging in Service Customize the Profiles, Queues, or Flows that Agents Can
Cloud Transfer To
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
428
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
429
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
This Messaging
article for Web
applies to: channels
This Messaging
article for In-App,
doesn’t standard
apply to: and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
430
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
Choose to allow messaging for web customers to send emoji to agents in messaging conversations.
USER PERMISSIONS
On the Embedded Service Deployment Settings page, turn on the keyboard.
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then To set up this feature:
select Embedded Service Deployments. • Customize Application
AND
2. Click the edit button to the right of your deployment, and select View.
Modify Metadata
3. Click Edit Settings. Through Metadata API
4. Select Show Emoji Keyboard, and save your changes. Functions
5. Publish your deployment. To modify permission sets
and profiles:
• Manage Profiles and
Permission Sets
431
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
432
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
Automatically tell customers how many minutes they have to wait before being connected to an
USER PERMISSIONS
agent. Build customer trust by setting expectations.
Estimated wait time can appear in several scenarios as long as certain conditions are met. To set up this feature:
• Customize Application
Possible scenarios that trigger Estimated Wait Time include:
AND
• A customer initiates a messaging session, and they’re routed directly to a queue or to a flow
Modify Metadata
that routes to a queue. Through Metadata API
• An agent transfers to a flow that routes to a queue. Functions
• A bot transfers to a flow that routes to a queue. To modify permission sets
Conditions that must be met to show Estimated wait time include: and profiles:
• Manage Profiles and
• You activated Estimated Wait Time.
Permission Sets
• Agents accepted at least 10 messaging requests in the last 10 minutes in the corresponding
queue.
• To trigger estimated wait time when a customer creates a messaging session, the Routing Type field for your deployment in Messaging
Settings must be set to Omni-Queue or Omni-Flow with a selected flow that routes to a queue. This condition isn’t required to trigger
estimated wait time when an agent transfers to a flow that routes to a queue or when a bot transfers to a flow that routes to a queue.
Note: If the estimated wait time is less than 1 minute, we round it up to 1 minute.
1. From Setup, in the Quick Find box, enter Messaging Settings, and then select Messaging Settings.
2. Click the edit button to the right of your deployment, and then select Edit.
3. Click Show estimated wait time.
4. Save your changes.
433
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
Note: Terms and Conditions works with the default pre-chat component. If you add custom Available in: Lightning
LWC components to your pre-chat form, Terms and Conditions doesn’t work. Experience. View required
editions.
1. From Setup, in the Quick Find box, enter Embedded Service Deployments, and then
select Embedded Service Deployments. This Messaging
article for In-App
2. Click the dropdown arrow corresponding to your deployment, and select View. and
applies to:
3. On the Settings card, click Edit Settings. Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
4. To activate the Terms and Conditions feature, click Show Terms and Conditions in pre-chat
enhanced
and Require users to accept Terms and Conditions before chatting. Apple
5. Save your changes. Messages
for Business,
6. Back on the Embedded Service Deployment Settings page for your deployment, from the
enhanced
Custom Labels card, click Set Custom Labels. From here, create a message that presents Terms
LINE, Bring
and Conditions to your end users. Create a separate version of this message in each language
Your Own
that you support. Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
7. From the Chat Group dropdown menu, select Pre-Chat. This selection tells Messaging for In-App and Web where, in the end user
experience, to present the Terms and Conditions message.
434
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
8. From the Label Group dropdown menu, select Terms and Conditions.
9. From the Label Type dropdown menu, select Standard. This menu selection tells Messaging for In-App and Web that you’re writing
standard, end user-facing text, as opposed to accessibility text for screen readers.
10. In the Terms and Conditions Label field, create a placeholder and paste it into the message that you’ll send to end users. To create
the placeholder: (1) Enter URL Text, such as Privacy Policy. This gets hyperlinked to the URL you create next. (2) Enter a URL
that links to the page where your Terms and Conditions are hosted. Click Copy. (3) To create the customer-facing message, paste
the copied placeholder into the Terms and Conditions Label field and craft the rest of the message around it.
435
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
USER PERMISSIONS
436
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
For both Messaging for In-App and Web, you can use our API to override business hours rules and hide or show your chat button at
different times.
IN THIS SECTION:
Create a Case When a Messaging Session Starts Outside of Your Business Hours
Let end users submit a case when trying to message outside of business hours. Use an Apex class and a bot to run a business hours
check, then create the case from a flow.
SEE ALSO:
Developer Guide: Show or Hide the Chat Button on Page Load
437
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
Create a Case When a Messaging Session Starts Outside of Your Business Hours
Let end users submit a case when trying to message outside of business hours. Use an Apex class
EDITIONS
and a bot to run a business hours check, then create the case from a flow.
Available in: Lightning
Create an Apex Class Experience. View required
editions.
Create a public Apex class that checks if an end user is attempting to message outside of your
business hours. This Messaging
article for In-App
applies to: and
Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
438
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
}}
Create a Flow
Create an Auto-Launched flow that creates a case when a customer messages outside of business hours.
1. Create a new flow. Select Autolaunched Flow (No Trigger)as the flow type.
2. Create a new flow Resource:
a. In the Resource Type field, select Variable.
b. In the API Name field, enter CaseNumber.
c. In the Data Type field, select Text.
d. In the Data Type field, select Text.
e. Click Done.
439
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
4. A CaseId from Create_Case variable is generated automatically when the Create Records element is added to your flow.To create a
Case record and return the Case Number to the user in the bot, add a Create Records element.
a. In the How to Set the Record Fields dropdown, select Manually.
b. In the Object dropdown, select Case.
c. Under Set Field Values for the Case, select Subject in the Field dropdown and enter Einstein Bot Case in the Value
dropdown.
d. Click Done.
2. Add a dialogue that creates a case if the Apex class returns false when checking to see if the messaging session is initiated outside
of business hours.
a. Click the + icon to the right of the search field in the Bot Builder, and select New Dialogue.
b. Name your dialog, give it a description, and optionally, assign it to a dialog group.
c. Add a Flow component to the dialogue.
d. Verify that the Action Type field displays Flow.
e. In the Action Name field, select the flow that you created previously.
f. Verify that the Input field displays Subject (string).
g. In the Source field, select Value.
h. In the Custom Value field, enter Einstein Bots Case.
i. Verify that the Output field displays CaseNumber (string).
j. In the corresponding Variable Name field, select + New Text Variable.
440
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
3. Return to the Transfer to Agent dialogue and add a Redirect to Dialogue component. This component redirects to the Create a Case
dialogue when an end user tries to message outside of business hours.
a. Click +Add Condition.
b. In the Variable Name field, select IsWithinBusinessHours (boolean).
c. In the Operator field, select Is False.
d. In the Rule Action field, select Redirect to Dialogue.
e. In the Redirect Type field, select Dialogue.
f. In the Dialogue Case field, select the dialogue that you created in step 4b.
441
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
USER PERMISSIONS
442
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
Prevent End Users from Sending File Attachments in Messaging for In-App and Web
Choose whether your end users can send file attachments to agents in Messaging for In-App and
EDITIONS
Web.
By default, end-users can send file attachments to agents. To prevent end-users from sending file Available in: Lightning
attachments to agents: Experience. View required
editions.
1. From Setup, enter Messaging Settings and select Messaging Settings.
2. Click the downward arrow to the right of your messaging channel, and select Edit. This Messaging
article for In-App
3. In the Attachments section, deselect Let customers send attachments to agents. applies to: and
4. Save your changes. Messaging
for Web
channels
This Standard
article and
doesn’t enhanced
apply to: WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
To choose whether
end-users can send file
attachments:
• Customize Application
443
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
444
Provide Conversation Support with Messaging in Service Optimize Messaging for In-App and Web
Cloud
USER PERMISSIONS
445
Provide Conversation Support with Messaging in Service Work with Messaging Data
Cloud
Protect Customer Data and Privacy in Service Cloud Messaging This Messaging
Honor your Messaging customers’ special requests regarding the handling of their personal article for In-App,
data. applies to: Messaging
for Web,
Track Messaging Users in Salesforce standard
When a customer messages your company, Salesforce creates a messaging user record for and
them. The messaging user record can include the customer’s name, phone number or Facebook enhanced
name, and consent status. Messaging user records are required for your recipients, even if you’re WhatsApp,
sending messages to contacts, employees, or person accounts. standard
Report on Messaging Activity in Service Cloud and
enhanced
To track your service team’s messaging activity in Messaging channels, create custom report
Facebook
types on Messaging objects.
Messenger,
Allow End Users to Download a Transcript of a Messaging Session standard
While Messaging for In-App and Web shows messaging history in the conversation window and
to verified end users, unverified end users want to review messaging history. Now, unverified enhanced
and verified end users can download a PDF conversation transcript after the session ends. SMS,
enhanced
Delete Messaging Customer Data Apple
For compliance reasons, Salesforce admins can delete a customer’s personal identifiable Messages
information (PII) from standard and enhanced Messaging channels and Messaging for In-App for Business,
and Web channels. The PII is removed when their messaging user records and all associated enhanced
conversations are deleted. LINE, Bring
Your Own
Channel,
SEE ALSO: and Bring
Trailhead: Service and Data Cloud: Quick Look Your Own
Channel for
CCaaS
446
Provide Conversation Support with Messaging in Service Protect Customer Data and Privacy in Service Cloud
Cloud Messaging
Encryption at Rest
In standard Messaging channels with Lightning Experience, the following fields can be encrypted at rest.
• LiveChatTranscript fields: Body, SupervisorTranscriptBody
• MessagingEndUser fields: Name, MessagingPlatformKey, ProfilePictureUrl
• ConversationEntry fields: ActorName, Message
In enhanced Messaging channels and Messaging for In-App and Web, these fields can be encrypted at rest.
• MessagingEndUser fields: Name, MessagingPlatformKey, ProfilePictureUrl
447
Provide Conversation Support with Messaging in Service Protect Customer Data and Privacy in Service Cloud
Cloud Messaging
Compliance Certifications
To learn more about Salesforce compliance certifications, see compliance.salesforce.com.
Some Messaging channels aren’t able to be certified for HIPAA compliance because their associated third-party applications or technology
(SMS, WhatsApp, Apple Messages for Business, Facebook Messenger, and possibly some Partner Messaging channels) aren’t HIPAA-certified.
SEE ALSO:
Store Customers’ Data Privacy Preferences
Customize Auto-Responses in Service Cloud Messaging Channels
Encrypt New Data in Standard Fields
Accessing Messaging and Voice Conversation Data
448
Provide Conversation Support with Messaging in Service Track Messaging Users in Salesforce
Cloud
449
Provide Conversation Support with Messaging in Service Track Messaging Users in Salesforce
Cloud
IN THIS SECTION:
Create Messaging Users
Salesforce automatically creates messaging user records for customers when they message your business. However, you can also
mass-create messaging user records for WhatsApp and SMS channels.
Messaging User Fields
Messaging user records represent a link between a messaging channel and a user. The messaging user record includes details like
the customer’s name, phone number or Facebook name, and consent status, and allows you to quickly review all messaging sessions
that took place with the customer in a channel.
450
Provide Conversation Support with Messaging in Service Track Messaging Users in Salesforce
Cloud
451
Provide Conversation Support with Messaging in Service Track Messaging Users in Salesforce
Cloud
After a messaging user record is created, it takes about 10 minutes before you can see it in the Send Message action, which is how agents
initiate conversations with customers.
SEE ALSO:
Start a Messaging Session with a Customer
Accessing Messaging and Voice Conversation Data
452
Provide Conversation Support with Messaging in Service Track Messaging Users in Salesforce
Cloud
Field Description
• Custom (shown for Bring Your Own Channel and Bring Your Own Channel for
CCaaS)
Messaging User Name The name of the messaging user. Because this field is editable, we don’t recommend
referencing it in automation. Instead, use the Messaging Platform Key.
Messaging Consent Status Indicates whether the messaging user gave implicit, explicit, or double consent. If the
messaging user revokes their consent, the status is set to Opt-Out.
A messaging user engages over a channel and gives implicit consent. The messaging
user must take an extra step to give explicit or double consent over a channel. In short
code or enhanced Facebook Messenger channels, messaging users can use a keyword
to give consent. Usually, messaging users give consent outside of Messaging.
Profile Picture URL The URL of the messaging user’s profile picture.
You can see profile pictures only for messaging users that use HTTPS URLs. Chrome and
Firefox no longer support mixed content downloads.
SEE ALSO:
Object Reference: MessagingEndUser
What’s Service Cloud Messaging?
453
Provide Conversation Support with Messaging in Service Report on Messaging Activity in Service Cloud
Cloud
454
Provide Conversation Support with Messaging in Service Report on Messaging Activity in Service Cloud
Cloud
Track your accounts with the most active messaging users. Create a custom report type with Messaging Users as the primary
object. Filter or sort the report based on these fields:
• AccountId
• MessageType
• MessagingChannelId
Track inbound and outbound messages that weren’t delivered in Create a custom report type with Conversation Entries as the
standard messaging channels. primary object. Filter or sort the report based on the ActorType
and MessageStatusCode fields.
Track conversations by channel. Create a custom report type with Messaging Sessions as the primary
object. Filter or sort the report based on the ChannelName field.
Track conversations by channel type. Create a custom report type with Messaging Sessions as the primary
object. Filter or sort the report based on the ChannelType field.
Track conversations by day or conversations by day and by channel. Create a custom report type with Messaging Sessions as the primary
object. Filter or sort the report based on the StartTime and
ChannelName fields.
Tip: Use Data Cloud to report on enhanced Messaging channel transcripts. See Analyze Conversation Transcript Data in Data
Cloud.
SEE ALSO:
Create a Custom Report Type
What’s Service Cloud Messaging?
Accessing Messaging and Voice Conversation Data
Trailhead: Service and Data Cloud: Quick Look
455
Provide Conversation Support with Messaging in Service Allow End Users to Download a Transcript of a Messaging
Cloud Session
456
Provide Conversation Support with Messaging in Service Allow End Users to Download a Transcript of a Messaging
Cloud Session
457
Provide Conversation Support with Messaging in Service Delete Messaging Customer Data
Cloud
USER PERMISSIONS
458
Provide Conversation Support with Messaging in Service Delete Messaging Customer Data
Cloud
If you’re using enhanced messaging and are assigned the End Messaging Sessions permission, you can close the conversation from
the messaging user record. Click Close Conversation without deleting the messaging user record, which is helpful when you have
multiple open conversations with one messaging user.
3. If the messaging user still has open conversations in the channel, we show a message letting you know that we've started the process
of deleting them. After 10 minutes, check back and select Delete again.
4. A confirmation message indicates that the messaging user and its associated conversations were deleted.
SEE ALSO:
Accessing Messaging and Voice Conversation Data
Block Sensitive Data in Messaging Sessions and Voice Call Transcripts
459
Provide Conversation Support with Messaging in Service Message with Customers in the Service Console
Cloud
460
Provide Conversation Support with Messaging in Service Message with Customers in the Service Console
Cloud
461
Provide Conversation Support with Messaging in Service Open Messaging
Cloud
Open Messaging
EDITIONS
This Messaging
article for In-App,
applies to: Messaging
for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
462
Provide Conversation Support with Messaging in Service Open Messaging
Cloud
Access Messaging through the Service Console app that your admin set up. Log into Omni-Channel
USER PERMISSIONS
to start chatting with customers.
1. Open the app that contains Messaging. To send and receive
messages in Messaging for
a. To open the App Launcher, on the left side of the navigation bar, click . In-App and Web:
• Messaging for In-App
b. Click the app that contains Messaging. Usually, this is your Service Console app.
and Web permission set
The name of the app might vary depending on how your admin set up Salesforce. When license
in doubt, your admin can tell you which app to use. AND
Messaging for In-App
2. Log into Omni-Channel. Messages are routed only to agents who are logged in.
and Web user
a. To open the Omni-Channel utility (pictured) or sidebar, click Omni-Channel in the footer permission
of your screen. To send and receive
b. Click the dropdown menu and select your status. If you’re online, a green dot is shown next messages in standard and
to the status. Now you’re ready to chat with customers. enhanced Messaging
channels:
• Messaging Agent
463
Provide Conversation Support with Messaging in Service Accept a Message and Chat with a Customer
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
464
Provide Conversation Support with Messaging in Service Accept a Message and Chat with a Customer
Cloud
When a new message arrives in Messaging, it appears in the Omni-Channel utility or sidebar.
USER PERMISSIONS
1. To accept a message and open the messaging session window, click the checkmark icon.
To send and receive
To see the first message that a customer sent, hover your mouse over the checkmark icon. The
messages in Messaging for
first message can give you context about why the customer is contacting your company. In-App and Web:
2. To send a message to the customer, enter your message and press Enter on your keyboard. • Messaging for In-App
and Web permission set
Tip: To add more context to the messaging session, use the lookup fields on the Details license
tab to associate the session with a case, lead, or opportunity. AND
Messaging for In-App
and Web user
permission
To send and receive
messages in standard and
enhanced Messaging
channels:
• Messaging Agent
465
Provide Conversation Support with Messaging in Service Start a Messaging Session with a Customer
Cloud
To initiate messaging sessions in standard Agent Initiated Outbound Messaging Available in: Lightning
channels: AND Messaging Agent Experience. View required
editions.
To initiate messaging sessions in enhanced Initiate Messaging Sessions This Messaging
channels and Messaging for In-App: AND Messaging Agent article for In-App,
applies to: standard
To auto-create messaging user records Send Initial Message to Individual and
when initiating enhanced SMS messaging enhanced
sessions: WhatsApp,
standard
To view the Start Conversation button on B2C and
Person Account records: enhanced
To create global actions and modify page Customize Application Facebook
layouts: Messenger,
AND
standard
View Setup and
enhanced
SMS,
enhanced
Proactively start messaging sessions with customers in Service Cloud by sending them a message.
Apple
Agent-initiated outbound messaging is available in all Messaging channels except Messaging for
Messages
Web. for Business,
Outbound messages don't use agent capacity until the customer responds. When you send a enhanced
message, you can close the tab while you wait for a response. LINE, Bring
Your Own
Channel,
In an Enhanced Messaging Channel or Messaging for In-App and Bring
Your Own
Channel
Channel for
Use the Send Message global action to start a messaging session with a customer. CCaaS
Agents can only initiate enhanced messaging sessions with a customer if the customer has a Messaging
This
messaging user record that’s linked to the desired messaging channel. Messaging user records are for Web
article
created automatically when customers first message you. If no record exists, you can create them doesn’t channels
manually on page 451 as long as you already gathered your customer’s messaging consent elsewhere. apply to:
If it’s an enhanced SMS channel, we create it for you. It takes about 10 minutes for a newly created
messaging user record to become available in the Send Message action.
Note: We recommend that you don’t use a Start Conversation auto-response messaging component in your messaging channel
if you allow agents to send outbound messages.
1. Enable Enhanced Omni-Channel.
2. (One-time setup task for admins) Add the Send Message action to the global action layout.
a. From Setup, enter Publisher Layouts in the Quick Find box, then select Publisher Layouts.
b. Drag the Send Message action to the Mobile and Lightning Actions section of the palette.
This action isn’t available if you don’t have an active enhanced Messaging channel or Messaging for In-App channel.
466
Provide Conversation Support with Messaging in Service Start a Messaging Session with a Customer
Cloud
3. (One-time setup task for admins) If you plan to let agents initiate messaging sessions in a Messaging for In-App channel, verify that
opt-out keywords have been set for your channel. On the Messaging Settings page in Setup, click your channel’s name and verify
that the Opt-Out Keywords field contains at least one keyword.
4. Start a conversation with a customer from any page in Salesforce.
a. In the Omni-Channel utility or sidebar, set yourself as available.
b. In the global action menu, click Send Message.
c. Select a recipient. You can click the icon to look up an account, lead, contact, or messaging user. This field may already be
completed, depending on which record you’re viewing.
d. Select a messaging channel. Only messaging channels associated with the select recipient are shown.
e. Click Start Conversation.
467
Provide Conversation Support with Messaging in Service Start a Messaging Session with a Customer
Cloud
f. Enter your message. Optionally, click the microphone icon to record a voice message. Click the plus icon to view other messaging
actions, including inserting quick text, adding emoji, sending messaging components, and attaching files. Then, click Send.
468
Provide Conversation Support with Messaging in Service Start a Messaging Session with a Customer
Cloud
• In enhanced Facebook Messenger, if more than 7 days have passed since the selected messaging user’s last message, agents can’t
use the Send Message action.
• An end user who’s engaged in a different messaging session can’t simultaneously receive an agent-initiated outbound message. In
this scenario, the agent sees an error message.
For help with the Send Message action, see Troubleshooting the Send Message Action in Messaging.
469
Provide Conversation Support with Messaging in Service Start a Messaging Session with a Customer
Cloud
• The button must be added to the record page layout in question: lead, case, or opportunity.
SEE ALSO:
Ending or Inactivating Messaging Sessions Automatically
Lifecycle of a Messaging Session in Service Cloud
Troubleshooting the Send Message Action in Messaging
470
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
471
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
Sometimes, only a picture will do. Resolve customer inquiries faster by sending images and files
USER PERMISSIONS
during Service Cloud messaging sessions.
Supported file types and maximum attachment size vary depending on the channel type. To send and receive
messages in Messaging for
In-App and Web:
Channel Type Maximum File Size Supported File Types
• Messaging for In-App
Messaging for In-App and Web 5 MB .pdf, .png, .jpeg, .jpg, .bmp, .tiff, and Web permission set
.gif license
AND
WhatsApp (Standard) 5 MB .jpg, .jpeg, .png, .pdf
Messaging for In-App
WhatsApp (Enhanced) Varies by file type. For details, .jpeg, .png, .pdf, .txt, .ppt, .pptx, and Web user
see Compare Standard and .pps, .ppsx, .doc, .docx, .xls, .xlsx, permission
Enhanced WhatsApp Channel .csv, .aac, .amr, .mp4, .3gp, To send and receive
Capabilities. .mpeg, .ogg, .rtf, .json messages in standard and
enhanced Messaging
Facebook Messenger 25 MB .jpg, .jpeg, .png, .gif channels:
(Standard) • Messaging Agent
Apple Messages for Business 100 MB .png, .jpg, .jpeg, .bmp, .tiff, .txt,
(Enhanced) .pdf, .psd, .rtf, .xls, .xlsx, .doc,
.docx, .ppt, .json, .pptx, .pps,
.ppsx, .csv, .xml, .pkpass, .ics,
.exe, .zip, .usdz, .mp3, .caf, .mov,
.mp4, .3gp, .gif
LINE (Enhanced) Varies by file type. For details, .png, .jpeg, .mpf, .m4a
see Considerations for LINE in
Service Cloud on page 191.
Bring Your Own Channel and 25 MB .png, .jpg, .jpeg, .bmp, .tiff, .gif,
Bring Your Own Channel for .txt, .pdf, .psd, .rtf, .xls, .xlsx, .doc,
CCaaS .docx, .ppt, .pptx, .json, .pps,
.ppsx, .csv, .xml, .mov, .mp4,
.3gp, .3g2, .mpg, .mp3, .caf,
.m4a, .exe, .zip, .ics, .pkpass,
.usdz
SMS long codes (Standard and • AT&T: 1 MB .jpg, .jpeg, .png, .gif
enhanced)
• T-Mobile: 1 MB
• Verizon: 1.2 MB
• Sprint: 2 MB
• US cellular: 500 KB
472
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
Note:
• In standard channels, agents can’t send text and a file in the same message.
• Images and file attachments sent over SMS long code channels are supported only for US and Canadian numbers associated
with Salesforce North American instances. View your instance on the Company Information page in Setup. SMS short code
channels don’t support images and file attachments.
• In enhanced channels excluding LINE, agents can receive GIFs but not send them. LINE doesn’t support GIFs.
• To let customers view previews of asset files sent by bots or agents, first add the Salesforce CRM Content User feature license
to your org, then to the users who send files.
• To let agents and bots share files in enhanced channels and Messaging for In-App and Web, enable file sharing for enhanced
Messaging channels.
IN THIS SECTION:
Enable File Sharing for Enhanced Messaging Channels
To let agents and bots share files with customers in enhanced Messaging channels and Messaging for In-App and Web, configure
your content delivery settings.
Enable Public Linking on an Asset File
To let customers view previews of asset files sent by agents or bots, enable public link capability on the file.
SEE ALSO:
Share Knowledge Article URLs in Channels
Share Knowledge Articles in Channels in Lightning Knowledge
473
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
USER PERMISSIONS
474
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
475
Provide Conversation Support with Messaging in Service Send Images and Files in Messaging Sessions
Cloud
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
USER PERMISSIONS
476
Provide Conversation Support with Messaging in Service Send Links in Messaging Sessions
Cloud
477
Provide Conversation Support with Messaging in Service Send Links in Messaging Sessions
Cloud
SEE ALSO:
Send Messaging Components in Messaging Sessions
Create and Send Enhanced Links in Messaging Sessions
478
Provide Conversation Support with Messaging in Service Send Voice Messages in Messaging Sessions
Cloud
This Messaging
article for In-App,
doesn’t Messaging
apply to: for Web,
enhanced
LINE,
standard
WhatsApp,
standard
Facebook
Messenger,
standard
SMS, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
USER PERMISSIONS
479
Provide Conversation Support with Messaging in Service Send Voice Messages in Messaging Sessions
Cloud
After a voice message is sent, the customer can access it for 30 days. Voice messages are included in the conversation transcript just like
any other message.
In standard Messaging channels, agents can’t record and send voice messages or send audio file attachments.
480
Provide Conversation Support with Messaging in Service Send Messaging Components in Messaging Sessions
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
481
Provide Conversation Support with Messaging in Service Send Messaging Components in Messaging Sessions
Cloud
Messaging components let you send structured content, such as a question with clickable options,
USER PERMISSIONS
to customers in enhanced Messaging channels and Messaging for In-App and Web. Admins create
messaging components ahead of time so that agents can quickly select and send them during To send and receive
messaging sessions. messages in Messaging for
In-App and Web:
Note: Auto-response messaging components, which are available only for Messaging for • Messaging for In-App
In-App and Web, aren’t sent from the Service Console. Instead, they’re selected in the channel’s and Web permission set
settings. The components are sent to the customer automatically when a messaging session license
starts or ends, or when an agent joins. AND
Messaging for In-App
Send Static Messaging Components and Web user
permission
To send messaging components with static content, use the messaging component action in the To send and receive
messaging window. messages in enhanced
1. During an active messaging session, click the messaging component action. Messaging channels:
• Messaging Agent
To run flows to insert
messaging components into
the messaging window:
• Run Flows
2. Optionally, use the filter at the top to show a particular type of component.
3. Select the component that you want to share and click Insert.
A placeholder appears below the message field. No preview of the component is available.
4. Click Send.
482
Provide Conversation Support with Messaging in Service Send Messaging Components in Messaging Sessions
Cloud
The component is sent to the customer and appears in the conversation transcript. The component’s appearance varies depending on
the channel type, component type, and how the component was configured.
483
Provide Conversation Support with Messaging in Service Send Messaging Components in Messaging Sessions
Cloud
SEE ALSO:
Create and Send Enhanced Links in Messaging Sessions
Create and Send Questions with Static Options in Messaging Sessions
Create and Send Questions with Dynamic Options in Messaging Sessions
Create and Send Time Selectors in Messaging Sessions
Create and Send Secure Forms in Messaging Sessions
Create and Send Authentication Requests in Messaging Sessions
Create and Send Payment Requests in Messaging Sessions
Share External Apps in Messaging Sessions
484
Provide Conversation Support with Messaging in Service Transfer a Messaging Session
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
485
Provide Conversation Support with Messaging in Service Transfer a Messaging Session
Cloud
Increase your capacity to accept incoming messaging sessions by transferring an existing messaging
USER PERMISSIONS
session. Agents can transfer a messaging session to another qualified agent, queue, or routing flow.
Agents in a partner contact center can also transfer to contacts external to your Salesforce To transfer enhanced
organization if routing is controlled by a partner vendor. messaging sessions to
flows:
So that you can transfer sessions to other agents, make sure that your admin has selected Enable
• Run Flows
Skills-Based and Direct-to-Agent Routing on the Omni-Channel Settings page in Setup.
To receive transferred
1. In an active messaging session, click the transfer icon in the lower-left corner of the Conversation messaging sessions or end
component. your own messaging
2. Select a recipient type: Agent, Queue, or Flow, or Others (Bring Your Own Channel for CCaaS sessions in Messaging for
In-App and Web:
only). Only agents who are online with a Messaging presence status appear in the list. You can
• Messaging for In-App
see each agent’s capacity percentage, including agents who are at full capacity.
and Web User
permission set license
AND
Messaging for In-App
and Web Agent user
permission
To receive transferred
messaging sessions or end
your own messaging
sessions in enhanced
messaging channels:
• Messaging User
permission set license
AND
Messaging Agent user
permission
Tip: The Agent list shows only agents who are online with a Messaging presence status and who have the Messaging User
or Messaging for In-App and Web User permission set license. You can see each agent’s capacity percentage, including agents
486
Provide Conversation Support with Messaging in Service Transfer a Messaging Session
Cloud
at full capacity. The Queue list shows each queue’s estimated wait time, but no wait time is shown unless agents accepted at
least 10 messaging requests in the queue in the last 10 minutes. The Others list shows contacts external to your Salesforce
organization. Others is an option for Bring Your Own Channel for CCaaS if routing is controlled by a partner vendor.
Tip: To get help from a supervisor during an active messaging session, click the flag icon and enter your message. You and your
supervisor can exchange messages that aren’t visible to the customer. These messages appear in the conversation transcript.
487
Provide Conversation Support with Messaging in Service Inactivate a Messaging Session
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
enhanced
WhatsApp,
enhanced
Facebook
Messenger,
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
This Standard
article WhatsApp,
doesn’t standard
apply to: Facebook
Messenger,
and
standard
SMS
channels
488
Provide Conversation Support with Messaging in Service Inactivate a Messaging Session
Cloud
When an unresolved conversation has gone idle for a certain period of time, mark it Inactive so that
USER PERMISSIONS
you can accept an incoming messaging session.
1. Click the dropdown next to End Chat. To send and receive
messages in Messaging for
2. Select Customer Inactive. In-App and Web:
• Messaging for In-App
and Web permission set
license
AND
Messaging for In-App
and Web user
permission
To send and receive
messages in enhanced
Messaging channels:
• Messaging Agent
If your business uses a tab-based capacity model and you close a session tab without ending the session, you’re prompted to choose
between ending the session and marking it inactive.
If you mark a session inactive and the customer then sends a new message:
• (Tab-based capacity) The session is routed to an available agent.
• (Status-based capacity) You can continue helping the customer.
Inactive sessions are automatically ended on page 490 after approximately 24 hours. In Messaging for In-App and Web, Bring Your Own
Channel, and Bring Your Own Channel for CCaaS, you can also set a time limit for customer inactivity after which a session’s status
automatically updates to Inactive.
SEE ALSO:
Lifecycle of a Messaging Session in Service Cloud
Ending or Inactivating Messaging Sessions Automatically
489
Provide Conversation Support with Messaging in Service End a Messaging Session
Cloud
This Messaging
article for In-App,
applies to: Messaging
for Web,
standard
and
enhanced
WhatsApp,
standard
and
enhanced
Facebook
Messenger,
standard
and
enhanced
SMS,
enhanced
Apple
Messages
for Business,
enhanced
LINE, Bring
Your Own
Channel,
and Bring
Your Own
Channel for
CCaaS
490
Provide Conversation Support with Messaging in Service End a Messaging Session
Cloud
When you’re done helping a customer, end the messaging session from the conversation window
USER PERMISSIONS
or from the Messaging Sessions list view.
1. From the conversation window in an active messaging session that you own, click End Chat. To end Messaging for
In-App and Web messaging
sessions on the session
record:
• Messaging for In-App
and Web permission set
license
To restore your capacity and accept new messaging sessions, close the messaging session tab. AND
2. Alternatively, go to the Messaging Sessions list view to close one or more messaging sessions. Messaging for In-App
This option is available only in standard channels. and Web user
permission
a. Select Messaging Sessions from the Item Picker or find the Messaging Sessions related
AND
list on a messaging user record.
Owner of the messaging
session
To end standard or
enhanced messaging
sessions on the session
record:
• Messaging Agent
AND
Owner of the messaging
session
To end standard Messaging
sessions from a list view:
• End Messaging Session
b. In the list of messaging sessions, find the ones you want to end.
c. Click the action menu next to a messaging session and select End Session. If multiple sessions are selected, select End Sessions
above the list view.
491
Provide Conversation Support with Messaging in Service Messaging Error Codes in Service Cloud
Cloud
• If you initiate a messaging session and the customer doesn’t respond, the session ends automatically within 24 hours in standard
channels and within 48 to 54 hours in enhanced channels.
SEE ALSO:
Lifecycle of a Messaging Session in Service Cloud
Ending or Inactivating Messaging Sessions Automatically
492
Provide Conversation Support with Messaging in Service Messaging Error Codes in Service Cloud
Cloud
Error Message
1001 Can't send messages from this channel. Ask your admin to check the channel settings and contact
Salesforce Customer Support.
1002 Can't send messages from this channel. Ask your admin to check the channel settings and contact
Salesforce Customer Support.
1003 Can't send messages from this channel because the channel’s phone number isn’t verified. Ask your
Salesforce admin to verify the number. Learn More
1004 Can’t send messages from this channel because the channel’s phone number is blocked. Ask your
Salesforce admin to contact Salesforce Customer Support.
1005 Can’t send messages from this channel because you exceeded your outbound message limit or don’t
have the license required to send messages. If the issue continues, ask your Salesforce admin to
contact Salesforce Customer Support for help.
2xxx Errors
Error codes starting with 2 (2xxx) indicate a problem with the destination address.
Error Message
2001 Can't send messages to this number. Make sure that the contact information is correct and try again.
2002 Can't send messages to this recipient because they blocked you.
2003 Can’t send messages to this recipient. This may be due to an issue with the recipient’s phone number
or app version.
2004 Messages to this recipient are getting blocked by their carrier. Try contacting them another way.
2005 Can’t send messages to this recipient because they haven’t opted in to communication in this channel.
2006 Can’t send this message because the recipient hasn’t subscribed to this type of content.
2007 Can’t send messages because we can’t verify that all of the recipients opted into communication.
2008 Message took too long to send. Try sending again, and if the issue continues, ask your Salesforce
admin to check the timeout limit set in the API.
2009 Can’t send messages to this number. It may no longer be in service, or may be saved in the wrong
format. Verify that it uses the e164 format: +12345678901.
2010 Can’t send messages to this number because it was deactivated or suspended.
2012 Can’t send messages to this number because a messaging user with the same number already exists.
Check your messaging user records for duplicates.
2013 Can’t send this message because the messaging end user is engaged in an open messaging session.
Try again later.
493
Provide Conversation Support with Messaging in Service Messaging Error Codes in Service Cloud
Cloud
Error Message
2014 Can’t send messages to this recipient. The user either deleted their account or restricted messages
to friends only.
3xxx Errors
Error codes starting with 3 (3xxx) indicate a problem with the message being sent.
Error Message
3001 Can't send this message because it contains invalid content. Try rewriting it.
3002 Can't send attached files because the file types aren't supported.
3003 Can't send this message because the message body is flagged as spam.
3004 Can't send this message because the message body or consolidated bot response is too large. Try
shortening the message.
3005 Can't send this message because the attachment is too large.
3008 This messaging component’s associated message template isn’t available for this language and
locale. Try sending a different messaging component.
3009 This messaging component and its associated message template contains different numbers of
parameters. Ask your Salesforce admin to check the component settings.
3010 Can't send this message because it contains invalid content. Try rewriting it.
3011 You have too many message templates. Ask your admin to check your templates in WhatsApp
Business Manager.
3012 This messaging component’s associated message template isn’t available for this language and
locale, or the message template isn’t yet approved. Try sending a different messaging component.
3013 This messaging component exceeds the text length limit. Ask your Salesforce admin to update the
associated message template in WhatsApp Business Manager or verify that the component’s
parameters don’t add too much text to the message.
3014 The message template that’s associated with this messaging component may violate WhatsApp
policies. Ask your Salesforce admin to check the template in WhatsApp Business Manager.
3015 Something’s wrong with this messaging component’s parameters. Ask your Salesforce admin to
check the component settings in Setup.
3016 The message template associated with this messaging component was disabled because of quality
concerns. Try sending a different messaging component.
3017 The message template associated with this messaging component is paused because of quality
concerns. Ask your Salesforce admin to check the template in WhatsApp Business Manager.
494
Provide Conversation Support with Messaging in Service Messaging Error Codes in Service Cloud
Cloud
Error Message
3018 Can’t send this message because it contains an unsupported merge field. Try editing or removing
the merge field.
Other Errors
Error Message
9999 Can’t send this message right now. If this happens again, ask your Salesforce admin to contact
Salesforce Customer Support.
495
Provide Conversation Support with Messaging in Service Troubleshooting the Send Message Action in Messaging
Cloud
You aren’t able to enter a (Enhanced WhatsApp only) If In the Send Message composer,
message in the Send Message more than 24 hours have click the plus icon and then
composer. passed since the selected click the messaging
messaging user’s last message, component icon. Then, select
you can’t send them a freeform a Notification messaging
message. You can only send component to send.
Notification messaging
components that are linked to
496
Provide Conversation Support with Messaging in Service Troubleshooting the Send Message Action in Messaging
Cloud
(Enhanced Facebook Messenger only) If Try contacting the user in another channel.
more than 7 days have passed since the
selected messaging user’s last message, you
can’t send messages using the Send
Message action.
(All channels) If you used the Send Message Wait for the messaging user to respond.
action to send a message, you can’t send
another message until the messaging user
responds.
When the messaging user responds, the If an agent initiates a messaging session and The new agent can review the user’s
session is routed to a different agent or the customer responds, the session is routed messaging history for context, and if
queue. to your support team according to your needed, transfer the session back to the
routing logic. This means that a different original agent.
agent may pick up the session.
You don’t see the recipient you’re looking The Send Message composer only shows Ensure that the criteria are met for the user
for. messaging users that meet these criteria: you’re trying to contact.
• At least one opt-out keyword is set for If you’re trying to send an SMS message but
the channel, and the messaging user there’s no messaging user record for your
hasn’t opted out. recipient, select their lead, contact, or
• The messaging user and associated account record. If the record contains a
device records were created at least 10 phone number, we create the messaging
minutes before the agent searched for user for you and associate it with the
them. selected enhanced SMS channel.
• The messaging user isn’t currently
engaged in an active messaging session
with your business.
(Enhanced WhatsApp only) You’re trying to For enhanced WhatsApp channels, the Select a messaging component that meets
send a messaging component because the messaging component action in the Send the criteria.
reply period has passed, but the list of Message composer only shows messaging
components is missing the one you want. components that meet these criteria:
• Doesn’t contain dynamic content. For
example, a component with a format
property that relies on parameters is
considered dynamic, and must be sent
using a flow.
• Is a Notification messaging component
that’s linked to an approved WhatsApp
template. Templates are approved in
WhatsApp Business Manager.
497
Provide Conversation Support with Messaging in Service Troubleshooting the Send Message Action in Messaging
Cloud
When selecting a recipient, you see multiple A messaging user record is created for each To send your message to the right
messaging user records with the same user who communicates with your business messaging user, follow either of these
name, or multiple records named Guest. in a specific channel. For example, a user approaches:
who has communicated with you over • Open the messaging user record or an
WhatsApp and Facebook Messenger can associated account, contact, or lead.
have two messaging user records, each Then, click Send Message in the global
associated with a different channel. action menu. The messaging user
record is automatically populated based
on the record that you’re viewing.
• If the messaging user record is linked to
an account, contact, or lead, in the Send
Message composer, click the icon on
the first field and select Account,
Contact, or Lead. Select the desired
record, and then select a channel. The
message is sent to the messaging user
associated with the record you selected.
By default, the name of any messaging user To automatically update the name on
record associated with a Messaging for messaging user records from “Guest”,
In-App and Web channel is Guest. admins can:
• Create a flow that populates the
messaging user name with the name
from any linked account, contact, or
lead.
• If pre-chat is enabled, create a flow that
populates the messaging user name
with the name gathered in the pre-chat
form.
498