Home WeChat Applet WeChat Development WeChat public platform development: description of multiple customer service interfaces

WeChat public platform development: description of multiple customer service interfaces

Feb 27, 2017 pm 01:19 PM
Micro-channel public platform

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:

1

2

3

4

5

6

7

8

9

10

11

/// <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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)