当前位置:网站首页>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
边栏推荐
- nodejs通过require读取本地json文件出现Unexpected token / in JSON at position
- [VMware] address of VMware Tools
- 程序编译调试学习记录
- 微信小程序setInterval定时函数使用详细教程
- 基于微信小程序的wifi模块使用
- Yarn online dynamic resource tuning
- Decimal 格式化小数位/DateTime 转换处理
- Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
- centOS下mysql主从配置
- Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
猜你喜欢
STM32学习记录0007——新建工程(基于寄存器版)
mysql新表,自增id长达20位,原因竟是......
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
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
Special test 05 · double integral [Li Yanfang's whole class]
org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
Decentralized Collaborative Learning Framework for Next POI Recommendation
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
JS 烧脑面试题大赏
STM32 learning record 0007 - new project (based on register version)
随机推荐
Choreographer full resolution
Decimal 格式化小数位/DateTime 转换处理
关于stream流,浅记一下------
基于ibeacons三点定位(微信小程序)
微信小程序与低功耗蓝牙通信-往硬件端发送数据(三)
scikit-learn構建模型的萬能模板
Windos中安装labellmg教程
Multithreading
容差分析相关的计算公式
FDFS start
Special test 05 · double integral [Li Yanfang's whole class]
项目中遇到的问题(五)操作Excel接口Poi的理解
Logging模块
groutine
log4j 输出日志信息到文件中
Go语言 RPC通讯
Redis docker 安装
力扣刷题 101. 对称二叉树
STM32 learning record 0007 - new project (based on register version)
Node接入支付宝开放平台的沙箱实现支付功能