WO2021239002A1 - Group chat robot autonomous response method and system - Google Patents

Group chat robot autonomous response method and system Download PDF

Info

Publication number
WO2021239002A1
WO2021239002A1 PCT/CN2021/096153 CN2021096153W WO2021239002A1 WO 2021239002 A1 WO2021239002 A1 WO 2021239002A1 CN 2021096153 W CN2021096153 W CN 2021096153W WO 2021239002 A1 WO2021239002 A1 WO 2021239002A1
Authority
WO
WIPO (PCT)
Prior art keywords
group
instant messaging
input sentence
candidate list
target
Prior art date
Application number
PCT/CN2021/096153
Other languages
French (fr)
Chinese (zh)
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 支付宝(杭州)信息技术有限公司
Publication of WO2021239002A1 publication Critical patent/WO2021239002A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3322Query formulation using system suggestions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3334Selection or weighting of terms from queries, including natural language queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services

Definitions

  • This specification relates to the field of Internet technology, and in particular to a method and system for autonomous response of group chat robots.
  • IM Instant Messaging
  • IM Instant Messaging
  • this manual provides a more efficient method and system for group chat robots to respond autonomously.
  • the group chat robot autonomous response method and system provided in this manual after receiving the input sentence sent by the user in the group chat, generate a candidate list related to the input sentence based on the input sentence and the preset knowledge base, and combine the candidates
  • the list is sent to the user who sent the input sentence.
  • the answer that matches the selection result is sent to other users in the group chat.
  • the method and system can not only actively answer questions raised by users, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.
  • this specification provides a method for group chat robots to autonomously respond, including: receiving an input sentence, the input sentence being input by a target client on an instant messaging group interface; based on the input sentence and a preset knowledge base Generate a candidate list, the candidate list including at least one recommended knowledge point related to the input sentence; sending the candidate list to the instant messaging group, the candidate list being marked as being only available to users in the instant messaging group
  • the first group of clients is visible, and the first group of clients are part of the clients including the target client; receiving the selection of the candidate list by the management client in the first group of clients; and Send a target answer matching the selection to the instant messaging group, where the target answer is marked as visible to a second group of clients in the instant messaging group, and the second group of clients includes the At least some clients in the instant messaging group.
  • the sending the candidate list to the instant messaging group includes: sending first icon data to the instant messaging group, and the first icon data is marked as only for the first group of customers It can be seen from the end that the first icon data includes a list display request; receiving a signal for triggering the list display request by the first group of clients; sending the candidate list to the instant messaging group, and the candidate list is marked as Visible to the client that triggered the list display request.
  • the sending the candidate list to the instant messaging group includes: sending the candidate list and the first icon data to the instant messaging group, wherein the first icon data is marked as only Visible to the first group of clients, the first icon data includes a list display request, and when the first icon data is triggered by the client, the candidate list is displayed on the client that triggered the first icon data .
  • the sending the target answer matching the selection to the instant messaging group includes: sending the target answer and second icon data to the instant messaging group, wherein the second icon The data is marked as visible to the second group of clients, the second icon data includes an answer display request, and when the second icon data is triggered by the client, it is displayed on the client that triggered the second icon data The target answer.
  • the generating a candidate list based on the input sentence and a preset knowledge base includes: identifying whether the input sentence includes a target question related to a preset transaction, and the preset transaction is directed to the Customized by the instant messaging group; determining that the input sentence includes the target question; and generating the candidate list based on the input sentence and the preset knowledge base.
  • the identifying whether the input sentence includes a target question related to a preset transaction includes: matching the input sentence with a plurality of preset question templates to identify whether the input sentence is Question sentence; and when the input sentence is a question sentence, classify the input sentence, and identify whether the input sentence includes a target question related to the preset transaction.
  • the method for the group chat robot to autonomously answer further includes: sending an answer evaluation request to the instant messaging group, the answer evaluation request being marked as visible only to the target client; and receiving the answer Describe the answer evaluation of the target client.
  • the management client includes the target client.
  • the second group of clients includes: clients selected by the management client from the instant messaging group or all clients in the instant messaging group.
  • this specification provides a system for autonomous response of group chat robots, including at least one storage medium and at least one processor, the at least one storage medium includes at least one instruction set for autonomous response of group chat robots;
  • a processor is in communication connection with the at least one storage medium, wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes this specification according to the instructions of the at least one instruction set The method for autonomous response of group chat robots described in the first aspect.
  • this specification provides a method for group chat robots to autonomously respond, including: receiving an input sentence and sending it to the server, the input sentence being input by the target user on the instant messaging group interface; receiving the message sent by the server The candidate list is displayed on the instant messaging group interface, the candidate list is generated based on the input sentence and the preset knowledge base, and the candidate list includes at least one recommendation related to the input sentence Knowledge points; receiving the target user’s selection of the candidate list and sending it to the server; sending the selection to the instant messaging group; and receiving the target that matches the selection sent by the server Answer.
  • the receiving the candidate list sent by the server includes: receiving the candidate list and the first icon data sent by the server, wherein the first icon data includes a list display request, when When the first icon data is triggered by the client, display the candidate list on the client that triggered the first icon data; receive the trigger operation of the target user on the first icon data; and in the instant The communication group displays the candidate list.
  • this specification provides a system for autonomous response of group chat robots, including at least one storage medium and at least one processor, the at least one storage medium includes at least one instruction set for autonomous response of group chat robots;
  • a processor is in communication connection with the at least one storage medium, wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes this specification according to the instructions of the at least one instruction set The method for autonomous response of group chat robots described in the third aspect.
  • Fig. 1 shows a schematic diagram of a system for autonomous response of group chat robots according to an embodiment of this specification
  • FIG. 2 shows a schematic diagram of a device structure for autonomous response of a group chat robot according to an embodiment of this specification
  • Figure 3 shows a flow chart of a method for group chat robots to autonomously respond according to an embodiment of this specification
  • Fig. 4 shows a flow chart for generating a candidate list according to an embodiment of the present specification
  • Figure 5 shows a flow chart of a method for group chat robots to autonomously respond according to an embodiment of this specification.
  • Fig. 6 shows a schematic diagram of the instant messaging group interface provided according to an embodiment of the present specification.
  • the flowchart used in this specification shows operations implemented by the system according to some embodiments in this specification. It should be clearly understood that the operations of the flowchart can be implemented out of order. Conversely, the operations can be reversed or performed simultaneously. In addition, one or more other operations can be added to the flowchart. One or more operations can be removed from the flowchart.
  • Group chat technology is an important function of instant messaging application software, which allows multiple users in real life to gather together to interact and share information.
  • a service group was launched on the basis of ordinary group chat.
  • the service group refers to a group chat established for the purpose of serving users.
  • the user may be a served person in the service group.
  • the user can conduct group chat communication in the service group, and can also conduct business consultation, business help or business feedback in the service group.
  • the customer service may be a server in the service group, and may answer users' questions, respond to user requests, or send notifications or announcements to users in the service group, and so on.
  • the customer service may include a human customer service, and may also include a customer service robot.
  • the customer service robot can help the manual customer service respond to the user's request, reduce the pressure of the manual customer service, and improve the work efficiency of the service group.
  • the customer service robot can provide a series of auxiliary functions for manual customer service, including service reminders, answer recommendations, and question and answer storage. Customer service robots can also directly answer user questions.
  • the group chat robot autonomous response method and system provided in this manual after receiving the input sentence sent by the user in the group chat, generate a candidate list related to the input sentence based on the input sentence and the preset knowledge base, and combine the candidates
  • the list is sent to the user who sent the input sentence.
  • the answer that matches the selection result is sent to other users in the group chat.
  • the method and system can not only actively answer questions raised by users, but also will not cause interference to other users in the group chat, and improve user experience while improving work efficiency.
  • FIG. 1 shows a schematic diagram of a system 100 for autonomous response of a group chat robot.
  • the system 100 may include a server 200, a client 300, a network 120, and a database 150.
  • the client 300 may include a target client 301, a client 302, a client 303, a client 304, and so on.
  • the server 200 may store data or instructions for executing the group chat robot autonomous response method described in this specification, and may execute or be used to execute the data or instructions.
  • the server 200 may include the robot server.
  • the server 200 may further include a server that provides the group chat service.
  • the group chat service may also be provided by the robot server.
  • the user 110 is a user of the client 300.
  • the user 110 may include a target user 111, a user 112, a user 113, a user 114, and so on.
  • the target user 111 is the user of the target client 301
  • the user 112 is the user of the client 302
  • the user 113 is the user of the client 303
  • the user 114 is the user of the client 304, and so on.
  • the client 300 is a connection device for establishing communication between the target user 110 and the server 200 in general.
  • the client 300 communicates with the server 200.
  • the server 200 can communicate with multiple clients 300 at the same time.
  • the client 300 may be installed with one or more applications (APP).
  • APP applications
  • the APP can provide the user 110 with the ability and interface to interact with the outside world through the network 120.
  • the APP including but not limited to: Chat class APP program, shopping category APP program, video classes APP program, wealth management APP program, etc., such as Alipay TM, Taobao TM, Jingdong TM or such as banking and financial services institutions, financial products such as APP program.
  • the client 300 may include a mobile device, a tablet computer, a notebook computer, a built-in device of a motor vehicle, or the like, or any combination thereof.
  • the mobile device may include a smart home device, a smart mobile device, a virtual reality device, an augmented reality device, or similar devices, or any combination thereof.
  • the smart home device may include a smart TV, a desktop computer, etc., or any combination.
  • the smart mobile device may include a smart phone, a personal digital assistant, a game device, a navigation device, etc., or any combination thereof.
  • the virtual reality device or augmented reality device may include a virtual reality helmet, virtual reality glasses, virtual reality patch, augmented reality helmet, augmented reality glasses, augmented reality patch or similar content, or any combination thereof.
  • the virtual reality device or the augmented reality device may include Google glasses, head-mounted displays, gear VR, and so on.
  • the built-in devices in the motor vehicle may include a vehicle-mounted computer, a vehicle-mounted TV, and the like.
  • the client 300 may be a device with positioning technology for locating the position of the client 300.
  • the client 300 is loaded with instant messaging application software corresponding to the server 200, for example, DingTalk TM .
  • the instant messaging application software is provided with an instant messaging group.
  • the user 110 is a user in the instant messaging group.
  • the user 110 can input chat information in the instant messaging group.
  • the instant messaging group includes at least two users 110.
  • the network 120 may facilitate the exchange of information or data.
  • the client 300, the server 200, and the database 150 can be connected to the network 120, and transmit information or data to each other through the network 120.
  • the server 200 may obtain input information from the client 300 through the network 120.
  • the network 120 can be any type of wired or wireless network, or a combination thereof.
  • the network 120 may include a cable network, a wired network, an optical fiber network, a telecommunication communication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), and a wide area network.
  • the network 120 may include one or more network access points.
  • the network 120 may include wired or wireless network access points, such as base stations or Internet exchange points 120-1, 120-2,..., through which one or more of the client 300, the server 200, and the database 150 Each component can be connected to the network 120 to exchange data or information.
  • the database 150 may store data or instructions.
  • the database 150 may store data obtained from the server 200 or the client 300.
  • the database 150 may store data or instructions that can be executed by the server 200 or used to execute the group chat robot autonomous response method described in this specification.
  • the database 150 may store a knowledge base related to the preset affairs of the instant messaging group.
  • the server 200 and the client 300 may have access to the database 150, and the server 200 and the client 300 may access data or instructions stored in the database 150 through the network 120.
  • the database 150 can be directly connected to the server 200 and the client 300.
  • the database 150 may be a part of the server 200.
  • the database 150 may include mass storage, removable storage, volatile read-write memory, read-only memory (ROM), or the like, or any combination thereof.
  • Exemplary mass storage may include non-transitory storage medium (non-transitory storage medium) such as magnetic disks, optical disks, and solid-state drives.
  • Removable storage may include flash drives, floppy disks, CDs, memory cards, zip disks, tapes, etc.
  • Typical volatile read-write memory may include random access memory (RAM).
  • RAM may include dynamic RAM (DRAM), double date rate synchronous dynamic RAM (DDR SDRAM), static RAM (SRAM), thyristor RAM (T-RAM), and zero capacitance RAM (Z-RAM).
  • ROM may include mask ROM (MROM), programmable ROM (PROM), virtual programmable ROM (PEROM), electronic programmable ROM (EEPROM), compact disk (CD-ROM) and digital versatile disk ROM, etc.
  • the database 150 can be implemented on a cloud platform.
  • the cloud platform may include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud cloud, etc., or forms similar to the foregoing forms, or any combination of the foregoing forms.
  • the target user 111 inputs chat information through the instant messaging group of the instant messaging application software on the target client 301, and the chat information is transmitted to the server 200 through the network 120; / Or the group chat robot in the database 150 instructions for the autonomous answering method, answering the questions contained in the input chat information to generate a candidate list, and sending the candidate list to the target user 111 or some users in the instant messaging group ; After the target user 111 makes a selection on the candidate list, the server 200 sends a target answer that matches the selection to all users or a part of the users in the instant messaging group.
  • Figure 2 shows a schematic diagram of the structure of an autonomous response device for a group chat robot.
  • the device may be the server 200 or the client 300.
  • the server 200 is taken as an example to introduce the device.
  • the server 200 can perform the autonomous response method of the group chat robot described in this specification. The method is described in other parts of this specification. For example, in the description of FIG. 3 to FIG. 4, a method P200 for the server 200 to execute the autonomous response of the group chat robot is introduced.
  • the server 200 includes at least one storage medium 230 and at least one processor 220.
  • the server 200 may also include a communication port 250 and an internal communication bus 210. Meanwhile, the server 200 may further include an I/O component 260.
  • the internal communication bus 210 can connect different system components, including the storage medium 230 and the processor 220.
  • the I/O component 260 supports input/output between the server 200 and other components.
  • the storage medium 230 may include a data storage device.
  • the data storage device may be a non-transitory storage medium or a temporary storage medium.
  • the data storage device may include one or more of a magnetic disk 232, a read-only storage medium (ROM) 234, or a random access storage medium (RAM) 236.
  • the storage medium 230 also includes at least one instruction set stored in the data storage device.
  • the instructions are computer program codes, and the computer program codes may include programs, routines, objects, components, data structures, procedures, modules, etc., that execute the group chat robot autonomous response method provided in this specification.
  • the communication port 250 is used for data communication between the server 200 and the outside world.
  • the server 200 may be connected by a communication port 250 network 120, the target receives the user input sentence 111 by the APP universal instant messaging (e.g. nails (TM)) input, 250 111 further recommended to the target user answers through the communication port.
  • APP universal instant messaging e.g. nails (TM)
  • At least one processor 220 and at least one storage medium 230 are communicatively connected through an internal communication bus 210. At least one processor 220 is used to execute the above-mentioned at least one instruction set. When the system 100 is running, at least one processor 220 reads the at least one instruction set, and executes the group chat robot autonomous response method P200 provided in this specification according to the instructions of the at least one instruction set. The processor 220 can execute all the steps included in the method P200 for group chat robot autonomous response.
  • the processor 220 may be in the form of one or more processors, and the processor 220 may include one or more hardware processors, such as a microcontroller, a microprocessor, a reduced instruction set computer (RISC), an application specific integrated circuit (ASIC), Application-specific instruction set processor (ASIP), central processing unit (CPU), graphics processing unit (GPU), physical processing unit (PPU), microcontroller unit, digital signal processor (DSP), field programmable gate Array (FPGA), advanced RISC machine (ARM), programmable logic device (PLD), any circuit or processor capable of performing one or more functions, etc., or any combination thereof.
  • RISC reduced instruction set computer
  • ASIC application specific integrated circuit
  • ASIP Application-specific instruction set processor
  • CPU central processing unit
  • GPU graphics processing unit
  • PPU physical processing unit
  • DSP digital signal processor
  • FPGA field programmable gate Array
  • ARM programmable logic device
  • PLD programmable logic device
  • the server 200 in this specification may also include multiple processors. Therefore, the operations or method steps disclosed in this specification may be executed by one processor as described in this specification, or may be jointly executed by multiple processors. .
  • the processor 220 of the server 200 performs step A and step B in this specification, it should be understood that step A and step B can also be performed jointly or separately by two different processors 220 (for example, the first processor performs step A, the second processor executes step B, or the first and second processors jointly execute steps A and B).
  • the target client 301 can execute the group chat robot autonomous response method described in this specification. The method is described in other parts of this specification. For example, in the description of FIG. 5 and FIG. 6, a method P300 for the target client 301 to perform the autonomous response of the group chat robot is introduced.
  • Fig. 3 shows a flowchart of a method P200 for autonomous response of a group chat robot.
  • the server 200 can execute the group chat robot autonomous response method P200 provided in this specification.
  • the processor 220 in the server 200 can read the instruction set stored in its local storage medium and/or the database 150, and then execute the group chat robot autonomous response method provided in this specification according to the provisions of the instruction set. P200.
  • the method P200 may include execution by at least one processor 220 on the server 200 side: S220: receiving an input sentence, the input sentence being input by the target client 301 on the instant messaging group interface.
  • the target client 301 may be installed with general instant messaging application software, for example, Dingding TM APP.
  • DingTalk TM APP may have a service group, that is, the instant messaging group.
  • the service of the instant messaging group can be provided by the server 200, can be provided by the group chat service server in the server 200, or can be provided by the robot server.
  • the instant messaging group provides shared instant public messaging services on the interface for at least two users 110. For example, when a user (for example, target user 111) enters a message in the instant messaging group, the message can be instantly seen by all other users (for example, user 112, user 113, user 114, etc.). Any user 110 can answer the input message. All users 110 and the robots in the instant messaging group can be online at the same time.
  • the target user 111 is a user in the instant messaging group.
  • the instant messaging group may be a transaction service group. Further, the instant messaging group may be a business service group customized for a specific group of people.
  • the customer service robot in the instant messaging group can provide transaction consulting services for users in the instant messaging group.
  • the transaction is a transaction associated with the instant messaging group.
  • Different users have different definitions of the transaction.
  • the affairs defined by the automobile company may be related to the automobile, such as the engine of the automobile, the tire of the automobile, and so on.
  • the affairs defined by the financial company are those that the finance wants to do, for example, stocks, funds, insurance, and so on.
  • Different departments in the same automobile company have different definitions of affairs.
  • the engine department's definition of business may be the model of the engine, the power of the engine, the displacement of the engine, and so on.
  • the definition of business in the automobile tire department can be the structure of the tire, the pressure of the tire, the pattern of the tire, and so on. Since the transactions defined by different users are different, the transactions associated with different communication groups are also different.
  • the instant messaging group often presets transactions according to the needs of users, so the preset transactions are customized for the instant messaging group.
  • the preset affairs can be supplemented, modified and changed.
  • the target user 111 can input the input sentence through the interface of the instant messaging group on the target client 301.
  • the input sentence may be real-time chat information input by the target user 111 in the instant messaging group.
  • the input sentence may be voice data or text data.
  • the server 200 may convert the voice data into text data.
  • the input sentence may be any sentence input by the target user 111 in the instant messaging group, but may be a communication sentence with the user 110, or some doubts or difficulties encountered, and so on.
  • the input sentence may be data related to the preset transaction, or data not related to the preset transaction.
  • the input sentence may be the data for the users in the instant messaging group to communicate with each other, or it may be a question asked by the target user 111 to the robot or other users 110.
  • the input sentence may not have any mark to ask the robot a question.
  • the input sentence is a natural dialogue between users, so there is no mark to ask the robot a question.
  • the working mode of the instant messaging group may be: the target user 111 inputs the input sentence on the instant messaging group interface of the target client 301, and the input sentence is transmitted to the server 200 through the network 120, and the instant messaging group Clients of other users, such as client 302, client 303, client 304, etc., will actively monitor the server 200. Once the input sentence is monitored, it will actively obtain the input sentence from the server 200 and display it on On the interface of the instant messaging group.
  • S230 Generate a candidate list based on the input sentence and the preset knowledge base.
  • the server 200 may respond to the input sentence according to the content of the input sentence. Specifically, the server 200 may generate a candidate list related to the input sentence according to the content of the input sentence and the knowledge base preset by the instant messaging group.
  • the predetermined knowledge base may be a collection of knowledge points related to the predetermined transaction.
  • the knowledge base can be used to describe the functions or rules of the preset affairs.
  • the instant messaging group is an Alipay transaction group
  • the preset transaction may be a transaction related to Alipay
  • the preset knowledge base may include multiple knowledge points related to functions supported by Alipay.
  • the knowledge base may include a plurality of preset knowledge points, and each of the plurality of knowledge points includes a knowledge point title and a knowledge point answer.
  • the title of the knowledge point may be a question asked about the predetermined transaction, and the answer of the knowledge point may be the answer content to the question.
  • the knowledge points of the knowledge base are "Title: What is Huabei? Answer: Huabei is a loan product.”, "Title: What is Yu'e Bao? Answer: Yu'e Bao is one A currency fund.”, "Title: What should I do if I forget my password? Answer: Use my mobile phone number to retrieve my password.” and so on.
  • the knowledge base is preset based on the preset affairs of the instant messaging group.
  • the knowledge base can be supplemented, modified and changed.
  • the knowledge base may be stored in the server 200 or in the database 150.
  • the candidate list may be a number of knowledge point titles related to the input sentence generated by the server 200 according to the input sentence and the knowledge base.
  • the candidate list may include at least one recommended knowledge point related to the input sentence.
  • the candidate list may include at least one recommended knowledge point title related to the input sentence.
  • step S230 may include: S232: identifying whether the input sentence includes a target question related to a preset transaction.
  • the server 200 After the target user 111 inputs the input sentence through the instant messaging group on the target client 301, the server 200 needs to perform transaction problem recognition on the input sentence to identify whether the input sentence is related to the preset transaction Question related goals. When the input sentence is not a question related to the preset transaction, the server 200 does not respond to the input sentence; when the input sentence is a question related to the preset transaction, the server 200 asks all questions. Autonomous response to the input sentence.
  • the target question related to the predetermined transaction may be a question related to multiple knowledge points in the knowledge base.
  • the target question may also be at least one of multiple knowledge point titles in the knowledge base.
  • the server 200 may perform transaction problem recognition on the input sentence through the question recognition module 282 and the transaction recognition module 284.
  • the question recognition module 282 may receive the input sentence and be configured to recognize whether the input sentence is a question sentence.
  • the question recognition module 282 is obtained by training based on a plurality of preset question templates.
  • the preset multiple question sentence templates may be created based on multiple question sentence format information.
  • the question recognition module 282 can use the preset multiple question template to match the input sentence to determine whether a template matches the input sentence, thereby identifying whether the input sentence is a question sentence Statement.
  • question format information may include general question format information and declarative question format information.
  • the general question format refers to the question format in the grammatical sense.
  • the question format of the statement refers to the statement format used to describe a certain fact in order to seek a response (for example, hope that others can help to deal with it), such as "attendance check-in failed", “help me approve”, “Taobao can't Login” and so on.
  • the transaction recognition module 284 may receive the input sentence and be configured to classify the input sentence, that is, transaction question recognition, and identify whether the input sentence includes a target question related to the preset transaction.
  • the transaction recognition module 284 is trained based on the preset knowledge base and preset non-transaction corpus information.
  • the transaction recognition module 284 may be a text classification model, and the classification result is a two-class classification.
  • the transaction recognition module 284 uses the preset knowledge base as a positive sample for training, and uses the preset non-transaction corpus information as a negative sample for training, thereby forming a training sample set for model training.
  • the ratio of the data amount of the positive sample to the data amount of the negative sample may be 1:1, or other ratios, such as 1.2:1, and so on.
  • the server 200 inputs the input sentence into the transaction recognition module 284, and the output result of the transaction recognition module 284 is that the input sentence belongs to the knowledge base type or the input sentence belongs to the non-transaction corpus type.
  • the preset non-business corpus information may be general small chat information, for example, "Hello", "How is the weather today” and so on.
  • the server 200 determines that the input sentence does not include a target question related to the preset transaction, and therefore can choose not to answer. Through such a setting, the users 110 can be disturbed as little as possible during normal chats, and the user experience is enhanced.
  • the transaction recognition module 284 may include one of a FastText model, a CNN model, and an LSTM model.
  • the type of text classification model used by the transaction recognition module 284 may be determined based on the data volume of the sample used in the training of the text classification model. For example, when the sample used in the text classification model training is a large amount of data, a CNN model or an LSTM model can be used. When the sample used in the text classification model training is a small amount of data, the FastText model can be used.
  • the transaction recognition module 284 provided in this specification can determine the type of text classification model used based on the amount of sample data used during text classification model training, and can select suitable text classification models for classification based on different application scenarios, that is, transaction Problem identification, thereby improving the efficiency of transaction problem identification.
  • the question recognition module 282 and the transaction recognition module 284 can perform question recognition on the input sentence first, and perform transaction problem recognition on the input sentence when the input sentence is a question sentence. When sentence, no transaction problem identification is performed, which can effectively save the amount of calculation and save resources.
  • step S232 may include: S232-2: matching the input sentence with the plurality of preset question template to identify whether the input sentence is a question sentence.
  • the server 200 performs question format matching on the input sentence through the question recognition module 282, and uses the input sentence to traverse all the question sentence formats in the plurality of preset question sentence formats. If there is a matching question format, the server 200 determines that the input sentence is a question sentence. Otherwise, the server 200 determines that the input sentence is not a question sentence. If the input sentence is determined by the server 200 as a question sentence, the server 200 regards the input sentence as a potential transaction problem and performs transaction problem identification.
  • the server 200 determines that the input sentence does not include a target question related to the preset transaction. The server 200 considers that the input sentence is not a question about the predetermined transaction, and does not respond to the input sentence.
  • the server 200 needs to further classify the input sentence, that is, transaction problem identification, and determine whether the input sentence includes a target question related to the preset transaction. Specifically, the server 200 classifies the input sentence through the transaction recognition module 284, and recognizes whether the input sentence includes a target question related to the preset transaction.
  • the transaction recognition module 284 may first perform word segmentation processing on the input sentence. For example, the input sentence recognized as a question sentence "How to activate Huabei?" is segmented as "Huabe", "How" and “Open”; then, perform text classification processing on the word segmentation obtained after the word segmentation processing.
  • the transaction recognition module 284 expresses the word segmentation "Huabe", “How” and “Kaitong” as three word vectors, for example, using Word2Vec to segment the word "Hua "Bai”, “How” and “Open” are represented as 3 word vectors; then, the transaction recognition module 284 uses convolution processing to convert the obtained 3 word vectors into a semantic matrix; then, the transaction recognition module 284 uses pooling Calculation to convert the semantic matrix into a semantic vector; finally, the transaction recognition module 284 uses the Softmax layer to classify to obtain the scores classified into the knowledge base class and the non-transaction corpus class, and compare the scores Large categories are output as text classification results of the transaction recognition module 284.
  • the server 200 determines that the input sentence includes a target question related to the preset transaction; when the output result of the transaction recognition module 284 is all When the input sentence belongs to a non-transactional corpus, the server 200 determines that the input sentence does not include a target question related to the predetermined transaction.
  • the group chat robot autonomous response method P200 and system 100 provided in this specification uses the question recognition module 282 and the transaction recognition module 284 to first perform question recognition 282 on the input sentence, only when the input sentence is a question sentence In the case of, the input sentences are classified, that is, transaction problem recognition, and it is not necessary to perform transaction problem recognition on all input sentences, thereby reducing the amount of calculation and improving work efficiency.
  • the server 200 can also recognize whether the input sentence includes a target question related to a preset transaction through the semantic recognition module.
  • the semantic recognition module may be trained based on historical input sentences.
  • the historical input sentence may include a question related to the preset transaction, and may also include an exchange dialogue between the users 110.
  • the semantic recognition module may perform semantic analysis on the input sentence, and determine whether the semantics of the input sentence includes a target question related to the preset transaction according to the result of the semantic analysis. For example, the historical input sentences related to the preset transaction are "What is Dingding?", "Why the income of Yu'ebao is getting low?", “Check attendance failed", "Taobao can't log in”, etc.
  • the historical input sentence that is not related to the preset transaction may be "how is the weather?" and so on.
  • the input sentence is "My Yu'E Bao income was 100 last month, but only 50 this month”.
  • the server 200 can obtain the semantic analysis result "Yuebao's income has decreased” by performing semantic analysis on the input sentence. Therefore, it is judged that the input sentence may include a target question related to the preset transaction.
  • the server 200 can perform semantic recognition on the input sentence through the semantic recognition module, analyze the semantics intended to be expressed by the input sentence, and thereby recognize whether the input sentence includes a target question related to the predetermined transaction.
  • the semantic recognition module can perform semantic analysis on input sentences whose question expressions are not obvious, and dig out the potential expressions of the input sentences, so as to make more accurate judgments.
  • the server 200 When the input sentence does not include a target question related to the preset transaction, the server 200 considers that the input sentence is not a question about the preset transaction, and does not respond to the input sentence. When the input sentence includes a target question related to the preset transaction, the server 200 may actively respond to the input sentence. This can ensure that the server 200 (ie the robot) can actively respond to the transaction questions raised by the user 110 in the instant messaging group when the user 110 does not take the initiative to Disturbing the dialogue and communication between the users 110 in the instant messaging group, improving the user experience, and at the same time alleviating the work pressure of manual customer service, reducing the workload of manual customer service, increasing the utilization rate of the robot, and improving customer service ( Including the work efficiency of the manual customer service and the robot). Specifically, after recognizing that the input sentence includes a target question related to the preset transaction, the server 200 may perform: S234: Determine that the input sentence includes a target question related to the preset transaction.
  • S236 Generate the candidate list based on the input sentence and the preset knowledge base.
  • the candidate list may include at least one recommended knowledge point title related to the input sentence.
  • the server 200 may generate the candidate list to reply to the user by finding the knowledge point title most similar to the input sentence.
  • generating a candidate list based on the input sentence and the preset knowledge base may include executing by at least one processor 220 of the server 200: S236-2: performing the input sentence Word segmentation processing to extract keywords corresponding to the input sentence.
  • the server 200 divides the input sentence "How to open Huabei?" into “Huabe”, “How” and “Open”; then, extract the keywords in the word segmentation obtained after word segmentation processing, for example, the keyword is "Huabei” and "kaitong”.
  • S236-4 Match the keyword corresponding to the input sentence with the preset knowledge base to obtain at least one recalled knowledge point, and the multiple knowledge points include the at least one recalled knowledge point.
  • the server 200 After the server 200 extracts the keywords of the input sentence, it matches the keywords of the input sentence with multiple knowledge points in the knowledge base. In fact, it matches the keywords of the input sentence with the knowledge points. Multiple knowledge point titles in the library are matched, and at least one knowledge point matching the keyword of the input sentence is recalled from the knowledge base as the recalled knowledge point. The recall is to select knowledge points matching the keywords of the input sentence from the knowledge base. The recalled knowledge points are the selected candidate knowledge points. For example, the keywords of the input sentence are "huabei” and "kaitong".
  • the server 200 searches the knowledge base for whether there is a knowledge point title consistent with "Huabe” and "Open”. For example, the titles of the recalled knowledge points may be "How to activate Huabei” and “How to adjust the quota after Huabei is activated", and so on.
  • S236-6 Calculate the correlation value between the input sentence and the at least one recalled knowledge point.
  • the server 200 may calculate the associated value of each recalled knowledge point in the input sentence and the at least one recalled knowledge point.
  • the correlation value may be a similarity value between the input sentence and each recalled knowledge point.
  • the server 200 performs semantic analysis on the input sentence to calculate the semantic similarity value between the input sentence and the title of each recalled knowledge point.
  • S236-8 Based on the correlation value, select at least one recommended knowledge point from the at least one recalled knowledge point, and generate the candidate list based on the title of the recommended knowledge point.
  • the server 200 After the server 200 calculates the associated value between the input sentence and each recalled knowledge point, it sorts the at least one recalled knowledge point based on the associated value. The ranking may be based on ranking the at least one recalled knowledge point from large to small based on the associated value.
  • the server 200 may select the at least one recalled knowledge point with the largest correlation value from the at least one recalled knowledge point as the recommended knowledge point, and generate the candidate list according to the title of the recommended knowledge point.
  • the candidate list may include at least one recommended knowledge point title.
  • the server 200 selects the recommended knowledge points with the highest similarity to the input sentence from the knowledge base in the above-mentioned manner as the candidate list and sends to the instant messaging group, which improves the accuracy of autonomous response of the customer service group chat robot and improves User experience.
  • the server 200 continues to execute: S240: Send the candidate list to the instant messaging group.
  • the server 200 may send the candidate list to the instant messaging group.
  • the candidate list is marked as visible only to the first group of clients 310 in the instant messaging group, and the first group of clients 310 includes the target Some clients including client 301.
  • the first group of clients 310 may be the target client 301 in the instant messaging group, or the client of a user with special rights, for example, the client of the group owner, the client of the administrator, etc., and However, the client selected by the target client 301, for example, after receiving the candidate list, the target client 301 can choose to display the candidate list to the designated users in the instant messaging group.
  • the first group of clients 310 may also be clients corresponding to historical input sentences related to the input sentence in the instant messaging group.
  • the input sentence may be "How to adjust Huabei quota?”
  • the historical input sentence related to the input sentence may be "My Huabei quota is not enough”
  • the client corresponding to the historical input sentence may be said Part of the first group of clients 310.
  • the candidate list be marked as visible only to the first group of clients 310 in the instant messaging group.
  • the attribute data can be label data, data symbols, etc., any data that can be marked.
  • the attribute data of the candidate list is marked as visible only to the first group of clients 310 in the instant messaging group.
  • the label data of the candidate list is associated with the devices of the first group of clients 310. It is also possible that the attribute data and the first group of clients 310 have the same mark, so that only the first group of clients 310 can listen to the candidate list in the server 200, and therefore, only the first group of clients 310 can receive all the candidates.
  • the candidate list can be realized by defining the attribute data of the candidate list.
  • the attribute data can be label data, data symbols, etc., any data that can be marked.
  • the attribute data of the candidate list is marked as visible only to the first group of clients 310 in the instant messaging group.
  • the label data of the candidate list is associated with the devices of the first group of clients 310. It is also possible that the
  • the client 300 monitors the information in the instant messaging group running on the server 200, the client 300 first detects whether the value of the display flag allows it to be displayed by itself. For the first group of clients 310, the value of the display flag allows itself to display the content of the candidate list. For other clients 300, the value of the display flag does not allow itself to display the content of the candidate list. . Therefore, the display flag allows only the first group of clients 310 to monitor the candidate list in the server 200.
  • the candidate list can be directly sent and displayed in the instant messaging group of the first group of clients 310, or a low-invasive expression method can be used.
  • the server 200 displays a list display request to the interface of the instant messaging group of the first group of clients 310.
  • the server 200 may display the candidate list.
  • the server 200 does not display the candidate list.
  • the list display request may be an operable icon displayed on the instant messaging group interface of the first group of clients 310.
  • the server 200 displays a red dot icon beside the input sentence on the instant messaging group interface of the target client 301 to indicate that there is a list of candidates recommended by the robot.
  • the candidate list is displayed only when the target user 111 touches or clicks this red dot icon.
  • other part or all of the users of the first group of clients 310 can also display the candidate list by touching or clicking this red dot icon.
  • the server 200 can interrupt the normal communication between the target user 111 and other users 110 as little as possible on the target communication interface.
  • the server 200 sending the candidate list to the instant messaging group may include the following steps: the server 200 sends the first icon data to the instant messaging group, and the attribute of the first icon data is marked as only The first group of clients 310 is visible, and the first icon data includes the list display request.
  • the first icon data includes a link to the list; the server 200 receives the first group of clients 310 Any one of the clients triggers the signal of the list display request (for example, the icon is triggered on any one of the first group of clients 310), the link is activated; the server 200 sends to the instant messaging group
  • the candidate list, the candidate list is marked as visible to the client that triggers the list display request.
  • the server 200 sending the candidate list to the instant messaging group may also be: the server 200 simultaneously sending the candidate list and the first icon data to the instant messaging group, wherein the first icon data includes a list display request, so The attribute of the first icon data is marked as visible only to the first group of clients 310, and the candidate list and the first icon data are defined as: first display the first icon data on the first group of clients 310, When the first icon data is triggered by any client in the first group of clients 310, the candidate list will be displayed on the client that triggered the first icon data. When any one of the clients in the first group 310 receives the candidate list and the first icon data, the client only displays the first icon data, and the first icon data may be an option. The operation icon, the client will display the candidate list on the interface only when the user triggers the operable icon.
  • S250 Receive a selection of the candidate list by a management client in the first group of clients 310.
  • the candidate list may include at least one recommended knowledge point title related to the input sentence.
  • the target user 111 receives the candidate list at the target client 301, he can select one or more recommended knowledge point titles that are most relevant to his question or that he cares about or want to view from the candidate list to view The content of the answer corresponding to the selected title.
  • the target client 301 is the management client.
  • the server 200 may receive the selection of the target user 111 on the target client 301.
  • the management client may also be other clients in the first group of clients 310.
  • the management client may be some clients (such as an administrator) with special permissions in the first group of clients 310, and the management client may also be any client in the first group of clients 310.
  • all users in the first group of clients 310 can make a selection on the candidate list, and the server 200 can receive a selection of the users in the first group of clients 310 on the corresponding client.
  • the target answer may be a target knowledge point answer corresponding to the knowledge point title selected by the target client 301.
  • the server 200 may send the target answer to the instant messaging group.
  • the target answer is marked as visible to the second group of clients 320 in the instant messaging group.
  • the second group of clients 320 may include at least a part of the clients in the instant messaging group, and may also include the target client 301.
  • the second group of clients 320 may be the clients corresponding to the users selected by the target user 111 from the instant messaging group, or the clients of the first group of clients 310, or the clients of the first group of clients 310.
  • the clients selected in the candidate list may also be all clients 300.
  • the second group of clients 320 may also be the clients corresponding to the users selected by the management client in the first group of clients 310 from the instant messaging group.
  • the server 200 can send the target answer to the instant messaging group in many ways.
  • the target answer can be directly sent and displayed in the instant messaging group of the second group of clients 320, or the above-mentioned low-intrusive expression can also be used.
  • the server 200 displays an answer display request to the interface of the instant messaging group of the second group of clients 320.
  • the server 200 may display the target answer, and when the user chooses not to agree to display the target answer In the case of the target answer, the server 200 does not display the target answer.
  • the answer display request may be an operable icon displayed on the instant messaging group interface of the second group of clients 320.
  • the server 200 displays a red dot icon next to the candidate list on the IM group interface of the target client 301 or the target user's 111 selection of the candidate list, indicating that there is a target answer recommended by the robot.
  • the target answer is displayed only when the target user 111 touches or clicks this red dot icon.
  • other part or all of the users of the second group of clients 320 can also display the target answer by touching or clicking this red dot icon. In this way, the server 200 can interrupt the normal communication between the target user 111 and other users 110 as little as possible on the target communication interface.
  • the server 200 sending the target answer to the instant messaging group may include: the server 200 sending second icon data to the instant messaging group, and the attributes of the second icon data are marked as visible only to the second group of clients 320 ,
  • the second icon data includes the answer display request, for example, the first icon data includes a link to the list;
  • the server 200 receives any client trigger in the second group of clients 320
  • the answer displays the requested signal (for example, the icon is triggered on any client of the second group of clients 320), the link is activated;
  • the server 200 sends the target answer to the instant messaging group, the The target answer is marked as visible to the client that triggered the answer display request.
  • the server 200 sending the target answer to the instant messaging group may also be: the server 200 simultaneously sending the candidate list and the second icon data to the instant messaging group, wherein the second icon data includes an answer display request, so
  • the attribute of the second icon data is marked as visible only to the second group of clients 320, and the target answer and the second icon data are defined as: first display the second icon data on the second group of clients 320, When the second icon data is triggered by any client in the second group of clients 320, the target answer will be displayed on the client that triggered the second icon data.
  • the client When any one client in the second group of clients 320 receives the target answer and the second icon data, the client only displays the second icon data, and the second icon data may be an option The operation icon, the client will display the target answer on the interface only when the user triggers the operable icon.
  • the server 200 When the server 200 sends the target answer to the client 300, it can perform semantic analysis according to the semantics of the input sentence or in combination with the semantics of the historical input sentence, and provide the target answer in the form of dialogue and communication according to the result of the semantic analysis, so as to improve User experience.
  • the input sentence is "What's going on? My Yu'E Bao income last month was 100, but this month only has 50!.
  • the server 200 can answer "Customers don't need to worry, it is normal for Yu'E Bao's income to fluctuate, this is because", and then give the target answer.
  • This kind of intelligent dialogue response can make the user 110 more acceptable than the mechanical response, answer the user 110's doubts in a relaxed and happy atmosphere, and reduce the user 110's sensitivity and sensitivity to artificial intelligence to a certain extent.
  • a sense of rejection and at the same time improve the adhesion between the user 110 and the robot, and increase the utilization rate of the robot.
  • the method P200 may further include executing by at least one processor 220 of the server 200: S280: Send an answer evaluation request to the target client 301.
  • the server 200 may also send an answer evaluation request to the target client 301, asking the target user 111 to rate the displayed answer content and receive the answer from the target client 301
  • the evaluation result is stored in the server 200 or the database 150 to facilitate the upgrade and improvement of the server 200.
  • the group chat robot autonomous response method P200 provided in this specification.
  • the server 200 receives the input sentence sent by the target user 111 in the instant messaging group, it is based on the input sentence and the preset knowledge base Generate a candidate list related to the input sentence, and send the candidate list to the target client 301 corresponding to the target user 111 or the first group of clients 310 including the target client 301 to reduce the impact on other users ;
  • the target user 111 makes a selection on the candidate list
  • the target answer matching the selection is sent to the target client 301 corresponding to the target user 111 or the second group of clients 320 including the target client 301.
  • the method P200 can not only actively answer the questions raised by the user, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.
  • Fig. 5 shows a flowchart of a method P300 for autonomous response of a group chat robot.
  • the client 300 can execute the group chat robot autonomous response method P300 provided in this specification.
  • at least one processor in the target client 301 can read the instruction set stored in its local storage medium and/or database 150, and then execute the group chat robot autonomously provided in this specification according to the provisions of the instruction set.
  • the method P300 may include execution by at least one processor of the target client 301: S310: Receive the input sentence and send it to the server 200.
  • the input sentence is input by the target user 111 on the interface of the instant messaging group.
  • S330 Receive the candidate list sent by the server 200 and display it on the interface of the instant messaging group.
  • the target client 301 can display the candidate list on the interface of the instant messaging group.
  • the candidate list can be directly displayed on the instant messaging group interface, or can be displayed on the instant messaging group interface in a low-invasive manner.
  • a list display request is displayed on the instant messaging group interface, and the target user 111 can make a selection operation on the list display request.
  • the target client 301 displays the candidate list on the interface of the instant messaging group.
  • the target client 301 does not display the candidate list on the instant messaging group interface.
  • Step S330 may include: receiving the candidate list and the first icon data sent by the server 200, where the first icon data includes the list display request, and the first icon data may be displayed as one on the client 300 An operable icon, and the first icon data is defined as: when the first icon data is triggered by a user, the candidate list is displayed on the client that triggered the first icon data; The triggering operation of the first icon data; and displaying the candidate list in the instant messaging group.
  • Fig. 6 shows a schematic diagram 600 of the instant messaging group interface provided according to an embodiment of the present specification.
  • the first icon data may be an icon 620 displayed on the instant messaging group interface of the target client 301.
  • Checking or clicking on the icon 620 means agreeing to display, and not checking or clicking on the icon.
  • the icon represents disagreement.
  • the server 200 displays a red dot next to the input sentence 640 on the IM group interface of the target client 301 to indicate that there is a list of candidates recommended by the robot.
  • the answer content is displayed only when the target user 111 touches or clicks on this red dot.
  • S350 Receive the target user 111's selection of the candidate list, and send it to the server 200.
  • the candidate list may include at least one recommended knowledge point.
  • the target user 111's selection of the candidate list includes selecting from the at least one recommended knowledge point, one or more recommended knowledge points that are most relevant to their own question or that they are most concerned about or most want to view.
  • the target client 301 may send the selection to the server 200.
  • S370 Send the selection to the instant messaging group.
  • the target client 301 may also send the selection to the instant messaging group.
  • the selection may be marked as visible to all users or some users in the instant messaging group.
  • the target user 111 can select visible users from the instant messaging group.
  • the target client 301 can display the target answer on the interface of the instant messaging group.
  • the target answer may be marked as visible to all users or some users in the instant messaging group.
  • the target user 111 can make a selection of visible users from the instant messaging group.
  • the target answer can be directly displayed on the instant messaging group interface, or can be displayed on the instant messaging group interface in a low-invasive manner.
  • the answer display request is displayed on the instant messaging group interface, and the target user 111 can make a selection operation on the answer display request.
  • the target client 301 displays the target answer on the instant messaging group interface.
  • the target client 301 does not display the target answer on the instant messaging group interface.
  • Step S380 may include: receiving the target answer and the second icon data sent by the server 200, where the second icon data includes the answer display request, and the second icon data may be displayed as one on the client 300 An operable icon, and the second icon data is defined as: when the second icon data is triggered by a user, the target answer is displayed on the client that triggered the second icon data; The triggering operation of the second icon data; and displaying the target answer in the instant messaging group.
  • the group chat robot autonomous response method P200, method P300, and system 100 provided in this specification.
  • the server 200 receives the input sentence sent by the target user 111 in the instant messaging group, it is based on the input sentence and the prediction.
  • the knowledge base generates a candidate list related to the input sentence, and sends the candidate list to the target client 301 corresponding to the target user 111 or the first group of clients 310 including the target client 301 to Reduce the impact on other users; after the target user 111 or the management client in the first group of clients 310 makes a selection on the candidate list, the target answer that matches the selection is sent to the second group of clients 320.
  • the method P200, the method P300, and the system 100 can not only actively answer the questions raised by the user, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.

