当前位置:网站首页>Call wechat customer service applet
Call wechat customer service applet
2022-04-23 14:04:00 【one billion twenty-nine million one hundred and seventy-nine th】
Realize the idea
Because the development of small program interface is relatively perfect , So we can directly call the customer service interface of wechat applet . But you must read the following interface documentation
(1) Customer service function guide
https://developers.weixin.qq.com/miniprogram/introduction/custom.html#%E5%8A%9F%E8%83%BD%E4%BB%8B%E7%BB%8D
(2) Customer service message usage guide
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html
Realization effect
Because I don't have a server , Therefore, customer service messages use wechat third-party tools . The applet initiates to contact the customer service , The message will be pushed to your own wechat ( Service push ), The customer service can reply to the message sent by the customer .
Wechat applet sends messages ( Customer )-> Wechat's third-party tool ( Customer service )-> Reply to customer messages
Specific implementation ideas
(1) Use customer service messages on the page
Need to put button Components open-type Is set to contact, When the user clicks, it will enter the customer service session , If the user clicks on the applet message in the session , Will return to the applet , Developers can use bindcontact The event callback obtains the page path of the message selected by the user path And the corresponding parameters query.
Sample code
wxxml
<button open-type="contact" bindcontact="handleContact"></button>
js
Page({
handleContact (e) {
console.log(e.detail.path)
console.log(e.detail.query)
}
})
(2) Enter wechat public platform and bind customer service wechat
The binding of micro signals is realized according to the following operations
(3) Scan the QR code below the bound micro signal ( Wechat customer service applet )
(4) test
1) Wechat applet sends messages to customers Customer
2: Wechat received a message Customer service
3: Click the service notification to reply the message Customer service
4: The customer received a reply from the customer service Customer
View reply
More examples and learning materials, please search WeChat official account. : The small white XBIT
版权声明
本文为[one billion twenty-nine million one hundred and seventy-nine th]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231401298284.html
边栏推荐
- 记录一个奇怪的bug:缓存组件跳转之后出现组件复制
- JS force deduction brush question 103 Zigzag sequence traversal of binary tree
- Pytorch 经典卷积神经网络 LeNet
- json反序列化匿名数组/对象
- 微信小程序与低功耗蓝牙通信-接受硬件端发送来的数据(四)
- Lin Lin, product manager of Lenovo: network failure of local network operator in Tianjin. The background server of Zui system can't work normally for the time being
- Mock测试
- The latest development of fed digital currency
- Wechat applet
- Prediction of tomorrow's trading limit of Low Frequency Quantization
猜你喜欢
Choreographer full resolution
scikit-learn构建模型的万能模板
PySide2
Jenkins construction and use
微信小程序进行蓝牙初始化、搜索附近蓝牙设备及连接指定蓝牙(一)
分库分表 & ShardingSphere
Intégration de Clusters CDH Phoenix basée sur la gestion cm
nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
As a junior college student, I studied hard in closed doors for 56 days, won Ali offer with tears, five rounds of interviews and six hours of soul torture
随机推荐
基础知识学习记录
基于ibeacons三点定位(微信小程序)
As a junior college student, I studied hard in closed doors for 56 days, won Ali offer with tears, five rounds of interviews and six hours of soul torture
微信小程序通过低功耗蓝牙设备进行定位及测距(二)
多线程 @Async 线程池
Mock测试
linux MySQL数据定时dump
SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
Autumn recruitment in 2021, salary ranking No
微信小程序setInterval定时函数使用详细教程
AtCoder Beginner Contest 248C Dice Sum (生成函数)
elmo(BiLSTM-CRF+elmo)(Conll-2003 命名实体识别NER)
生成随机高质量符合高斯分布的随机数
蓝绿发布、滚动发布、灰度发布,有什么区别?
Analysis and understanding of atomicintegerarray source code
Neuron and neural network
Record a strange bug: component copy after cache component jump
Oracle告警日志alert.log和跟踪trace文件中文乱码显示
scikit-learn構建模型的萬能模板
About note 1