TWI807569B - Auto-reply system and auto-reply method based on instant message service - Google Patents

Auto-reply system and auto-reply method based on instant message service Download PDF

Info

Publication number
TWI807569B
TWI807569B TW111100064A TW111100064A TWI807569B TW I807569 B TWI807569 B TW I807569B TW 111100064 A TW111100064 A TW 111100064A TW 111100064 A TW111100064 A TW 111100064A TW I807569 B TWI807569 B TW I807569B
Authority
TW
Taiwan
Prior art keywords
message
question
answer
instant messaging
vocabulary
Prior art date
Application number
TW111100064A
Other languages
Chinese (zh)
Other versions
TW202329669A (en
Inventor
鄧凱銘
李建樺
簡士哲
Original Assignee
中華電信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中華電信股份有限公司 filed Critical 中華電信股份有限公司
Priority to TW111100064A priority Critical patent/TWI807569B/en
Application granted granted Critical
Publication of TWI807569B publication Critical patent/TWI807569B/en
Publication of TW202329669A publication Critical patent/TW202329669A/en

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An auto-reply system and an auto-reply method based on an instant message service (IMS) are provided. The auto-reply method includes: obtaining a question and answer database and a negative emotion database, wherein the question and answer database includes a first question message and a first answer message corresponding to the first question message, wherein the negative emotion database includes a first word; obtaining a first IMS message from a first terminal device; replying a second IMS message including the first answer message to the first terminal device in response to the first IMS message matching with the first question message; obtaining a third IMS message corresponding to the second IMS message from the first terminal device; transmitting an inform message to a second terminal device in response to the third IMS message matching with the first word.

Description

基於即時通訊服務的自動應答系統和自動應答方法Automatic answering system and automatic answering method based on instant messaging service

本發明是有關於一種基於即時通訊服務的自動應答系統和自動應答方法。 The invention relates to an automatic answering system and an automatic answering method based on an instant messaging service.

自動應答系統(或對話機器人(chat bot))的崛起與使用者習慣改變有極大關聯。近年來,手機應用程式中使用比例最高的服務為即時通訊服務。相較要讓使用者重新安裝軟體或使用網站服務,現有手機即時通訊明顯提供了更直觀的應用情境與操作模式。相較於使用電話或E-mail進行客戶服務,即時通訊服務能提供較快的處理速度並可提升客戶滿意度。 The rise of automated response systems (or chat bots) has a lot to do with changing user habits. In recent years, the service with the highest percentage of usage among mobile applications is instant messaging. Compared with requiring users to reinstall software or use website services, existing mobile instant messaging obviously provides more intuitive application scenarios and operation modes. Compared with using telephone or E-mail for customer service, instant messaging service can provide faster processing speed and improve customer satisfaction.

在傳統基於即時通訊之客戶服務的維運模式中,多數即時通訊仍仰賴真人客服的處理。然而,維運同仁每次面對不同客戶多數為重複或相關性高的問題。在維運人力缺乏的情況下,利用對話機器人先行回答客戶問題,只在必要時才由真人接手處理,除了能降低客服人力成本外,還能同時提供24小時的問答服務, 進而可減少不必要的人力和時間資源消耗,並可提升客戶滿意度。 In the traditional maintenance and operation mode of customer service based on instant messaging, most instant messaging still relies on the handling of real customer service. However, most of the maintenance and operation colleagues face repeated or highly relevant problems from different customers every time. In the case of lack of manpower for maintenance and operation, use dialogue robots to answer customer questions first, and only when necessary, real people will take over. In addition to reducing the cost of customer service manpower, it can also provide 24-hour question-and-answer service at the same time. In turn, unnecessary human and time resource consumption can be reduced, and customer satisfaction can be improved.

然而,對話機器人不一定能有效解決客戶遇到的問題。在此情況下,若無法即時地將客戶轉交給真人服務,則可能會影響客戶的服務體驗。 However, conversational bots are not necessarily effective at solving problems customers encounter. In this case, if the customer cannot be handed over to a real person in real time, the service experience of the customer may be affected.

本發明提供一種基於即時通訊服務的自動應答系統和自動應答方法,可自動回應客戶的問題,並可在必要時將客戶轉交給客服人員處理。 The invention provides an automatic answering system and an automatic answering method based on an instant messaging service, which can automatically respond to a customer's question, and can transfer the customer to a customer service personnel for processing when necessary.

本發明的一種基於即時通訊服務的自動應答系統,包含處理器、儲存媒體以及收發器。收發器通訊連接至第一終端裝置以及第二終端裝置。儲存媒體儲存多個模組。處理器耦接儲存媒體以及收發器,並且存取和執行多個模組,其中多個模組包含負面情緒詞庫、問答詞庫、訊息接收模組、問答檢索模組以及客服處理模組。負面情緒詞庫儲存第一詞彙。問答詞庫儲存第一問題訊息與對應於第一問題訊息的第一答案訊息。訊息接收模組通過收發器自第一終端裝置取得第一即時通訊訊息。問答檢索模組響應於第一即時通訊訊息與第一問題訊息匹配而通過收發器回覆包含第一答案訊息的第二即時通訊訊息至第一終端裝置。客服處理模組通過收發器自第一終端裝置取得對應於第二即時通訊訊息的第三即時通訊訊息,並且響應於第三即時通訊訊息與第一詞彙匹 配而通過收發器傳送通知訊息至第二終端裝置。 An automatic answering system based on the instant messaging service of the present invention includes a processor, a storage medium and a transceiver. The transceiver is communicatively connected to the first terminal device and the second terminal device. The storage medium stores multiple modules. The processor is coupled to the storage medium and the transceiver, and accesses and executes multiple modules, wherein the multiple modules include a negative emotion lexicon, a question and answer lexicon, a message receiving module, a question and answer retrieval module, and a customer service processing module. The negative emotion thesaurus stores the first vocabulary. The question-and-answer thesaurus stores the first question message and the first answer message corresponding to the first question message. The message receiving module obtains the first instant messaging message from the first terminal device through the transceiver. In response to the match between the first instant messaging message and the first question message, the question and answer retrieval module replies a second instant messaging message including the first answer message to the first terminal device through the transceiver. The customer service processing module obtains the third instant messaging message corresponding to the second instant messaging message from the first terminal device through the transceiver, and responds to the third instant messaging message matching the first vocabulary configured to transmit the notification message to the second terminal device through the transceiver.

在本發明的一實施例中,上述的客服處理模組響應於第三即時通訊訊息與第一詞彙匹配而建立第一終端裝置與第二終端裝置之間的通訊通道。 In an embodiment of the present invention, the above-mentioned customer service processing module establishes a communication channel between the first terminal device and the second terminal device in response to the matching of the third instant messaging message with the first vocabulary.

在本發明的一實施例中,上述的問答詞庫更包含第二問題訊息,其中問答檢索模組計算第一即時通訊訊息與第一問題訊息之間的第一相似度以及第一即時通訊訊息與第二問題訊息之間的第二相似度,其中問答檢索模組響應於第一相似度大於第二相似度而判斷第一即時通訊訊息與第一問題訊息匹配。 In an embodiment of the present invention, the above-mentioned question and answer lexicon further includes a second question message, wherein the question and answer retrieval module calculates a first similarity between the first instant messaging message and the first question message and a second similarity between the first instant messaging message and the second question message, wherein the question and answer retrieval module determines that the first instant messaging message matches the first question message in response to the first similarity being greater than the second similarity.

在本發明的一實施例中,上述的問答詞庫更包含對應於第一問題訊息的第二答案訊息,其中問答檢索模組計算第一即時通訊訊息與第一答案訊息之間的第一相似度以及第一即時通訊訊息與第二答案訊息之間的第二相似度,其中問答檢索模組響應於第一相似度大於第二相似度而回覆第一答案訊息至第一終端裝置。 In an embodiment of the present invention, the question-answer thesaurus further includes a second answer message corresponding to the first question message, wherein the question-answer retrieval module calculates a first similarity between the first instant messaging message and the first answer message and a second similarity between the first instant messaging message and the second answer message, wherein the question-answer retrieval module replies the first answer message to the first terminal device in response to the first similarity being greater than the second similarity.

在本發明的一實施例中,上述的問答檢索模組基於最佳匹配25演算法計算第一相似度。 In an embodiment of the present invention, the above question and answer retrieval module calculates the first similarity based on the best matching 25 algorithm.

在本發明的一實施例中,上述的問答檢索模組基於自然語言處理為第一問題訊息中的第二詞彙標註詞性以及詞袋索引,其中問答檢索模組根據詞性以及詞袋索引計算第一相似度。 In an embodiment of the present invention, the above question and answer retrieval module marks the second vocabulary in the first question message with a part of speech and a bag of words index based on natural language processing, wherein the question and answer retrieval module calculates the first similarity according to the part of speech and the bag of words index.

在本發明的一實施例中,上述的問答檢索模組預存參考字典,並且響應於第一問題訊息中的第二詞彙與參考字典中的第 三詞彙匹配而根據第三詞彙為第二詞彙標註詞性以及詞袋索引,其中問答檢索模組根據詞性以及詞袋索引計算第一相似度。 In an embodiment of the present invention, the above question and answer retrieval module pre-stores a reference dictionary, and responds to the second word in the first question message and the first word in the reference dictionary The three words are matched and the part of speech and the bag of words index are marked for the second word according to the third word, wherein the question and answer retrieval module calculates the first similarity according to the part of speech and the bag of words index.

在本發明的一實施例中,上述的多個模組更包含資料處理模組。資料處理模組通過收發器取得包含第一問題訊息和第一答案訊息的文件,其中資料處理模組根據文件產生第一問題訊息與第一答案訊息的映射關係,並且根據映射關係建立問答詞庫。 In an embodiment of the present invention, the above-mentioned modules further include a data processing module. The data processing module obtains the file containing the first question message and the first answer message through the transceiver, wherein the data processing module generates a mapping relationship between the first question message and the first answer message according to the file, and builds a question-and-answer lexicon according to the mapping relationship.

在本發明的一實施例中,上述的客服處理模組通過收發器取得文件,並且基於自然語言處理而為文件中的第一詞彙標註情緒狀態,其中客服處理模組響應於情緒狀態為負面情緒狀態而將第一詞彙加入負面情緒詞庫中。 In an embodiment of the present invention, the above-mentioned customer service processing module obtains the file through the transceiver, and marks the emotional state for the first word in the file based on natural language processing, wherein the customer service processing module adds the first word into the negative emotion lexicon in response to the emotional state being a negative emotional state.

在本發明的一實施例中,上述的客服處理模組響應於第三即時通訊訊息與第一詞彙匹配而增加計數值,並且響應於計數值大於閾值而傳送通知訊息。 In an embodiment of the present invention, the above-mentioned customer service processing module increases a count value in response to the third instant messaging message matching the first vocabulary, and sends a notification message in response to the count value being greater than a threshold.

本發明的一種基於即時通訊服務的自動應答方法,包含:取得問答詞庫以及負面情緒詞庫,其中問答詞庫包含第一問題訊息與對應於第一問題訊息的第一答案訊息,其中負面情緒詞庫包含第一詞彙;自第一終端裝置取得第一即時通訊訊息;響應於第一即時通訊訊息與第一問題訊息匹配而回覆包含第一答案訊息的第二即時通訊訊息至第一終端裝置;自第一終端裝置取得對應於第二即時通訊訊息的第三即時通訊訊息;以及響應於第三即時通訊訊息與第一詞彙匹配而傳送通知訊息至第二終端裝置。 An automatic answering method based on an instant messaging service of the present invention, comprising: obtaining a question-and-answer lexicon and a negative emotion lexicon, wherein the question-answer lexicon includes a first question message and a first answer message corresponding to the first question message, wherein the negative emotion lexicon includes a first vocabulary; obtaining a first instant messaging message from a first terminal device; responding to a match between the first instant message message and the first question message, replying a second instant message message including the first answer message to the first terminal device; obtaining a third instant message message corresponding to the second instant message message from the first terminal device; A notification message is sent to the second terminal device when the third instant messaging message matches the first word.

基於上述,本發明的自動應答系統可根據客戶的問題訊 息選出最適當的答案來回應客戶。當客戶對自動應答系統回覆的答案不滿意時,自動應答系統可根據客戶的回應來偵測客戶是否有負面情緒反應,並且在客戶出現負面情緒反應時將客戶的終端裝置轉接給客服人員的終端裝置,以改由客服人員為客戶進行服務,從而使客戶得到較佳的服務體驗。 Based on the above, the automatic answering system of the present invention can information to select the most appropriate answer to respond to the customer. When the customer is not satisfied with the answer from the automatic response system, the automatic response system can detect whether the customer has negative emotional reactions based on the customer's response, and transfer the customer's terminal device to the terminal device of the customer service personnel when the customer has a negative emotional reaction, so that the customer service personnel can serve the customer instead, so that the customer can get a better service experience.

10:自動應答系統 10: Automatic response system

100:處理器 100: Processor

20:第一終端裝置 20: The first terminal device

200:儲存媒體 200: storage media

210:資料處理模組 210: Data processing module

220:問答檢索模組 220:Question and answer retrieval module

230:訊息接收模組 230: Message receiving module

240:客服處理模組 240:Customer service processing module

250:圖形使用者介面 250: Graphical User Interface

251、252:對話框 251, 252: dialog box

253、254、255:按鈕 253, 254, 255: buttons

260:問答詞庫 260: Question and Answer Thesaurus

270:負面情緒詞庫 270: Thesaurus of Negative Emotions

300:收發器 300: Transceiver

S301、S302、S303、S304、S401、S402、S403、S404、S501、 S502、S503、S504、S601、S602、S603、S604、S605、S606、S701、S702、S703、S704、S801、S802、S803、S804、S805:步驟 S301, S302, S303, S304, S401, S402, S403, S404, S501, S502, S503, S504, S601, S602, S603, S604, S605, S606, S701, S702, S703, S704, S801, S802, S803, S804, S805: steps

圖1根據本發明的一實施例繪示一種基於即時通訊服務的自動應答系統的示意圖。 FIG. 1 shows a schematic diagram of an instant messaging service-based automatic answering system according to an embodiment of the present invention.

圖2根據本發明的一實施例繪示第一終端裝置的示意圖。 FIG. 2 is a schematic diagram of a first terminal device according to an embodiment of the present invention.

圖3根據本發明的一實施例繪示建立問答詞庫的流程圖。 FIG. 3 shows a flow chart of building a question-answer thesaurus according to an embodiment of the present invention.

圖4根據本發明的一實施例繪示為詞彙進行標註的流程圖。 FIG. 4 is a flow chart of labeling vocabulary according to an embodiment of the present invention.

圖5根據本發明的一實施例繪示建立負面情緒詞庫的流程圖。 FIG. 5 shows a flow chart of establishing a negative emotion lexicon according to an embodiment of the present invention.

圖6根據本發明的一實施例繪示決定答案訊息的流程圖。 FIG. 6 shows a flow chart of determining an answer message according to an embodiment of the present invention.

圖7根據本發明的一實施例繪示轉接客服人員的流程圖。 FIG. 7 shows a flow chart of transferring customer service personnel according to an embodiment of the present invention.

圖8根據本發明的一實施例繪示一種基於即時通訊服務的自動應答方法的流程圖。 FIG. 8 is a flow chart of an instant messaging service-based automatic answering method according to an embodiment of the present invention.

圖1根據本發明的一實施例繪示一種基於即時通訊服務 的自動應答系統10的示意圖。自動應答系統10可執行問答機器人(FAQ bot)的功能以自動對客戶提出的問題訊息進行回應。自動應答系統10還可偵測根據客戶的回覆偵測客戶的情緒反應,以在客戶出現負面情緒時適時地將客戶轉交給客服人員服務。自動應答系統10可包含處理器100、儲存媒體200以及收發器300。 Fig. 1 shows a service based on instant messaging according to an embodiment of the present invention A schematic diagram of the automated answering system 10. The automatic answering system 10 can implement the function of a question answering robot (FAQ bot) to automatically respond to questions and messages raised by customers. The automatic answering system 10 can also detect the customer's emotional reaction according to the customer's reply, so as to transfer the customer to the customer service personnel in a timely manner when the customer has negative emotions. The automatic answering system 10 may include a processor 100 , a storage medium 200 and a transceiver 300 .

處理器100例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微控制單元(micro control unit,MCU)、微處理器(microprocessor)、數位信號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(application specific integrated circuit,ASIC)、圖形處理器(graphics processing unit,GPU)、影像訊號處理器(image signal processor,ISP)、影像處理單元(image processing unit,IPU)、算數邏輯單元(arithmetic logic unit,ALU)、複雜可程式邏輯裝置(complex programmable logic device,CPLD)、現場可程式化邏輯閘陣列(field programmable gate array,FPGA)或其他類似元件或上述元件的組合。處理器100接至儲存媒體200收發器300,並且存取和執行儲存於儲存媒體200中的多個模組和各種應用程式。 The processor 100 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose micro control unit (micro control unit, MCU), microprocessor (microprocessor), digital signal processor (digital signal processor, DSP), programmable controller, application specific integrated circuit (application specific integrated circuit, ASIC), graphics processor (graphics processing unit, GPU), image signal processor (image signal processor, ISP), image processing unit (image processing unit, IPU), arithmetic logic unit (arithmetic logic unit, ALU), complex programmable logic device (complex programmable logic device, CPLD), field programmable logic gate array (field programmable gate array, FPGA) or Other similar elements or combinations of the above elements. The processor 100 is connected to the storage medium 200 and the transceiver 300 , and accesses and executes a plurality of modules and various application programs stored in the storage medium 200 .

儲存媒體200例如是任何型態的固定式或可移動式的隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟(hard disk drive,HDD)、固態硬碟(solid state drive,SSD)或 類似元件或上述元件的組合,而用於儲存可由處理器100執行的多個模組或各種應用程式。在本實施例中,儲存媒體200可儲存包含資料處理模組210、問答檢索模組220、訊息接收模組230、客服處理模組240、圖形使用者介面(graphical user interface,GUI)250、問答詞庫260以及負面情緒詞庫270等多個模組,其功能將於後續說明。 The storage medium 200 is, for example, any type of fixed or removable random access memory (random access memory, RAM), read-only memory (read-only memory, ROM), flash memory (flash memory), hard disk drive (hard disk drive, HDD), solid state drive (solid state drive, SSD) or Similar elements or a combination of the above elements are used to store multiple modules or various application programs that can be executed by the processor 100 . In this embodiment, the storage medium 200 can store multiple modules including a data processing module 210, a question and answer retrieval module 220, a message receiving module 230, a customer service processing module 240, a graphical user interface (graphical user interface, GUI) 250, a question and answer lexicon 260, and a negative emotion lexicon 270. The functions thereof will be described later.

收發器300以無線或有線的方式傳送及接收訊號。收發器300還可以執行例如低噪聲放大、阻抗匹配、混頻、向上或向下頻率轉換、濾波、放大以及類似的操作。 The transceiver 300 transmits and receives signals in a wireless or wired manner. The transceiver 300 may also perform operations such as low noise amplification, impedance matching, frequency mixing, up or down frequency conversion, filtering, amplification, and the like.

自動應答系統10可通過收發器300以與客戶的終端裝置(或稱為「第一終端裝置」)或客服人員的終端裝置(或稱為「第二終端裝置」)進行通訊。自動應答系統10可提供圖形使用者介面250給第一終端裝置,以為客戶提供問答機器人服務。圖2根據本發明的一實施例繪示第一終端裝置20的示意圖。自動應答系統10可通過收發器300傳送圖形使用者介面250給第一終端裝置20。圖形使用者介面250可包含用以顯示來自客戶的即時通訊訊息的對話框251以及用以顯示自動應答系統10提供的機器人服務所回應之即時通訊訊息的對話框252。圖形使用者介面250還可包含用以呼叫機器人(即:自動應答系統10)的按鈕253、用以呼叫客服人員的按鈕254以及用以查找文件的按鈕255。 The automatic answering system 10 can communicate with the customer's terminal device (or called "first terminal device") or the customer service personnel's terminal device (or called "second terminal device") through the transceiver 300 . The automatic answering system 10 can provide a graphical user interface 250 to the first terminal device, so as to provide customers with a question-and-answer robot service. FIG. 2 is a schematic diagram of a first terminal device 20 according to an embodiment of the present invention. The automatic answering system 10 can transmit the GUI 250 to the first terminal device 20 through the transceiver 300 . The GUI 250 may include a dialog box 251 for displaying instant messaging messages from customers and a dialog box 252 for displaying instant messaging messages responded by the robot service provided by the automatic answering system 10 . The GUI 250 may further include a button 253 for calling a robot (ie, the automatic answering system 10 ), a button 254 for calling a customer service agent, and a button 255 for searching files.

在一實施例中,圖形使用者介面250可在按鈕253被按下後,開始提供問答機器人服務給第一終端裝置20。舉例來說, 自動應答系統10可在按鈕253被按下後允許第一終端裝置20傳送即時通訊訊息給自動應答系統10。 In one embodiment, the GUI 250 can start to provide the question answering robot service to the first terminal device 20 after the button 253 is pressed. for example, The automatic answering system 10 can allow the first terminal device 20 to send an instant messaging message to the automatic answering system 10 after the button 253 is pressed.

在一實施例中,自動應答系統10可在按鈕254被按下後,建立第一終端裝置20與第二終端裝置之間的通訊通道。換句話說,自動應答系統10可在按鈕254被按下後,將第一終端裝置20的使用者(即:客戶)轉交給第二終端裝置的使用者(即:客服人員)處理。 In one embodiment, the automatic answering system 10 can establish a communication channel between the first terminal device 20 and the second terminal device after the button 254 is pressed. In other words, the automatic answering system 10 can transfer the user of the first terminal device 20 (ie, the customer) to the user of the second terminal device (ie, the customer service personnel) after the button 254 is pressed.

在一實施例中,自動應答系統10可通過收發器300存取系統外部的文件資料庫。在自動應答系統10可在按鈕255被按下後,自動應答系統10可建立第一終端裝置20與文件資料庫之間的通訊通道。客戶可操作第一終端裝置20以查找和閱讀文件資料庫中的文件。 In one embodiment, the automatic answering system 10 can access the file database outside the system through the transceiver 300 . After the automatic answering system 10 can press the button 255 , the automatic answering system 10 can establish a communication channel between the first terminal device 20 and the file database. The client can operate the first terminal device 20 to search and read the files in the file database.

問答詞庫260可儲存問題訊息以及對應於問題訊息的答案訊息。此外,問答詞庫260還可進一步記錄問答詞庫260所儲存之訊息(即:問題訊息或答案訊息)中之詞彙的詞性(例如:名詞、代名詞、形容詞、動詞、副詞、介系詞或連結詞等)或詞袋(bag of words)索引。在一實施例中,一個問題訊息可對應於多個答案訊息。舉例來說,對應於問題訊息「客服人員是否忙線中?」的答案訊息可包含「客服人員正忙線中」以及「客服人員可立即提供服務」等多個答案訊息。 The question-and-answer dictionary 260 can store question messages and answer messages corresponding to the question messages. In addition, the question-answer lexicon 260 can further record the part of speech (for example: noun, pronoun, adjective, verb, adverb, preposition or linking word, etc.) or bag of words (bag of words) index of the vocabulary in the information stored in the question-answer lexicon 260 (ie: question message or answer message). In one embodiment, one question message may correspond to multiple answer messages. For example, the answer message corresponding to the question message "is the customer service staff busy?" may include multiple answer messages such as "the customer service staff is busy" and "the customer service staff can provide services immediately".

自動應答系統10可根據文件自動地產生問答詞庫260中的資料。圖3根據本發明的一實施例繪示建立問答詞庫260的流 程圖。在步驟S301中,資料處理模組210可通過收發器300取得包含問題訊息和答案訊息的文件。舉例來說,所述文件例如是過往客服人員與客戶的對話記錄或對話日誌,其中對話記錄中包含了客戶提出的問題訊息以及客服人員回應的答案訊息。 The automatic answering system 10 can automatically generate the information in the question-and-answer thesaurus 260 according to the documents. FIG. 3 illustrates the flow of building a question-and-answer lexicon 260 according to an embodiment of the present invention map. In step S301 , the data processing module 210 can obtain a file including question information and answer information through the transceiver 300 . For example, the file is, for example, a dialogue record or a dialogue log between a customer service personnel and a customer in the past, wherein the dialogue record includes the question message raised by the customer and the answer message responded by the customer service personnel.

在步驟S302中,資料處理模組210可對文件進行前處理。前處理可包含但不限於格式判斷或內容過濾等。舉例來說,資料處理模組210可判斷文件是否為非結構化資料。若文件為非結構化資料,則資料處理模組210可對文件執行內容過濾,以將不重要或重複的零碎內容刪除。舉例來說,資料處理模組210可對文件中的空白、分頁符號、換行符號、特定字型、主標題、子標題、特定文體、圖片或網頁連結等內容進行過濾。 In step S302, the data processing module 210 may perform pre-processing on the file. Pre-processing may include but not limited to format judgment or content filtering. For example, the data processing module 210 can determine whether the file is unstructured data. If the file is unstructured data, the data processing module 210 can perform content filtering on the file, so as to delete unimportant or repeated fragmentary content. For example, the data processing module 210 can filter content such as blanks, page breaks, line breaks, specific fonts, main titles, subtitles, specific styles, pictures, or web links in the document.

在步驟S303中,資料處理模組210可建立問題訊息與答案訊息的映射關係。具體來說,資料處理模組210可透過資料清理將未結構化的文件(或經過濾的文件)產生鍵值(key-value)對的映射關係。在一實施例中,資料處理模組210可根據文件的格式產生鍵值對,但本發明並不限制產生鍵值對的方法。舉例來說,資料處理模組210可將文件中不具有句號的段落之內容設為鍵,並且將排序在鍵後的具有編號的內容設為對應於鍵的值,從而產生鍵值對。資料處理模組210可將鍵值對中的鍵(即:文件中的主要標題)定義為問題訊息,並將鍵值對中的值(即:文件中與主要標題相對應的內容)定義為答案訊息。由於一個鍵可對應於多個值,故一個問題訊息可對應於多個答案訊息。 In step S303, the data processing module 210 can establish a mapping relationship between question information and answer information. Specifically, the data processing module 210 can generate a mapping relationship of key-value pairs from unstructured files (or filtered files) through data cleaning. In one embodiment, the data processing module 210 can generate the key-value pair according to the format of the file, but the present invention does not limit the method of generating the key-value pair. For example, the data processing module 210 can set the content of the paragraph without a period in the file as a key, and set the content with a number sorted after the key as a value corresponding to the key, thereby generating a key-value pair. The data processing module 210 can define the key in the key-value pair (ie: the main title in the file) as the question message, and define the value in the key-value pair (ie: the content corresponding to the main title in the file) as the answer message. Since one key can correspond to multiple values, one question message can correspond to multiple answer messages.

在步驟S304中,資料處理模組210可根據映射關係建立或更新問答詞庫260。資料處理模組210可使用JSON(JaveScript object notation)格式將問題訊息、對應於問題訊息的一或多個答案訊息以及問題訊息與答案訊息之間的映射關係儲存在問答詞庫260中。 In step S304 , the data processing module 210 can establish or update the question-answer thesaurus 260 according to the mapping relationship. The data processing module 210 can use JSON (JaveScript object notation) format to store the question message, one or more answer messages corresponding to the question message, and the mapping relationship between the question message and the answer message in the question-answer lexicon 260 .

自動應答系統10可進一步基於自然語言處理(natural language processing,NLP)而為問答詞庫260中的訊息所包含的詞彙標註詞性以及詞袋索引。圖4根據本發明的一實施例繪示為詞彙進行標註的流程圖。在步驟S401中,問答檢索模組220可問答詞庫260中的對訊息(例如:問題訊息或答案訊息)進行正規化。舉例來說,問答檢索模組220可將過濾訊息中的特定標籤、特定符號、使用者、停用詞(stop words)或連續重複詞彙等。 The automatic answering system 10 can further mark part-of-speech and bag-of-words index for the vocabulary included in the message in the question-answer thesaurus 260 based on natural language processing (NLP). FIG. 4 is a flow chart of labeling vocabulary according to an embodiment of the present invention. In step S401 , the question and answer retrieval module 220 can normalize the information (for example, question information or answer information) in the question and answer thesaurus 260 . For example, the question-and-answer retrieval module 220 can filter specific tags, specific symbols, users, stop words or consecutively repeated words in the message.

在步驟S402中,問答檢索模組220可對訊息進行斷詞(tokenization)處理,以將以將訊息區分成一或多個詞彙。具體來說,假設訊息為中文訊息,在完成訊息的正規化後,問答檢索模組220可基於隱性馬可夫模型斷詞器對經過正規化的訊息進行斷詞處理,以從訊息中取得一或多個詞彙。另一方面,問答檢索模組220也可根據訊息中的停用詞來對訊息進行斷詞處理。 In step S402, the question-answer retrieval module 220 may perform tokenization processing on the message, so as to divide the message into one or more words. Specifically, assuming that the message is a Chinese message, after completing the normalization of the message, the question and answer retrieval module 220 may segment the normalized message based on the Hidden Markov Model tokenizer, so as to obtain one or more words from the message. On the other hand, the question-and-answer retrieval module 220 can also segment the message according to the stop words in the message.

在步驟S403中,問答檢索模組220可為詞彙標註詞性以及詞袋索引。問答檢索模組220可基於自然語言處理來為詞彙標註詞性以及詞袋索引。 In step S403 , the question-answer retrieval module 220 can tag the vocabulary with part of speech and bag-of-words index. The question-and-answer retrieval module 220 can mark part-of-speech and bag-of-words index for vocabulary based on natural language processing.

由於傳統的中文斷詞器的效果不佳,為了更正確地為詞 彙標註詞性,問答檢索模組220可預存參考字典,其中參考字典可包含多個詞彙以及分別對應於多個詞彙的多個詞性。當問答詞庫260中的訊息所包含的詞彙與參考字典中的詞彙匹配時,問答檢索模組220可根據參考字典中的詞彙的詞性來為訊息中的詞彙標註詞性。舉例來說,假設參考字典包含「客服人員(名詞)」。若問答詞庫260中的訊息為「客服人員是否忙線中?」,則問答檢索模組220可響應於訊息「客服人員是否忙線中?」中的詞彙「客服人員」與參考字典中的詞彙「客服人員(名詞)」匹配而為訊息「客服人員是否忙線中?」中的詞彙「客服人員」標註詞性「名詞」。 Due to the poor effect of traditional Chinese word breakers, in order to more correctly To summarize the parts of speech, the question and answer retrieval module 220 can pre-store a reference dictionary, wherein the reference dictionary can include multiple words and multiple parts of speech respectively corresponding to the multiple words. When the vocabulary contained in the message in the question-answer thesaurus 260 matches the vocabulary in the reference dictionary, the question-answer retrieval module 220 can tag the vocabulary in the message according to the part of speech of the vocabulary in the reference dictionary. For example, suppose the reference dictionary contains "customer service personnel (noun)". If the message in the question-and-answer dictionary 260 is "is the customer service personnel busy?", the question-and-answer retrieval module 220 may mark the word "customer service personnel" in the message "is the customer service personnel busy?" in response to the word "customer service personnel" in the message "is the customer service personnel busy?" matching the word "customer service personnel (noun)" in the reference dictionary.

另一方面,問答檢索模組220可基於詞袋模型為詞彙標註詞袋索引找出重要詞彙。問答檢索模組220也基於詞頻-逆向文件頻率(term frequency-inverse document frequency,tf-idf)統計搜尋算法分析訊息中的某個詞彙在問答詞庫260中重要性,因此問答檢索模組220可以透過詞袋與tf-idf找出某個詞句在問答詞庫260中出現頻率與重要詞。 On the other hand, the question-and-answer retrieval module 220 can annotate the bag-of-words index for vocabulary to find important words based on the bag-of-words model. The question and answer retrieval module 220 is also based on the term frequency-inverse document frequency (term frequency-inverse document frequency, tf-idf) statistical search algorithm to analyze the importance of a word in the message in the question and answer thesaurus 260, so the question and answer retrieval module 220 can find out the frequency and important words of a certain word in the question and answer thesaurus 260 through the bag of words and tf-idf.

在步驟S404中,問答檢索模組220根據標註了詞性和詞袋索引的詞彙更新問答詞庫260,使問答詞庫260除了儲存問題訊息、答案訊息以及映射關係之外,進一步儲存各個訊息(例如:問題訊息或答案訊息)中的詞彙的詞性以及詞袋索引。 In step S404, the question-and-answer retrieval module 220 updates the question-and-answer thesaurus 260 according to the vocabulary marked with the word-of-speech and the bag-of-words index, so that the question-and-answer thesaurus 260 further stores the part-of-speech and the bag-of-words index of the vocabulary in each message (for example: question message or answer message) in addition to storing the question message, the answer message, and the mapping relationship.

負面情緒詞庫270可儲存對應於負面情緒狀態(例如:生氣或不耐煩)的多個詞彙。客服處理模組240可根據文件自動 地產生負面情緒詞庫270中的資料。圖5根據本發明的一實施例繪示建立負面情緒詞庫270的流程圖。在步驟S501中,客服處理模組240可通過收發器300取得文件。舉例來說,所述文件例如是過往客服人員與客戶的對話記錄或對話日誌。 The negative emotion lexicon 270 can store a plurality of words corresponding to negative emotion states (eg, anger or impatience). The customer service processing module 240 can automatically Generate the data in the negative emotion lexicon 270 accurately. FIG. 5 shows a flow chart of establishing a negative emotion lexicon 270 according to an embodiment of the present invention. In step S501 , the customer service processing module 240 can obtain the file through the transceiver 300 . For example, the file is, for example, a record or a log of conversations between customer service personnel and customers in the past.

在步驟S502中,客服處理模組240可對文件進行前處理。前處理可包含但不限於格式判斷或內容過濾等。舉例來說,客服處理模組240可判斷文件是否為非結構化資料。若文件為非結構化資料,則客服處理模組240可對文件執行內容過濾,以將不重要或重複的零碎內容刪除。舉例來說,客服處理模組240可對文件中的空白、分頁符號、換行符號、特定字型、主標題、子標題、特定文體、圖片或網頁連結等內容進行過濾。在一實施例中,文件中的各個詞彙已被標註了詞性以及詞袋索引。 In step S502, the customer service processing module 240 may perform pre-processing on the file. Pre-processing may include but not limited to format judgment or content filtering. For example, the customer service processing module 240 can determine whether the file is unstructured data. If the file is unstructured data, the customer service processing module 240 can perform content filtering on the file to delete unimportant or repeated fragmentary content. For example, the customer service processing module 240 can filter content such as blanks, page breaks, line breaks, specific fonts, main titles, subtitles, specific styles, pictures or web links in the file. In one embodiment, each vocabulary in the document has been tagged with part of speech and bag-of-words index.

在步驟S503中,客服處理模組240可基於自然語言處理而為文件中的詞彙標註情緒狀態。客服處理模組240可根據情緒分析(sentiment analysis)演算法判斷文件中的詞彙的情緒狀態,並且根據判斷結果為詞彙標註情緒狀態。 In step S503, the customer service processing module 240 can mark the emotional state for the vocabulary in the file based on natural language processing. The customer service processing module 240 can judge the emotional state of the vocabulary in the document according to a sentiment analysis algorithm, and mark the emotional state for the vocabulary according to the judgment result.

在步驟S504中,客服處理模組240可響應於詞彙的情緒狀態為負面情緒狀態而將詞彙加入負面情緒詞庫270中,藉以建立或更新負面情緒詞庫270。 In step S504 , the customer service processing module 240 may add the vocabulary into the negative emotion thesaurus 270 in response to the emotional state of the vocabulary being a negative emotional state, so as to establish or update the negative emotion thesaurus 270 .

在自動應答系統10接收到來自第一終端裝置20的問題訊息後,自動應答系統10可自動地產生並回覆對應於問題訊息的答案訊息。圖6根據本發明的一實施例繪示決定答案訊息的流程 圖。在步驟S601中,訊息接收模組230可通過收發器300自第一終端裝置20取得第一即時通訊訊息,其中第一即時通訊訊息可包含客戶想要詢問的問題。 After the automatic answering system 10 receives the question message from the first terminal device 20, the automatic answering system 10 can automatically generate and reply an answer message corresponding to the question message. Fig. 6 shows the process of determining the answer message according to an embodiment of the present invention picture. In step S601 , the message receiving module 230 can obtain a first instant messaging message from the first terminal device 20 through the transceiver 300 , wherein the first instant messaging message can include a question that the customer wants to ask.

在步驟S602中,問答檢索模組220可對第一即時通訊訊息進行前處理。前處理可包含但不限於格式判斷或內容過濾等。舉例來說,問答檢索模組220可對第一即時通訊訊息執行內容過濾,將不重要或重複的零碎內容刪除。 In step S602, the question and answer retrieval module 220 may perform pre-processing on the first instant messaging message. Pre-processing may include but not limited to format judgment or content filtering. For example, the question-and-answer retrieval module 220 may perform content filtering on the first instant messaging message, and delete unimportant or repeated fragmentary content.

在步驟S603中,問答檢索模組220可為第一即時通訊訊息中的詞彙標註詞性以及詞袋索引。問答檢索模組220可基於自然語言處理來為經過前處理的第一即時通訊中的詞彙標註詞性以及詞袋索引。在一實施例中,問答檢索模組220可根據預存的參考字典來為詞彙標註詞性。在一實施例中,問答檢索模組220可基於詞袋模型為詞彙標註詞袋索引。問答檢索模組220也可基於例如詞頻-逆向文件頻率等統計方式分析第一即時通訊訊息中的各個詞彙的上下文關係來為詞彙標註詞袋索引。 In step S603 , the question-answer retrieval module 220 can mark the vocabulary in the first instant messaging message with part of speech and bag-of-words index. The question-and-answer retrieval module 220 can mark part-of-speech and bag-of-words index for the vocabulary in the pre-processed first instant message based on natural language processing. In one embodiment, the question-and-answer retrieval module 220 can mark the part-of-speech for vocabulary according to a pre-stored reference dictionary. In one embodiment, the question-answer retrieval module 220 can mark the vocabulary with a bag-of-words index based on the bag-of-words model. The question-and-answer retrieval module 220 can also analyze the context relationship of each vocabulary in the first instant messaging message based on statistical methods such as word frequency-reverse document frequency, etc., to mark the vocabulary with a bag-of-words index.

在步驟S604中,問答檢索模組220可計算第一即時通訊訊息與問答詞庫260中的各個問題訊息之間的相似度。若問答詞庫260中的特定問題訊息與第一即時通訊訊息之間的相似度(即:最大相似度)大於其他問題訊息與第一即時通訊訊息之間的相似度,則問答檢索模組220可判斷所述特定問題訊息與第一即時通訊訊息匹配。據此,問答檢索模組220可跳過步驟S605而直接執行步驟S606。在步驟S606中,問答檢索模組220可從問答詞庫 260中選出對應於所述特定問題訊息的答案訊息,並可通過收發器300回覆包含受選的答案訊息的第二即時通訊訊息至第一終端裝置20。 In step S604 , the question and answer retrieval module 220 can calculate the similarity between the first instant messaging message and each question message in the question and answer lexicon 260 . If the similarity between the specific question message in the question and answer dictionary 260 and the first instant messaging message (ie: the maximum similarity) is greater than the similarity between other question messages and the first instant messaging message, then the question and answer retrieval module 220 can determine that the specific question message matches the first instant messaging message. Accordingly, the question-answer retrieval module 220 may skip step S605 and directly execute step S606. In step S606, the question-and-answer retrieval module 220 may select 260 to select the answer message corresponding to the specific question message, and reply the second instant messaging message including the selected answer message to the first terminal device 20 through the transceiver 300 .

若問答詞庫260中存在對應於最大相似度的多個問題訊息,則問答檢索模組220可能無法根據第一即時通訊訊息與各個問題訊息之間的相似度來決定受選的答案訊息。據此,問答檢索模組220可執行步驟S605。在步驟S605中,問答檢索模組220可計算第一即時通訊訊息與問答詞庫260中的各個答案訊息之間的相似度。若問答詞庫260中的特定答案訊息與第一即時通訊訊息之間的相似度(即:最大相似度)大於其他答案訊息與第一即時通訊訊息之間的相似度,則問答檢索模組220可判斷所述特定答案訊息與第一即時通訊訊息匹配。在步驟S606中,問答檢索模組220可從問答詞庫260中選出所述特定答案訊息以作為受選的答案訊息,並可通過收發器300回覆包含受選的答案訊息的第二即時通訊訊息至第一終端裝置20。 If there are multiple question messages corresponding to the maximum similarity in the question-answer lexicon 260, the question-answer retrieval module 220 may not be able to determine the selected answer message according to the similarity between the first instant messaging message and each question message. Accordingly, the question and answer retrieval module 220 can execute step S605. In step S605 , the question and answer retrieval module 220 can calculate the similarity between the first instant messaging message and each answer message in the question and answer lexicon 260 . If the similarity between the specific answer message in the question-and-answer lexicon 260 and the first instant messaging message (that is, the maximum similarity) is greater than the similarity between other answer messages and the first instant messaging message, then the question-and-answer retrieval module 220 can determine that the specific answer message matches the first instant messaging message. In step S606, the question and answer retrieval module 220 can select the specific answer message from the question and answer lexicon 260 as the selected answer message, and can reply the second instant messaging message including the selected answer message to the first terminal device 20 through the transceiver 300 .

在一實施例中,問答檢索模組220可基於最佳匹配25演算法(best match 25,BM25)來計算第一即時通訊訊息與問答詞庫260中的訊息(例如:問題訊息或答案訊息)之間的相似度。問答檢索模組220可根據訊息(即:第一即時通訊訊息和問答詞庫260中的各個訊息)中的詞彙的詞性以及詞袋索引來計算相似度。具體來說,為了計算第一即時通訊訊息與問答詞庫260中的特定訊息之間的相似度,問答檢索模組220可基於最佳匹配25演 算法計算第一即時通訊訊息中的詞彙與特定訊息中的詞彙的詞彙相似度分數、詞性相似度分數以及詞袋相似度分數。問答檢索模組220可根據詞彙相似度分數、詞性相似度分數以及詞袋相似度分數計算相似度。舉例來說,問答檢索模組220可根據包含詞彙相似度分數、詞性相似度分數以及詞袋相似度分數等變數的多項式計算相似度。 In one embodiment, the question and answer retrieval module 220 can calculate the similarity between the first instant messaging message and the information in the question and answer lexicon 260 (for example: question message or answer message) based on the best match 25 algorithm (best match 25, BM25). The question-and-answer retrieval module 220 can calculate the similarity according to the part of speech and the bag-of-words index of words in the messages (ie, the first instant messaging message and each message in the question-and-answer thesaurus 260 ). Specifically, in order to calculate the similarity between the first instant messaging message and the specific message in the question and answer lexicon 260, the question and answer retrieval module 220 can perform The algorithm calculates a lexical similarity score, a part-of-speech similarity score, and a bag-of-words similarity score between the vocabulary in the first instant messaging message and the vocabulary in the specific message. The question-answer retrieval module 220 can calculate the similarity according to the vocabulary similarity score, the part-of-speech similarity score and the bag-of-words similarity score. For example, the question-answer retrieval module 220 can calculate the similarity according to a polynomial including vocabulary similarity scores, part-of-speech similarity scores, and bag-of-words similarity scores.

在自動應答系統10回覆第二即時通訊訊息給客戶後,自動應答系統10可根據客戶對第二即時通訊訊息的情緒反應來判斷是否將客戶轉交由客服人員服務。圖7根據本發明的一實施例繪示轉接客服人員的流程圖。 After the automatic answering system 10 replies the second instant messaging message to the customer, the automatic answering system 10 can judge whether to transfer the customer to the customer service personnel according to the customer's emotional response to the second instant messaging message. FIG. 7 shows a flow chart of transferring customer service personnel according to an embodiment of the present invention.

在步驟S701中,客服處理模組240可通過收發器300自第一終端裝置20取得對應於第二即時通訊訊息的第三即時通訊訊息。 In step S701 , the customer service processing module 240 can obtain a third instant messaging message corresponding to the second instant messaging message from the first terminal device 20 through the transceiver 300 .

在步驟S702中,客服處理模組240可統計對應於第三即時通訊訊息的計數值。具體來說,客服處理模組240可響應於第三即時通訊訊息與負面情緒詞庫270中的詞彙匹配而增加對應於第三即時通訊訊息的計數值。換句話說,若第三即時通訊訊息中存在越多個負面情緒詞庫270中的詞彙,則第三即時通訊訊息的計數值會越大。 In step S702, the customer service processing module 240 can count the count value corresponding to the third instant messaging message. Specifically, the customer service processing module 240 may increase the count value corresponding to the third instant messaging message in response to the third instant messaging message matching the vocabulary in the negative emotion vocabulary 270 . In other words, if there are more words in the negative emotion lexicon 270 in the third instant messaging message, the count value of the third instant messaging message will be larger.

在步驟S703中,客服處理模組240可判斷計數值是否大於閾值。若計數值小於或等於域值,則客服處理模組240可不執行步驟S704。若計數值大於閾值,則客服處理模組240可判斷客 戶處於負面情緒狀態。據此,在步驟S704中,客服處理模組240可通過收發器300傳送通知訊息至第二終端裝置,藉以通知客服人員客戶正處於負面情緒狀態中。在一實施例中,客服處理模組240可進一步建立第一終端裝置20與第二終端裝置之間的通訊通道。換句話說,客服處理模組240可在客戶處於負面情緒狀態時自動地將客戶轉交由客服人員服務。 In step S703, the customer service processing module 240 may determine whether the count value is greater than a threshold. If the count value is less than or equal to the threshold value, the customer service processing module 240 may not execute step S704. If the count value is greater than the threshold, then the customer service processing module 240 can determine that the customer service The user is in a negative emotional state. Accordingly, in step S704, the customer service processing module 240 can send a notification message to the second terminal device through the transceiver 300, so as to notify the customer service personnel that the customer is in a negative emotional state. In one embodiment, the customer service processing module 240 can further establish a communication channel between the first terminal device 20 and the second terminal device. In other words, the customer service processing module 240 can automatically transfer the customer to customer service staff when the customer is in a negative emotional state.

圖8根據本發明的一實施例繪示一種基於即時通訊服務的自動應答方法的流程圖,其中自動應答方法可由如圖1所示的自動應答系統10實施。在步驟S801中,取得問答詞庫以及負面情緒詞庫,其中問答詞庫包含第一問題訊息與對應於第一問題訊息的第一答案訊息,其中負面情緒詞庫包含第一詞彙。在步驟S802中,自第一終端裝置取得第一即時通訊訊息。在步驟S803中,響應於第一即時通訊訊息與第一問題訊息匹配而回覆包含第一答案訊息的第二即時通訊訊息至第一終端裝置。在步驟S804中,自第一終端裝置取得對應於第二即時通訊訊息的第三即時通訊訊息。在步驟S805中,響應於第三即時通訊訊息與第一詞彙匹配而傳送通知訊息至第二終端裝置。 FIG. 8 shows a flow chart of an instant messaging service-based automatic answering method according to an embodiment of the present invention, wherein the automatic answering method can be implemented by the automatic answering system 10 shown in FIG. 1 . In step S801, a question-and-answer lexicon and a negative emotion lexicon are obtained, wherein the question-answer lexicon includes a first question message and a first answer message corresponding to the first question message, and the negative emotion lexicon includes a first vocabulary. In step S802, a first instant messaging message is obtained from the first terminal device. In step S803, replying to the first terminal device a second instant messaging message including the first answer message in response to the matching of the first instant messaging message with the first question message. In step S804, a third instant messaging message corresponding to the second instant messaging message is obtained from the first terminal device. In step S805, a notification message is sent to the second terminal device in response to the third instant messaging message matching the first vocabulary.

綜上所述,本發明的自動應答系統可提供問答機器人服務的必要功能,諸如未結構化格式資料清理、文件關鍵內容梳理、問答語句正規化、斷詞/分詞處理或自定義參考字典等。自動應答系統可並透過問答檢索系統生成具有與客戶之問題訊息高相似度的答案,以達到正確回應問題訊息之目的。自動應答系統的客服 處理模組可分析客戶的情緒,並在客戶的負面情緒超過閾值時主動提醒真人客服人員介入使用者與問答機器人的對談。此外,問答過程也可以由使用者主動向系統提出由真人服務的請求,達到較佳的服務體驗。 To sum up, the automatic answering system of the present invention can provide the necessary functions of the question-and-answer robot service, such as unstructured format data cleaning, file key content sorting, question-and-answer sentence normalization, word segmentation/segmentation processing or custom reference dictionary, etc. The automatic answering system can also generate answers with high similarity with the customer's question information through the question and answer retrieval system, so as to achieve the purpose of correctly responding to the question information. Customer service with automated response system The processing module can analyze the customer's emotions, and actively remind the real customer service staff to intervene in the conversation between the user and the question-and-answer robot when the customer's negative emotions exceed the threshold. In addition, in the question-and-answer process, the user can also actively request the system to be served by a real person, so as to achieve a better service experience.

S801、S802、S803、S804、S805:步驟 S801, S802, S803, S804, S805: steps

Claims (10)

一種基於即時通訊服務的自動應答系統,包括:收發器,通訊連接至第一終端裝置以及第二終端裝置;儲存媒體,儲存多個模組;以及處理器,耦接所述儲存媒體以及所述收發器,並且存取和執行所述多個模組,其中所述多個模組包括:負面情緒詞庫,儲存第一詞彙;問答詞庫,儲存第一問題訊息與對應於所述第一問題訊息的第一答案訊息以及對應於所述第一問題訊息的第二答案訊息;訊息接收模組,通過所述收發器自所述第一終端裝置取得第一即時通訊訊息;問答檢索模組,計算所述第一即時通訊訊息與所述第一答案訊息之間的第一相似度以及所述第一即時通訊訊息與所述第二答案訊息之間的第二相似度;以及響應於所述第一即時通訊訊息與所述第一問題訊息匹配並且所述第一相似度大於所述第二相似度而通過所述收發器回覆包括所述第一答案訊息的第二即時通訊訊息至所述第一終端裝置;以及客服處理模組,通過所述收發器自所述第一終端裝置取得對應於所述第二即時通訊訊息的第三即時通訊訊息,並且 響應於所述第三即時通訊訊息與所述第一詞彙匹配而通過所述收發器傳送通知訊息至所述第二終端裝置。 An automatic answering system based on an instant messaging service, comprising: a transceiver, communicatively connected to a first terminal device and a second terminal device; a storage medium, storing a plurality of modules; and a processor, coupled to the storage medium and the transceiver, and accessing and executing the plurality of modules, wherein the plurality of modules include: a negative emotion lexicon, storing a first vocabulary; a question-and-answer lexicon, storing a first question message, a first answer message corresponding to the first question message, and a second answer message corresponding to the first question message; a message receiving module, through the transceiver. The first terminal device obtains the first instant messaging message; the question and answer retrieval module calculates a first similarity between the first instant messaging message and the first answer message and a second similarity between the first instant messaging message and the second answer message; and responds to the first instant messaging message matching with the first question message and the first similarity is greater than the second similarity, and replies a second instant messaging message including the first answer message to the first terminal device through the transceiver; a third instant messaging message of said second instant messaging message, and A notification message is sent to the second terminal device through the transceiver in response to the third instant messaging message matching the first vocabulary. 如請求項1所述的自動應答系統,其中所述客服處理模組響應於所述第三即時通訊訊息與所述第一詞彙匹配而建立所述第一終端裝置與所述第二終端裝置之間的通訊通道。 The automatic answering system according to claim 1, wherein the customer service processing module establishes a communication channel between the first terminal device and the second terminal device in response to the matching of the third instant messaging message with the first vocabulary. 如請求項1所述的自動應答系統,其中所述問答詞庫更包括第二問題訊息,其中所述問答檢索模組計算所述第一即時通訊訊息與所述第一問題訊息之間的第三相似度以及所述第一即時通訊訊息與所述第二問題訊息之間的第四相似度,其中所述問答檢索模組響應於所述第三相似度大於所述第四相似度而判斷所述第一即時通訊訊息與所述第一問題訊息匹配。 The automatic answering system as described in claim 1, wherein the question-answer lexicon further includes a second question message, wherein the question-answer retrieval module calculates a third similarity between the first instant messaging message and the first question message and a fourth similarity between the first instant messaging message and the second question message, wherein the question-answer retrieval module determines that the first instant messaging message matches the first question message in response to the third similarity being greater than the fourth similarity. 如請求項3所述的自動應答系統,其中所述問答檢索模組基於最佳匹配25演算法計算所述第三相似度。 The automatic answering system according to claim 3, wherein the question and answer retrieval module calculates the third similarity based on a best matching algorithm. 如請求項3所述的自動應答系統,其中所述問答檢索模組基於自然語言處理為所述第一問題訊息中的第二詞彙標註詞性以及詞袋索引,其中所述問答檢索模組根據所述詞性以及所述詞袋索引計算所述第三相似度。 The automatic answering system according to claim 3, wherein the question-answer retrieval module marks the second vocabulary in the first question message with a part-of-speech and a bag-of-words index based on natural language processing, wherein the question-answer retrieval module calculates the third similarity according to the part-of-speech and the bag-of-words index. 如請求項3所述的自動應答系統,其中所述問答檢索模組預存參考字典,並且響應於所述第一問題訊息中的第二詞彙與所述參考字典中的第三詞彙匹配而根據所述第三詞彙為所述第二詞彙標註詞性以及詞袋索引,其中所述問答檢索模組根據所述詞性以及所述詞袋索引計算所述第三相似度。 The automatic answering system as described in claim 3, wherein the question-answer retrieval module pre-stores a reference dictionary, and in response to the second vocabulary in the first question message matching a third vocabulary in the reference dictionary, marks the second vocabulary with a part-of-speech and a bag-of-words index according to the third vocabulary, wherein the question-answer retrieval module calculates the third similarity according to the part-of-speech and the bag-of-words index. 如請求項1所述的自動應答系統,其中所述多個模組更包括:資料處理模組,通過所述收發器取得包含所述第一問題訊息和所述第一答案訊息的文件,其中所述資料處理模組根據所述文件產生所述第一問題訊息與所述第一答案訊息的映射關係,並且根據所述映射關係建立所述問答詞庫。 The automatic answering system as described in claim 1, wherein the plurality of modules further include: a data processing module, which obtains a file containing the first question message and the first answer message through the transceiver, wherein the data processing module generates a mapping relationship between the first question message and the first answer message according to the file, and establishes the question-and-answer lexicon according to the mapping relationship. 如請求項1所述的自動應答系統,其中所述客服處理模組通過所述收發器取得文件,並且基於自然語言處理而為所述文件中的所述第一詞彙標註情緒狀態,其中所述客服處理模組響應於所述情緒狀態為負面情緒狀態而將所述第一詞彙加入所述負面情緒詞庫中。 The automatic answering system as described in claim 1, wherein the customer service processing module obtains the file through the transceiver, and marks the emotional state for the first vocabulary in the file based on natural language processing, wherein the customer service processing module adds the first vocabulary to the negative emotion vocabulary in response to the emotional state being a negative emotional state. 如請求項1所述的自動應答系統,其中所述客服處理模組響應於所述第三即時通訊訊息與所述第一詞彙匹配而增加計數值,並且響應於所述計數值大於閾值而傳送所述通知訊息。 The automatic answering system according to claim 1, wherein the customer service processing module increments a count value in response to the third instant messaging message matching the first vocabulary, and sends the notification message in response to the count value being greater than a threshold. 一種基於即時通訊服務的自動應答方法,包括:取得問答詞庫以及負面情緒詞庫,其中所述問答詞庫包括第一問題訊息與對應於所述第一問題訊息的第一答案訊息以及對應於所述第一問題訊息的第二答案訊息,其中所述負面情緒詞庫包括第一詞彙;自第一終端裝置取得第一即時通訊訊息;計算所述第一即時通訊訊息與所述第一答案訊息之間的第一相似度以及所述第一即時通訊訊息與所述第二答案訊息之間的第 二相似度;響應於所述第一即時通訊訊息與所述第一問題訊息匹配並且所述第一相似度大於所述第二相似度而回覆包括所述第一答案訊息的第二即時通訊訊息至所述第一終端裝置;自所述第一終端裝置取得對應於所述第二即時通訊訊息的第三即時通訊訊息;以及響應於所述第三即時通訊訊息與所述第一詞彙匹配而傳送通知訊息至第二終端裝置。 An automatic answering method based on an instant messaging service, comprising: obtaining a question-and-answer lexicon and a negative emotion lexicon, wherein the question-answer lexicon includes a first question message, a first answer message corresponding to the first question message, and a second answer message corresponding to the first question message, wherein the negative emotion lexicon includes a first vocabulary; obtaining a first instant messaging message from a first terminal device; two similarities; in response to the first instant messaging message matching the first question message and the first similarity being greater than the second similarity, replying a second instant messaging message including the first answer message to the first terminal device; obtaining a third instant messaging message corresponding to the second instant messaging message from the first terminal device; and sending a notification message to a second terminal device in response to the third instant messaging message matching the first word.
TW111100064A 2022-01-03 2022-01-03 Auto-reply system and auto-reply method based on instant message service TWI807569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111100064A TWI807569B (en) 2022-01-03 2022-01-03 Auto-reply system and auto-reply method based on instant message service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111100064A TWI807569B (en) 2022-01-03 2022-01-03 Auto-reply system and auto-reply method based on instant message service

Publications (2)

Publication Number Publication Date
TWI807569B true TWI807569B (en) 2023-07-01
TW202329669A TW202329669A (en) 2023-07-16

Family

ID=88147550

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111100064A TWI807569B (en) 2022-01-03 2022-01-03 Auto-reply system and auto-reply method based on instant message service

Country Status (1)

Country Link
TW (1) TWI807569B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061831A (en) * 2019-10-29 2020-04-24 深圳绿米联创科技有限公司 Method and device for switching machine customer service to manual customer service and electronic equipment
CN111813902A (en) * 2020-05-21 2020-10-23 车智互联(北京)科技有限公司 Intelligent response method and system and computing device
CN112633919A (en) * 2020-12-15 2021-04-09 航天信息股份有限公司 Method and system for realizing intelligent customer service
CN113590797A (en) * 2021-08-05 2021-11-02 云上贵州大数据产业发展有限公司 Intelligent operation and maintenance customer service system and implementation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061831A (en) * 2019-10-29 2020-04-24 深圳绿米联创科技有限公司 Method and device for switching machine customer service to manual customer service and electronic equipment
CN111813902A (en) * 2020-05-21 2020-10-23 车智互联(北京)科技有限公司 Intelligent response method and system and computing device
CN112633919A (en) * 2020-12-15 2021-04-09 航天信息股份有限公司 Method and system for realizing intelligent customer service
CN113590797A (en) * 2021-08-05 2021-11-02 云上贵州大数据产业发展有限公司 Intelligent operation and maintenance customer service system and implementation method

Also Published As

Publication number Publication date
TW202329669A (en) 2023-07-16

Similar Documents

Publication Publication Date Title
US10366168B2 (en) Systems and methods for a multiple topic chat bot
US11871148B1 (en) Artificial intelligence communication assistance in audio-visual composition
US11580350B2 (en) Systems and methods for an emotionally intelligent chat bot
US10796217B2 (en) Systems and methods for performing automated interviews
WO2021066939A1 (en) Automatically determining and presenting personalized action items from an event
US20180203851A1 (en) Systems and methods for automated haiku chatting
CN114503115A (en) Generating rich action items
Ralston et al. A voice interactive multilingual student support system using IBM Watson
CN110892416A (en) Multimodal dialog proxy
CN110249325A (en) Input system with traffic model
EP4027614A1 (en) Automated messaging reply-to
WO2020191828A1 (en) Graph-based context association reply generation method, computer and medium
US10691896B2 (en) Conversational system user behavior identification
CN114328852A (en) Text processing method, related device and equipment
CN114631094A (en) Intelligent e-mail headline suggestion and remake
US10770068B2 (en) Dialog agent, reply sentence generation method, and non-transitory computer-readable recording medium
CN112307166B (en) Intelligent question-answering method and device, storage medium and computer equipment
KR20160134564A (en) Device and method for analyzing user emotion
TWI807569B (en) Auto-reply system and auto-reply method based on instant message service
CN109408621B (en) Dialogue emotion analysis method and system
WO2022001161A1 (en) Online interview method and system
US11277362B2 (en) Content post delay system and method thereof
CN112748828A (en) Information processing method, device, terminal equipment and medium
US11689482B2 (en) Dynamically generating a typing feedback indicator for recipient to provide context of message to be received by recipient
US20240037339A1 (en) Domain-specific named entity recognition via graph neural networks