Abstract

A group chat robot autonomous response method and system. After an input statement sent by a target user in a target communication group is received, a candidate list related to the input statement is generated on the basis of the input statement and a preset knowledge base, and the candidate list is sent to a target client or a first group of clients comprising the target client, so that the influence on other users is reduced; after a management client of the first group of clients makes a selection on the candidate list, a target answer matching the selection is sent to a second group of clients. According to the method, questions raised by a user can be actively answered, moreover, other users in the group chat are not disturbed, and the user experience is improved while the working efficiency is improved.

Description

群聊机器人自主应答的方法和系统Method and system for autonomous response of group chat robot 技术领域Technical field
本说明书涉及互联网技术领域,尤其涉及一种群聊机器人自主应答的方法和系统。This specification relates to the field of Internet technology, and in particular to a method and system for autonomous response of group chat robots.
背景技术Background technique
随着信息技术和互联网技术的快速发展,人们的工作、生活、学习等与网络密切相连,即时通信(Instant Messaging,简称IM)技术支持两人或多人通过网络进行沟通,从而被广泛地应用于人们的工作和生活中,比如日常工作和生活交流等等,为人们的工作和生活带来各种便利。常见IM软件从早期的MSN、ICQ、OICQ,到如今的QQ、微信、钉钉、百度Hi等,即时通信技术正在不断地朝向更加便利用户的方向演进。很多即时通信应用都支持群聊技术,比如微信、钉钉和百度Hi都支持群聊技术。群聊技术可允许在现实生活中的多个用户聚集在一起进行信息的交互与分享。在一些服务群中,既存在服务群的使用用户,也存在客服人员,比如客服机器人。在服务群的使用中,用户会在服务群中进行对话沟通或者事务咨询。当用户在服务群中进行事务咨询时,用户往往希望客服机器人能主动应答咨询的问题,但同时又不希望客服机器人打扰其他用户。因此,如何保证客服机器人能够主动对用户咨询的事务进行应答同时又不会打扰用户之间的对话沟通是亟需解决的问题。With the rapid development of information technology and Internet technology, people's work, life, study, etc. are closely connected to the network. Instant Messaging (IM) technology supports two or more people to communicate through the network, which is widely used. In people's work and life, such as daily work and life communication, etc., it brings all kinds of convenience to people's work and life. Common IM software from the early MSN, ICQ, OICQ, to today's QQ, WeChat, Dingding, Baidu Hi, etc., instant messaging technology is constantly evolving in the direction of more convenient users. Many instant messaging applications support group chat technology. For example, WeChat, Dingding and Baidu Hi all support group chat technology. Group chat technology can allow multiple users in real life to gather together to interact and share information. In some service groups, there are both users of the service group and customer service personnel, such as customer service robots. In the use of the service group, users will conduct dialogues or business consultations in the service group. When a user consults about affairs in a service group, the user often hopes that the customer service robot can actively answer the question, but at the same time does not want the customer service robot to disturb other users. Therefore, how to ensure that the customer service robot can actively respond to the affairs consulted by the user without disturbing the dialogue and communication between the users is a problem that needs to be solved urgently.
因此,为了保证机器人对用户咨询的事务进行主动应答同时又不打扰用户的对话沟通,需要一种更高效的群聊机器人自主应答的方法和系统。Therefore, in order to ensure that the robot actively responds to the affairs of the user's consultation without disturbing the user's dialogue and communication, a more efficient method and system for group chat robots to autonomously respond is needed.
发明内容Summary of the invention
为了保证机器人对用户咨询的事务进行主动应答同时又不打扰用户的对话沟通,本说明书提供一种更高效的群聊机器人自主应答的方法和系统。In order to ensure that the robot actively responds to the affairs of the user's consultation without disturbing the user's dialogue and communication, this manual provides a more efficient method and system for group chat robots to respond autonomously.
本说明书提供的群聊机器人自主应答的方法和系统,在接收到群聊中的用户发送的输入语句后,基于输入语句和预设的知识库生成一个与输入语句相关的候选列表,并将候选列表发送给发送输入语句的用户,在用户对候选列表做出选择后,再将与选择结果匹配的答案发送给群聊中的其他用户。所述方法和系统不仅可主动对用户提出的问题进行回答,同时又不会对群聊中的其他用户造成干扰,在提升工作效率的同时,又可提升用户体验。The group chat robot autonomous response method and system provided in this manual, after receiving the input sentence sent by the user in the group chat, generate a candidate list related to the input sentence based on the input sentence and the preset knowledge base, and combine the candidates The list is sent to the user who sent the input sentence. After the user makes a selection on the candidate list, the answer that matches the selection result is sent to other users in the group chat. The method and system can not only actively answer questions raised by users, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.
第一方面,本说明书提供一种群聊机器人自主应答的方法,包括:接收输入语句,所述输入语句是目标客户端在即时通讯群界面上输入的;基于所述输入语句和预设的知识库生成候选列表,所述候选列表包括与所述输入语句相关的至少一个推荐知识点;向所述即时通讯群发送所述候选列表,所述候选列表被标记为只对所述即时通讯群中的第 一组客户端可见,所述第一组客户端为包括所述目标客户端在内的部分客户端;接收所述第一组客户端中的管理客户端对所述候选列表的选择;以及向所述即时通讯群发送与所述选择匹配的目标答案,其中,所述目标答案被标记为对所述即时通讯群中的第二组客户端可见,所述第二组客户端包括所述即时通讯群中的至少部分客户端。In the first aspect, this specification provides a method for group chat robots to autonomously respond, including: receiving an input sentence, the input sentence being input by a target client on an instant messaging group interface; based on the input sentence and a preset knowledge base Generate a candidate list, the candidate list including at least one recommended knowledge point related to the input sentence; sending the candidate list to the instant messaging group, the candidate list being marked as being only available to users in the instant messaging group The first group of clients is visible, and the first group of clients are part of the clients including the target client; receiving the selection of the candidate list by the management client in the first group of clients; and Send a target answer matching the selection to the instant messaging group, where the target answer is marked as visible to a second group of clients in the instant messaging group, and the second group of clients includes the At least some clients in the instant messaging group.
在一些实施例中,所述向所述即时通讯群发送所述候选列表包括:向所述即时通讯群发送第一图标数据,所述第一图标数据被标记为只对所述第一组客户端可见,所述第一图标数据包括列表显示请求;接收所述第一组客户端触发所述列表显示请求的信号;向所述即时通讯群发送所述候选列表,所述候选列表被标记为对触发所述列表显示请求的客户端可见。In some embodiments, the sending the candidate list to the instant messaging group includes: sending first icon data to the instant messaging group, and the first icon data is marked as only for the first group of customers It can be seen from the end that the first icon data includes a list display request; receiving a signal for triggering the list display request by the first group of clients; sending the candidate list to the instant messaging group, and the candidate list is marked as Visible to the client that triggered the list display request.
在一些实施例中,所述向所述即时通讯群发送所述候选列表包括:向所述即时通讯群发送所述候选列表和第一图标数据,其中,所述第一图标数据被标记为只对所述第一组客户端可见,所述第一图标数据包括列表显示请求,当所述第一图标数据被客户端触发时,在触发所述第一图标数据的客户端显示所述候选列表。In some embodiments, the sending the candidate list to the instant messaging group includes: sending the candidate list and the first icon data to the instant messaging group, wherein the first icon data is marked as only Visible to the first group of clients, the first icon data includes a list display request, and when the first icon data is triggered by the client, the candidate list is displayed on the client that triggered the first icon data .
在一些实施例中,所述向所述即时通讯群发送与所述选择匹配的目标答案,包括:向所述即时通讯群发送所述目标答案和第二图标数据,其中,所述第二图标数据被标记为对所述第二组客户端可见,所述第二图标数据包括答案显示请求,当所述第二图标数据被客户端触发时,在触发所述第二图标数据的客户端显示所述目标答案。In some embodiments, the sending the target answer matching the selection to the instant messaging group includes: sending the target answer and second icon data to the instant messaging group, wherein the second icon The data is marked as visible to the second group of clients, the second icon data includes an answer display request, and when the second icon data is triggered by the client, it is displayed on the client that triggered the second icon data The target answer.
在一些实施例中,所述基于所述输入语句和预设的知识库生成候选列表,包括:识别所述输入语句是否包括同预设事务相关的目标提问,所述预设事务为针对所述即时通讯群定制的;确定所述输入语句包括所述目标提问;以及基于所述输入语句和所述预设的知识库,生成所述候选列表。In some embodiments, the generating a candidate list based on the input sentence and a preset knowledge base includes: identifying whether the input sentence includes a target question related to a preset transaction, and the preset transaction is directed to the Customized by the instant messaging group; determining that the input sentence includes the target question; and generating the candidate list based on the input sentence and the preset knowledge base.
在一些实施例中,所述识别所述输入语句是否包括同预设事务相关的目标提问,包括:将所述输入语句与预设的多个问题模板进行匹配,以识别所述输入语句是否为问句;以及当所述输入语句是问句时,对所述输入语句进行分类,识别所述输入语句是否包括同所述预设事务相关的目标提问。In some embodiments, the identifying whether the input sentence includes a target question related to a preset transaction includes: matching the input sentence with a plurality of preset question templates to identify whether the input sentence is Question sentence; and when the input sentence is a question sentence, classify the input sentence, and identify whether the input sentence includes a target question related to the preset transaction.
在一些实施例中,所述群聊机器人自主应答的方法,还包括:向所述即时通讯群发送答案评价请求,所述答案评价请求被标记为只对所述目标客户端可见;以及接收所述目标客户端的答案评价。In some embodiments, the method for the group chat robot to autonomously answer further includes: sending an answer evaluation request to the instant messaging group, the answer evaluation request being marked as visible only to the target client; and receiving the answer Describe the answer evaluation of the target client.
在一些实施例中,所述管理客户端包括所述目标客户端。In some embodiments, the management client includes the target client.
在一些实施例中,所述第二组客户端包括:所述管理客户端从所述即时通讯群中选择的客户端或者所述即时通讯群中的全部客户端。In some embodiments, the second group of clients includes: clients selected by the management client from the instant messaging group or all clients in the instant messaging group.
第二方面,本说明书提供一种群聊机器人自主应答的系统,包括至少一个存储介质和至少一个处理器,所述至少一个存储介质包括至少一个指令集,用于群聊机器人自主 应答;所述至少一个处理器同所述至少一个存储介质通讯连接,其中,当所述系统运行时,所述至少一个处理器读取所述至少一个指令集,并且根据所述至少一个指令集的指示执行本说明书第一方面所述的群聊机器人自主应答的方法。In a second aspect, this specification provides a system for autonomous response of group chat robots, including at least one storage medium and at least one processor, the at least one storage medium includes at least one instruction set for autonomous response of group chat robots; A processor is in communication connection with the at least one storage medium, wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes this specification according to the instructions of the at least one instruction set The method for autonomous response of group chat robots described in the first aspect.
第三方面,本说明书提供一种群聊机器人自主应答的方法,包括:接收输入语句,并发送给服务器端,所述输入语句是目标用户在即时通讯群界面输入的;接收所述服务器端发送的候选列表,并显示在所述即时通讯群界面上,所述候选列表是基于所述输入语句和所述预设的知识库生成的,所述候选列表包括与所述输入语句相关的至少一个推荐知识点;接收所述目标用户对所述候选列表的选择,并向所述服务器端发送;向所述即时通讯群发送所述选择;以及接收所述服务器端发送的与所述选择匹配的目标答案。In a third aspect, this specification provides a method for group chat robots to autonomously respond, including: receiving an input sentence and sending it to the server, the input sentence being input by the target user on the instant messaging group interface; receiving the message sent by the server The candidate list is displayed on the instant messaging group interface, the candidate list is generated based on the input sentence and the preset knowledge base, and the candidate list includes at least one recommendation related to the input sentence Knowledge points; receiving the target user’s selection of the candidate list and sending it to the server; sending the selection to the instant messaging group; and receiving the target that matches the selection sent by the server Answer.
在一些实施例中,所述接收所述服务器端发送的候选列表,包括:接收所述服务器发送的所述候选列表和第一图标数据,其中,所述第一图标数据包括列表显示请求,当所述第一图标数据被客户端触发时,在触发所述第一图标数据的客户端显示所述候选列表;接收所述目标用户对所述第一图标数据的触发操作;以及在所述即时通讯群显示所述候选列表。In some embodiments, the receiving the candidate list sent by the server includes: receiving the candidate list and the first icon data sent by the server, wherein the first icon data includes a list display request, when When the first icon data is triggered by the client, display the candidate list on the client that triggered the first icon data; receive the trigger operation of the target user on the first icon data; and in the instant The communication group displays the candidate list.
第四方面,本说明书提供一种群聊机器人自主应答的系统,包括至少一个存储介质以及至少一个处理器,所述至少一个存储介质包括至少一个指令集,用于群聊机器人自主应答;所述至少一个处理器同所述至少一个存储介质通讯连接,其中,当所述系统运行时,所述至少一个处理器读取所述至少一个指令集,并且根据所述至少一个指令集的指示执行本说明书第三方面所述的群聊机器人自主应答的方法。In a fourth aspect, this specification provides a system for autonomous response of group chat robots, including at least one storage medium and at least one processor, the at least one storage medium includes at least one instruction set for autonomous response of group chat robots; A processor is in communication connection with the at least one storage medium, wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes this specification according to the instructions of the at least one instruction set The method for autonomous response of group chat robots described in the third aspect.
本说明书提供的群聊机器人自主应答的方法和系统的其他功能将在以下说明中部分列出。根据描述,以下数字和示例介绍的内容将对那些本领域的普通技术人员显而易见。本说明书提供的群聊机器人自主应答的方法、系统和存储介质的创造性方面可通过实践或使用下面详细示例中所述的方法、装置和组合得到充分解释。The group chat robot autonomous response method and other functions of the system provided in this manual will be partially listed in the following description. According to the description, the content introduced by the following figures and examples will be obvious to those of ordinary skill in the art. The creative aspects of the group chat robot autonomous response method, system, and storage medium provided in this specification can be fully explained through practice or use of the methods, devices, and combinations described in the following detailed examples.
附图说明Description of the drawings
为了更清楚地说明本说明书实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of this specification more clearly, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the specification. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1示出根据本说明书的实施例提供的一种群聊机器人自主应答的系统示意图;Fig. 1 shows a schematic diagram of a system for autonomous response of group chat robots according to an embodiment of this specification;
图2示出根据本说明书的实施例提供的一种群聊机器人自主应答的设备结构示意图;FIG. 2 shows a schematic diagram of a device structure for autonomous response of a group chat robot according to an embodiment of this specification;
图3示出根据本说明书的实施例提供的一种群聊机器人自主应答的方法流程图;Figure 3 shows a flow chart of a method for group chat robots to autonomously respond according to an embodiment of this specification;
图4示出根据本说明书的实施例提供的一种生成候选列表的流程图;Fig. 4 shows a flow chart for generating a candidate list according to an embodiment of the present specification;
图5示出根据本说明书的实施例提供的一种群聊机器人自主应答的方法流程图;及Figure 5 shows a flow chart of a method for group chat robots to autonomously respond according to an embodiment of this specification; and
图6示出根据本说明书的实施例提供的一种所述即时通讯群界面的示意图。Fig. 6 shows a schematic diagram of the instant messaging group interface provided according to an embodiment of the present specification.
具体实施方式Detailed ways
以下描述提供了本说明书的特定应用场景和要求,目的是使本领域技术人员能够制造和使用本说明书中的内容。对于本领域技术人员来说,对所公开的实施例的各种局部修改是显而易见的,并且在不脱离本说明书的精神和范围的情况下,可将这里定义的一般原理应用于其他实施例和应用。因此,本说明书不限于所示的实施例,而是与权利要求一致的最宽范围。The following description provides specific application scenarios and requirements of this specification, with the purpose of enabling those skilled in the art to make and use the content in this specification. For those skilled in the art, various partial modifications to the disclosed embodiments are obvious, and without departing from the spirit and scope of this specification, the general principles defined herein can be applied to other embodiments and application. Therefore, the present specification is not limited to the illustrated embodiment, but is the widest scope consistent with the claims.
这里使用的术语仅用于描述特定示例实施例的目的,而不是限制性的。比如,除非上下文另有明确说明,这里所使用的,单数形式“一”,“一个”和“该”也可包括复数形式。当在本说明书中使用时,术语“包括”、“包含”或“含有”意思是指所关联的整数,步骤、操作、元素或组件存在,但不排除一个或多个其他特征、整数、步骤、操作、元素、组件或组的存在或在该系统/方法中可添加其他特征、整数、步骤、操作、元素、组件或组。The terminology used here is only for the purpose of describing specific example embodiments, and is not restrictive. For example, unless the context clearly indicates otherwise, as used herein, the singular form "a", "an" and "the" may also include plural forms. When used in this specification, the term "comprises", "includes" or "contains" means that the associated integers, steps, operations, elements or components exist, but do not exclude one or more other features, integers, and steps. The existence of, operations, elements, components or groups or other features, integers, steps, operations, elements, components or groups can be added to the system/method.
考虑到以下描述,本说明书的这些特征和其他特征、以及结构的相关元件的操作和功能、以及部件的组合和制造的经济性可得到明显提高。参考附图,所有这些形成本说明书的一部分。然而,应该清楚地理解,附图仅用于说明和描述的目的,并不旨在限制本说明书的范围。还应理解,附图未按比例绘制。In consideration of the following description, the operation and function of these and other features of this specification, as well as the related elements of the structure, as well as the combination of components and the economics of manufacturing can be significantly improved. With reference to the drawings, all of these form a part of this specification. However, it should be clearly understood that the drawings are only for illustration and description purposes, and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.
本说明书中使用的流程图示出了根据本说明书中的一些实施例的系统实现的操作。应该清楚地理解,流程图的操作可不按顺序实现。相反,操作可以反转顺序或同时实现。此外,可向流程图添加一个或多个其他操作。可从流程图中移除一个或多个操作。The flowchart used in this specification shows operations implemented by the system according to some embodiments in this specification. It should be clearly understood that the operations of the flowchart can be implemented out of order. Conversely, the operations can be reversed or performed simultaneously. In addition, one or more other operations can be added to the flowchart. One or more operations can be removed from the flowchart.
群聊技术是即时通信应用软件的一项重要功能,可允许在现实生活中的多个用户聚集在一起进行信息的交互与分享。为了提升工作效率,在普通群聊的基础上,推出了服务群。所述服务群是指以服务用户为目的而建立的群聊。所述服务群中不仅有用户,还有客服。所述用户可是所述服务群中的被服务者。所述用户可在所述服务群中进行群聊沟通,也可在所述服务群中进行事务咨询、事务求助或事务反馈。所述客服可是所述服务群中的服务者,可在所述服务群中解答用户的疑问、回应用户的诉求,或向用户发送通知或公告,等等。所述客服可包括人工客服,还可包括客服机器人。所述客服机器人可帮助人工客服回应用户的诉求,减轻人工客服的压力,提升服务群的工作效率。客服机器人可为人工客服提供包括服务提醒、答案推荐、问答入库等一系列辅助功能。客服机器人也可直接回答用户的问题。Group chat technology is an important function of instant messaging application software, which allows multiple users in real life to gather together to interact and share information. In order to improve work efficiency, a service group was launched on the basis of ordinary group chat. The service group refers to a group chat established for the purpose of serving users. There are not only users but also customer service in the service group. The user may be a served person in the service group. The user can conduct group chat communication in the service group, and can also conduct business consultation, business help or business feedback in the service group. The customer service may be a server in the service group, and may answer users' questions, respond to user requests, or send notifications or announcements to users in the service group, and so on. The customer service may include a human customer service, and may also include a customer service robot. The customer service robot can help the manual customer service respond to the user's request, reduce the pressure of the manual customer service, and improve the work efficiency of the service group. The customer service robot can provide a series of auxiliary functions for manual customer service, including service reminders, answer recommendations, and question and answer storage. Customer service robots can also directly answer user questions.
本说明书提供的群聊机器人自主应答的方法和系统,在接收到群聊中的用户发送的输入语句后,基于输入语句和预设的知识库生成一个与输入语句相关的候选列表,并将候选列表发送给发送输入语句的用户,在用户对候选列表做出选择后,再将与选择结果 匹配的答案发送给群聊中的其他用户。所述方法和系统不仅可主动对用户提出的问题进行回答,还不会对群聊中的其他用户造成干扰,在提升工作效率的同时提升用户体验。The group chat robot autonomous response method and system provided in this manual, after receiving the input sentence sent by the user in the group chat, generate a candidate list related to the input sentence based on the input sentence and the preset knowledge base, and combine the candidates The list is sent to the user who sent the input sentence. After the user makes a selection on the candidate list, the answer that matches the selection result is sent to other users in the group chat. The method and system can not only actively answer questions raised by users, but also will not cause interference to other users in the group chat, and improve user experience while improving work efficiency.
图1示出了一种群聊机器人自主应答的系统100的示意图。系统100可包括服务器200、客户端300、网络120以及数据库150。客户端300可包括目标客户端301、客户端302、客户端303、客户端304,等等。FIG. 1 shows a schematic diagram of a system 100 for autonomous response of a group chat robot. The system 100 may include a server 200, a client 300, a network 120, and a database 150. The client 300 may include a target client 301, a client 302, a client 303, a client 304, and so on.
服务器200可存储有执行本说明书描述的群聊机器人自主应答的方法的数据或指令,并可执行或用于执行所述数据或指令。服务器200可包括所述机器人服务器。服务器200还可包括提供所述群聊服务的服务器。所述群聊服务也可由所述机器人服务器提供。The server 200 may store data or instructions for executing the group chat robot autonomous response method described in this specification, and may execute or be used to execute the data or instructions. The server 200 may include the robot server. The server 200 may further include a server that provides the group chat service. The group chat service may also be provided by the robot server.
如图1所示,用户110是客户端300的使用者。用户110可包括目标用户111、用户112、用户113、用户114,等等。目标用户111是目标客户端301的使用者,用户112是客户端302的使用者,用户113是客户端303的使用者,用户114是客户端304的使用者,等等。客户端300是一般目标用户110与服务器200建立沟通的连接设备。客户端300与服务器200通讯连接。服务器200可同时和多个客户端300通讯连接。客户端300可安装有一个或多个应用(APP)。所述APP能够为用户110提供通过网络120同外界交互的能力以及界面。所述APP包括但不限于:聊天类APP程序、购物类APP程序、视频类APP程序、理财类APP程序等等,例如支付宝 TM、淘宝 TM、京东 TM或银行等金融服务机构、理财产品等APP程序。客户端300可包括移动设备、平板电脑、笔记本电脑、机动车辆的内置设备或类似内容,或其任意组合。所述移动设备可包括智能家居设备、智能移动设备、虚拟现实设备、增强现实设备或类似设备,或其任意组合。所述智能家居装置可包括智能电视、台式电脑等,或任意组合。所述智能移动设备可包括智能手机、个人数字辅助、游戏设备、导航设备等,或其任意组合。所述虚拟现实设备或增强现实设备可能包括虚拟现实头盔、虚拟现实眼镜、虚拟现实补丁、增强现实头盔、增强现实眼镜、增强现实补丁或类似内容,或其中的任何组合。例如,所述虚拟现实设备或所述增强现实设备可能包括谷歌眼镜、头戴式显示器、齿轮VR等。所述机动车中的内置装置可包括车载计算机、车载电视等。客户端300可是具有定位技术的设备,用于定位客户端300的位置。 As shown in FIG. 1, the user 110 is a user of the client 300. The user 110 may include a target user 111, a user 112, a user 113, a user 114, and so on. The target user 111 is the user of the target client 301, the user 112 is the user of the client 302, the user 113 is the user of the client 303, the user 114 is the user of the client 304, and so on. The client 300 is a connection device for establishing communication between the target user 110 and the server 200 in general. The client 300 communicates with the server 200. The server 200 can communicate with multiple clients 300 at the same time. The client 300 may be installed with one or more applications (APP). The APP can provide the user 110 with the ability and interface to interact with the outside world through the network 120. The APP including but not limited to: Chat class APP program, shopping category APP program, video classes APP program, wealth management APP program, etc., such as Alipay TM, Taobao TM, Jingdong TM or such as banking and financial services institutions, financial products such as APP program. The client 300 may include a mobile device, a tablet computer, a notebook computer, a built-in device of a motor vehicle, or the like, or any combination thereof. The mobile device may include a smart home device, a smart mobile device, a virtual reality device, an augmented reality device, or similar devices, or any combination thereof. The smart home device may include a smart TV, a desktop computer, etc., or any combination. The smart mobile device may include a smart phone, a personal digital assistant, a game device, a navigation device, etc., or any combination thereof. The virtual reality device or augmented reality device may include a virtual reality helmet, virtual reality glasses, virtual reality patch, augmented reality helmet, augmented reality glasses, augmented reality patch or similar content, or any combination thereof. For example, the virtual reality device or the augmented reality device may include Google glasses, head-mounted displays, gear VR, and so on. The built-in devices in the motor vehicle may include a vehicle-mounted computer, a vehicle-mounted TV, and the like. The client 300 may be a device with positioning technology for locating the position of the client 300.
客户端300上装载有与服务器200相对应的即时通信应用软件,例如,钉钉 TM。所述即时通信应用软件上设有即时通讯群。用户110是所述即时通讯群中的用户。用户110可在所述即时通讯群中输入聊天信息。所述即时通讯群中至少包括两个用户110。 The client 300 is loaded with instant messaging application software corresponding to the server 200, for example, DingTalk . The instant messaging application software is provided with an instant messaging group. The user 110 is a user in the instant messaging group. The user 110 can input chat information in the instant messaging group. The instant messaging group includes at least two users 110.
网络120可促进信息或数据的交换。如图1所示,客户端300、服务器200、数据库150可同网络120连接,并且通过网络120互相传输信息或数据。例如,服务器200可通过网络120从客户端300获取输入信息。网络120可是任何类型的有线或无线网络,也可是其组合。比如,网络120可包括电缆网络,有线网络、光纤网络、电信通信网络、内联网、互联网、局域网(LAN)、广域网(WAN)、无线局域网(WLAN)、大都 市市区网(MAN)、广域网(WAN)、公用电话交换网(PSTN)、蓝牙网络、ZigBee网络、近场通信(NFC)网络或类似网络。网络120可包括一个或多个网络接入点。例如,网络120可包括有线或无线网络接入点,如基站或互联网交换点120-1、120-2,……,通过该接入点,客户端300、服务器200、数据库150的一个或多个组件可连接到网络120以交换数据或信息。The network 120 may facilitate the exchange of information or data. As shown in FIG. 1, the client 300, the server 200, and the database 150 can be connected to the network 120, and transmit information or data to each other through the network 120. For example, the server 200 may obtain input information from the client 300 through the network 120. The network 120 can be any type of wired or wireless network, or a combination thereof. For example, the network 120 may include a cable network, a wired network, an optical fiber network, a telecommunication communication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), and a wide area network. (WAN), Public Switched Telephone Network (PSTN), Bluetooth network, ZigBee network, Near Field Communication (NFC) network or similar network. The network 120 may include one or more network access points. For example, the network 120 may include wired or wireless network access points, such as base stations or Internet exchange points 120-1, 120-2,..., through which one or more of the client 300, the server 200, and the database 150 Each component can be connected to the network 120 to exchange data or information.
数据库150可存储数据或指令。数据库150可存储从服务器200或客户端300获得的数据。数据库150可存储服务器200可执行或用于执行本说明书中描述的群聊机器人自主应答的方法的数据或指令。数据库150可存储有与所述即时通讯群预设事务相关的知识库。服务器200和客户端300可能具有访问数据库150的权限,服务器200和客户端300可通过网络120访问存储在数据库150中的数据或指令。数据库150可直接连接到服务器200和客户端300。数据库150可是服务器200的一部分。数据库150可包括大容量存储、可移动存储、易失性读写存储器、只读存储器(ROM)或类似内容,或其任意组合。示例性大容量存储可能包括磁盘、光盘、固态驱动器等非暂时性存储介质(non-transitory storage medium)。可移动存储可能包括闪存驱动器、软盘、光盘、存储卡、zip磁盘、磁带等。典型的易失性读写内存可能包括随机存取存储器(RAM)。RAM可能包括动态RAM(DRAM)、双日期速率同步动态RAM(DDR SDRAM)、静态RAM(SRAM)、晶闸管RAM(T-RAM)和零电容RAM(Z-RAM)等。ROM可能包括掩码ROM(MROM)、可编程ROM(PROM)、可虚拟可编程ROM(PEROM)、电子可编程ROM(EEPROM)、光盘(CD-ROM)和数字多功能磁盘ROM等。数据库150可在云平台上实现。仅仅作为例子,所述云平台可能包括私有云、公共云、混合云、社区云、分布式云、云间云等形式,或者同上述形式类似的形式,或这上述形式的任意组合。The database 150 may store data or instructions. The database 150 may store data obtained from the server 200 or the client 300. The database 150 may store data or instructions that can be executed by the server 200 or used to execute the group chat robot autonomous response method described in this specification. The database 150 may store a knowledge base related to the preset affairs of the instant messaging group. The server 200 and the client 300 may have access to the database 150, and the server 200 and the client 300 may access data or instructions stored in the database 150 through the network 120. The database 150 can be directly connected to the server 200 and the client 300. The database 150 may be a part of the server 200. The database 150 may include mass storage, removable storage, volatile read-write memory, read-only memory (ROM), or the like, or any combination thereof. Exemplary mass storage may include non-transitory storage medium (non-transitory storage medium) such as magnetic disks, optical disks, and solid-state drives. Removable storage may include flash drives, floppy disks, CDs, memory cards, zip disks, tapes, etc. Typical volatile read-write memory may include random access memory (RAM). RAM may include dynamic RAM (DRAM), double date rate synchronous dynamic RAM (DDR SDRAM), static RAM (SRAM), thyristor RAM (T-RAM), and zero capacitance RAM (Z-RAM). ROM may include mask ROM (MROM), programmable ROM (PROM), virtual programmable ROM (PEROM), electronic programmable ROM (EEPROM), compact disk (CD-ROM) and digital versatile disk ROM, etc. The database 150 can be implemented on a cloud platform. Merely as an example, the cloud platform may include private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud cloud, etc., or forms similar to the foregoing forms, or any combination of the foregoing forms.
如图1所示,目标用户111通过目标客户端301上的即时通信应用软件的即时通讯群输入聊天信息,所述聊天信息通过网络120传输给服务器200;服务器200执行存储在服务器200内置存储器和/或数据库150中的群聊机器人自主应答的方法的指令,对输入的聊天信息中包含的问题作出回答生成候选列表,并将候选列表发送给目标用户111或者所述即时通讯群中的部分用户;当目标用户111对所述候选列表作出选择后,服务器200向所述即时通讯群中的所有用户或一部分用户发送与所述选择匹配的目标答案。As shown in Figure 1, the target user 111 inputs chat information through the instant messaging group of the instant messaging application software on the target client 301, and the chat information is transmitted to the server 200 through the network 120; / Or the group chat robot in the database 150 instructions for the autonomous answering method, answering the questions contained in the input chat information to generate a candidate list, and sending the candidate list to the target user 111 or some users in the instant messaging group ; After the target user 111 makes a selection on the candidate list, the server 200 sends a target answer that matches the selection to all users or a part of the users in the instant messaging group.
图2示出了一种群聊机器人自主应答的设备的结构示意图。所述设备可是服务器200,也可是客户端300。下面的介绍中以服务器200为例介绍所述设备。Figure 2 shows a schematic diagram of the structure of an autonomous response device for a group chat robot. The device may be the server 200 or the client 300. In the following description, the server 200 is taken as an example to introduce the device.
服务器200可执行本说明书描述的群聊机器人自主应答的方法。所述方法在本说明书中的其他部分介绍。比如,在图3至图4的描述中介绍了服务器200执行所述群聊机器人自主应答的方法P200。The server 200 can perform the autonomous response method of the group chat robot described in this specification. The method is described in other parts of this specification. For example, in the description of FIG. 3 to FIG. 4, a method P200 for the server 200 to execute the autonomous response of the group chat robot is introduced.
如图2所示,服务器200包括至少一个存储介质230和至少一个处理器220。服务 器200还可包括通信端口250和内部通信总线210。同时,服务器200还可包括I/O组件260。As shown in FIG. 2, the server 200 includes at least one storage medium 230 and at least one processor 220. The server 200 may also include a communication port 250 and an internal communication bus 210. Meanwhile, the server 200 may further include an I/O component 260.
内部通信总线210可连接不同的系统组件,包括存储介质230和处理器220。The internal communication bus 210 can connect different system components, including the storage medium 230 and the processor 220.
I/O组件260支持服务器200和其他组件之间的输入/输出。The I/O component 260 supports input/output between the server 200 and other components.
存储介质230可包括数据存储装置。所述数据存储装置可是非暂时性存储介质,也可是暂时性存储介质。比如,所述数据存储装置可包括磁盘232、只读存储介质(ROM)234或随机存取存储介质(RAM)236中的一种或多种。存储介质230还包括存储在所述数据存储装置中的至少一个指令集。所述指令是计算机程序代码,所述计算机程序代码可包括执行本说明书提供的群聊机器人自主应答的方法的程序、例程、对象、组件、数据结构、过程、模块等等。The storage medium 230 may include a data storage device. The data storage device may be a non-transitory storage medium or a temporary storage medium. For example, the data storage device may include one or more of a magnetic disk 232, a read-only storage medium (ROM) 234, or a random access storage medium (RAM) 236. The storage medium 230 also includes at least one instruction set stored in the data storage device. The instructions are computer program codes, and the computer program codes may include programs, routines, objects, components, data structures, procedures, modules, etc., that execute the group chat robot autonomous response method provided in this specification.
通信端口250用于服务器200同外界的数据通讯。比如,服务器200可通过通信端口250连接网络120,接收目标用户111通过所述通用即时通讯APP(例如钉钉 TM)输入的输入语句,进而通过通信端口250向目标用户111推荐答案。 The communication port 250 is used for data communication between the server 200 and the outside world. For example, the server 200 may be connected by a communication port 250 network 120, the target receives the user input sentence 111 by the APP universal instant messaging (e.g. nails (TM)) input, 250 111 further recommended to the target user answers through the communication port.
至少一个处理器220同至少一个存储介质230通过内部通信总线210通讯连接。至少一个处理器220用以执行上述至少一个指令集。当系统100运行时,至少一个处理器220读取所述至少一个指令集,并且根据所述至少一个指令集的指示执行本说明书提供的群聊机器人自主应答的方法P200。处理器220可执行群聊机器人自主应答的方法P200包含的所有步骤。处理器220可是一个或多个处理器的形式,处理器220可包括一个或多个硬件处理器,例如微控制器,微处理器,精简指令集计算机(RISC),专用集成电路(ASIC),特定于应用的指令集处理器(ASIP),中央处理单元(CPU),图形处理单元(GPU),物理处理单元(PPU),微控制器单元,数字信号处理器(DSP),现场可编程门阵列(FPGA),高级RISC机器(ARM),可编程逻辑器件(PLD),能够执行一个或多个功能的任何电路或处理器等,或其任何组合。仅仅为了说明问题,在本说明书中服务器200中仅描述了一个处理器220。然而,应当注意,本说明书中服务器200还可包括多个处理器,因此,本说明书中披露的操作或方法步骤可如本说明书所述的由一个处理器执行,也可由多个处理器联合执行。例如,如果在本说明书中服务器200的处理器220执行步骤A和步骤B,则应该理解,步骤A和步骤B也可由两个不同处理器220联合或分开执行(例如,第一处理器执行步骤A,第二处理器执行步骤B,或者第一和第二处理器共同执行步骤A和B)。At least one processor 220 and at least one storage medium 230 are communicatively connected through an internal communication bus 210. At least one processor 220 is used to execute the above-mentioned at least one instruction set. When the system 100 is running, at least one processor 220 reads the at least one instruction set, and executes the group chat robot autonomous response method P200 provided in this specification according to the instructions of the at least one instruction set. The processor 220 can execute all the steps included in the method P200 for group chat robot autonomous response. The processor 220 may be in the form of one or more processors, and the processor 220 may include one or more hardware processors, such as a microcontroller, a microprocessor, a reduced instruction set computer (RISC), an application specific integrated circuit (ASIC), Application-specific instruction set processor (ASIP), central processing unit (CPU), graphics processing unit (GPU), physical processing unit (PPU), microcontroller unit, digital signal processor (DSP), field programmable gate Array (FPGA), advanced RISC machine (ARM), programmable logic device (PLD), any circuit or processor capable of performing one or more functions, etc., or any combination thereof. Just to illustrate the problem, only one processor 220 is described in the server 200 in this specification. However, it should be noted that the server 200 in this specification may also include multiple processors. Therefore, the operations or method steps disclosed in this specification may be executed by one processor as described in this specification, or may be jointly executed by multiple processors. . For example, if the processor 220 of the server 200 performs step A and step B in this specification, it should be understood that step A and step B can also be performed jointly or separately by two different processors 220 (for example, the first processor performs step A, the second processor executes step B, or the first and second processors jointly execute steps A and B).
虽然上述结构描述的是服务器200,此结构也适用于客户端300。目标客户端301可执行本说明书描述的群聊机器人自主应答的方法。所述方法在本说明书中的其他部分介绍。比如,在图5和图6的描述中介绍了目标客户端301执行所述群聊机器人自主应答的方法P300。Although the above structure describes the server 200, this structure is also applicable to the client 300. The target client 301 can execute the group chat robot autonomous response method described in this specification. The method is described in other parts of this specification. For example, in the description of FIG. 5 and FIG. 6, a method P300 for the target client 301 to perform the autonomous response of the group chat robot is introduced.
图3示出了一种群聊机器人自主应答的方法P200的流程图。如前所述,服务器200 可执行本说明书提供的群聊机器人自主应答的方法P200。具体地,服务器200中的处理器220可读取存储在其本地存储介质和/或数据库150中的指令集,然后根据所述指令集的规定,执行本说明书提供的群聊机器人自主应答的方法P200。所述方法P200可包括通过服务器200端的至少一个处理器220执行:S220:接收输入语句,所述输入语句是目标客户端301在即时通讯群界面上输入的。Fig. 3 shows a flowchart of a method P200 for autonomous response of a group chat robot. As mentioned above, the server 200 can execute the group chat robot autonomous response method P200 provided in this specification. Specifically, the processor 220 in the server 200 can read the instruction set stored in its local storage medium and/or the database 150, and then execute the group chat robot autonomous response method provided in this specification according to the provisions of the instruction set. P200. The method P200 may include execution by at least one processor 220 on the server 200 side: S220: receiving an input sentence, the input sentence being input by the target client 301 on the instant messaging group interface.
如前所述,所述群聊机器人自主应答的方法P200主要用于群聊服务。目标客户端301上可安装有通用即时通讯应用软件,例如,钉钉 TMAPP。钉钉 TMAPP中可设有服务群,即所述即时通讯群。所述即时通讯群的服务可由服务器200提供,可由服务器200中的群聊服务服务器提供,也可由所述机器人服务器提供。所述即时通讯群为至少两个用户110在所述界面上提供共享的即时公共通讯服务。比如,当一个用户(例如目标用户111)在所述即时通讯群中输入留言的时候,所述留言可即时地被所有其他用户(例如用户112、用户113、用户114,等等)看见。任何用户110都可针对所述输入留言进行回答。所述即时通讯群中的所有用户110和所述机器人可同时在线。目标用户111为所述即时通讯群中的用户。 As mentioned above, the method P200 for autonomous response of group chat robots is mainly used for group chat services. The target client 301 may be installed with general instant messaging application software, for example, Dingding TM APP. DingTalk TM APP may have a service group, that is, the instant messaging group. The service of the instant messaging group can be provided by the server 200, can be provided by the group chat service server in the server 200, or can be provided by the robot server. The instant messaging group provides shared instant public messaging services on the interface for at least two users 110. For example, when a user (for example, target user 111) enters a message in the instant messaging group, the message can be instantly seen by all other users (for example, user 112, user 113, user 114, etc.). Any user 110 can answer the input message. All users 110 and the robots in the instant messaging group can be online at the same time. The target user 111 is a user in the instant messaging group.
所述即时通讯群可是事务服务群。进一步地,所述即时通讯群可是对特定人群定制化的事务服务群。所述即时通讯群中的客服机器人可为所述即时通讯群中的用户提供事务咨询服务。所述事务为与所述即时通讯群相关联的事务。不同的用户对所述事务的定义不同的。例如,汽车公司定义的事务可是与汽车相关的事务,比如,汽车的发动机、汽车的轮胎,等等。金融公司定义的事务可是与金融想干的事务,例如,股票、基金、保险,等等。同一汽车公司中不同的部门对于事务的定义也不同。例如,发动机部门对事务的定义可是发动机的型号、发动机的功率、发动机的排量,等等。例如,汽车轮胎部门对事务的定义可是轮胎的结构、轮胎的承压、轮胎的花纹,等等。由于不同的用户所定义的事务是不同的,因此,不同的通讯群所关联的事务也是不同的。所述即时通讯群常常会根据使用用户的需求预设事务,因此所述预设事务为针对所述即时通讯群定制的。所述预设事务可补充、修改和变更。所述即时通讯群中的机器人根据所述预设事务提供的事务咨询服务。The instant messaging group may be a transaction service group. Further, the instant messaging group may be a business service group customized for a specific group of people. The customer service robot in the instant messaging group can provide transaction consulting services for users in the instant messaging group. The transaction is a transaction associated with the instant messaging group. Different users have different definitions of the transaction. For example, the affairs defined by the automobile company may be related to the automobile, such as the engine of the automobile, the tire of the automobile, and so on. The affairs defined by the financial company are those that the finance wants to do, for example, stocks, funds, insurance, and so on. Different departments in the same automobile company have different definitions of affairs. For example, the engine department's definition of business may be the model of the engine, the power of the engine, the displacement of the engine, and so on. For example, the definition of business in the automobile tire department can be the structure of the tire, the pressure of the tire, the pattern of the tire, and so on. Since the transactions defined by different users are different, the transactions associated with different communication groups are also different. The instant messaging group often presets transactions according to the needs of users, so the preset transactions are customized for the instant messaging group. The preset affairs can be supplemented, modified and changed. Affairs consulting services provided by robots in the instant messaging group according to the preset affairs.
目标用户111可通过目标客户端301上的所述即时通讯群的界面输入所述输入语句。所述输入语句可是目标用户111在所述即时通讯群中实时输入的聊天信息。所述输入语句可是语音数据,也可是文字数据。当所述输入语句为语音数据时,服务器200可将所述语音数据转换为文字数据。所述输入语句可是目标用户111在所述即时通讯群中的输入的任何语句,可是与用户110的沟通语句,又或者是一些疑惑或遇到的困难,等等。所述输入语句可是和所述预设事务相关的数据,也可是和所述预设事务不相关的数据。所述输入语句可是所述即时通讯群中的用户相互对话沟通的数据,也可是目标用户111向所述机器人或其他用户110的提问。所述输入语句中可能没有任何向所述机器人提问的标志,比如,在用户相互对话沟通的情境下,所述输入语句是用户之间的自然对话, 因此没有任何向机器人提问的标志。所述输入语句中也可能存在一些提问,比如“花呗是什么”。The target user 111 can input the input sentence through the interface of the instant messaging group on the target client 301. The input sentence may be real-time chat information input by the target user 111 in the instant messaging group. The input sentence may be voice data or text data. When the input sentence is voice data, the server 200 may convert the voice data into text data. The input sentence may be any sentence input by the target user 111 in the instant messaging group, but may be a communication sentence with the user 110, or some doubts or difficulties encountered, and so on. The input sentence may be data related to the preset transaction, or data not related to the preset transaction. The input sentence may be the data for the users in the instant messaging group to communicate with each other, or it may be a question asked by the target user 111 to the robot or other users 110. The input sentence may not have any mark to ask the robot a question. For example, in a context of dialogue and communication between users, the input sentence is a natural dialogue between users, so there is no mark to ask the robot a question. There may also be some questions in the input sentence, such as "What is Huabei".
所述即时通讯群的工作方式可是:目标用户111在目标客户端301的所述即时通讯群界面上输入所述输入语句,所述输入语句通过网络120传输至服务器200,所述即时通讯群中其他用户的客户端,比如客户端302、客户端303、客户端304,等等,会主动监听服务器200,一旦监听到所述输入语句,主动从服务器200中获取所述输入语句,并显示在所述即时通讯群的界面上。The working mode of the instant messaging group may be: the target user 111 inputs the input sentence on the instant messaging group interface of the target client 301, and the input sentence is transmitted to the server 200 through the network 120, and the instant messaging group Clients of other users, such as client 302, client 303, client 304, etc., will actively monitor the server 200. Once the input sentence is monitored, it will actively obtain the input sentence from the server 200 and display it on On the interface of the instant messaging group.
S230:基于所述输入语句和预设的所述知识库生成候选列表。S230: Generate a candidate list based on the input sentence and the preset knowledge base.
服务器200可根据所述输入语句的内容对所述输入语句作出回应。具体地,服务器200可根据所述输入语句的内容以及所述即时通讯群预设的所述知识库生成与所述输入语句相关的候选列表。所述预设的所述知识库可是与所述预设事务相关的知识点的集合。所述知识库可用于说明所述预设事务的功能或规则。比如,所述即时通讯群为支付宝事务群,所述预设事务可是与支付宝相关的事务,所述预设的所述知识库可包括多个与支付宝支持的功能相关的知识点。所述知识库可包括预设的多个知识点,所述多个知识点中的每个知识点包括知识点标题和知识点答案。通常所述知识点标题可是对所述预设事务提问的问题,所述知识点答案可是对所述问题的回答内容。例如,在支付宝事务群中,所述知识库的知识点可是“标题:花呗是什么?答案:花呗是一种借贷产品。”、“标题:余额宝是什么?答案:余额宝是一种货币基金。”、“标题:忘记密码怎么办?答案:使用手机号码找回密码。”等等。所述知识库是基于所述即时通讯群的预设事务预设的。所述知识库可补充、修改和变更。所述知识库可存储在服务器200中,也可存储在数据库150中。The server 200 may respond to the input sentence according to the content of the input sentence. Specifically, the server 200 may generate a candidate list related to the input sentence according to the content of the input sentence and the knowledge base preset by the instant messaging group. The predetermined knowledge base may be a collection of knowledge points related to the predetermined transaction. The knowledge base can be used to describe the functions or rules of the preset affairs. For example, the instant messaging group is an Alipay transaction group, the preset transaction may be a transaction related to Alipay, and the preset knowledge base may include multiple knowledge points related to functions supported by Alipay. The knowledge base may include a plurality of preset knowledge points, and each of the plurality of knowledge points includes a knowledge point title and a knowledge point answer. Generally, the title of the knowledge point may be a question asked about the predetermined transaction, and the answer of the knowledge point may be the answer content to the question. For example, in the Alipay transaction group, the knowledge points of the knowledge base are "Title: What is Huabei? Answer: Huabei is a loan product.", "Title: What is Yu'e Bao? Answer: Yu'e Bao is one A currency fund.", "Title: What should I do if I forget my password? Answer: Use my mobile phone number to retrieve my password." and so on. The knowledge base is preset based on the preset affairs of the instant messaging group. The knowledge base can be supplemented, modified and changed. The knowledge base may be stored in the server 200 or in the database 150.
所述候选列表可是服务器200根据所述输入语句和所述知识库生成的与所述输入语句相关的若干个知识点标题。所述候选列表可包括与所述输入语句相关的至少一个推荐知识点。具体地,所述候选列表可包括与所述输入语句相关的至少一个推荐知识点标题。The candidate list may be a number of knowledge point titles related to the input sentence generated by the server 200 according to the input sentence and the knowledge base. The candidate list may include at least one recommended knowledge point related to the input sentence. Specifically, the candidate list may include at least one recommended knowledge point title related to the input sentence.
无论所述输入语句是什么,为了保证所述机器人可对与所述即时通讯群的预设事务相关的提问快速响应,同时又不打扰所述即时通讯群中的用户110之间的正常沟通交流,所述机器人需要对所述输入语句进行事务问题识别,判断是否需要介入对话提供答案。图4示出了根据本说明书的实施例提供的一种实施步骤S230的流程图,即生成所述候选列表的流程图。具体地,步骤S230可包括:S232:识别所述输入语句是否包括同预设事务相关的目标提问。No matter what the input sentence is, in order to ensure that the robot can quickly respond to questions related to the preset affairs of the instant messaging group without disturbing the normal communication between the users 110 in the instant messaging group , The robot needs to recognize the input sentence for the transaction problem, and judge whether it needs to intervene in the dialogue to provide an answer. Fig. 4 shows a flowchart for implementing step S230 according to an embodiment of the specification, that is, a flowchart for generating the candidate list. Specifically, step S230 may include: S232: identifying whether the input sentence includes a target question related to a preset transaction.
当目标用户111通过目标客户端301上的所述即时通讯群输入所述输入语句后,服务器200需要对所述输入语句进行事务问题识别,以识别所述输入语句是否是与所述预设事务相关的目标提问。当所述输入语句不是与所述预设事务相关的提问时,服务器200对所述输入语句不做回应;当所述输入语句是与所述预设事务相关的提问时,服务器200 则对所述输入语句进行自主应答。所述与所述预设事务相关的目标提问可是与所述知识库中的多个知识点相关的问题。所述目标提问也可是所述知识库中的多个知识点标题中的至少一个。After the target user 111 inputs the input sentence through the instant messaging group on the target client 301, the server 200 needs to perform transaction problem recognition on the input sentence to identify whether the input sentence is related to the preset transaction Question related goals. When the input sentence is not a question related to the preset transaction, the server 200 does not respond to the input sentence; when the input sentence is a question related to the preset transaction, the server 200 asks all questions. Autonomous response to the input sentence. The target question related to the predetermined transaction may be a question related to multiple knowledge points in the knowledge base. The target question may also be at least one of multiple knowledge point titles in the knowledge base.
服务器200可通过问句识别模块282和事务识别模块284对所述输入语句进行事务问题识别。问句识别模块282可接收所述输入语句,并被配置为识别所述输入语句是否为问句。其中,所述问句识别模块282是基于预设的多个问句模板训练得到的。所述预设的多个问句模板可是基于多个问句格式信息创建的。所述问句识别模块282可使用所述预设的多个问句模板与所述输入语句进行匹配,以判断是否有模板与所述输入语句相匹配,从而识别所述输入语句是否为问句语句。在本说明书中,问句格式信息可包括通用问句格式信息和陈述式的问句格式信息。通用问句格式可是指语法意义上的问句格式,例如明显的疑问句格式,比如“天气怎么样?”、“钉钉是什么?”、“为什么余额宝的收益变低?”等。对所述陈述式的问句格式可是指用于描述某种事实以寻求响应(比如,希望他人帮助处理)的陈述句格式,比如“考勤打卡失败了”、“帮我审批一下”、“淘宝无法登录”等等。The server 200 may perform transaction problem recognition on the input sentence through the question recognition module 282 and the transaction recognition module 284. The question recognition module 282 may receive the input sentence and be configured to recognize whether the input sentence is a question sentence. Wherein, the question recognition module 282 is obtained by training based on a plurality of preset question templates. The preset multiple question sentence templates may be created based on multiple question sentence format information. The question recognition module 282 can use the preset multiple question template to match the input sentence to determine whether a template matches the input sentence, thereby identifying whether the input sentence is a question sentence Statement. In this specification, question format information may include general question format information and declarative question format information. The general question format refers to the question format in the grammatical sense. For example, the obvious question format, such as "How is the weather?", "What is Dingding?", "Why the income of Yu'ebao is getting lower?" and so on. The question format of the statement refers to the statement format used to describe a certain fact in order to seek a response (for example, hope that others can help to deal with it), such as "attendance check-in failed", "help me approve", "Taobao can't Login" and so on.
事务识别模块284可接收所述输入语句,并被配置为对所述输入语句进行分类,即事务问题识别,识别所述输入语句是否包括同所述预设事务相关的目标提问。事务识别模块284是基于所述预设的所述知识库和预设的非事务语料信息训练得到的。事务识别模块284可是文本分类模型,分类结果为二分类。事务识别模块284将所述预设的所述知识库作为训练的正样本,将所述预设的非事务语料信息作为训练的负样本,由此组成训练样本集进行模型的训练。所述正样本的数据量和所述负样本的数据量的比例可是1:1,也可是其他比例,比如1.2:1,等等。服务器200将所述输入语句输入事务识别模块284,事务识别模块284的输出结果为所述输入语句属于所述知识库类或者所述输入语句属于非事务语料类。所述预设的非事务语料信息可是通用的闲聊信息,比如,“你好”、“今天天气怎么样”等等。当事务识别模块284的输出结果为所述输入语句属于所述知识库类时,服务器200判定所述输入语句包括同所述预设事务相关的目标提问,服务器200可对所述目标提问进行自主应答;当事务识别模块284的输出结果为所述输入语句属于非事务语料类时,服务器200判定所述输入语句不包括同所述预设事务相关的目标提问,因此可选择不做回答。通过这样的设置,可使得用户110之间在正常聊天的时候受到尽量少的打扰,增强了用户的使用体验。The transaction recognition module 284 may receive the input sentence and be configured to classify the input sentence, that is, transaction question recognition, and identify whether the input sentence includes a target question related to the preset transaction. The transaction recognition module 284 is trained based on the preset knowledge base and preset non-transaction corpus information. The transaction recognition module 284 may be a text classification model, and the classification result is a two-class classification. The transaction recognition module 284 uses the preset knowledge base as a positive sample for training, and uses the preset non-transaction corpus information as a negative sample for training, thereby forming a training sample set for model training. The ratio of the data amount of the positive sample to the data amount of the negative sample may be 1:1, or other ratios, such as 1.2:1, and so on. The server 200 inputs the input sentence into the transaction recognition module 284, and the output result of the transaction recognition module 284 is that the input sentence belongs to the knowledge base type or the input sentence belongs to the non-transaction corpus type. The preset non-business corpus information may be general small chat information, for example, "Hello", "How is the weather today" and so on. When the output result of the transaction recognition module 284 is that the input sentence belongs to the knowledge base category, the server 200 determines that the input sentence includes a target question related to the preset transaction, and the server 200 can perform autonomously on the target question. Response; when the output result of the transaction recognition module 284 is that the input sentence belongs to a non-transaction corpus, the server 200 determines that the input sentence does not include a target question related to the preset transaction, and therefore can choose not to answer. Through such a setting, the users 110 can be disturbed as little as possible during normal chats, and the user experience is enhanced.
事务识别模块284可包括FastText模型、CNN模型和LSTM模型中的一种。事务识别模块284所采用的文本分类模型的类型可是基于文本分类模型训练时使用的样本的数据量来确定的。例如,在文本分类模型训练时使用的样本是大数据量时,可使用CNN模型或LSTM模型。在文本分类模型训练时使用的样本是小数据量时,可使用FastText模型。本说明书提供的事务识别模块284可基于文本分类模型训练时使用的样本的数据量来确定所采用的文本分类模型的类型,可基于不同的应用场景来选用适合的文本分类 模型进行分类,即事务问题识别,由此提高事务问题识别的效率。The transaction recognition module 284 may include one of a FastText model, a CNN model, and an LSTM model. The type of text classification model used by the transaction recognition module 284 may be determined based on the data volume of the sample used in the training of the text classification model. For example, when the sample used in the text classification model training is a large amount of data, a CNN model or an LSTM model can be used. When the sample used in the text classification model training is a small amount of data, the FastText model can be used. The transaction recognition module 284 provided in this specification can determine the type of text classification model used based on the amount of sample data used during text classification model training, and can select suitable text classification models for classification based on different application scenarios, that is, transaction Problem identification, thereby improving the efficiency of transaction problem identification.
由问句识别模块282和事务识别模块284可对所述输入语句先进行问句识别,在所述输入语句为问句时才对所述输入语句进行事务问题识别,在所述输入语句不是问句时,不进行事务问题识别,可有效节省计算量,节约资源。The question recognition module 282 and the transaction recognition module 284 can perform question recognition on the input sentence first, and perform transaction problem recognition on the input sentence when the input sentence is a question sentence. When sentence, no transaction problem identification is performed, which can effectively save the amount of calculation and save resources.
具体地,步骤S232可包括:S232-2:将所述输入语句与所述预设的多个问句模板进行匹配,以识别所述输入语句是否为问句。Specifically, step S232 may include: S232-2: matching the input sentence with the plurality of preset question template to identify whether the input sentence is a question sentence.
服务器200通过问句识别模块282对所述输入语句进行问句格式匹配,使用所述输入语句来遍历所述预设的多个问句格式中的所有问句格式。如果存在匹配的问句格式,服务器200则判定所述输入语句是问句语句。否则,服务器200判定所述输入语句不是问句语句。如果所述输入语句被服务器200判定为问句语句,则服务器200将所述输入语句视为潜在事务问题,并进行事务问题识别。The server 200 performs question format matching on the input sentence through the question recognition module 282, and uses the input sentence to traverse all the question sentence formats in the plurality of preset question sentence formats. If there is a matching question format, the server 200 determines that the input sentence is a question sentence. Otherwise, the server 200 determines that the input sentence is not a question sentence. If the input sentence is determined by the server 200 as a question sentence, the server 200 regards the input sentence as a potential transaction problem and performs transaction problem identification.
S232-4:当所述输入语句是问句时,对所述输入语句进行分类,识别所述输入语句是否包括同所述预设事务相关的目标提问。S232-4: When the input sentence is a question sentence, classify the input sentence, and identify whether the input sentence includes a target question related to the preset transaction.
当所述输入语句不是问句语句时,服务器200判定所述输入语句不包括与所述预设事务相关的目标提问。服务器200认为所述输入语句不是对所述预设事务的提问,对所述输入语句不作回应。When the input sentence is not a question sentence, the server 200 determines that the input sentence does not include a target question related to the preset transaction. The server 200 considers that the input sentence is not a question about the predetermined transaction, and does not respond to the input sentence.
当所述输入语句是问句时,服务器200需要进一步对所述输入语句进行分类,即事务问题识别,判断所述输入语句中是否包括与所述预设事务相关的目标提问。具体地,服务器200通过事务识别模块284对所述输入语句进行分类,识别所述输入语句是否包括同所述预设事务相关的目标提问。事务识别模块284在对所述输入语句进行分类时,可先对所述输入语句进行分词处理,例如,将被识别为问句的输入语句“花呗如何开通?”分词为“花呗”、“如何”和“开通”;然后,对经过所述分词处理后得到的分词进行文本分类处理。例如,在事务识别模块284是FastText模型的情况下,首先,事务识别模块284将分词“花呗”、“如何”和“开通”表示为三个词向量,例如,利用Word2Vec来将分词“花呗”、“如何”和“开通”表示为3个词向量;接着,事务识别模块284利用卷积处理来将所得到的3个词向量转换为语义矩阵;随后,事务识别模块284利用池化计算来将语义矩阵转换为语义向量;最后,事务识别模块284利用Softmax层来进行分类,以得到分类为所述知识库类和非事务语料类两个类目的分值,并且将分值较大的类目作为事务识别模块284文本分类结果输出。当事务识别模块284的输出结果为所述输入语句属于所述知识库类时,服务器200判定所述输入语句包括同所述预设事务相关的目标提问;当事务识别模块284的输出结果为所述输入语句属于非事务语料类时,服务器200判定所述输入语句不包括同所述预设事务相关的目标提问。When the input sentence is a question sentence, the server 200 needs to further classify the input sentence, that is, transaction problem identification, and determine whether the input sentence includes a target question related to the preset transaction. Specifically, the server 200 classifies the input sentence through the transaction recognition module 284, and recognizes whether the input sentence includes a target question related to the preset transaction. When classifying the input sentence, the transaction recognition module 284 may first perform word segmentation processing on the input sentence. For example, the input sentence recognized as a question sentence "How to activate Huabei?" is segmented as "Huabe", "How" and "Open"; then, perform text classification processing on the word segmentation obtained after the word segmentation processing. For example, in the case where the transaction recognition module 284 is the FastText model, first, the transaction recognition module 284 expresses the word segmentation "Huabe", "How" and "Kaitong" as three word vectors, for example, using Word2Vec to segment the word "Hua "Bai", "How" and "Open" are represented as 3 word vectors; then, the transaction recognition module 284 uses convolution processing to convert the obtained 3 word vectors into a semantic matrix; then, the transaction recognition module 284 uses pooling Calculation to convert the semantic matrix into a semantic vector; finally, the transaction recognition module 284 uses the Softmax layer to classify to obtain the scores classified into the knowledge base class and the non-transaction corpus class, and compare the scores Large categories are output as text classification results of the transaction recognition module 284. When the output result of the transaction recognition module 284 is that the input sentence belongs to the knowledge base class, the server 200 determines that the input sentence includes a target question related to the preset transaction; when the output result of the transaction recognition module 284 is all When the input sentence belongs to a non-transactional corpus, the server 200 determines that the input sentence does not include a target question related to the predetermined transaction.
本说明书提供的群聊机器人自主应答的方法P200和系统100,通过问句识别模块282和事务识别模块284,先对所述输入语句进行问句识别282,只有在所述输入语句为 问句语句的情况下才对所述输入语句进行分类,即事务问题识别,而不需要对所有的输入语句都进行事务问题识别,从而减少计算量,同时提高了的工作效率。The group chat robot autonomous response method P200 and system 100 provided in this specification uses the question recognition module 282 and the transaction recognition module 284 to first perform question recognition 282 on the input sentence, only when the input sentence is a question sentence In the case of, the input sentences are classified, that is, transaction problem recognition, and it is not necessary to perform transaction problem recognition on all input sentences, thereby reducing the amount of calculation and improving work efficiency.
服务器200也可通过语义识别模块识别所述输入语句是否包括同预设事务相关的目标提问。所述语义识别模块可是基于历史输入语句训练得到的。所述历史输入语句中可包括与所述预设事务相关的提问,也可包括用户110间的交流对话。所述语义识别模块可对所述输入语句进行语义分析,并根据语义分析的结果判断所述输入语句的语义中是否包括同所述预设事务相关的目标提问。比如,与所述预设事务相关的历史输入语句可是“钉钉是什么?”、“为什么余额宝的收益变低?”、“考勤打卡失败了”、“淘宝无法登录”等。比如,与所述预设事务不相关的历史输入语句可是“天气怎么样”等。比如,所述输入语句可是“我上个月的余额宝收益是100,这个月只有50”。服务器200通过对所述输入语句进行语义分析可得出语义分析结果“余额宝收益变低了”,因此,判断所述输入语句可能包括同所述预设事务相关的目标提问。服务器200通过所述语义识别模块可对所述输入语句进行语义识别,分析出输入语句所想表达的语义,从而识别出所述输入语句是否包括同所述预设事务相关的目标提问。所述语义识别模块可对问句表达不明显的输入语句进行语义分析,挖掘出输入语句潜在的表达,从而作出更准确的判断。The server 200 can also recognize whether the input sentence includes a target question related to a preset transaction through the semantic recognition module. The semantic recognition module may be trained based on historical input sentences. The historical input sentence may include a question related to the preset transaction, and may also include an exchange dialogue between the users 110. The semantic recognition module may perform semantic analysis on the input sentence, and determine whether the semantics of the input sentence includes a target question related to the preset transaction according to the result of the semantic analysis. For example, the historical input sentences related to the preset transaction are "What is Dingding?", "Why the income of Yu'ebao is getting low?", "Check attendance failed", "Taobao can't log in", etc. For example, the historical input sentence that is not related to the preset transaction may be "how is the weather?" and so on. For example, the input sentence is "My Yu'E Bao income was 100 last month, but only 50 this month". The server 200 can obtain the semantic analysis result "Yuebao's income has decreased" by performing semantic analysis on the input sentence. Therefore, it is judged that the input sentence may include a target question related to the preset transaction. The server 200 can perform semantic recognition on the input sentence through the semantic recognition module, analyze the semantics intended to be expressed by the input sentence, and thereby recognize whether the input sentence includes a target question related to the predetermined transaction. The semantic recognition module can perform semantic analysis on input sentences whose question expressions are not obvious, and dig out the potential expressions of the input sentences, so as to make more accurate judgments.
当所述输入语句不包括与所述预设事务相关的目标提问时,服务器200认为所述输入语句不是对所述预设事务的提问,对所述输入语句不作回应。当所述输入语句包括与所述预设事务相关的目标提问时,服务器200可对所述输入语句主动应答。这样既能保证服务器200(即机器人)在用户110没有主动@机器人的情况下,也能对所述即时通讯群中的用户110提出的事务问题主动应答,又能保证服务器200(即机器人)不打扰所述即时通讯群中各个用户110之间的对话沟通,提升用户的体验感,同时还可缓解人工客服的工作压力,减少人工客服的工作量,提高所述机器人的利用率,提升客服(包括所述人工客服和机器人)的工作效率。具体地,在识别出所述输入语句包括与所述预设事务相关的目标提问后,服务器200可执行:S234:确定所述输入语句包括与所述预设事务相关的目标提问。When the input sentence does not include a target question related to the preset transaction, the server 200 considers that the input sentence is not a question about the preset transaction, and does not respond to the input sentence. When the input sentence includes a target question related to the preset transaction, the server 200 may actively respond to the input sentence. This can ensure that the server 200 (ie the robot) can actively respond to the transaction questions raised by the user 110 in the instant messaging group when the user 110 does not take the initiative to Disturbing the dialogue and communication between the users 110 in the instant messaging group, improving the user experience, and at the same time alleviating the work pressure of manual customer service, reducing the workload of manual customer service, increasing the utilization rate of the robot, and improving customer service ( Including the work efficiency of the manual customer service and the robot). Specifically, after recognizing that the input sentence includes a target question related to the preset transaction, the server 200 may perform: S234: Determine that the input sentence includes a target question related to the preset transaction.
S236:基于所述输入语句和所述预设的所述知识库,生成所述候选列表。S236: Generate the candidate list based on the input sentence and the preset knowledge base.
如前所述,所述候选列表可包括与所述输入语句相关的至少一个推荐知识点标题。在步骤S236中,服务器200可通过找出与所述输入语句最相似的知识点标题,生成所述候选列表给用户回复。在步骤S236中,所述基于所述输入语句和所述预设的所述知识库,生成候选列表,可包括通过服务器200的至少一个处理器220执行:S236-2:对所述输入语句进行分词处理,提取所述输入语句对应的关键词。As described above, the candidate list may include at least one recommended knowledge point title related to the input sentence. In step S236, the server 200 may generate the candidate list to reply to the user by finding the knowledge point title most similar to the input sentence. In step S236, generating a candidate list based on the input sentence and the preset knowledge base may include executing by at least one processor 220 of the server 200: S236-2: performing the input sentence Word segmentation processing to extract keywords corresponding to the input sentence.
例如,服务器200将输入语句“花呗如何开通?”分词为“花呗”、“如何”和“开通”;然后,提取对经过分词处理后得到的分词中的关键词,例如,关键词为“花呗”和“开通”。For example, the server 200 divides the input sentence "How to open Huabei?" into "Huabe", "How" and "Open"; then, extract the keywords in the word segmentation obtained after word segmentation processing, for example, the keyword is "Huabei" and "kaitong".
S236-4:将所述输入语句对应的关键词与所述预设的所述知识库进行匹配,获取至 少一个召回知识点,所述多个知识点包括所述至少一个召回知识点。S236-4: Match the keyword corresponding to the input sentence with the preset knowledge base to obtain at least one recalled knowledge point, and the multiple knowledge points include the at least one recalled knowledge point.
服务器200提取到所述输入语句的关键词后,将所述输入语句的关键词与所述知识库中的多个知识点进行匹配,实际上是将所述输入语句的关键词与所述知识库中的多个知识点标题进行匹配,并从所述知识库中召回至少一条与所述输入语句的关键词相匹配的知识点作为所述召回知识点。所述召回即从所述知识库中挑选出与所述输入语句的关键词相匹配的知识点。所述召回知识点即挑选出的候选知识点。例如,所述输入语句的关键词为“花呗”和“开通”。服务器200在所述知识库中查找是否存在与“花呗”和“开通”一致的知识点标题。例如,所述召回知识点的标题可是“花呗如何开通”和“花呗开通后额度如何调整”,等等。After the server 200 extracts the keywords of the input sentence, it matches the keywords of the input sentence with multiple knowledge points in the knowledge base. In fact, it matches the keywords of the input sentence with the knowledge points. Multiple knowledge point titles in the library are matched, and at least one knowledge point matching the keyword of the input sentence is recalled from the knowledge base as the recalled knowledge point. The recall is to select knowledge points matching the keywords of the input sentence from the knowledge base. The recalled knowledge points are the selected candidate knowledge points. For example, the keywords of the input sentence are "huabei" and "kaitong". The server 200 searches the knowledge base for whether there is a knowledge point title consistent with "Huabe" and "Open". For example, the titles of the recalled knowledge points may be "How to activate Huabei" and "How to adjust the quota after Huabei is activated", and so on.
S236-6:计算所述输入语句与所述至少一个召回知识点的关联值。S236-6: Calculate the correlation value between the input sentence and the at least one recalled knowledge point.
服务器200召回所述至少一个知识点后,可计算所述输入语句和所述至少一个召回知识点中的每个召回知识点的关联值。所述关联值可是所述输入语句与所述每个召回知识点的相似度值。服务器200通过对所述输入语句进行语义分析,计算所述输入语句与所述每个召回知识点标题的语义相似度值。After the server 200 recalls the at least one knowledge point, it may calculate the associated value of each recalled knowledge point in the input sentence and the at least one recalled knowledge point. The correlation value may be a similarity value between the input sentence and each recalled knowledge point. The server 200 performs semantic analysis on the input sentence to calculate the semantic similarity value between the input sentence and the title of each recalled knowledge point.
S236-8:基于所述关联值,从所述至少一个召回知识点中选取至少一个推荐知识点,基于所述推荐知识点的标题生成所述候选列表。S236-8: Based on the correlation value, select at least one recommended knowledge point from the at least one recalled knowledge point, and generate the candidate list based on the title of the recommended knowledge point.
服务器200计算出所述输入语句与所述每个召回知识点的关联值后,基于所述关联值,对所述至少一个召回知识点进行排序。所述排序可是基于所述关联值从大到小对所述至少一个召回知识点排序。服务器200可从所述至少一个召回知识点中选取所述关联值最大的至少一个召回知识点作为推荐知识点,并根据所述推荐知识点的标题生成所述候选列表。所述候选列表可包括至少一个推荐知识点标题。After the server 200 calculates the associated value between the input sentence and each recalled knowledge point, it sorts the at least one recalled knowledge point based on the associated value. The ranking may be based on ranking the at least one recalled knowledge point from large to small based on the associated value. The server 200 may select the at least one recalled knowledge point with the largest correlation value from the at least one recalled knowledge point as the recommended knowledge point, and generate the candidate list according to the title of the recommended knowledge point. The candidate list may include at least one recommended knowledge point title.
服务器200通过上述方式从所述知识库中选取出与所述输入语句相似度最高的推荐知识点作为所述候选列表向所述即时通讯群发送,提高客服群聊机器人自主应答的准确度,提升用户体验感。生成所述候选列表后,服务器200继续执行:S240:向所述即时通讯群发送所述候选列表。The server 200 selects the recommended knowledge points with the highest similarity to the input sentence from the knowledge base in the above-mentioned manner as the candidate list and sends to the instant messaging group, which improves the accuracy of autonomous response of the customer service group chat robot and improves User experience. After the candidate list is generated, the server 200 continues to execute: S240: Send the candidate list to the instant messaging group.
当服务器200生成所述候选列表之后,可向所述即时通讯群发送所述候选列表。为了不打扰所述即时通讯群中的用户110,所述候选列表被标记为只对所述即时通讯群中的第一组客户端310可见,所述第一组客户端310为包括所述目标客户端301在内的部分客户端。所述第一组客户端310可是所述即时通讯群中的目标客户端301,还可是拥有特殊权利的用户的客户端,例如,群主的客户端、管理员的客户端,等等,还可是目标客户端301选定的客户端,例如目标客户端301在收到所述候选列表后,可选择将所述候选列表显示给所述即时通讯群中的指定用户可见。所述第一组客户端310还可是所述即时通讯群中与所述输入语句相关的历史输入语句对应的客户端。例如,所述输入语句可是“花呗额度如何调整?”,与所述输入语句相关的历史输入语句可是“我的花呗额 度不够了”,则所述历史输入语句对应的客户端可是所述第一组客户端310的一部分。After the server 200 generates the candidate list, it may send the candidate list to the instant messaging group. In order not to disturb the users 110 in the instant messaging group, the candidate list is marked as visible only to the first group of clients 310 in the instant messaging group, and the first group of clients 310 includes the target Some clients including client 301. The first group of clients 310 may be the target client 301 in the instant messaging group, or the client of a user with special rights, for example, the client of the group owner, the client of the administrator, etc., and However, the client selected by the target client 301, for example, after receiving the candidate list, the target client 301 can choose to display the candidate list to the designated users in the instant messaging group. The first group of clients 310 may also be clients corresponding to historical input sentences related to the input sentence in the instant messaging group. For example, the input sentence may be "How to adjust Huabei quota?", and the historical input sentence related to the input sentence may be "My Huabei quota is not enough", then the client corresponding to the historical input sentence may be said Part of the first group of clients 310.
可通过多种方式使得所述候选列表被标记为只对所述即时通讯群中的第一组客户端310可见。比如,可通过定义所述候选列表的属性数据实现。所述属性数据可是标签数据,也可是数据符号,等等任何可做标记的数据。所述候选列表的属性数据被标记为只对所述即时通讯群中的第一组客户端310可见,具体地,可是所述候选列表的标签数据与第一组客户端310的设备相关联,也可是所述属性数据与第一组客户端310具有相同的标记,使得只有第一组客户端310可监听到服务器200中的所述候选列表,因此,只有第一组客户端310可接收所述候选列表。此外,还可通过在候选列表的数据结构中预留特定的显示位标识位,然后通过对所述显示标识位进行赋值来定义在所述即时通讯群中哪些客户端可见。当客户端300对运行在服务器200上的所述即时通讯群中的信息进行监听时,客户端300首先检测所述显示标识位的数值是否允许自己显示。对于第一组客户端310来说,所述显示标识位的数值允许自己显示所述候选列表的内容,对于其他客户端300,所述显示标识位的数值不允许自己显示所述候选列表的内容。因此,所述显示标识位使得只有第一组客户端310可监听到服务器200中的所述候选列表。There are many ways to make the candidate list be marked as visible only to the first group of clients 310 in the instant messaging group. For example, it can be realized by defining the attribute data of the candidate list. The attribute data can be label data, data symbols, etc., any data that can be marked. The attribute data of the candidate list is marked as visible only to the first group of clients 310 in the instant messaging group. Specifically, the label data of the candidate list is associated with the devices of the first group of clients 310. It is also possible that the attribute data and the first group of clients 310 have the same mark, so that only the first group of clients 310 can listen to the candidate list in the server 200, and therefore, only the first group of clients 310 can receive all the candidates. The candidate list. In addition, it is also possible to reserve specific display position flags in the data structure of the candidate list, and then assign values to the display flags to define which clients are visible in the instant messaging group. When the client 300 monitors the information in the instant messaging group running on the server 200, the client 300 first detects whether the value of the display flag allows it to be displayed by itself. For the first group of clients 310, the value of the display flag allows itself to display the content of the candidate list. For other clients 300, the value of the display flag does not allow itself to display the content of the candidate list. . Therefore, the display flag allows only the first group of clients 310 to monitor the candidate list in the server 200.
所述候选列表可直接发送并显示在第一组客户端310的即时通讯群中,也可采用一种低侵入式的表达方式。比如,服务器200向第一组客户端310的所述即时通讯群的界面展示列表显示请求。当用户选择同意显示所述候选列表时,服务器200可显示所述候选列表。当用户选择不同意显示所述候选列表时,服务器200则不显示所述候选列表。所述列表显示请求可是一个可操作的图标,显示在第一组客户端310的即时通讯群界面上。比方说,服务器200在目标客户端301的即时通讯群界面上的所述输入语句的旁边显示一个红点图标表示这里有机器人推荐的候选列表。只有当目标用户111触摸或者点击这个红点图标的时候才显示所述候选列表。或者,第一组客户端310的其他部分或者全部用户也可通过触摸或者点击这个红点图标显示所述候选列表。通过这种方式,服务器200在目标通讯界面上可做到尽量小的打扰目标用户111与其他用户110的正常沟通。The candidate list can be directly sent and displayed in the instant messaging group of the first group of clients 310, or a low-invasive expression method can be used. For example, the server 200 displays a list display request to the interface of the instant messaging group of the first group of clients 310. When the user chooses to agree to display the candidate list, the server 200 may display the candidate list. When the user chooses not to agree to display the candidate list, the server 200 does not display the candidate list. The list display request may be an operable icon displayed on the instant messaging group interface of the first group of clients 310. For example, the server 200 displays a red dot icon beside the input sentence on the instant messaging group interface of the target client 301 to indicate that there is a list of candidates recommended by the robot. The candidate list is displayed only when the target user 111 touches or clicks this red dot icon. Alternatively, other part or all of the users of the first group of clients 310 can also display the candidate list by touching or clicking this red dot icon. In this way, the server 200 can interrupt the normal communication between the target user 111 and other users 110 as little as possible on the target communication interface.
为了实现上述功能,服务器200向所述即时通讯群发送所述候选列表可包括以下步骤:服务器200向所述即时通讯群发送第一图标数据,所述第一图标数据的属性被标记为只对第一组客户端310可见,所述第一图标数据中包括所述列表显示请求,比如,所述第一图标数据中包含了一个指向所述列表的链接;服务器200接收第一组客户端310中的任何一个客户端触发所述列表显示请求的信号(比如所述图标在第一组客户端310的任何一个客户端被触发),所述链接被激活;服务器200向所述即时通讯群发送所述候选列表,所述候选列表被标记为对触发所述列表显示请求的客户端可见。In order to realize the above function, the server 200 sending the candidate list to the instant messaging group may include the following steps: the server 200 sends the first icon data to the instant messaging group, and the attribute of the first icon data is marked as only The first group of clients 310 is visible, and the first icon data includes the list display request. For example, the first icon data includes a link to the list; the server 200 receives the first group of clients 310 Any one of the clients triggers the signal of the list display request (for example, the icon is triggered on any one of the first group of clients 310), the link is activated; the server 200 sends to the instant messaging group The candidate list, the candidate list is marked as visible to the client that triggers the list display request.
服务器200向所述即时通讯群发送所述候选列表还可是:服务器200向所述即时通讯群同时发送所述候选列表和第一图标数据,其中,所述第一图标数据包括列表显示请求,所述第一图标数据的属性被标记为只对第一组客户端310可见,并且所述候选列表和第一图标数据被定义为:首先在第一组客户端310显示所述第一图标数据,当所述第 一图标数据被第一组客户端310中的任一个客户端触发时,才会在触发所述第一图标数据的客户端显示所述候选列表。当第一组客户端310中的任意一个客户端收到所述候选列表和所述第一图标数据时,所述客户端只显示所述第一图标数据,所述第一图标数据可是一个可操作的图标,只有在用户触发所述可操作图标时,所述客户端才会将所述候选列表显示在界面上。The server 200 sending the candidate list to the instant messaging group may also be: the server 200 simultaneously sending the candidate list and the first icon data to the instant messaging group, wherein the first icon data includes a list display request, so The attribute of the first icon data is marked as visible only to the first group of clients 310, and the candidate list and the first icon data are defined as: first display the first icon data on the first group of clients 310, When the first icon data is triggered by any client in the first group of clients 310, the candidate list will be displayed on the client that triggered the first icon data. When any one of the clients in the first group 310 receives the candidate list and the first icon data, the client only displays the first icon data, and the first icon data may be an option. The operation icon, the client will display the candidate list on the interface only when the user triggers the operable icon.
S250:接收第一组客户端310中的管理客户端对所述候选列表的选择。S250: Receive a selection of the candidate list by a management client in the first group of clients 310.
如前所述,所述候选列表可包括与所述输入语句相关的至少一个推荐知识点标题。目标用户111在目标客户端301接收到所述候选列表后,可从所述候选列表中选择一个或多个与自己的提问最相关或者自己最关心或最想查看的推荐知识点标题,从而查看所选标题对应的答案内容。这时候,所述目标客户端301就是所述管理客户端。服务器200可接收目标用户111在目标客户端301上的选择。当然,管理客户端还可是第一组客户端310中的其他客户端。比如,所述管理客户端可是第一组客户端310中一些有特殊权限的客户端(比如管理员),所述管理客户端也可是第一组客户端310中任何客户端。这种时候,第一组客户端310中的用户都可对所述候选列表做出选择,服务器200可接收第一组客户端310中的用户在对应的客户端上的选择。As described above, the candidate list may include at least one recommended knowledge point title related to the input sentence. After the target user 111 receives the candidate list at the target client 301, he can select one or more recommended knowledge point titles that are most relevant to his question or that he cares about or want to view from the candidate list to view The content of the answer corresponding to the selected title. At this time, the target client 301 is the management client. The server 200 may receive the selection of the target user 111 on the target client 301. Of course, the management client may also be other clients in the first group of clients 310. For example, the management client may be some clients (such as an administrator) with special permissions in the first group of clients 310, and the management client may also be any client in the first group of clients 310. At this time, all users in the first group of clients 310 can make a selection on the candidate list, and the server 200 can receive a selection of the users in the first group of clients 310 on the corresponding client.
S270:向所述即时通讯群发送与所述选择匹配的目标答案。S270: Send a target answer matching the selection to the instant messaging group.
所述目标答案可是与目标客户端301选择的知识点标题对应的目标知识点答案。服务器200接收了目标用户111在目标客户端301上的选择后,可将所述目标答案发送给所述即时通讯群。其中,所述目标答案被标记为对所述即时通讯群中的第二组客户端320可见。第二组客户端320可包括所述即时通讯群中的至少一部分客户端,也可包括目标客户端301。第二组客户端320可是目标用户111从所述即时通讯群中选择的用户对应的客户端,也可是第一组客户端310中的客户端,也可是第一组客户端310中对所述候选列表做出选择的客户端,也可是全部客户端300。当然,第二组客户端320也可是第一组客户端310中的管理客户端从所述即时通讯群中选择的用户对应的客户端。The target answer may be a target knowledge point answer corresponding to the knowledge point title selected by the target client 301. After the server 200 receives the selection of the target user 111 on the target client 301, it may send the target answer to the instant messaging group. Wherein, the target answer is marked as visible to the second group of clients 320 in the instant messaging group. The second group of clients 320 may include at least a part of the clients in the instant messaging group, and may also include the target client 301. The second group of clients 320 may be the clients corresponding to the users selected by the target user 111 from the instant messaging group, or the clients of the first group of clients 310, or the clients of the first group of clients 310. The clients selected in the candidate list may also be all clients 300. Of course, the second group of clients 320 may also be the clients corresponding to the users selected by the management client in the first group of clients 310 from the instant messaging group.
服务器200向所述即时通讯群发送所述目标答案可有多种方式。所述目标答案可直接发送并显示在第二组客户端320的即时通讯群中,也可采用上述低侵入式的表达方式。比如,服务器200向第二组客户端320的所述即时通讯群的界面展示答案显示请求,当用户选择同意显示所述目标答案时,服务器200可显示所述目标答案,当用户选择不同意显示所述目标答案时,服务器200则不显示所述目标答案。所述答案显示请求可是一个可操作的图标,显示在第二组客户端320的即时通讯群界面上。比方说,服务器200在目标客户端301的即时通讯群界面上的所述候选列表或目标用户111对所述候选列表的选择的旁边显示一个红点图标表示这里有机器人推荐的目标答案。只有当目标用户111触摸或者点击这个红点图标的时候才显示所述目标答案。或者,第二组客户端320的其他部分或者全部用户也可通过触摸或者点击这个红点图标显示所述目标答案。通过 这种方式,服务器200在目标通讯界面上可做到尽量小的打扰目标用户111与其他用户110的正常沟通。The server 200 can send the target answer to the instant messaging group in many ways. The target answer can be directly sent and displayed in the instant messaging group of the second group of clients 320, or the above-mentioned low-intrusive expression can also be used. For example, the server 200 displays an answer display request to the interface of the instant messaging group of the second group of clients 320. When the user chooses to agree to display the target answer, the server 200 may display the target answer, and when the user chooses not to agree to display the target answer In the case of the target answer, the server 200 does not display the target answer. The answer display request may be an operable icon displayed on the instant messaging group interface of the second group of clients 320. For example, the server 200 displays a red dot icon next to the candidate list on the IM group interface of the target client 301 or the target user's 111 selection of the candidate list, indicating that there is a target answer recommended by the robot. The target answer is displayed only when the target user 111 touches or clicks this red dot icon. Alternatively, other part or all of the users of the second group of clients 320 can also display the target answer by touching or clicking this red dot icon. In this way, the server 200 can interrupt the normal communication between the target user 111 and other users 110 as little as possible on the target communication interface.
服务器200向所述即时通讯群发送所述目标答案可包括:服务器200向所述即时通讯群发送第二图标数据,所述第二图标数据的属性被标记为只对第二组客户端320可见,所述第二图标数据中包括所述答案显示请求,比如,所述第一图标数据中包含了一个指向所述列表的链接;服务器200接收第二组客户端320中的任何一个客户端触发所述答案显示请求的信号(比如所述图标在第二组客户端320的任何一个客户端被触发),所述链接被激活;服务器200向所述即时通讯群发送所述目标答案,所述目标答案被标记为对触发所述答案显示请求的客户端可见。The server 200 sending the target answer to the instant messaging group may include: the server 200 sending second icon data to the instant messaging group, and the attributes of the second icon data are marked as visible only to the second group of clients 320 , The second icon data includes the answer display request, for example, the first icon data includes a link to the list; the server 200 receives any client trigger in the second group of clients 320 The answer displays the requested signal (for example, the icon is triggered on any client of the second group of clients 320), the link is activated; the server 200 sends the target answer to the instant messaging group, the The target answer is marked as visible to the client that triggered the answer display request.
服务器200向所述即时通讯群发送所述目标答案还可是:服务器200向所述即时通讯群同时发送所述候选列表和第二图标数据,其中,所述第二图标数据包括答案显示请求,所述第二图标数据的属性被标记为只对第二组客户端320可见,并且所述目标答案和第二图标数据被定义为:首先在第二组客户端320显示所述第二图标数据,当所述第二图标数据被第二组客户端320中的任一客户端触发时,才会在触发所述第二图标数据的客户端显示所述目标答案。当第二组客户端320中的任意一个客户端收到所述目标答案和所述第二图标数据时,所述客户端只显示所述第二图标数据,所述第二图标数据可是一个可操作的图标,只有在用户触发所述可操作图标时,所述客户端才会将所述目标答案显示在界面上。The server 200 sending the target answer to the instant messaging group may also be: the server 200 simultaneously sending the candidate list and the second icon data to the instant messaging group, wherein the second icon data includes an answer display request, so The attribute of the second icon data is marked as visible only to the second group of clients 320, and the target answer and the second icon data are defined as: first display the second icon data on the second group of clients 320, When the second icon data is triggered by any client in the second group of clients 320, the target answer will be displayed on the client that triggered the second icon data. When any one client in the second group of clients 320 receives the target answer and the second icon data, the client only displays the second icon data, and the second icon data may be an option The operation icon, the client will display the target answer on the interface only when the user triggers the operable icon.
服务器200向客户端300发送所述目标答案时可根据所述输入语句的语义或者结合历史输入语句的语义进行语义分析,根据语义分析的结果以对话交流的方式给出所述目标答案,以提升用户体验感。比如,所述输入语句为“怎么回事?我上个月的余额宝收益是100,可是这个月只有50!”。服务器200可回答“客官不必担心呢,余额宝收益浮动是正常的,这是因为……”,然后给出所述目标答案。这种智能对话交流式的应答相比于机械式的应答可使用户110更容易接受,在轻松愉快的氛围中为用户110解答疑惑,而且一定程度上降低了用户110对于人工智能的敏感度和排斥感,同时提升用户110与机器人的粘合度,提升机器人的使用率。When the server 200 sends the target answer to the client 300, it can perform semantic analysis according to the semantics of the input sentence or in combination with the semantics of the historical input sentence, and provide the target answer in the form of dialogue and communication according to the result of the semantic analysis, so as to improve User experience. For example, the input sentence is "What's going on? My Yu'E Bao income last month was 100, but this month only has 50!". The server 200 can answer "Customers don't need to worry, it is normal for Yu'E Bao's income to fluctuate, this is because...", and then give the target answer. This kind of intelligent dialogue response can make the user 110 more acceptable than the mechanical response, answer the user 110's doubts in a relaxed and happy atmosphere, and reduce the user 110's sensitivity and sensitivity to artificial intelligence to a certain extent. A sense of rejection, and at the same time improve the adhesion between the user 110 and the robot, and increase the utilization rate of the robot.
如图3所示,所述方法P200还可包括,通过服务器200的至少一个处理器220执行:S280:向目标客户端301发送答案评价请求。As shown in FIG. 3, the method P200 may further include executing by at least one processor 220 of the server 200: S280: Send an answer evaluation request to the target client 301.
S290:接收目标客户端301的答案评价。S290: Receive the answer evaluation of the target client 301.
当服务器200向目标客户端301发送了所述目标答案之后,服务器200还可向目标客户端301发送答案评价请求,请目标用户111对显示的答案内容作出评价,并接收目标客户端301的答案评价结果,存储在服务器200或数据库150中,以便于服务器200的升级和改进。After the server 200 sends the target answer to the target client 301, the server 200 may also send an answer evaluation request to the target client 301, asking the target user 111 to rate the displayed answer content and receive the answer from the target client 301 The evaluation result is stored in the server 200 or the database 150 to facilitate the upgrade and improvement of the server 200.
综上所述,本说明书提供的群聊机器人自主应答的方法P200,服务器200在接收到 所述即时通讯群中的目标用户111发送的输入语句后,基于输入语句和预设的所述知识库生成一个与输入语句相关的候选列表,并将所述候选列表发送给目标用户111对应的目标客户端301或包括目标客户端301在内的第一组客户端310,以降低对其他用户的影响;在目标用户111对候选列表做出选择后,再将与选择匹配的目标答案发送给目标用户111对应的目标客户端301或者包括目标客户端301在内的第二组客户端320。所述方法P200不仅可主动对用户提出的问题进行回答,同时又不会对群聊中的其他用户造成干扰,在提升工作效率的同时,又可提升用户体验。In summary, the group chat robot autonomous response method P200 provided in this specification. After the server 200 receives the input sentence sent by the target user 111 in the instant messaging group, it is based on the input sentence and the preset knowledge base Generate a candidate list related to the input sentence, and send the candidate list to the target client 301 corresponding to the target user 111 or the first group of clients 310 including the target client 301 to reduce the impact on other users ; After the target user 111 makes a selection on the candidate list, the target answer matching the selection is sent to the target client 301 corresponding to the target user 111 or the second group of clients 320 including the target client 301. The method P200 can not only actively answer the questions raised by the user, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.
图5示出了一种群聊机器人自主应答的方法P300的流程图。如前所述,客户端300可执行本说明书提供的群聊机器人自主应答的方法P300。具体地,目标客户端301中的至少一个处理器可读取存储在其本地存储介质和/或数据库150中的指令集,然后根据所述指令集的规定,执行本说明书提供的群聊机器人自主应答的方法P300。所述方法P300可包括通过目标客户端301的至少一个处理器执行:S310:接收所述输入语句,并发送给服务器端200。Fig. 5 shows a flowchart of a method P300 for autonomous response of a group chat robot. As mentioned above, the client 300 can execute the group chat robot autonomous response method P300 provided in this specification. Specifically, at least one processor in the target client 301 can read the instruction set stored in its local storage medium and/or database 150, and then execute the group chat robot autonomously provided in this specification according to the provisions of the instruction set. Method of response P300. The method P300 may include execution by at least one processor of the target client 301: S310: Receive the input sentence and send it to the server 200.
所述输入语句是目标用户111在即时通讯群界面输入的。The input sentence is input by the target user 111 on the interface of the instant messaging group.
S330:接收服务器200端发送的候选列表,并显示在所述即时通讯群界面上。S330: Receive the candidate list sent by the server 200 and display it on the interface of the instant messaging group.
目标客户端301在接收到所述候选列表后,可在所述即时通讯群界面上展示所述候选列表。所述候选列表可直接展示在所述即时通讯群界面上,也可以一种低侵入的方式展示在所述即时通讯群界面上。比如,在所述即时通讯群界面上展示列表显示请求,目标用户111可对所述列表显示请求作出选择操作。当目标用户111选择同意显示所述候选列表时,目标客户端301在所述即时通讯群界面显示所述候选列表。当目标用户111选择不同意显示所述候选列表时,目标客户端301不在所述即时通讯群界面上显示所述候选列表。After receiving the candidate list, the target client 301 can display the candidate list on the interface of the instant messaging group. The candidate list can be directly displayed on the instant messaging group interface, or can be displayed on the instant messaging group interface in a low-invasive manner. For example, a list display request is displayed on the instant messaging group interface, and the target user 111 can make a selection operation on the list display request. When the target user 111 chooses to agree to display the candidate list, the target client 301 displays the candidate list on the interface of the instant messaging group. When the target user 111 chooses not to agree to display the candidate list, the target client 301 does not display the candidate list on the instant messaging group interface.
步骤S330可包括:接收服务器200端发送的所述候选列表和所述第一图标数据,所述第一图标数据包括所述列表显示请求,所述第一图标数据在客户端300可显示为一个可操作的图标,所述第一图标数据被定义为:当所述第一图标数据被用户触发时,在触发所述第一图标数据的客户端显示所述候选列表;接收目标用户111对所述第一图标数据的触发操作;以及在所述即时通讯群显示所述候选列表。Step S330 may include: receiving the candidate list and the first icon data sent by the server 200, where the first icon data includes the list display request, and the first icon data may be displayed as one on the client 300 An operable icon, and the first icon data is defined as: when the first icon data is triggered by a user, the candidate list is displayed on the client that triggered the first icon data; The triggering operation of the first icon data; and displaying the candidate list in the instant messaging group.
图6示出了根据本说明书的实施例提供的一种所述即时通讯群界面的示意图600。如图6所示,所述第一图标数据可是一个图标620,显示在目标客户端301的即时通讯群界面上,勾选或者点击所述图标620代表同意显示,不勾选或者不点击所述图标代表不同意显示。比方说,服务器200在目标客户端301的即时通讯群界面上,在所述输入语句640的旁边显示一个红点表示这里有机器人推荐的候选列表。只有当目标用户111触摸或者点击这个红点的时候才显示答案内容。Fig. 6 shows a schematic diagram 600 of the instant messaging group interface provided according to an embodiment of the present specification. As shown in Figure 6, the first icon data may be an icon 620 displayed on the instant messaging group interface of the target client 301. Checking or clicking on the icon 620 means agreeing to display, and not checking or clicking on the icon. The icon represents disagreement. For example, the server 200 displays a red dot next to the input sentence 640 on the IM group interface of the target client 301 to indicate that there is a list of candidates recommended by the robot. The answer content is displayed only when the target user 111 touches or clicks on this red dot.
S350:接收目标用户111对所述候选列表的选择,并向服务器200发送。S350: Receive the target user 111's selection of the candidate list, and send it to the server 200.
所述候选列表可包括至少一个推荐知识点。目标用户111对所述候选列表的选择包括从所述至少一个推荐知识点中选择一个或多个与自己的提问最相关或者自己最关心或最想查看的推荐知识点。目标客户端301可将所述选择发送至服务器200。The candidate list may include at least one recommended knowledge point. The target user 111's selection of the candidate list includes selecting from the at least one recommended knowledge point, one or more recommended knowledge points that are most relevant to their own question or that they are most concerned about or most want to view. The target client 301 may send the selection to the server 200.
S370:向所述即时通讯群发送所述选择。S370: Send the selection to the instant messaging group.
目标客户端301也可将所述选择发送至所述即时通讯群中。所述选择可被标记为对所述即时通讯群中的所有用户可见或部分用户可见。目标用户111可从所述即时通讯群中对可见用户作出选择。The target client 301 may also send the selection to the instant messaging group. The selection may be marked as visible to all users or some users in the instant messaging group. The target user 111 can select visible users from the instant messaging group.
S380:接收服务器200发送的与所述选择匹配的目标答案。S380: Receive a target answer that matches the selection sent by the server 200.
目标客户端301在接收到所述目标答案后,可在所述即时通讯群界面上展示所述目标答案。所述目标答案可被标记为对所述即时通讯群中的所有用户可见或部分用户可见。目标用户111可从所述即时通讯群中对可见用户做出选择。所述目标答案可直接展示在所述即时通讯群界面上,也可以一种低侵入的方式展示在所述即时通讯群界面上。比如,在所述即时通讯群界面上展示答案显示请求,目标用户111可对所述答案显示请求作出选择操作。当目标用户111选择同意显示所述目标答案时,目标客户端301在所述即时通讯群界面显示所述目标答案。当目标用户111选择不同意显示所述目标答案时,目标客户端301不在所述即时通讯群界面上显示所述目标答案。After receiving the target answer, the target client 301 can display the target answer on the interface of the instant messaging group. The target answer may be marked as visible to all users or some users in the instant messaging group. The target user 111 can make a selection of visible users from the instant messaging group. The target answer can be directly displayed on the instant messaging group interface, or can be displayed on the instant messaging group interface in a low-invasive manner. For example, the answer display request is displayed on the instant messaging group interface, and the target user 111 can make a selection operation on the answer display request. When the target user 111 chooses to agree to display the target answer, the target client 301 displays the target answer on the instant messaging group interface. When the target user 111 chooses not to agree to display the target answer, the target client 301 does not display the target answer on the instant messaging group interface.
步骤S380可包括:接收服务器200端发送的所述目标答案和所述第二图标数据,所述第二图标数据包括所述答案显示请求,所述第二图标数据在客户端300可显示为一个可操作的图标,所述第二图标数据被定义为:当所述第二图标数据被用户触发时,在触发所述第二图标数据的客户端显示所述目标答案;接收目标用户111对所述第二图标数据的触发操作;以及在所述即时通讯群显示所述目标答案。Step S380 may include: receiving the target answer and the second icon data sent by the server 200, where the second icon data includes the answer display request, and the second icon data may be displayed as one on the client 300 An operable icon, and the second icon data is defined as: when the second icon data is triggered by a user, the target answer is displayed on the client that triggered the second icon data; The triggering operation of the second icon data; and displaying the target answer in the instant messaging group.
综上所述,本说明书提供的群聊机器人自主应答的方法P200、方法P300和系统100,服务器200在接收到所述即时通讯群中的目标用户111发送的输入语句后,基于输入语句和预设的所述知识库生成一个与输入语句相关的候选列表,并将所述候选列表发送给目标用户111对应的目标客户端301或包括目标客户端301在内的第一组客户端310,以降低对其他用户的影响;在目标用户111或者第一组客户端310中的管理客户端对候选列表做出选择后,再将与选择匹配的目标答案发送给第二组客户端320。所述方法P200、方法P300和系统100不仅可主动对用户提出的问题进行回答,同时又不会对群聊中的其他用户造成干扰,在提升工作效率的同时,又可提升用户体验。In summary, the group chat robot autonomous response method P200, method P300, and system 100 provided in this specification. After the server 200 receives the input sentence sent by the target user 111 in the instant messaging group, it is based on the input sentence and the prediction. It is assumed that the knowledge base generates a candidate list related to the input sentence, and sends the candidate list to the target client 301 corresponding to the target user 111 or the first group of clients 310 including the target client 301 to Reduce the impact on other users; after the target user 111 or the management client in the first group of clients 310 makes a selection on the candidate list, the target answer that matches the selection is sent to the second group of clients 320. The method P200, the method P300, and the system 100 can not only actively answer the questions raised by the user, but also will not cause interference to other users in the group chat. While improving work efficiency, it can also improve user experience.
上述对本说明书特定实施例进行了描述。其他实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可按照不同于实施例中的顺序来执行并且仍然可实现期望的结果。另外,在附图中描绘的过程不一定要求示出特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可的或者是可能有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require a specific order or sequential order to be shown in order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
综上所述,在阅读本详细公开内容之后,本领域技术人员可明白,前述详细公开内容可仅以示例的方式呈现,并且可不是限制性的。尽管这里没有明确说明,本领域技术人员可理解本说明书需求囊括对实施例的各种合理改变,改进和修改。这些改变,改进和修改旨在由本说明书提出,并且在本说明书的示例性实施例的精神和范围内。In summary, after reading this detailed disclosure, those skilled in the art can understand that the foregoing detailed disclosure may be presented by way of example only, and is not restrictive. Although there is no clear description here, those skilled in the art can understand that the requirements of this specification include various reasonable changes, improvements and modifications to the embodiments. These changes, improvements and modifications are intended to be proposed by this specification and are within the spirit and scope of the exemplary embodiments of this specification.
本说明书中的某些术语已被用于描述本说明书的实施例。例如,“一个实施例”,“实施例”或“一些实施例”意味着结合该实施例描述的特定特征,结构或特性可包括在本说明书的至少一个实施例中。因此,可强调并且应当理解,在本说明书的各个部分中对“实施例”或“一个实施例”或“替代实施例”的两个或更多个引用不一定都指代相同的实施例。此外,特定特征,结构或特性可在本说明书的一个或多个实施例中适当地组合。Certain terms in this specification have been used to describe the embodiments of this specification. For example, "one embodiment", "an embodiment" or "some embodiments" means that a specific feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment in this specification. Therefore, it can be emphasized and should be understood that two or more references to "an embodiment" or "one embodiment" or "alternative embodiment" in various parts of this specification do not necessarily all refer to the same embodiment. In addition, specific features, structures, or characteristics can be appropriately combined in one or more embodiments of this specification.
应当理解,在本说明书的实施例的前述描述中,为了帮助理解一个特征,出于简化本说明书的目的,本说明书将各种特征组合在单个实施例、附图或其描述中。然而,这并不是说这些特征的组合是必须的,本领域技术人员在阅读本说明书的时候完全有可能将其中一部分特征提取出来作为单独的实施例来理解。也就是说,本说明书中的实施例也可理解为多个次级实施例的整合。而每个次级实施例的内容在于少于单个前述公开实施例的所有特征的时候也是成立的。It should be understood that in the foregoing description of the embodiments of this specification, in order to help understand one feature, for the purpose of simplifying this specification, this specification combines various features into a single embodiment, drawings, or descriptions thereof. However, this does not mean that the combination of these features is necessary. It is entirely possible for those skilled in the art to extract some of the features as a separate embodiment to understand when reading this specification. In other words, the embodiments in this specification can also be understood as an integration of multiple sub-embodiments. It is also true when the content of each sub-embodiment is less than all the features of a single aforementioned disclosed embodiment.
本文引用的每个专利,专利申请,专利申请的出版物和其他材料,例如文章,书籍,说明书,出版物,文件,物品等,可通过引用结合于此。用于所有目的的全部内容,除了与其相关的任何起诉文件历史,可能与本文件不一致或相冲突的任何相同的,或者任何可能对权利要求的最宽范围具有限制性影响的任何相同的起诉文件历史。现在或以后与本文件相关联。举例来说,如果在与任何所包含的材料相关联的术语的描述、定义或使用与本文档相关的术语、描述、定义或之间存在任何不一致或冲突时,使用本文件中的术语为准。Each patent, patent application, patent application publication and other materials cited herein, such as articles, books, specifications, publications, documents, articles, etc., may be incorporated herein by reference. The entire content used for all purposes, except for any related file history of the prosecution, may be inconsistent or conflict with this document, or any identical prosecution file that may have restrictive effects on the broadest scope of the claims. history. Associate with this document now or in the future. For example, if there is any inconsistency or conflict between the description, definition, or use of terms related to any contained materials, the terms in this document shall prevail. .
最后,应理解,本文公开的申请的实施方案是对本说明书的实施方案的原理的说明。其他修改后的实施例也在本说明书的范围内。因此,本说明书披露的实施例仅仅作为示例而非限制。本领域技术人员可根据本说明书中的实施例采取替代配置来实现本说明书中的申请。因此,本说明书的实施例不限于申请中被精确地描述过的实施例。Finally, it should be understood that the embodiment of the application disclosed herein is an explanation of the principle of the embodiment of this specification. Other modified embodiments are also within the scope of this specification. Therefore, the embodiments disclosed in this specification are merely examples rather than limitations. Those skilled in the art can adopt alternative configurations according to the embodiments in this specification to implement the application in this specification. Therefore, the embodiments of this specification are not limited to the embodiments precisely described in the application.

