Home > Article > WeChat Applet > WeChat public platform development: description of multiple customer service interfaces
The principle of WeChat’s official multi-customer service interface is that through the information sent by the user, the developer server returns a response message of a specified type, causing the user’s conversation state to switch to the official multi-customer service state (lasting for a period of time). During this period All information sent by users will not reach the developer's server, but will be transferred to the multi-customer service software.
If you need to implement multiple customer service, you must have a verified service account. Go to [Service]>[Service Center]>[Multiple Customer Service] in the background to apply and set up. For detailed information, please see the official announcement: https ://mp.weixin.qq.com/cgi-bin/readtemplate?t=news/vote_wkd_tmpl&lang=zh_CN
If you use Senparc.Weixin.MP SDK, you only need to return a similar message when processing information Just send the message:
/// <summary> /// 处理文字请求 /// </summary> /// <returns></returns> public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage) { if (requestMessage.Content == "客服") { return this.CreateResponseMessage<ResponseMessageTransfer_Customer_Service>(); } }
Note: Currently, due to official WeChat restrictions (or bugs), you cannot use the menu click response to switch to multi-customer service status.
For more WeChat public platform development: multi-customer service interface instructions and related articles, please pay attention to the PHP Chinese website!