Detect Language (beta)

Powered by the IBM Watson Language Translator API, the Detect Language action allows you to recognize the language of a piece of text and cater your flow to that language.

 

Text/Message
Here you will enter the text that you would like to detect the language from. To detect the language of an incoming SMS, for example, select the variable assigned to the Incoming SMS block and drag it down to the Text/Message field.

 

Variables
The Detect Language action creates several variables. These variables can be used later on in a flow through the SMS, External Web Call, Dial action, or more.

$DETECTLANG_#.responsebody
The entire response from the API

$DETECTLANG_#.statuscode
The code that indicates the status of the API response (i.e. 200 = success, 404 = not found, 403 = forbidden).

$DETECTLANG_#.response.languages[0].language
The language that was returned by the Detect Language API which can be used to translate to English or another language.