Mini program access to WeChat customer service

wx.openCustomerServiceChat(Object object) | WeChat open document

WeChat Mini Program Opens WeChat Customer Service- Interface Documentation- WeChat Enterprise Developer Center

1. Search [WeChat Customer Service] on the web, scan the code to log in, and fill in the information according to the prompts

WeChat customer service

 

 2. Enter the enterprise information in [WeChat Customer Service], copy the enterprise ID to [WeChat Public Platform]-Function-Customer Service-WeChat Customer Service, fill in the enterprise ID, and bind the two

ps: Pay attention to the ID filled in. There should be no spaces before and after. The spaces cannot be recognized. If there are spaces, an error will be reported, indicating that the IDs are inconsistent. At that time, it was pitted by spaces.

If you have already ensured that the filling is correct, or if you report an error, you can enter [WeChat Customer Service] to complete the enterprise certification. The small business certification requires a fee of 300, and the time is within 5 working days (I quickly passed the audit the next day) up)

 

 3. After the configuration is complete, enter [Enterprise WeChat Management Backstage]-Application Management-WeChat Customer Service, and create a customer service account

 

 4. After the account is created, enter the details to view the customer service link

 5. In the small program, click on the customer service method, and write this code

wx.openCustomerServiceChat({
	extInfo: {
        url: 'https://work.weixin.qxxxxxxxxxx客服链接'
    },
	corpId: 'ww5xxxxxxxx企业ID',
	success(res) {
		console.log("客服请求成功res:",res)
	}
})

get it done~~~

Guess you like

Origin blog.csdn.net/weixin_43973909/article/details/129692800