Translation
The Translation feature enables AI-powered translation of agents' messages into the customer's preferred language and vice versa. This facilitates seamless communication between agents and customers who speak different languages.
Actions
- API endpoints are relative to the base URL allocated to your application. In this page, the
/customersendpoint refers tohttps://desk-api-{application_id}.sendbird.com/platform/v1/customers.
Note: If you want to know your application ID, sign in to your dashboard, go to the Settings > Application > General, and then check the Application ID.
- It's recommended that the parameter values in API URLs be urlencoded, such as
{ticket_id}.
List of actions
| Action | HTTP request |
|---|---|
|
Note: You can create a customer account with language value by following the steps in our guide on Create a customer.
Supported languages
The following list shows the language codes supported by Sendbird Desk at this moment.
Create a customer with language preference
Refer to our guide on creating a customer to set the preferred language for customers. The AI translation feature uses these preferences to determine the appropriate translation.
Update the customer's language preference
Updates the languagesetting of a customer.
HTTP request
Parameters
| Required | Type | Description |
|---|---|---|
id | string | Specifies the unique ID of a customer. |
Request body example
| Required | Type | Description |
|---|---|---|
language | string | Specifies the language preference of the customer. This should be a two-letter code in IETF BCP 47 format. |
Response
If successful, this action returns data export details in the response body like the following: