Updated on 2024-03-05 GMT+08:00

Integration Procedure

The lightweight web chat control can be quickly and efficiently integrated into your pages. You can perform integration development by referring to Figure 1.

Figure 1 Integration development procedure
  1. Before the development, prepare resources, obtain sign-in information, and configure the online customer service function. For details, see Preparation.
  2. Develop the token generation mechanism and token authentication API of the enterprise, and provide them for the CEC. After the authentication is successful, the CEC returns the token to the third-party system. The third-party system checks whether the request is sent by the current system. For details, see Developing a Token Generation Mechanism and Token Authentication API.

    Huawei uses HTTPS to ensure the security of information transmission channels. Third parties must ensure that the developed authentication functions have security protection capabilities, including password complexity verification, anti-brute force cracking, and anti-DoS attack.

  3. Introduce related dependent frameworks, construct request parameters to request thirdPartyClient.js and newThirdPartyClient.js, and return the token, tenant ID, enterprise user ID and username, and other information to the CEC for authentication. After the authentication is successful, the lightweight access of the CEC web page chat capability can be implemented. For details, see Developing an Integration Page.
  4. Test and verify the functions of the web chat control. Initiate an online chat in the customer-side window to check the function of chatting with agents. For details, see Test and Verification.