速卖通有没有办法微信消息自动回复复顾客的消息?

you have been blocked最近开始做公司的微信项目,深切的感受到了微信的不同,做微信是需要从头开始好好学的,在此记录一下学习微信的过程,也希望以后能根据这些文章迅速掌握微信开发的知识。少踩坑,,(laravel框架)
1、首先需要进入微信公众号--》基本配置--》填上你的服务器信息--》验证TOKEN,获取appId和appkey
2、下载官方的SDK文件,参考文档:https://mp./wiki?t=resource/res_main&id=mp
demo下载地址:/txw1958/p/tutorials-of-wechat-public-platform.html & & & 方倍工作室
3、首先需要明确(1)验证token通过,证明你的服务器可以和微信进行交互
(2)进入微信页面,发送消息,此时,后台应接受消息,并判断消息类型
(3)根据消息类型,拼接不同的xml数据,返回给模板
(4)然后就实现了微信上自动回复的功能了。
以上为验证token之后,在控制器设置的微信入口文件:这个文件也就是demo中的reponseMsg()方法:
主要用于获得微信发送过来的数据,然后再把tousername,fromusername等信息放到一起,提取用户发送消息的类型$event,并且请求下一个方法:
这个方法主要是为了判断请求的类型,根据不同的类型会有不同的处理方法。在此只处理text类型的数据,并且调用text方法,获取拼接的数据。最后返回给响应方法handle_response()方法。
在这里,我们把回复的内容都给写死了,大家到时候也完全可以从数据库读出这些数据。里面就是简单的拼接了一些图文信息,然后把这些信息返回。数组$arr是方便在模板上输出图文消息。
该控制器主要是根据传过来的event不同,判断该调用哪个模板,该回复什么样的消息等。如果$event==text,则调用默认的模板:$xml = view(wechat.tpl_reply_text) ;如果$event为news,则需要返回图文消息,我们把数据都放到数组里面,在模板上输出即可。
&ToUserName&&![CDATA[{{$ToUserName}}]]&&/ToUserName&
&FromUserName&&![CDATA[{{$FromUserName}}]]&&/FromUserName&
&CreateTime&{{$CreateTime}}&/CreateTime&
&MsgType&&![CDATA[news]]&&/MsgType&
&ArticleCount&{{$ArticleCount}}&/ArticleCount&
&Articles&
@foreach ($news
as $k =& $v)
&Title&&![CDATA[{{$v['Title']}}]]&&/Title&
&Description&&![CDATA[{{$v['Description']}}]]&&/Description&
&PicUrl&&![CDATA[{{$v['PicUrl']}}]]&&/PicUrl&
&Url&&![CDATA[{{$v['Url']}}]]&&/Url&
@endforeach
&/Articles&
这就是模板部分:直接输出即可。
9、在此已经是完成了微信的自动回复功能。用户输入指定的内容的时候,,我们也回复指定的内容回去。
微信官方的给的demo被拆分了,没有按照官方上那种返回xml数据,而是采用了laravel的模板来输出。
10、总结:虽然整体来说不够简洁,但也算是实现了功能,在此做个记录。以后水平高了再完善完善。
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:4171次
排名:千里之外
原创:23篇
转载:17篇
(6)(8)(7)(10)(1)(1)(2)(5)速卖通纠纷回复模板 - 速卖通论坛 - 外贸B2C -
福步外贸论坛(FOB Business Forum) |中国第一外贸论坛
UID 2712121
阅读权限 0
速卖通纠纷回复模板
速卖通纠纷回复模板
“纠纷”——一个在卖家领域深恶痛绝的敏感词,处理不好意味着客源流失、订单减少、爆品冷却、搜索屏蔽!怎样减少纠纷?那当然是做好店铺内功、提高产品质 量以及减少发货失误。那当纠纷来“敲门”怎么办?让速卖通大学格博商学院小编介绍一些常用纠纷客服模板帮您“让纠纷飞”!
纠纷最常见的有两大类:一类是物流纠纷,另一类则是产品纠纷。由于纠纷形式一般类似站内信,为了更好地“安抚”买家,小编提供的客户模板也以站内信格式为主。
1)正常包裹投诉物流
投诉前提& & 常规时间、包裹状态正常——投诉未到货
Dear friend:
Per the checking ,the parcel status that you mention is normal:
Status查询结果粘贴)
You may refer to the following for the details:
(查询网址)
We are also expecting that the parcel would deliver to you early. However, shipping to your country needs about7-30business days, you may get the parcel about20days later ,hope you cancel the dispute to keep waiting. We appreciate your patience.
Best Regards
根据查询包裹状态没问题,一般情况需要xx天到,预计还要xx天到。请取消纠纷。谢谢
2)特定情况包裹延迟
投诉前提& &由于旺季、气候、战争等原因造成包裹延误的投诉
Dear buyer,
Thanks for your order with us ,but we are sorry to tell you that due to peak season(旺季)/bad weather(恶劣气候)these days ,the shipping time to your country was delayed.
We will keep tracking the shipping status and keep you posted of any update.
Sorry for the inconvenience caused ,we will give you5% off to your next order for your great understanding.
Best Regards
抱歉因为特定情况包裹延误,我们将根据单号并告知您。您的下次订单将享受5%折扣,谢谢您的理解。
3)节假日延迟
投诉前提&&由于国内节假日造成延迟
Dear buyer,
Thanks for your purchasing in our shop. However ,in celebration of China Spring festivals (春节) ,all shipping services suspend temporarily during the period ,so your parcel delayed.
We apologize for the inconvenience caused and appreciate your kind understanding
Best Regards
抱歉由于国内春节原因造成你的包裹延误。我向您道歉并请求您的原谅。
4)客户不清关
投诉前提&&客户不清关造成的纠纷
Dear buyer,
Thanks for your purchasing in our shop and we are sorry to tell you that parcel was kept at the (国家)Russiancustom.
Status:(查询结果)
According to the rule of Ali ,buyer have the duty to clear the custom and get the parcel .We also hope you can clear the custom as soon as possible and get the favor.
Anything we can help please feel free to contact us .
Best Regards
我们查到您包裹被卡在海关,根据速卖通的规则,买家是有义务清关的,请您尽快清关并拿到您的产品。有任何可协助您的请联系我们。
1)产品自身质量问题
投诉前提& &由于各种原因,买家拿到质量差的产品(有图),于是起纠纷
The photos were received with thanks .Sorry that we failed to check out the problem and we would pay more attention on this part.
Anyway ,we will refund you $3 for compensating or may you just accept this time and we would like to provide bigger discount for your next order?
So sorry about the trouble .Please feel free to let us have your comment
Best Regards
抱歉,产品有质量问题,我们将加大注意。我们希望通过提供3美金或下次给您大的折扣作为补偿。抱歉给您造成麻烦,请您让我们知道您的想法。【协商赔款】
2)质量太差退换货
投诉前提& &由于各种原因,买家拿到严重质量差的产品(有图),于是起纠纷退货
Dear friend:
We are sorry for the quality problems and would pay more attention on product quality check in the future.
We will accept your requirement and please kindly return the goods to the following address:
However, some friends will accept the second plan that we send you a new one with 90% discount and you cancel the dispute without pay for the highly returning shipping fee. Hope you consider it .Thank you!
Best Regards
对于质量问题的产品真抱歉。我们接受您退货要求,同时向您推荐一个新方案:以1折价格卖您相同的产品,如此您也不需要付高额回程运费。希望考虑。
3)无条件退换货
投诉前提&&买家不喜欢产品,于是起纠纷退货
Dear friend:
Sorry that the goods can not satisfy you .It’s for sure that you can send it back for refund or exchange, please kindly return the goods to the following address:
Kindly make sure all returns including all original products, packages, accessories in a re-saleable condition.
Please be aware postage cost for both return and re-sending will be charge on your side .Once we receive the goods ,we will arrange refund/exchange for you.!
Thank you!
Best Regards
很抱歉产品不合您心意。您可以享受退换货的,请寄回xx。当然,请保证寄回物品及配件、包装完好。同时退换运费及换货运费由您承担。谢谢
指甲油化妆品小包,俄罗斯空运陆运小包(可平邮)65+8
QQ 韩景基&&财富热线
UID 2712121
阅读权限 0
指甲油化妆品小包,俄罗斯空运陆运小包(可平邮)65+8
QQ 韩景基&&财富热线
UID 2712853
阅读权限 0
★美国海外仓:头程+仓储+尾程派送+FBA中转+增值服务★
UID 2712121
阅读权限 0
指甲油化妆品小包,俄罗斯空运陆运小包(可平邮)65+8
QQ 韩景基&&财富热线
UID 2659656
阅读权限 0
谢谢分享!
免费群发 国际短信:
活动促销 发营销短信 引爆店铺销量!
UID 2712121
阅读权限 0
指甲油化妆品小包,俄罗斯空运陆运小包(可平邮)65+8
QQ 韩景基&&财富热线
UID 2701532
阅读权限 80
本司代理UPS/DHL/TNT/FEDEX/EMS,荷兰小包德邮小包瑞典小包深圳小包长沙小包佛山小包马邮小包可走带电及移动电源等多重渠道给您提供最适合的通道
QQ:& && &手机:& & 包先生
UID 2712121
阅读权限 0
指甲油化妆品小包,俄罗斯空运陆运小包(可平邮)65+8
QQ 韩景基&&财富热线
当前时区 GMT+8, 现在时间是
Powered by D1scuz! && 2001-

我要回帖

更多关于 速卖通自动回复 的文章

 

随机推荐