Claims (13)

  1. 一种群聊机器人自主应答的方法,包括:A method for group chat robots to respond autonomously, including:
    接收输入语句,所述输入语句是目标客户端在即时通讯群界面上输入的;Receiving an input sentence, the input sentence being input by the target client on the instant messaging group interface;
    基于所述输入语句和预设的知识库生成候选列表,所述候选列表包括与所述输入语句相关的至少一个推荐知识点;Generating a candidate list based on the input sentence and a preset knowledge base, the candidate list including at least one recommended knowledge point related to the input sentence;
    向所述即时通讯群发送所述候选列表,所述候选列表被标记为只对所述即时通讯群中的第一组客户端可见,所述第一组客户端为包括所述目标客户端在内的部分客户端;The candidate list is sent to the instant messaging group, and the candidate list is marked as visible only to the first group of clients in the instant messaging group, and the first group of clients includes the target client in Some clients within;
    接收所述第一组客户端中的管理客户端对所述候选列表的选择;以及Receiving the selection of the candidate list by the management client in the first group of clients; and
    向所述即时通讯群发送与所述选择匹配的目标答案,其中,所述目标答案被标记为对所述即时通讯群中的第二组客户端可见,所述第二组客户端包括所述即时通讯群中的至少部分客户端。Send a target answer matching the selection to the instant messaging group, where the target answer is marked as visible to a second group of clients in the instant messaging group, and the second group of clients includes the At least some clients in the instant messaging group.
  2. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述向所述即时通讯群发送所述候选列表包括:8. The method for autonomous response of group chat robots according to claim 1, wherein said sending said candidate list to said instant messaging group comprises:
    向所述即时通讯群发送第一图标数据,所述第一图标数据被标记为只对所述第一组客户端可见,所述第一图标数据包括列表显示请求;Sending first icon data to the instant messaging group, where the first icon data is marked as visible only to the first group of clients, and the first icon data includes a list display request;
    接收所述第一组客户端触发所述列表显示请求的信号;Receiving a signal for triggering the list display request by the first group of clients;
    向所述即时通讯群发送所述候选列表,所述候选列表被标记为对触发所述列表显示请求的客户端可见。The candidate list is sent to the instant messaging group, and the candidate list is marked as visible to the client that triggers the list display request.
  3. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述向所述即时通讯群发送所述候选列表包括:8. The method for autonomous response of group chat robots according to claim 1, wherein said sending said candidate list to said instant messaging group comprises:
    向所述即时通讯群发送所述候选列表和第一图标数据,Sending the candidate list and the first icon data to the instant messaging group,
    其中,所述第一图标数据被标记为只对所述第一组客户端可见,所述第一图标数据包括列表显示请求,当所述第一图标数据被客户端触发时,在触发所述第一图标数据的客户端显示所述候选列表。Wherein, the first icon data is marked as visible only to the first group of clients, the first icon data includes a list display request, and when the first icon data is triggered by the client, the The client of the first icon data displays the candidate list.
  4. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述向所述即时通讯群发送与所述选择匹配的目标答案,包括:3. The method for autonomous answering of group chat robots according to claim 1, wherein said sending a target answer matching said selection to said instant messaging group comprises:
    向所述即时通讯群发送所述目标答案和第二图标数据,Sending the target answer and second icon data to the instant messaging group,
    其中,所述第二图标数据被标记为对所述第二组客户端可见,所述第二图标数据包括答案显示请求,当所述第二图标数据被客户端触发时,在触发所述第二图标数据的客户端显示所述目标答案。Wherein, the second icon data is marked as visible to the second group of clients, the second icon data includes an answer display request, and when the second icon data is triggered by the client, the first icon data is triggered 2. The client of the icon data displays the target answer.
  5. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述基于所述输入语句和预设的知识库生成候选列表,包括:The method for autonomous response of group chat robots according to claim 1, wherein said generating a candidate list based on said input sentence and a preset knowledge base comprises:
    识别所述输入语句是否包括同预设事务相关的目标提问,所述预设事务为针对所述即时通讯群定制的;Identifying whether the input sentence includes a target question related to a preset transaction, the preset transaction being customized for the instant messaging group;
    确定所述输入语句包括所述目标提问;以及Determining that the input sentence includes the target question; and
    基于所述输入语句和所述预设的知识库,生成所述候选列表。Based on the input sentence and the preset knowledge base, the candidate list is generated.
  6. 如权利要求5所述的群聊机器人自主应答的方法,其中,所述识别所述输入语句是否包括同预设事务相关的目标提问,包括:The method for autonomous response of group chat robots according to claim 5, wherein said identifying whether said input sentence includes a target question related to a preset transaction comprises:
    将所述输入语句与预设的多个问题模板进行匹配,以识别所述输入语句是否为问句;以及Matching the input sentence with a plurality of preset question templates to identify whether the input sentence is a question sentence; and
    当所述输入语句是问句时,对所述输入语句进行分类,识别所述输入语句是否包括同所述预设事务相关的目标提问。When the input sentence is a question sentence, classify the input sentence and identify whether the input sentence includes a target question related to the preset transaction.
  7. 如权利要求1所述的群聊机器人自主应答的方法,还包括:The method for autonomous response of group chat robots according to claim 1, further comprising:
    向所述即时通讯群发送答案评价请求,所述答案评价请求被标记为只对所述目标客户端可见;以及Sending an answer evaluation request to the instant messaging group, the answer evaluation request being marked as visible only to the target client; and
    接收所述目标客户端的答案评价。Receive the answer evaluation of the target client.
  8. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述管理客户端包括所述目标客户端。The method for autonomous response of group chat robots according to claim 1, wherein the management client includes the target client.
  9. 如权利要求1所述的群聊机器人自主应答的方法,其中,所述第二组客户端包括:所述管理客户端从所述即时通讯群中选择的客户端或者所述即时通讯群中的全部客户端。The method for autonomous response of a group chat robot according to claim 1, wherein the second group of clients comprises: a client selected by the management client from the instant messaging group or a client in the instant messaging group All clients.
  10. 一种群聊机器人自主应答的系统,包括:A system for autonomous response of group chat robots, including:
    至少一个存储介质,包括至少一个指令集,用于群聊机器人自主应答;以及At least one storage medium, including at least one instruction set, for autonomous response of group chat robots; and
    至少一个处理器,同所述至少一个存储介质通讯连接,At least one processor, in communication connection with the at least one storage medium,
    其中,当所述系统运行时,所述至少一个处理器读取所述至少一个指令集,并且根据所述至少一个指令集的指示执行权利要求1-9中任一项所述的群聊机器人自主应答的方法。Wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes the group chat robot according to any one of claims 1-9 according to the instructions of the at least one instruction set The method of autonomous response.
  11. 一种群聊机器人自主应答的方法,包括:A method for group chat robots to respond autonomously, including:
    接收输入语句,并发送给服务器端,所述输入语句是目标用户在即时通讯群界面输入的;Receiving an input sentence and sending it to the server, the input sentence being input by the target user on the interface of the instant messaging group;
    接收所述服务器端发送的候选列表,并显示在所述即时通讯群界面上,所述候选列表是基于所述输入语句和所述预设的知识库生成的,所述候选列表包括与所述输入语句相关的至少一个推荐知识点;The candidate list sent by the server is received and displayed on the instant messaging group interface. The candidate list is generated based on the input sentence and the preset knowledge base, and the candidate list includes At least one recommended knowledge point related to the input sentence;
    接收所述目标用户对所述候选列表的选择,并向所述服务器端发送;Receiving the target user's selection of the candidate list, and sending it to the server;
    向所述即时通讯群发送所述选择;以及Sending the selection to the instant messaging group; and
    接收所述服务器端发送的与所述选择匹配的目标答案。Receiving a target answer that matches the choice sent by the server.
  12. 如权利要求11所述的群聊机器人自主应答的方法,其中,所述接收所述服务器端发送的候选列表,包括:The method for group chat robot autonomous response according to claim 11, wherein said receiving the candidate list sent by the server side comprises:
    接收所述服务器发送的所述候选列表和第一图标数据,其中,所述第一图标数据包括列表显示请求,当所述第一图标数据被客户端触发时,在触发所述第一图标数据的客户端显示所述候选列表;Receive the candidate list and the first icon data sent by the server, where the first icon data includes a list display request, and when the first icon data is triggered by the client, the first icon data is triggered The client terminal displays the candidate list;
    接收所述目标用户对所述第一图标数据的触发操作;以及Receiving a trigger operation of the target user on the first icon data; and
    在所述即时通讯群显示所述候选列表。The candidate list is displayed in the instant messaging group.
  13. 一种群聊机器人自主应答的系统,包括:A system for autonomous response of group chat robots, including:
    至少一个存储介质,包括至少一个指令集,用于群聊机器人自主应答;以及At least one storage medium, including at least one instruction set, for autonomous response of group chat robots; and
    至少一个处理器,同所述至少一个存储介质通讯连接,At least one processor, in communication connection with the at least one storage medium,
    其中,当所述系统运行时,所述至少一个处理器读取所述至少一个指令集,并且根据所述至少一个指令集的指示执行权利要求11-12中任一项所述的群聊机器人自主应答的方法。Wherein, when the system is running, the at least one processor reads the at least one instruction set, and executes the group chat robot according to any one of claims 11-12 according to the instructions of the at least one instruction set The method of autonomous response.
