This is the fifth day of my participation in the August Wen Challenge.More challenges in August

preface

The customer service function is mainly used for direct communication between users and customer service in the small program. This paper introduces the basic development of customer service function and the use of advanced functions, and also introduces a variety of customer service docking methods.

Opening function

  1. Log in to the official background of the small program and open the change function in the picture below

  1. After opening, you need to bind the customer service account, that is, who will be the customer service

The development of

Quick to use

(1) In the small program code, you need to use customer service by simply adding this statement, you can use the customer service function PS: the style of the button itself can be modified

<button open-type="contact"> </button>
Copy the code

(2) The actual effect is as follows: After clicking this button on the mobile terminal, the built-in customer service chat page of wechat will be automatically entered

Use the advanced

Send a card

If you want to achieve the following effect, that is, when chatting with customer service, this popup in the lower right corner, you can pass the following parameters, indicating that the card function is enabled

<button open-type="contact" show-message-card="true">Copy the code

The title card

If you want to look like this, display the card title when you send it

<button open-type="contact" :send-message-title=" title "> </button>Copy the code

added

  • Small program with the customer service function is not imagined strong, only the basic chat function, and send pictures
  • Customer service can not always send messages to the user, there is a limit, if the user has not responded to 5 messages, can not continue to send messages
  • Customer service can not take the initiative to users to initiate communication, only users can initiate communication!

Other Interconnection Modes

Small program built-in customer service function, only basic functions, if you want stronger functions (such as automatic reply, robot reply, customer flow, chat record, etc.), you can consider the following two ways of customer service docking, the following two have free trial, docking is also very simple, with small program authorization.

  • Sesame Small Customer Service
  • Netease Qiyu customer service