


C# development of WeChat portal and applications-WeChat multi-customer service functions and development integration
Feb 17, 2017 pm 02:58 PM最近一直在弄微信的集成功能開發(fā),發(fā)現(xiàn)微信給認(rèn)證賬戶開通了一個(gè)多客服的功能,對(duì)于客戶的咨詢,可以切換至客服處理的方式,而且可以添加多個(gè)客服進(jìn)行處理,這個(gè)在客戶咨詢比較多的時(shí)候,是一個(gè)不錯(cuò)的營(yíng)銷功能。微信多客服的功能,能夠在很大程度上利用客服員工資源,及時(shí)迅速對(duì)客戶咨詢信息進(jìn)行處理,為企業(yè)帶來(lái)更多的機(jī)會(huì)和市場(chǎng)。
默認(rèn)這個(gè)多客服的功能,需要在微信公眾平臺(tái)中的服務(wù)中心進(jìn)行主動(dòng)開通,默認(rèn)是不開通的,為了體驗(yàn)這個(gè)功能,我這里把多客服功能進(jìn)行開通。
1、多客服準(zhǔn)備工作
微信的多客服功能,對(duì)于客服的響應(yīng)操作,既可以在電腦的客戶端上進(jìn)行操作,也可以在微信多客服助手進(jìn)行信息處理,兩者都能對(duì)客戶的信息進(jìn)行回應(yīng)、結(jié)束會(huì)話等操作。
開通微信多客服功能后,就需要添加一些處理客戶信息的客服工號(hào)了。
多客服賬號(hào)采用“工號(hào)@微信號(hào)”的形式進(jìn)行登錄,請(qǐng)您在登錄窗口依照下圖形式輸入帳號(hào)信息。
2、使用多客服客戶端或助手操作
在電腦客戶端上使用
在手機(jī)客戶端上進(jìn)行多客服的使用,就是關(guān)注一個(gè)賬號(hào),信息通過(guò)轉(zhuǎn)發(fā)到這里進(jìn)行處理。關(guān)注公眾號(hào)”多客服助手“就搞定了。
通過(guò)上面兩種途徑,能夠很好處理客戶的相關(guān)信息,其實(shí)也就是類似電話坐席的方式,讓不同的客服員工,對(duì)來(lái)訪的客戶進(jìn)行處理。
3、微信多客服的開發(fā)使用
在微信的多客服開發(fā)介紹中,內(nèi)容介紹的比較少,如下所示。
在新的微信協(xié)議中,開發(fā)模式也可以接入客服系統(tǒng)。 開發(fā)者如果需要使用客服系統(tǒng),需要在接收到用戶發(fā)送的消息時(shí),返回一個(gè)MsgType為transfer_customer_service的消息,微信服務(wù)器在收到這條消息時(shí),會(huì)把用戶這次發(fā)送的和以后一段時(shí)間內(nèi)發(fā)送的消息轉(zhuǎn)發(fā)客服系統(tǒng)。返回的消息舉例如下。
<xml><ToUserName><![CDATA[touser]]></ToUserName><FromUserName><![CDATA[fromuser]]></FromUserName><CreateTime>1399197672</CreateTime><MsgType><![CDATA[transfer_customer_service]]></MsgType></xml>
而在開發(fā)的時(shí)候,我們一般把它封裝為一個(gè)實(shí)體類信息,如下所示。主要就是指定消息類型,和翻轉(zhuǎn)傳入傳出對(duì)象就可以了。
????///?<summary> ????///?客服消息????///?</summary> ????[System.Xml.Serialization.XmlRoot(ElementName?=?"xml")]????public?class?ResponseCustomer?:?BaseMessage ????{????????public?ResponseCustomer() ????????{????????????this.MsgType?=?ResponseMsgType.transfer_customer_service.ToString().ToLower(); ????????}????????public?ResponseCustomer(BaseMessage?info)?:?this() ????????{????????????this.FromUserName?=?info.ToUserName;????????????this.ToUserName?=?info.FromUserName; ????????} ????}
然后調(diào)用處理的時(shí)候,代碼如下所示。
?ResponseCustomer?customInfo?=?new?ResponseCustomer(info); ?xml?=?customInfo.ToXml();
如我在客戶應(yīng)答處理里面,客戶回應(yīng)0,我就切換進(jìn)入客服模式,這樣客戶后續(xù)所有的輸入內(nèi)容,均不會(huì)觸發(fā)微信門戶里面的解析,而轉(zhuǎn)發(fā)到客服模式,讓客服的工號(hào)可以和客戶進(jìn)行交談了。
????????????????//處理?0?指令,?人工客服 ????????????????if?(string.IsNullOrEmpty(xml)?&&?eventKey.Trim()?==?"0") ????????????????{ ????????????????????xml?=?base.DealEvent(eventInfo,?"event_customservice"); ????????????????}
而在DealEvent里面,根據(jù)這個(gè)條件進(jìn)行處理就可以了。
????????????????//人工客服 ????????????????if?(eventKey?==?"event_customservice") ????????????????{ ????????????????????ResponseCustomer?customInfo?=?new?ResponseCustomer(info); ????????????????????xml?=?customInfo.ToXml(); ????????????????}
?
通過(guò)使用多客服的客戶端,這樣處理消息交互起來(lái)非常方便,能獲得客戶的對(duì)話信息了,在電腦客戶端上,看到的界面如下所示。
手機(jī)上的談話截圖如下所示。
# This can respond to the customer's information in a timely manner through multiple channels.
If you are interested or experience related customer service response functions, you can follow my WeChat to learn more. For specific results, you can follow my WeChat portal: Guangzhou Aiqidi, or you can scan the QR code below to learn more.
For more C# development of WeChat portals and applications - WeChat multi-customer service functions and development integration For related articles, please pay attention to the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)