Customer Satisfaction (CSAT)
The Customer Satisfaction (CSAT) feature enables users to rate their experience after interacting with an agent. When CSAT is activated, a CSAT question message is sent to the user once the chat session has ended. Users can then provide feedback by selecting a satisfaction score and optionally leaving a comment. The feedback gathered from CSAT responses helps enhance the quality of customer support services.
Prerequisites
- Sendbird Chat SDK integration with Salesforce Service Cloud. See guide.
Granting admin user permissions
Admin users need Sendbird Lightning User permission to configure CSAT settings. If a user doesn't have this permission, do the following:
- Go to Setup > Administration > Users > Users, then click on a user.
- Click on Permission Set Assignments > Edit Assignments.
- Find Sendbird Lightning User in the list of available permission sets and click Add, then click Save.
Step 1: Update Salesforce User's Chat UI
CSAT Message Types
The CSAT functionality uses specific custom message types:
- CSAT Question: Sent as an admin message with custom type
SALESFORCE_SUPPORT_CHAT_CUSTOMER_SATISFACTION
- CSAT Response: Sent with custom type
SALESFORCE_SUPPORT_CHAT_CUSTOMER_SATISFACTION_RESPONSE
The UI should be customized to display CSAT questions differently from standard admin messages, including options for scoring and comments.
Implementation Details
When submitting feedback, include the following data as a JSON string:
question_message_id
(Required): ID of the original CSAT question message.csat_score
(Required): User's satisfaction score.csat_comment
(Optional): User's feedback comment.
Code Examples
Case 1: Using Collection
Case 2: Using GroupChannelHandler
CSAT Response Format
When a CSAT question message includes a rating, the data field contains:
Step 2: Enable CSAT
To enable CSAT, update the properties related to CSAT settings in the Sendbird__Setting__c
object using Salesforce's Developer Console. To learn more, see our documentation.
-
Click the Setup button in the top-right corner of your screen and open Developer Console.
-
Update the
Sendbird__Setting__c
object with the following properties:
Property Name | Type | Description |
---|---|---|
| boolean | Determines whether to enable CSAT feature. An option to receive customer satisfaction feedback after closing a chat. The value should be set to true. |
| string | Satisfaction rating message after closing the chat. |
| string | Response to customer's CSAT feedback. |
- Once you've updated the object, select the Query Editor tab at the bottom of the Developer Console window and execute the following query.
- Update the CSAT settings as shown in the example below.
Note: If multiple objects exist, Sendbird uses the oldest
Sendbird__Setting__c
object.
Step 3: Updating CSAT Feedback in Salesforce Case
To add CSAT feedback data to a Case, use the Sendbird Chat Platform API. This allows you to log customer CSAT feedback and retrieve CSAT records updated over a specific period. For more information, refer to the Sendbird Chat Platform API documentation here.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Properties
Required | Type | Description |
---|---|---|
start_dt | string | Specifies the start date and time for the range of CSAT logs to retrieve. The date string should be in the format |
end_dt | string | Specifies the end date and time for the range of CSAT logs to retrieve. The date string should be in the format |
Optional | Type | Description |
---|---|---|
token | string | Specifies a page token that indicates the starting index of results to retrieve. If not specified, the index is set to |
limit | int | Specifies the number of bots to return per page. Acceptable values are |
Response
If successful, an example response is as follows: