WeChat public platform development: description of multiple customer service interfaces

高洛峰
Release: 2017-02-27 13:19:50
Original
2325 people have browsed it

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>();
    }
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template