PCT/CN2021/096153 2020-05-27 2021-05-26 Group chat robot autonomous response method and system WO2021239002A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010461146.1 2020-05-27
CN202010461146.1A CN111368059B (en) 2020-05-27 2020-05-27 Method and system for autonomous response of group chat robot

Publications (1)

Publication Number Publication Date
WO2021239002A1 true WO2021239002A1 (en) 2021-12-02

Family

ID=71207493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/096153 WO2021239002A1 (en) 2020-05-27 2021-05-26 Group chat robot autonomous response method and system

Country Status (2)

Country Link
CN (2) CN112052323A (en)
WO (1) WO2021239002A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052323A (en) * 2020-05-27 2020-12-08 支付宝(杭州)信息技术有限公司 Method and system for autonomous response of group chat robot
CN115242742B (en) * 2020-09-29 2023-07-14 支付宝(杭州)信息技术有限公司 Service control method, device and system
CN112685552A (en) * 2021-02-26 2021-04-20 深圳追一科技有限公司 Information pushing method, pushing robot, computer device and storage medium
CN114114983A (en) * 2021-10-18 2022-03-01 上海马帮科技有限公司 E-commerce operation control method, system, terminal device and storage medium
CN115277613A (en) * 2022-07-01 2022-11-01 浪潮通信信息系统有限公司 Robot chat system based on business

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150278252A1 (en) * 2014-03-25 2015-10-01 International Business Machines Corporation Images for a question answering system
CN109714243A (en) * 2017-10-25 2019-05-03 中兴通讯股份有限公司 A kind of group chat exchange method and device
CN110765247A (en) * 2019-09-30 2020-02-07 支付宝(杭州)信息技术有限公司 Input prompting method and device for question-answering robot
CN110995457A (en) * 2019-12-09 2020-04-10 烽火通信科技股份有限公司 Method and system for specifying user visibility in mass-sending message
CN111368059A (en) * 2020-05-27 2020-07-03 支付宝(杭州)信息技术有限公司 Method and system for autonomous response of group chat robot

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106034068A (en) * 2015-03-20 2016-10-19 阿里巴巴集团控股有限公司 Method and device for private chat in group chat, client-side, server and system
CN106357416B (en) * 2016-11-30 2019-08-02 宇龙计算机通信科技(深圳)有限公司 One population information recommendation method, device and terminal
KR101944353B1 (en) * 2017-12-20 2019-04-17 주식회사 카카오 Method and apparatus for providing chatbot builder user interface
US10942955B2 (en) * 2017-12-21 2021-03-09 Shanghai Xiaoi Robot Technology Co., Ltd. Questioning and answering method, method for generating questioning and answering system, and method for modifying questioning and answering system
CN109407925A (en) * 2018-10-16 2019-03-01 小雅智能平台(深圳)有限公司 A kind of exchange method based on chat robots, device and relevant device
CN111159363A (en) * 2018-11-06 2020-05-15 航天信息股份有限公司 Knowledge base-based question answer determination method and device
CN110647266A (en) * 2019-08-23 2020-01-03 维沃移动通信有限公司 Information display method and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150278252A1 (en) * 2014-03-25 2015-10-01 International Business Machines Corporation Images for a question answering system
CN109714243A (en) * 2017-10-25 2019-05-03 中兴通讯股份有限公司 A kind of group chat exchange method and device
CN110765247A (en) * 2019-09-30 2020-02-07 支付宝(杭州)信息技术有限公司 Input prompting method and device for question-answering robot
CN110995457A (en) * 2019-12-09 2020-04-10 烽火通信科技股份有限公司 Method and system for specifying user visibility in mass-sending message
CN111368059A (en) * 2020-05-27 2020-07-03 支付宝(杭州)信息技术有限公司 Method and system for autonomous response of group chat robot

