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 and countries
The following list shows the language and country codes supported by Sendbird Desk at this moment.
Create a customer with language and country preference
Refer to our guide on creating a customer to set the preferred language and country for customers. The AI translation feature uses these preferences to determine the appropriate translation or localization.
Update the customer's language and country preference
Updates the language or country setting 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. |
country | string | Specifies the country preference of the customer. This should be a two-letter country code in ISO 3166-1 alpha-2 format. |
Response
If successful, this action returns data export details in the response body like the following: