Updated on 2023-09-20 GMT+08:00

How Do I Configure the Language Recognition Interface?

The OIAP provides the language recognition interface. You can invoke the interface by configuring the Business interface invoking diagram element in a flow. The interface supports Chinese, English, Arabic, and Spanish. When you configure an OIAP multi-language flow, the configuration of the language recognition interface is mandatory.

  1. Add the language recognition interface to the Business interface invoking diagram element.

    1. Choose Resource Management > Business Interface to add an interface. Select Message Body Automatically Generated, set Interface Name, Request Method, and Interface Code to Language recognition interface, TUC, and /chatbot/u-route/api/langid/identify, respectively.

    2. Enter input parameters, as shown in the following figure.

    3. Enter output parameters, as shown in the following figure.

  2. Use the language recognition interface in a flow.

    Select the Business interface invoking diagram element, set Invoked Interface in the Service Parameter area and text in the Interface Input Parameter List area to Language recognition interface and IVRREQUEST.input, respectively. The language and score output parameters can be directly referenced in the variable.

  3. Test result.

    The call result is as follows.