Also Published As

Publication number Publication date
CN111368059A (en) 2020-07-03
CN111368059B (en) 2020-09-15
CN112052323A (en) 2020-12-08

Similar Documents

Publication Publication Date Title
WO2021239002A1 (en) Group chat robot autonomous response method and system
US11544305B2 (en) Intent identification for agent matching by assistant systems
US20220027377A1 (en) Automatically augmenting message exchange threads based on tone of message
US20190258722A1 (en) Personalized deep models for smart suggestions ranking
KR20190054174A (en) Composite voice selection for computing agents
US11928430B2 (en) Detecting unrelated utterances in a chatbot system
US11861315B2 (en) Continuous learning for natural-language understanding models for assistant systems
WO2021063089A1 (en) Rule matching method, rule matching apparatus, storage medium and electronic device
EP3557504A1 (en) Intent identification for agent matching by assistant systems
US10762438B1 (en) Extracting questions and answers
US10459997B1 (en) Ranking search results based on members? posting activity and content
CN111046151B (en) Message processing method and device
US11966570B2 (en) Automated processing and dynamic filtering of content for display
US11860824B2 (en) Graphical user interface for display of real-time feedback data changes
CN114490986B (en) Computer-implemented data mining method, device, electronic equipment and storage medium
US20230351154A1 (en) Automated processing of feedback data to identify real-time changes
US20230079148A1 (en) Proactive contextual and personalized search query identification
CN117421398A (en) Man-machine interaction method, device, equipment and storage medium
TWM647836U (en) System for searching knowledge with linguistic model

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21811793

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21811793

Country of ref document: EP

Kind code of ref document: A1