To set up WeChat as a channel, you need to register for a WeChat Official Account. You also need to enable webhook integrations for the XO Platform to send and receive messages.
Please refer to the WeChat Official Accounts Registration Process for more information.
For development purposes, you may also use the WeChat Sandbox environment to integrate the assistant and test functionality. This article takes you through the setup process.
Step 1: Set up a WeChat Sandbox Account
- Register and login to the WeChat Sandbox environment from here for English and here for Chinese versions.
- Click the Login button to continue.
- You would be required to install the WeChat mobile app to allow sign in using the QR presented on-screen.
- Scan the QR code and confirm Login to proceed.
- Post successful sign-in, you would be redirected to the Sandbox portal.
- The Sandbox portal provides information about your WeChat Sandbox App ID and App Secret.
- Make note of App ID and App Secret.
- You need to enter the WebHook URL and Token, you can obtain these values from the Channel page of the XO Platform as explained below.
Step 2: Set up a Webhook
- In the XO Platform, select the assistant that you want to add the WeChat channel to.
- Go to Deploy > Channels, and select WeChat.
- Navigate to the Configurations tab and enter the following details:
- App Id – App Id from the weChat Sandbox portal page
- App Password – App Secret from the weChat Sandbox portal page
- Make a note the following details
- Webhook URL, and
- Access Token
- Update the WeChat Sandbox portal page with the above URL and access token and Save the details
- Enable the weChat channel from the XO Platform.
After the channel is enabled and all configurations are verified, you can optionally publish the assistant to make it available for end-users, with the new channel. Learn more about Publishing your Virtual Assistant.
To learn more about working with Channels within the Kore.ai XO Platform, please see Channel Enablement.