当前位置:网站首页>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
边栏推荐
- JS force deduction brush question 103 Zigzag sequence traversal of binary tree
- 烟雾传感器(mq-2)使用详细教程(基于树莓派3b+实现)
- 编程旅行之函数
- 关于stream流,浅记一下------
- Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
- 微信小程序与低功耗蓝牙通信-接受硬件端发送来的数据(四)
- 接口文档yaml
- Nodejs安装及环境配置
- 村上春树 --《当我谈跑步时,我谈些什么》句子摘录
- org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
猜你喜欢
Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
try --finally
Programming travel function
CentOS mysql多实例部署
Un modèle universel pour la construction d'un modèle d'apprentissage scikit
3300万IOPS、39微秒延迟、碳足迹认证,谁在认真搞事情?
基于CM管理的CDH6.3.2集群集成Atlas2.1.0
JDBC入门
The art of automation
freeCodeCamp----arithmetic_ Arranger exercise
随机推荐
SQL: How to parse Microsoft Transact-SQL Statements in C# and to match the column aliases of a view
Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
关于pthread多线程一些好文章
Decimal 格式化小数位/DateTime 转换处理
Oracle alarm log alert Chinese trace and trace files
微信小程序的订阅号开发(消息推送)
Special test 05 · double integral [Li Yanfang's whole class]
Multithreading
VsCode-Go
基于CM管理的CDH6.3.2集群集成Atlas2.1.0
PATH环境变量
程序编译调试学习记录
JDBC入门
Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)
基于Ocelot的gRpc网关
visio安装报错 1:1935 2:{XXXXXXXX...
Un modèle universel pour la construction d'un modèle d'apprentissage scikit
接口文档yaml
基于ibeacons三点定位(微信小程序)
Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design