当前位置:网站首页>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
边栏推荐
- Expression「Func「TSource, object」」 转Expression「Func「TSource, object」」[]
- request模块
- Wechat applet
- Record a strange bug: component copy after cache component jump
- Node接入支付宝开放平台的沙箱实现支付功能
- 分库分表 & ShardingSphere
- Jiannanchun understood the word game
- Force deduction brush question 101 Symmetric binary tree
- 微信小程序的订阅号开发(消息推送)
- 记录一个奇怪的bug:缓存组件跳转之后出现组件复制
猜你喜欢
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
Business case | how to promote the activity of sports and health app users? It is enough to do these points well
Prediction of tomorrow's trading limit of Low Frequency Quantization
[VMware] address of VMware Tools
Qt Designer怎样加入资源文件
分库分表 & ShardingSphere
Autumn recruitment in 2021, salary ranking No
快速安装mongodb
基础知识学习记录
Oracle告警日志alert.log和跟踪trace文件中文乱码显示
随机推荐
go 语言 数组,字符串,切片
mysql通过binlog文件恢复数据
Programming travel function
About note 1
JDBC入门
freeCodeCamp----time_ Calculator exercise
Chapter I review of e-commerce spike products
There is a mining virus in the server
编程旅行之函数
Basic knowledge learning record
JS brain burning interview question reward
Expression「Func「TSource, object」」 转Expression「Func「TSource, object」」[]
Introduction to spark basic operation
微信小程序setInterval定时函数使用详细教程
[code analysis (7)] communication efficient learning of deep networks from decentralized data
Prediction of tomorrow's trading limit of Low Frequency Quantization
基于微信小程序的wifi模块使用
PyMySQL
Yarn online dynamic resource tuning
初识go语言