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.
- Add the language recognition interface to the Business interface invoking diagram element.
- 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.
- Enter input parameters, as shown in the following figure.
- Enter output parameters, as shown in the following figure.
- 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.
- 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.
- Test result.
The call result is as follows.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot