Example Analysis of Multi-customer Service Interface in the Development of Wechat Public platform
This article will explain in detail the sample analysis of multiple customer service interfaces in the development of WeChat public platform. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.
The principle of WeChat official multi-customer service interface is that through the information sent by the user, the developer server returns a specified type of response message, so that the user's dialogue state switches to the official multi-customer service state (lasting for a period of time), during which all the information sent by the user will not reach the developer's server, but will go to the multi-customer service software.
Multi-customer service is required. It must be a verified service number. Go to [Service]>[Service Center]>[Multi-customer Service] in the background to apply and set up. For details, please see the official announcement: 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:
//////Process Text Request///// public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage){ if (requestMessage.Content == "Customer Service") { return this.CreateResponseMessage(); }}
Note: At present, due to WeChat official restrictions (or bugs), it is impossible to switch to multi-customer service status using menu click response.
This article on "Example Analysis of Multi-customer Service Interface in WeChat Public Platform Development" is shared here. I hope the above content can help you to learn more knowledge. If you think the article is good, please share it for more people to see.