[go: up one dir, main page]

CN115208846B - Session interaction method and system - Google Patents

Session interaction method and system Download PDF

Info

Publication number
CN115208846B
CN115208846B CN202210800197.1A CN202210800197A CN115208846B CN 115208846 B CN115208846 B CN 115208846B CN 202210800197 A CN202210800197 A CN 202210800197A CN 115208846 B CN115208846 B CN 115208846B
Authority
CN
China
Prior art keywords
message
historical
question
user
session
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210800197.1A
Other languages
Chinese (zh)
Other versions
CN115208846A (en
Inventor
李展鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan United Imaging Healthcare Co Ltd
Original Assignee
Wuhan United Imaging Healthcare Co Ltd
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 Wuhan United Imaging Healthcare Co Ltd filed Critical Wuhan United Imaging Healthcare Co Ltd
Priority to CN202210800197.1A priority Critical patent/CN115208846B/en
Publication of CN115208846A publication Critical patent/CN115208846A/en
Application granted granted Critical
Publication of CN115208846B publication Critical patent/CN115208846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification provides a session interaction method and a session interaction system, wherein the method comprises the steps of responding to a session request input by a user through an interaction terminal, triggering the interaction terminal to present a session interface, and determining the display content of the session interface based on a message body, wherein the message body comprises a history message part, a system message part and a current session message part; acquiring an interaction instruction input by a user through an interaction terminal; updating a message body in response to the interaction instruction; and triggering the interactive terminal to update the session interface based on the updated message body.

Description

一种会话交互方法和系统A conversational interaction method and system

技术领域technical field

本说明书涉及人机交互技术领域,特别涉及一种会话交互方法和系统。This specification relates to the technical field of human-computer interaction, and in particular to a conversational interaction method and system.

背景技术Background technique

为了满足用户需求,越来越多的平台会向用户提供智能问答服务。通过智能问答服务,用户可以在手机、电脑等终端与问答机器人进行会话,从而提出服务请求、疑问等。传统的问答平台通常将不同的信息,比如用户信息、系统信息、机器人回复信息等单个信息分别存储,导致数据存储结构复杂、数据管理效率低下。由于用户和问答机器人之间的会话交互决定了问答平台中存储的数据的结构,当会话交互出现较大变动时,将需要对数据结构进行调整。当数据结构复杂时,数据结构调整的过程也是异常困难,存在一些重复的工作。In order to meet user needs, more and more platforms will provide users with intelligent question-and-answer services. Through the intelligent question-and-answer service, users can have conversations with the question-and-answer robot on terminals such as mobile phones and computers, so as to raise service requests and questions. Traditional question-and-answer platforms usually store different information, such as user information, system information, and robot reply information, separately, resulting in complex data storage structures and low data management efficiency. Since the conversational interaction between the user and the Q&A robot determines the structure of the data stored in the Q&A platform, when there is a large change in the conversational interaction, the data structure will need to be adjusted. When the data structure is complex, the process of data structure adjustment is also extremely difficult, and there are some repetitive tasks.

因此,希望提供一种会话交互方法和系统,可以统一处理和管理会话交互的相关数据,提高数据的存储和管理效率。Therefore, it is desired to provide a session interaction method and system, which can uniformly process and manage session interaction related data, and improve data storage and management efficiency.

发明内容Contents of the invention

本说明书实施例之一提供一种会话交互方法。所述会话交互方法包括:响应于用户经由交互终端输入的会话请求,触发所述交互终端呈现会话界面,所述会话界面的显示内容基于消息体确定,其中,所述消息体包括历史消息部分、系统消息部分和当前会话消息部分;获取所述用户经由所述交互终端输入的交互指令;响应于所述交互指令,更新所述消息体;基于更新后的消息体,触发所述交互终端更新所述会话界面。One of the embodiments of this specification provides a session interaction method. The conversational interaction method includes: in response to a conversational request input by a user via an interactive terminal, triggering the interactive terminal to present a conversational interface, the display content of the conversational interface is determined based on a message body, wherein the message body includes a historical message part, A system message part and a current session message part; acquiring an interaction instruction input by the user via the interaction terminal; updating the message body in response to the interaction instruction; triggering the interaction terminal to update the message body based on the updated message body Describe the session interface.

本说明书实施例之一提供一种会话交互系统,所述会话交互系统包括:触发模块,用于响应于用户经由交互终端输入的会话请求,触发所述交互终端呈现会话界面,所述会话界面的显示内容基于消息体确定,其中,所述消息体包括历史消息部分和/或系统消息部分和/或当前会话消息部分;获取模块,用于获取所述用户经由所述交互终端输入的交互指令;更新模块,用于响应于所述交互指令,更新所述消息体;触发模块,用于基于更新后的消息体,触发所述交互终端更新所述会话界面。One of the embodiments of this specification provides a conversational interaction system, the conversational interaction system includes: a triggering module, configured to trigger the interactive terminal to present a conversational interface in response to a conversational request input by a user via an interactive terminal, and the conversational interface The display content is determined based on the message body, wherein the message body includes a historical message part and/or a system message part and/or a current session message part; an acquisition module, configured to acquire the interaction instruction input by the user via the interaction terminal; An update module, configured to update the message body in response to the interaction instruction; a trigger module, configured to trigger the interaction terminal to update the session interface based on the updated message body.

本说明书实施例之一提供一种计算机可读存储介质,所述存储介质存储计算机指令,当计算机读取存储介质中的计算机指令后,计算机执行会话交互方法。One of the embodiments of the present specification provides a computer-readable storage medium, the storage medium stores computer instructions, and after the computer reads the computer instructions in the storage medium, the computer executes the session interaction method.

在本说明书一些实施例中,可以利用消息体来存储用户与问答机器人的会话过程中所涉及的历史消息、系统消息、当前会话消息等。由于消息体中各类消息是基于预设的排列方式进行存储的,可以快速定位各类消息,并基于消息体确定会话界面的显示内容,无需从不同的来源获取不同类型的消息。并且,基于消息体可以统一处理和管理会话交互的相关数据,进而可以灵活调整数据结构,提高数据的存储和管理效率。而在传统的会话交互方法中,由于不同的消息对应不同的消息来源或类别,且用户提问和系统回复被单独存储,同时需要通过逻辑将有关联的消息关联起来。在会话过程中,需要去不同的来源检索不同的信息,同时需要进行逻辑判断才能找到有关联的数据。与传统的会话交互方法相比,基于消息体的会话交互方法具有更高的数据管理、存储效率,进而能够提供更好的会话服务。In some embodiments of the present specification, the message body may be used to store historical messages, system messages, current session messages, etc. involved in the conversation process between the user and the question-answering robot. Since various messages in the message body are stored based on a preset arrangement, various messages can be quickly located, and the display content of the conversation interface can be determined based on the message body, without obtaining different types of messages from different sources. Moreover, based on the message body, relevant data related to session interaction can be processed and managed in a unified manner, and then the data structure can be flexibly adjusted to improve the efficiency of data storage and management. In the traditional conversation interaction method, since different messages correspond to different message sources or categories, and user questions and system replies are stored separately, it is necessary to link related messages through logic. During the conversation, different information needs to be retrieved from different sources, and logical judgments are required to find related data. Compared with the traditional conversational interaction method, the message body-based conversational interaction method has higher data management and storage efficiency, and can provide better conversational services.

附图说明Description of drawings

本说明书将以示例性实施例的方式进一步说明,这些示例性实施例将通过附图进行详细描述。这些实施例并非限制性的,在这些实施例中,相同的编号表示相同的结构,其中:This specification will be further illustrated by way of exemplary embodiments, which will be described in detail with the accompanying drawings. These examples are non-limiting, and in these examples, the same number indicates the same structure, wherein:

图1是根据本说明书一些实施例所示的会话交互系统的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a conversational interaction system according to some embodiments of this specification;

图2是根据本说明书一些实施例所示的会话交互系统的示例性模块图;Fig. 2 is an exemplary module diagram of a conversational interaction system according to some embodiments of this specification;

图3是根据本说明书一些实施例所示的会话交互方法的示例性流程图;Fig. 3 is an exemplary flow chart of a session interaction method according to some embodiments of this specification;

图4是根据本说明书一些实施例所示的一种会话交互方法的示例性流程图;Fig. 4 is an exemplary flow chart of a session interaction method according to some embodiments of this specification;

图5是根据本说明书一些实施例所示的消息体的示例性示意图;Fig. 5 is an exemplary schematic diagram of a message body according to some embodiments of this specification;

图6是根据本说明书一些实施例所示的单个消息的数据体的示例性示意图;Fig. 6 is an exemplary schematic diagram of a data body of a single message according to some embodiments of the present specification;

图7A是根据本说明书一些实施例所示的第一种会话界面的示例性示意图;Fig. 7A is an exemplary schematic diagram of a first conversation interface according to some embodiments of this specification;

图7B是根据本说明书一些实施例所示的第二种会话界面的示例性示意图;Fig. 7B is an exemplary schematic diagram of a second conversation interface according to some embodiments of this specification;

图7C是根据本说明书一些实施例所示的第三种会话界面的示例性示意图;Fig. 7C is an exemplary schematic diagram of a third conversation interface shown according to some embodiments of this specification;

图7D是根据本说明书一些实施例所示的第四种会话界面的示例性示意图。Fig. 7D is an exemplary schematic diagram of a fourth conversation interface according to some embodiments of this specification.

具体实施方式Detailed ways

为了更清楚地说明本说明书实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本说明书的一些示例或实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图将本说明书应用于其它类似情景。除非从语言环境中显而易见或另做说明,图中相同标号代表相同结构或操作。In order to more clearly illustrate the technical solutions of the embodiments of the present specification, the following briefly introduces the drawings that need to be used in the description of the embodiments. Apparently, the accompanying drawings in the following description are only some examples or embodiments of this specification, and those skilled in the art can also apply this specification to other similar scenarios. Unless otherwise apparent from context or otherwise indicated, like reference numerals in the figures represent like structures or operations.

应当理解,本文使用的“系统”、“装置”、“单元”和/或“模块”是用于区分不同级别的不同组件、元件、部件、部分或装配的一种方法。然而,如果其他词语可实现相同的目的,则可通过其他表达来替换所述词语。It should be understood that "system", "device", "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts, parts or assemblies of different levels. However, the words may be replaced by other expressions if other words can achieve the same purpose.

如本说明书和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其它的步骤或元素。As indicated in the specification and claims, the terms "a", "an", "an" and/or "the" are not specific to the singular and may include the plural unless the context clearly indicates an exception. Generally speaking, the terms "comprising" and "comprising" only suggest the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list, and the method or device may also contain other steps or elements.

本说明书中使用了流程图用来说明根据本说明书的实施例的系统所执行的操作。应当理解的是,前面或后面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各个步骤。同时,也可以将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。The flowchart is used in this specification to illustrate the operations performed by the system according to the embodiment of this specification. It should be understood that the preceding or following operations are not necessarily performed in the exact order. Instead, various steps may be processed in reverse order or simultaneously. At the same time, other operations can be added to these procedures, or a certain step or steps can be removed from these procedures.

图1是根据本说明书一些实施例所示的会话交互系统的应用场景示意图。如图1所示,会话交互系统的应用场景100可以包括处理设备110、交互终端120、存储设备130等中的一种或多种。Fig. 1 is a schematic diagram of an application scenario of a conversation interaction system according to some embodiments of this specification. As shown in FIG. 1 , an application scenario 100 of a conversation interaction system may include one or more of a processing device 110 , an interaction terminal 120 , a storage device 130 and the like.

在一些实施例中,用户可以经由交互终端120和问答机器人进行交互,例如,提出会话请求、提出交互指令等。交互指令可以用于要求回复疑问、要求加载历史消息、要求提供某种服务(如在线问诊)等。问答机器人指利用人工智能、自然语言处理等技术,能与用户进行会话的计算机程序。在一些实施例中,问答机器人可以由处理设备110来执行或实现。In some embodiments, the user can interact with the question-answering robot via the interactive terminal 120, for example, submitting a session request, submitting an interaction instruction, and the like. The interactive instruction can be used to request a reply to a question, request to load historical messages, request to provide a certain service (such as online consultation), etc. A question-answering robot refers to a computer program that uses artificial intelligence, natural language processing and other technologies to conduct conversations with users. In some embodiments, the question answering bot may be executed or realized by the processing device 110 .

交互终端120可以指用户所使用的一个或多个终端,包括但不限于移动装置、平板计算机、膝上型计算机、台式计算机等其它具有输入和/或输出功能的设备中的一种或其任意组合。在一些实施例中,交互终端120可以包括其他智能终端,如可穿戴智能终端等。The interactive terminal 120 may refer to one or more terminals used by the user, including but not limited to one or any of other devices with input and/or output functions such as mobile devices, tablet computers, laptop computers, and desktop computers. combination. In some embodiments, the interactive terminal 120 may include other smart terminals, such as wearable smart terminals.

交互终端120可以包括会话界面121。会话界面121可以显示用户与问答机器人之间的交互记录等。在一些实施例中,用户可以经由交互终端输入的会话请求和/或交互指令。交互终端120可以将输入的会话请求和/或交互指令发送至处理设备110。处理设备110可以处理与所述会话请求和交互指令有关的数据,并基于处理结果触发交互终端120更新会话界面121。在一些实施例中,交互终端120上可以安装有用于会话的小程序、APP等。当用户打开所述小程序、APP等时,交互终端120可以呈现所述会话界面121。在一些实施例中,交互终端120可以通过网络120与处理设备110、存储设备130进行数据传输。在一些实施例中,处理设备110可以是交互终端120的一部分。The interactive terminal 120 may include a conversational interface 121 . The conversational interface 121 can display the interaction record between the user and the question-answering robot, and the like. In some embodiments, a user may input a session request and/or an interaction instruction via an interaction terminal. The interaction terminal 120 may send the input session request and/or interaction instruction to the processing device 110 . The processing device 110 may process data related to the session request and the interaction instruction, and trigger the interaction terminal 120 to update the session interface 121 based on the processing result. In some embodiments, the interactive terminal 120 may be installed with a small program, APP, etc. for conversation. When the user opens the applet, APP, etc., the interactive terminal 120 may present the conversation interface 121 . In some embodiments, the interactive terminal 120 may perform data transmission with the processing device 110 and the storage device 130 through the network 120 . In some embodiments, processing device 110 may be part of interactive terminal 120 .

在一些实施例中,使用交互终端120的可以是一个或多个进行咨询等操作的用户。不同的用户有各自唯一的身份识别号。用户可以包括多种类型的用户,例如,注册的用户、游客等。处理设备110可以根据不同用户的唯一的身份识别号确认关于该用户的类型。在一些实施例中,用户还可以使用交互终端120与人工客服进行会话。例如,当问答机器人无法回复用户时,可以由人工客服进行回复。又例如,当用户需要咨询人工客服时,可以由人工客服进行回复。上述示例仅用于说明交互终端120而非对其进行限制。In some embodiments, the user using the interactive terminal 120 may be one or more users performing operations such as consultation. Different users have their own unique identification numbers. Users may include various types of users, for example, registered users, tourists, and so on. The processing device 110 can confirm the type of the user according to the unique identification numbers of different users. In some embodiments, the user can also use the interactive terminal 120 to have a conversation with a human customer service. For example, when the Q&A robot cannot reply to the user, a human customer service can reply. For another example, when a user needs to consult a human customer service, the human customer service can reply. The above examples are only used to illustrate the interactive terminal 120 and not to limit it.

存储设备130可以用于存储与会话交互系统的应用场景100相关的数据和/或指令。在一些实施例中,存储设备130可以存储从处理设备110、交互终端120等处获得的数据和/或信息。例如,存储设备130可以存储消息体以及消息体的历史消息部分、系统消息部分和当前会话消息部分等。The storage device 130 may be used to store data and/or instructions related to the application scenario 100 of the conversational interaction system. In some embodiments, the storage device 130 may store data and/or information obtained from the processing device 110, the interactive terminal 120, and the like. For example, the storage device 130 may store the message body and the message body's historical message part, system message part, current session message part, and the like.

在一些实施例中,存储设备130可以包括一个或多个存储组件,例如,一个或多个存储组件可以分别对应一个数据库,例如,历史消息数据库131、问答数据库132等。或者,历史消息数据库131和问题数据库132可以对应同一个存储组件,例如,存储于同一个存储器的不同分区上。在一些实施例中,存储设备130可以设置在处理设备110中。在一些实施例中,存储设备130可包括随机存取存储器(RAM)、只读存储器(ROM)、大容量存储器、可移动存储器、易失性读写存储器等或其任意组合。示例性的,大容量储存器可以包括磁盘、光盘、固态磁盘等。在一些实施例中,存储设备130可在云平台上实现。In some embodiments, the storage device 130 may include one or more storage components. For example, one or more storage components may respectively correspond to a database, for example, a historical message database 131, a question-and-answer database 132, and the like. Alternatively, the historical message database 131 and the problem database 132 may correspond to the same storage component, for example, be stored in different partitions of the same memory. In some embodiments, the storage device 130 may be disposed in the processing device 110 . In some embodiments, the storage device 130 may include random access memory (RAM), read only memory (ROM), mass storage, removable memory, volatile read-write memory, etc., or any combination thereof. Exemplarily, mass storage may include magnetic disks, optical disks, solid-state disks, and the like. In some embodiments, storage device 130 may be implemented on a cloud platform.

历史消息数据库131可以用于存储会话交互系统中的历史消息。例如,历史消息可以包括不同用户发出的历史提问以及问答机器人针对这些历史提问的历史回复。在一些实施例中,历史消息数据库131中的历史消息可以以一问一答的形式进行存储。例如,在历史消息数据库131中,用户的一个历史提问和其对应的问答机器人的一个历史回复会被关联起来作为一条消息记录,被一并存储起来。问答机器人的一个历史回复可能包括针对该历史提问的一条或多条信息。在一些实施例中,历史消息数据库131中仅会存储历史有效回复,而无效的历史回复则不会存储于历史消息数据库131中。关于有效回复和无效回复的更多内容可以参见图4中的相关描述。在一些实施例中,历史消息数据库131中可以存储每一个历史提问和该历史提问的历史回复。无论该历史回复是否有效,历史消息数据库131中都会对该历史回复进行存储。在一些实施例中,历史消息数据库131中的历史消息还可以通过其他方式进行存储。The historical message database 131 can be used to store historical messages in the session interaction system. For example, historical messages may include historical questions sent by different users and historical replies to these historical questions by the question answering robot. In some embodiments, the historical messages in the historical message database 131 may be stored in a question-and-answer format. For example, in the historical message database 131, a historical question of a user and a historical reply of its corresponding question answering robot will be associated as a message record and stored together. A history reply of the question answering robot may include one or more pieces of information regarding the history question. In some embodiments, only historical valid replies are stored in the historical message database 131 , while invalid historical replies are not stored in the historical message database 131 . For more information about valid replies and invalid replies, please refer to the related description in FIG. 4 . In some embodiments, the historical message database 131 may store each historical question and the historical reply to the historical question. Regardless of whether the historical reply is valid or not, the historical reply will be stored in the historical message database 131 . In some embodiments, the historical messages in the historical message database 131 may also be stored in other ways.

问答数据库132可以用于存储问题和对应的解答。当用户提问时,处理设备110可以通过问答数据库132查询是否有对应的解答,进而对用户的提问进行回复。在一些实施例中,问答数据库132中的问题和对应的解答可以以一问一答的形式进行存储。在一些实施例中,处理设备110可以对回答数据库132进行更新等。例如,根据问答平台的管理者的指令,处理设备110可以将新的问题和其对应的解答配对后添加到问答数据库132中。又例如,根据问答平台的管理者的指令,处理设备110可以根据实际需求对问答数据库中的问题和对应的解答进行更新(例如,删除或更改某些解答)。Question and answer database 132 may be used to store questions and corresponding answers. When the user asks a question, the processing device 110 may query whether there is a corresponding answer through the question-and-answer database 132, and then reply to the user's question. In some embodiments, the questions and corresponding answers in the question-and-answer database 132 may be stored in a question-and-answer format. In some embodiments, the processing device 110 may make updates to the answers database 132, or the like. For example, according to the instruction of the manager of the question answering platform, the processing device 110 may add the new question and its corresponding answer to the question answering database 132 after being paired. For another example, according to the instruction of the manager of the question-and-answer platform, the processing device 110 may update the questions and corresponding answers in the question-and-answer database (for example, delete or change some answers) according to actual needs.

在一些实施例中,处理设备110可以处理与会话交互系统的应用场景100有关的信息和/或数据,以执行本说明书中描述的一个或以上功能。例如,处理设备110可以处理用户经由交互终端120输入的会话请求、交互指令(如提问、加载历史消息)等,并触发交互终端120呈现相应的会话界面。又例如,处理设备110可以基于用户的会话记录更新存储设备130中的历史消息数据库131。In some embodiments, the processing device 110 may process information and/or data related to the application scenario 100 of the conversational interaction system to perform one or more functions described in this specification. For example, the processing device 110 may process a session request, an interaction instruction (such as asking a question, loading a history message), etc. input by a user via the interaction terminal 120, and trigger the interaction terminal 120 to present a corresponding session interface. For another example, the processing device 110 may update the historical message database 131 in the storage device 130 based on the user's session record.

在一些实施例中,处理设备110可以利用消息体来驱动用户和交互终端120(或问答机器人)之间的交互。消息体可以指多种不同消息的集合,其中不同的消息以特定的形式被存储。消息体中的内容可以用于确定交互终端120的会话界面121的显示内容。例如,在会话开始时,消息体中的内容为空。随着会话的进行,历史消息、系统消息、会话消息等中的一种或多种会被更新至消息体中。同时,会话界面121的显示内容会基于消息体不断被更新。In some embodiments, the processing device 110 may use the message body to drive the interaction between the user and the interactive terminal 120 (or the question-and-answer robot). A message body may refer to a collection of various messages, where different messages are stored in a specific form. The content in the message body can be used to determine the display content of the conversation interface 121 of the interactive terminal 120 . For example, at the beginning of a session, the content in the message body is empty. As the session progresses, one or more of historical messages, system messages, session messages, etc. will be updated in the message body. At the same time, the display content of the conversation interface 121 will be constantly updated based on the message body.

仅作为示例,如图5所示,消息体(msgBody)500包括历史消息部分(msgHistory)510、系统消息部分(msgSystem)520和当前会话消息部分(msgCurrent)530等。消息体的不同消息部分显示不同的内容。As an example only, as shown in FIG. 5 , the message body (msgBody) 500 includes a history message part (msgHistory) 510, a system message part (msgSystem) 520, a current session message part (msgCurrent) 530 and so on. Different message parts of the message body display different content.

历史消息部分510主要用于存储用户与问答机器人之间的历史消息。在一些实施例中,历史消息部分510可以存储特定数量的历史消息,例如10条、20条最近的历史消息。在一些实施例中,如上文所述,用户和问答机器人的历史消息可以以消息记录的形式存储于历史消息数据库131中,每条消息记录包括用户的历史提问和问答机器人的历史回复(或有效历史回复)。历史消息部分510可以用于存储特定数量的消息记录(即特定数量的历史提问和历史回复对)。例如,历史消息部分510可以用于存储10对历史提问和历史回复。The history message part 510 is mainly used to store the history messages between the user and the Q&A robot. In some embodiments, the historical message section 510 may store a certain number of historical messages, for example, 10, 20 recent historical messages. In some embodiments, as mentioned above, the historical messages of the user and the Q&A robot can be stored in the historical message database 131 in the form of message records, and each message record includes the user's historical questions and the historical replies (or valid messages) of the Q&A robot. historical responses). The historical message section 510 can be used to store a specific number of message records (ie, a specific number of historical question and historical reply pairs). For example, historical message section 510 may be used to store 10 pairs of historical questions and historical replies.

系统消息部分520可以用于存储由问答机器人发送的系统消息,例如,“Hi,我是智能客服小U。请问有什么可以帮助到您?”、“小U猜您想问:1.胶片打印2.胶片打印色差……”等。在一些实施例中,系统消息部分520只会存储当前会话中问答机器人发送的系统消息。The system message part 520 can be used to store system messages sent by the question answering robot, for example, "Hi, I am Xiao U, an intelligent customer service. May I help you?", "Little U guesses what you want to ask: 1. Film printing 2. Film printing color difference..." etc. In some embodiments, the system message section 520 will only store system messages sent by the Q&A robot in the current session.

当前会话消息部分530可以用于存储用户与问答机器人之间当前会话的消息。在一些实施例中,根据用户与问答机器人之间的交互,当前会话消息部分的内容可以被实时更新。The current session message section 530 may be used to store messages of the current session between the user and the question answering robot. In some embodiments, according to the interaction between the user and the question-answering robot, the content of the message part of the current conversation can be updated in real time.

在一些实施例中,历史消息部分510、系统消息部分520和当前会话消息部分530可以基于预设顺序排列。预设顺序可以指预先设置的消息体500中的不同的消息部分的先后顺序。例如,如图5所示,消息体500中历史消息部分510、系统消息部分520和当前会话消息部分530依次排列。系统消息部分520位于消息体500的中间位置,可以将历史消息部分510和当前会话消息部分530隔开。通过将历史消息部分510、系统消息部分520和当前会话消息部分530按照预设顺序排列,可以帮助快速进行消息区分和定位,提高数据管理和控制效率。例如,基于系统消息部分520可以快速定位存储于系统消息之上的历史消息和存储于系统消息之下的当前会话消息。In some embodiments, the history message section 510, the system message section 520, and the current session message section 530 may be arranged based on a preset order. The preset sequence may refer to a preset sequence of different message parts in the message body 500 . For example, as shown in FIG. 5 , the history message part 510 , the system message part 520 and the current session message part 530 in the message body 500 are arranged in sequence. The system message part 520 is located in the middle of the message body 500 and can separate the history message part 510 from the current session message part 530 . By arranging the historical message part 510, the system message part 520 and the current session message part 530 in a preset order, it can help to distinguish and locate messages quickly, and improve data management and control efficiency. For example, historical messages stored above system messages and current session messages stored below system messages can be quickly located based on the system messages section 520 .

需要说明的是,图5中所示的预设顺序只是出于示例目的而提供的,历史消息部分510、系统消息部分520和当前会话消息部分530可以按照其他顺序进行排列。例如,预设顺序可以是系统消息部分520、历史消息部分510和当前会话消息部分530依次排列。It should be noted that the preset order shown in FIG. 5 is provided for example purposes only, and the history message part 510 , the system message part 520 and the current session message part 530 may be arranged in other orders. For example, the preset order may be that the system message part 520, the history message part 510 and the current session message part 530 are arranged in sequence.

在一些实施例中,消息体500中的单个消息有关的数据可以基于数据体进行存储。In some embodiments, data related to a single message in message body 500 may be stored on a data body basis.

仅作为示例,图6示出了单个消息的数据体的示例性示意图。如图6所示,数据体(msgSingle)600可以包括userType 610、uid 620、type 630、content 640、time 650、netError/loading 660等。As an example only, FIG. 6 shows an exemplary schematic diagram of a data body of a single message. As shown in FIG. 6 , the data body (msgSingle) 600 may include userType 610, uid 620, type 630, content 640, time 650, netError/loading 660, and so on.

在一些实施例中,userType 610可以用于判断该数据体对应的是系统消息还是非系统消息。例如,userType610为“system”时,该数据体为系统消息。uid 620可以判断消息的发送者。例如,uid 620为“0”时,该数据体对应的是用户发送的消息;uid 620为“1”时,该数据体对应的是系统发送的消息。type 630可以判断消息类型,例如,文字消息、图片、评分、分享内容等中的至少一种。In some embodiments, userType 610 may be used to determine whether the data body corresponds to a system message or a non-system message. For example, when userType 610 is "system", the data body is a system message. The uid 620 can determine the sender of the message. For example, when uid 620 is "0", the data body corresponds to a message sent by the user; when uid 620 is "1", the data body corresponds to a message sent by the system. type 630 can determine the message type, for example, at least one of text messages, pictures, ratings, shared content, and the like.

content 640可以封装消息内容。content 640可以包括id、text、type、evaluate等。id为该数据体对应的消息的标识号,不同的数据体对应的标识号各不相同。text为该数据体对应的消息内容。type为该数据体的内容类别。evaluate可以用于判断数据体对应的消息是否为评价类消息。例如,当该数据体为评价类型的消息时,evaluate为“true”。当该数据体为非评价类型的消息时,evaluate为空。content 640 may encapsulate message content. content 640 may include id, text, type, evaluate, etc. The id is the identification number of the message corresponding to the data body, and the identification numbers corresponding to different data bodies are different. text is the message content corresponding to the data body. type is the content category of the data body. evaluate can be used to determine whether the message corresponding to the data body is an evaluation message. For example, when the data body is an evaluation type message, evaluate is "true". When the data body is a non-evaluation type message, evaluate is empty.

time 650可以记录该数据体对应的消息发送时间。netError/loading 660可以判断消息状态。消息状态可以包括消息网络状态和消息加载状态。消息网络状态可以说明该数据体对应的消息发送时的网络异常。消息加载状态可以说明该数据体对应的消息正处于加载中。在一些实施例中,单个数据体只会具有消息网络状态和消息加载状态中的一个状态。The time 650 can record the message sending time corresponding to the data body. netError/loading 660 can determine the status of the message. The message status may include message network status and message loading status. The message network status can indicate the network abnormality when the message corresponding to the data body is sent. The message loading status may indicate that the message corresponding to the data body is being loaded. In some embodiments, a single data body will only have one of the message network state and the message loading state.

在一些实施例中,单个数据体中存储的数据可以包括外状态数据和内状态数据。外状态数据可以用于确定数据体与其他数据体的关联。内状态数据可以表示该数据体对应的消息自身的内容。例如,数据体600中的content 640属于内状态数据,其他数据属于外状态数据。In some embodiments, data stored in a single data volume may include external state data and internal state data. External state data can be used to determine associations of data bodies with other data bodies. The internal state data may represent the content of the message itself corresponding to the data body. For example, content 640 in data body 600 belongs to internal state data, and other data belongs to external state data.

在一些实施例中,不同类型的消息(如,历史消息、系统消息和当前会话消息等)的数据体可以相同,也可以不同。例如,系统消息对应的消息体中可以省略netError/loading660这一部分。通过设置数据体,可以使消息有关的数据以更规范和统一的形式进行存储,有利于提高后续数据管理和处理的效率。In some embodiments, the data bodies of different types of messages (eg, historical messages, system messages, current session messages, etc.) may be the same or different. For example, the netError/loading660 part can be omitted from the message body corresponding to the system message. By setting the data body, the data related to the message can be stored in a more standardized and unified form, which is conducive to improving the efficiency of subsequent data management and processing.

在一些实施例中,处理设备110可以包括一个或以上处理引擎(例如,单芯片处理引擎或多芯片处理引擎)。仅作为示例,处理设备110可以包括中央处理单元(CPU)、专用集成电路(ASIC)、专用指令处理器(ASIP)、图形处理器(GPU)、物理处理器(PPU)、数字信号处理器(DSP)、现场可编程门阵列(FPGA)、可编辑逻辑电路(PLD)、控制器、微控制器单元、精简指令集电脑(RISC)、微处理器等或以上任意组合。In some embodiments, processing device 110 may include one or more processing engines (eg, single-chip processing engines or multi-chip processing engines). By way of example only, processing device 110 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor ( DSP), field programmable gate array (FPGA), programmable logic circuit (PLD), controller, microcontroller unit, reduced instruction set computer (RISC), microprocessor, etc. or any combination of the above.

应当注意会话交互的应用场景100仅仅是为了说明的目的而提供的,并不意图限制本说明书的范围。对于本领域的普通技术人员来说,可以根据本说明书的描述,做出多种修改或变化。例如,会话交互的应用场景100可以在其它设备上实现类似或不同的功能。然而,这些变化和修改不会背离本说明书的范围。It should be noted that the application scenario 100 of conversational interaction is provided for the purpose of illustration only, and is not intended to limit the scope of this description. For those skilled in the art, various modifications or changes can be made according to the description in this specification. For example, the application scenario 100 of session interaction may implement similar or different functions on other devices. However, these changes and modifications do not depart from the scope of this specification.

例如,图5中所示的消息体500和图6中所示的数据体600只是出于示例目的而提供的,消息体500和数据体600还可以通过其他的形式进行表示,或包括其他的内容,或省略其中的部分内容。例如,消息体500中包含的内容不只局限于历史消息部分510、系统消息部分520和当前会话消息部分530,处理设备110可以根据实际需求进行配置。For example, message body 500 shown in FIG. 5 and data body 600 shown in FIG. content, or omit parts of it. For example, the content contained in the message body 500 is not limited to the history message part 510, the system message part 520 and the current session message part 530, and the processing device 110 can be configured according to actual needs.

又例如,会话交互系统的应用场景100还可以包括网络等。网络可以连接系统的各个组成部分和/或连接系统与外部资源部分。网络使得各组成部分之间,以及与系统之外其他部分可以进行通信。例如,处理设备110通过网络从存储设备130获取历史消息。For another example, the application scenario 100 of the conversation interaction system may also include a network and the like. A network can connect various components of a system and/or connect parts of the system with external resources. A network enables communication between components and with other parts outside the system. For example, the processing device 110 acquires historical messages from the storage device 130 through a network.

图2是根据本说明书一些实施例所示的会话交互系统的示例性模块图。Fig. 2 is an exemplary module diagram of a conversational interaction system according to some embodiments of this specification.

在一些实施例中,会话交互系统200可以包括触发模块210、获取模块220、更新模块230和确定模块240。In some embodiments, the session interaction system 200 may include a trigger module 210 , an acquisition module 220 , an update module 230 and a determination module 240 .

在一些实施例中,触发模块210可以用于响应于用户经由交互终端输入的会话请求,触发交互终端呈现会话界面,会话界面的显示内容基于消息体确定,其中,消息体包括历史消息部分和/或系统消息部分和/或当前会话消息部分。In some embodiments, the triggering module 210 may be configured to trigger the interactive terminal to present the session interface in response to a session request input by the user via the interactive terminal, and the display content of the session interface is determined based on the message body, wherein the message body includes a history message part and/or or the system messages section and/or the current session messages section.

在一些实施例中,获取模块220可以用于获取用户经由交互终端输入的交互指令。In some embodiments, the acquisition module 220 may be used to acquire an interaction instruction input by a user via an interaction terminal.

在一些实施例中,更新模块230可以用于响应于交互指令,更新消息体。In some embodiments, the update module 230 may be configured to update the message body in response to the interaction instruction.

在一些实施例中,触发模块210还可以用于基于更新后的消息体,触发交互终端更新会话界面。In some embodiments, the triggering module 210 may also be configured to trigger the interactive terminal to update the session interface based on the updated message body.

在一些实施例中,获取模块220还可以用于响应于会话请求,获取目标系统消息。在一些实施例中,更新模块230还可以用于基于目标系统消息,更新系统消息部分,以使会话界面上显示目标系统消息。In some embodiments, the obtaining module 220 may also be used to obtain target system information in response to the session request. In some embodiments, the update module 230 may also be configured to update the system message part based on the target system message, so that the target system message is displayed on the conversation interface.

在一些实施例中,确定模块240可以用于判断用户是否存在历史消息。In some embodiments, the determining module 240 may be used to determine whether there are historical messages for the user.

在一些实施例中,响应于用户存在历史消息的判断结果,触发模块210还可以用于触发交互终端显示历史消息加载提示。In some embodiments, in response to the determination result that the user has historical messages, the triggering module 210 may also be configured to trigger the interactive terminal to display a historical message loading prompt.

在一些实施例中,交互指令包括历史消息加载指令,获取模块220还可以用于响应于历史消息加载指令,基于历史消息数据库获取目标历史消息。在一些实施例中,更新模块230还可以用于基于目标历史消息,更新历史消息部分,以使会话界面上显示目标历史消息。In some embodiments, the interaction instruction includes a historical message loading instruction, and the acquiring module 220 may also be configured to acquire the target historical message based on the historical message database in response to the historical message loading instruction. In some embodiments, the update module 230 may also be configured to update the historical message part based on the target historical message, so that the target historical message is displayed on the conversation interface.

在一些实施例中,交互指令包括用户提问,获取模块220还可以用于响应于用户提问,获取提问回复。在一些实施例中,更新模块230还可以用于基于提问回复,更新当前会话消息部分,以使会话界面上显示提问回复。In some embodiments, the interaction instruction includes a user question, and the acquiring module 220 may also be configured to acquire a question reply in response to the user question. In some embodiments, the updating module 230 may also be configured to update the message part of the current conversation based on the reply to the question, so that the reply to the question is displayed on the conversation interface.

在一些实施例中,确定模块240还可以用于判断提问回复中是否包括有效回复;响应于提问回复中包括有效回复的判断结果,将用户提问和提问回复配对存储于历史消息数据库中。In some embodiments, the determination module 240 can also be used to determine whether the question reply includes a valid reply; in response to the judgment result that the question reply includes a valid reply, store the user question and the question reply pair in the historical message database.

在一些实施例中,获取模块220还可以用于判断网络是否异常。在一些实施例中,触发模块210还可以用于响应于网络异常的判断结果,触发交互终端显示消息异常提示。在一些实施例中,获取模块220还可以用于响应于网络正常的判断结果,获取提问回复。In some embodiments, the obtaining module 220 can also be used to determine whether the network is abnormal. In some embodiments, the triggering module 210 may also be configured to trigger the interactive terminal to display a message abnormality prompt in response to the judgment result of the network abnormality. In some embodiments, the obtaining module 220 may also be configured to obtain a reply to the question in response to the judgment result that the network is normal.

应当理解,图2所示的系统及其模块可以利用各种方式来实现。例如,在一些实施例中系统及其模块可以通过硬件、软件或者软件和硬件的结合来实现。It should be understood that the system and its modules shown in FIG. 2 can be implemented in various ways. For example, in some embodiments the system and its modules may be implemented by hardware, software or a combination of software and hardware.

需要注意的是,以上对于系统及其模块的描述,仅为描述方便,并不能把本说明书限制在所举实施例范围之内。可以理解,对于本领域的技术人员来说,在了解该系统的原理后,可能在不背离这一原理的情况下,对各个模块进行任意组合,或者构成子系统与其他模块连接。在一些实施例中,图2中披露的触发模块210、获取模块220、更新模块230和确定模块240可以是一个系统中的不同模块,也可以是一个模块实现上述的两个或两个以上模块的功能。例如,各个模块可以共用一个存储模块,各个模块也可以分别具有各自的存储模块。诸如此类的变形,均在本说明书的保护范围之内。It should be noted that the above description of the system and its modules is only for convenience of description, and does not limit this description to the scope of the illustrated embodiments. It can be understood that for those skilled in the art, after understanding the principle of the system, it is possible to combine various modules arbitrarily, or form a subsystem to connect with other modules without departing from this principle. In some embodiments, the trigger module 210, acquisition module 220, update module 230, and determination module 240 disclosed in FIG. 2 may be different modules in one system, or one module may implement the above-mentioned two or more modules. function. For example, each module may share one storage module, or each module may have its own storage module. Such deformations are within the protection scope of this specification.

图3是根据本说明书一些实施例所示的会话交互方法的示例性流程图。如图3所示,流程300包括下述步骤。在一些实施例中,流程300可以由处理设备110执行。Fig. 3 is an exemplary flow chart of a session interaction method according to some embodiments of this specification. As shown in FIG. 3 , the process 300 includes the following steps. In some embodiments, the process 300 may be executed by the processing device 110 .

步骤310,响应于用户经由交互终端输入的会话请求,触发交互终端呈现会话界面,会话界面的显示内容基于消息体确定,其中,消息体包括历史消息部分、系统消息部分和当前会话消息部分。在一些实施例中,步骤310可以由触发模块210执行。Step 310, in response to a session request input by the user via the interactive terminal, the interactive terminal is triggered to present a session interface, and the display content of the session interface is determined based on the message body, wherein the message body includes a history message part, a system message part and a current session message part. In some embodiments, step 310 may be performed by the triggering module 210 .

会话请求可以指用户发送的需要进行会话的请求。在一些实施例中,触发模块210可以通过交互终端接收用户输入的会话请求。例如,用户通过交互终端打开问答平台、问答小程序、问答网页等时,触发模块210可以确认用户输入会话请求。交互终端会自动将该会话请求发送到处理设备110。又例如,问答平台、问答小程序、问答网页等中有发送会话请求的选项或按钮等。当用户点击该选项或按钮时,触发模块210可以确认用户输入会话请求。The session request may refer to a request sent by a user that requires a session. In some embodiments, the triggering module 210 may receive a session request input by a user through an interactive terminal. For example, when a user opens a question-and-answer platform, a question-and-answer applet, a question-and-answer webpage, etc. through an interactive terminal, the trigger module 210 may confirm that the user inputs a session request. The interactive terminal will automatically send the session request to the processing device 110 . For another example, there are options or buttons for sending session requests in the question-and-answer platform, question-and-answer applet, question-and-answer web page, and the like. When the user clicks on the option or button, the trigger module 210 may confirm that the user enters a session request.

会话界面可以指用户与问答机器人之间会话的界面。A conversational interface may refer to an interface for a conversation between a user and a question-answering robot.

在一些实施例中,响应于用户经由交互终端输入的会话请求,触发模块210可以获取目标系统消息;以及基于目标系统消息,更新消息体的系统消息部分,以使会话界面上显示目标系统消息。例如,目标系统消息可以用于问候用户。又例如,目标系统消息可以向用户提供一些常用的服务选项。In some embodiments, in response to a session request input by the user via the interactive terminal, the triggering module 210 may acquire the target system message; and based on the target system message, update the system message part of the message body, so that the target system message is displayed on the session interface. For example, a targeted system message could be used to greet the user. For another example, the target system message may provide the user with some commonly used service options.

在一些实施例中,针对不同的用户,目标系统消息的内容可以相同或者不同。例如,目标系统消息可以为统一的问候用户的消息。又例如,触发模块210可以根据用户注册的信息(如,性别、年龄、过往病史、过敏史等),确定不同的目标系统消息。示例性的,如果用户为男、年龄50、过往病史包括高血压,触发模块210可以发送关于咨询高血压方面的系统消息。示例性的,如果用户为女、年龄50、过往病史包括胃病,触发模块210可以发送关于咨询胃病方面的系统消息等。又例如,如果用户为老用户,触发模块210可以根据用户的历史消息部分的内容确定系统消息部分的内容。针对不同的用户,获取不同的目标系统消息,进而使会话界面显示目标系统消息,可以使用户获取到需要的系统消息,提升用户使用问答小程序的使用体检。In some embodiments, the content of the target system message may be the same or different for different users. For example, the target system message may be a unified greeting message for the user. For another example, the trigger module 210 may determine different target system messages according to the information registered by the user (such as gender, age, past medical history, allergy history, etc.). Exemplarily, if the user is male, age 50, and past medical history includes high blood pressure, the trigger module 210 may send a system message about consulting high blood pressure. Exemplarily, if the user is female, age 50, and past medical history includes stomach disease, the trigger module 210 may send a system message about consulting about stomach disease. For another example, if the user is an old user, the trigger module 210 may determine the content of the system message part according to the content of the user's historical message part. Obtain different target system messages for different users, and then make the conversation interface display the target system messages, so that users can obtain the required system messages, and improve the user's experience in using the Q&A applet.

在一些实施例中,响应于用户输入的会话请求,触发模块210可以判断该用户是否存在历史消息。当该用户存在历史消息时,触发模块210可以触发所述交互终端显示历史消息加载提示。在一些实施例中,触发模块210可以基于消息体或历史消息数据库确定用户是否存在历史消息。关于确定用户是否存在历史消息的更多内容可以参见图4部分的相关描述。In some embodiments, in response to a session request input by a user, the triggering module 210 may determine whether the user has a history message. When the user has historical messages, the triggering module 210 may trigger the interactive terminal to display a historical message loading prompt. In some embodiments, the trigger module 210 may determine whether the user has historical messages based on the message body or the historical message database. For more information about determining whether there is a history message for the user, please refer to the related description in FIG. 4 .

步骤320,获取用户经由交互终端输入的交互指令。在一些实施例中,步骤320可以由获取模块220执行。Step 320, acquiring an interaction instruction input by the user via the interaction terminal. In some embodiments, step 320 may be performed by the acquisition module 220 .

交互指令可以用于要求问答机器人执行特定的动作,例如,回复疑问、加载历史消息、提供某种服务(在线问诊、查询报告)等。例如,如图7D所示,交互指令可以要求问答机器人回复疑问“CT检查结果是否已经出来?”。又例如,交互指令可以要求问答机器人加载历史消息。在一些实施例中,用户可以通过打字、语音、手势操作等方式通过交互终端输入交互指令。Interaction instructions can be used to ask the question-answering robot to perform specific actions, for example, answering questions, loading historical messages, providing certain services (online consultation, query report), etc. For example, as shown in FIG. 7D , the interactive instruction may require the question-and-answer robot to reply to the question "has the result of the CT examination come out?". For another example, the interactive instruction may require the question-answering robot to load historical messages. In some embodiments, the user may input the interaction instruction through the interactive terminal by means of typing, voice, gesture operation and the like.

步骤330,响应于交互指令,更新消息体。在一些实施例中,步骤330可以由更新模块230执行。Step 330, updating the message body in response to the interaction instruction. In some embodiments, step 330 may be performed by the update module 230 .

在一些实施例中,更新模块230可以基于交互指令,更新消息体。例如,更新模块230可以基于用户输入的交互指令,通过存储设备130中的数据库(如,历史消息数据库131、问答数据库132等)获取对该交互指令对应的回复。更新模块230可以将该交互指令和对该交互指令对应的回复加入消息体中,更新消息体。在一些实施例中,更新模块230可以基于不同的交互指令,更新消息体的不同部分。例如,交互指令为历史消息加载指令,基于目标历史消息,更新模块230可以更新消息体的历史消息部分,以使会话界面上显示目标历史消息,具体说明请参见图4部分的相关描述。又例如,交互指令为用户提问,更新模块230可以更新消息体的当前会话消息部分,以使会话界面上显示提问回复,具体说明请参见图4部分的相关描述。In some embodiments, the update module 230 may update the message body based on the interaction instruction. For example, the update module 230 may obtain a reply corresponding to the interaction instruction through a database in the storage device 130 (such as the historical message database 131 , the question-and-answer database 132 , etc.) based on the interaction instruction input by the user. The update module 230 may add the interaction instruction and the reply corresponding to the interaction instruction into the message body, and update the message body. In some embodiments, the update module 230 can update different parts of the message body based on different interaction instructions. For example, the interaction instruction is a historical message loading instruction. Based on the target historical message, the update module 230 may update the historical message part of the message body so that the target historical message is displayed on the conversation interface. For details, please refer to the related description in FIG. 4 . For another example, if the interaction instruction is a user question, the update module 230 may update the current conversation message part of the message body, so that the question reply is displayed on the conversation interface. For details, please refer to the related description in FIG. 4 .

步骤340,基于更新后的消息体,触发交互终端更新会话界面。在一些实施例中,步骤340可以由触发模块210执行。Step 340, based on the updated message body, trigger the interactive terminal to update the session interface. In some embodiments, step 340 may be performed by the triggering module 210 .

例如,如上文所述,响应于用户输入的用户提问,可以获取提问回复并基于提问回复更新消息体中的当前会话消息部分。基于更新后的消息体,触发模块210可以触发交互终端显示所述提问回复。又例如,响应于用户输入的历史消息加载指令,可以获取目标历史消息并基于目标历史消息更新消息体中的历史消息部分。基于更新后的消息体,触发模块210可以触发交互终端显示所述目标历史消息。For example, as described above, in response to a user question input by a user, a question reply may be obtained and the current conversation message part in the message body may be updated based on the question reply. Based on the updated message body, the triggering module 210 may trigger the interactive terminal to display the reply to the question. For another example, in response to a historical message loading instruction input by the user, the target historical message may be acquired and the historical message part in the message body may be updated based on the target historical message. Based on the updated message body, the triggering module 210 can trigger the interactive terminal to display the target history message.

在本说明书一些实施例中,可以利用消息体来存储用户与问答机器人的会话过程中所涉及的历史消息、系统消息、当前会话消息等。由于消息体中各类消息是基于预设的排列方式进行存储的,处理设备110可以快速定位各类消息,并基于消息体确定会话界面的显示内容,无需从不同的来源获取不同类型的消息。并且,处理设备110可以统一处理和管理会话交互的相关数据,进而可以灵活调整数据结构,提高数据的存储和管理效率。而在传统的会话交互方法中,由于不同的消息对应不同的消息来源或类别,且用户提问和系统回复被单独存储,同时需要通过逻辑将有关联的消息关联起来。在会话过程中,需要去不同的来源检索不同的信息,同时需要进行逻辑判断才能找到有关联的数据。与传统的会话交互方法相比,基于消息体的会话交互方法具有更高的数据管理、存储效率,进而能够提供更好的会话服务。In some embodiments of the present specification, the message body may be used to store historical messages, system messages, current session messages, etc. involved in the conversation process between the user and the question-answering robot. Since various messages in the message body are stored based on a preset arrangement, the processing device 110 can quickly locate various messages and determine the display content of the conversation interface based on the message body without obtaining different types of messages from different sources. Moreover, the processing device 110 can uniformly process and manage data related to session interaction, and then can flexibly adjust a data structure to improve data storage and management efficiency. In the traditional conversation interaction method, since different messages correspond to different message sources or categories, and user questions and system replies are stored separately, it is necessary to link related messages through logic. During the conversation, different information needs to be retrieved from different sources, and logical judgments are required to find related data. Compared with the traditional conversational interaction method, the message body-based conversational interaction method has higher data management and storage efficiency, and can provide better conversational services.

图4是根据本说明书一些实施例所示的一种会话交互方法的示例性流程图。如图4所示,流程400包括下述步骤。在一些实施例中,流程400可以由处理设备110执行。在一些实施例中,流程400可以是流程300的实施例。Fig. 4 is an exemplary flowchart of a session interaction method according to some embodiments of this specification. As shown in Fig. 4, the process 400 includes the following steps. In some embodiments, the process 400 may be performed by the processing device 110 . In some embodiments, process 400 may be an embodiment of process 300 .

步骤401,响应于会话请求,获取目标系统消息。在一些实施例中,步骤401可以由获取模块220执行。Step 401, in response to a session request, acquire target system information. In some embodiments, step 401 may be performed by the acquiring module 220 .

目标系统消息可以指针对会话请求、由系统自动发出的消息。目标系统消息可以用于问候用户、向用户提供一些常用的服务选项等。关于目标系统消息的更多描述可以参考图3中的步骤310。The target system message may refer to a message sent automatically by the system for a session request. Target system messages can be used to greet users, provide users with some common service options, and so on. For more description about the target system message, refer to step 310 in FIG. 3 .

步骤402,基于目标系统消息,更新系统消息部分,以使会话界面上显示目标系统消息。在一些实施例中,步骤402可以由更新模块230执行。Step 402: Update the system message part based on the target system message, so that the target system message is displayed on the conversation interface. In some embodiments, step 402 may be performed by the update module 230 .

例如,如图7A所示,用户经由交互终端输入会话请求后,消息体的系统消息部分可以被更新,触发模块210可以触发交互终端基于更新后的消息体呈现会话界面121-1。会话界面121-1可以显示问答机器人小U发送的目标系统消息,例如,“Hi,我是智能客服小U。请问有什么可以帮助到您?”、“小U猜您想问:1.胶片打印2.胶片打印色差……”等。用户可以根据问答机器人小U发送的系统消息部分选择相应的需求或者发送自己的需求等。For example, as shown in FIG. 7A, after the user inputs a session request via the interactive terminal, the system message part of the message body may be updated, and the trigger module 210 may trigger the interactive terminal to present the session interface 121-1 based on the updated message body. The conversational interface 121-1 can display the target system message sent by the question-and-answer robot U, for example, "Hi, I am U, the smart customer service. May I help you?", "U guesses what you want to ask: 1. Film Printing 2. Color difference of film printing..." etc. Users can select the corresponding needs or send their own needs according to the part of the system message sent by the question-and-answer robot U.

步骤403,响应于会话请求,判断用户是否存在历史消息。在一些实施例中,步骤403可以由确定模块240执行。Step 403, in response to the session request, determine whether the user has historical messages. In some embodiments, step 403 may be performed by the determining module 240 .

历史消息可以指用户与问答机器人以往的交互消息。在一些实施例中,响应于会话请求,确定模块240可以通过确定用户是否是新注册的用户确定该用户是否存在历史消息。在一些实施例中,响应于会话请求,确定模块240可以通过历史消息数据库确定该用户是否存在历史消息。例如,确定模块240可以基于用户的身份信息(如,身份证号、社保号、会话交互系统中该用户的唯一识别号等)确定历史消息数据库131中是否存在该用户的历史消息,进而判断用户是否存在历史消息。The historical messages may refer to previous interaction messages between the user and the question answering robot. In some embodiments, in response to the session request, the determination module 240 may determine whether the user has history messages by determining whether the user is a newly registered user. In some embodiments, in response to the session request, the determining module 240 may determine whether the user has historical messages through the historical message database. For example, the determining module 240 can determine whether there is a historical message of the user in the historical message database 131 based on the user's identity information (such as ID number, social security number, the unique identification number of the user in the conversational interaction system, etc.), and then determine the user's Whether there are historical messages.

在一些实施例中,响应于会话请求,确定模块240可以基于数据体来确定用户是否存在历史消息。示例性的,当用户开始会话后,确定模块240可以从历史消息数据库131中读取该用户与问答机器人的历史消息,并基于读取的历史消息更新历史消息部分。进一步地,确定模块240中可以基于当前的数据体判断用户是否存在历史消息。例如,由于数据体中历史消息部分、系统消息部分和当前会话消息部分依次排列,如果消息体中只包括系统消息部分或者第一条消息是系统消息,说明该用户没有历史消息。第一条消息可以指数据体中排序第一的消息,例如,数据体中出现的第一条信息。In some embodiments, in response to the session request, the determination module 240 may determine whether the user has historical messages based on the data body. Exemplarily, after the user starts a conversation, the determining module 240 may read the historical messages between the user and the question-answering robot from the historical message database 131, and update the historical message part based on the read historical messages. Further, the determination module 240 may determine whether the user has historical messages based on the current data volume. For example, since the historical message part, the system message part and the current session message part in the data body are arranged sequentially, if the message body only includes the system message part or the first message is a system message, it means that the user has no historical message. The first message may refer to the first message in the data body, for example, the first message appearing in the data body.

响应于用户存在历史消息的判断结果,可以执行步骤404。响应于用户不存在历史消息的判断结果,可以执行步骤407。Step 404 may be executed in response to the judging result that the user has historical messages. In response to the judging result that there is no historical message for the user, step 407 may be executed.

步骤404,触发交互终端显示历史消息加载提示。在一些实施例中,步骤404可以由触发模块210执行。Step 404, triggering the interactive terminal to display a prompt for loading historical messages. In some embodiments, step 404 may be performed by the triggering module 210 .

历史消息加载提示可以是用于提醒用户选择是否加载历史消息的提示。在一些实施例中,历史消息加载提示可以通过多种方式进行表示,例如,文字、图片、语音等。如图7B所示,会话界面121-2中显示文字“下拉加载历史消息”,作为历史消息加载提示。关于多种不同的历史消息加载提示可以提前预设,存储到存储设备130中。在一些实施例中,不同的用户对应的历史消息加载提示的形式可以不同。例如,当用户为60岁以上的老人时,触发模块210可以触发交互终端显示文字字体较大或语音等的历史消息加载提示。当用户是否存在历史消息的判断结果为否时,交互终端的会话界面上则不会显示消息加载提示。The historical message loading prompt may be a prompt for reminding the user to choose whether to load the historical message. In some embodiments, the history message loading prompt can be expressed in various ways, for example, text, picture, voice and so on. As shown in FIG. 7B , the conversational interface 121 - 2 displays the text "Drop down to load historical messages" as a prompt for loading historical messages. A variety of different historical message loading prompts can be preset in advance and stored in the storage device 130 . In some embodiments, different users may have different forms of history message loading prompts. For example, when the user is over 60 years old, the triggering module 210 may trigger the interactive terminal to display a historical message loading prompt with a larger text or voice. When the judgment result of whether the user has historical messages is no, the message loading prompt will not be displayed on the session interface of the interactive terminal.

当用户输入历史消息加载指令时,可以执行步骤405。历史消息加载指令可以通过各种方式输入。例如,当历史消息加载提示为“下拉加载历史消息”,用户可以通过下拉屏幕输入历史消息加载指令。又例如,用户可以发出语音“加载历史消息”、“是”等来输入历史消息加载指令。在一些实施例中,用户可以输入多次历史消息加载指令。例如,用户可以下拉屏幕2次以输入两次历史信息加载指令。When the user inputs a historical message loading instruction, step 405 may be performed. The history message loading instruction can be input in various ways. For example, when the prompt for loading historical messages is "load historical messages by pulling down", the user can input historical message loading instructions by pulling down the screen. For another example, the user may issue a voice such as "load historical messages", "yes" and so on to input the historical message loading instruction. In some embodiments, the user may input the historical message loading instruction multiple times. For example, the user may pull down the screen twice to input two historical information loading instructions.

步骤405,响应于历史消息加载指令,基于历史消息数据库获取目标历史消息。在一些实施例中,步骤405可以由获取模块220执行。Step 405, in response to the historical message loading instruction, acquire the target historical message based on the historical message database. In some embodiments, step 405 may be performed by the obtaining module 220 .

在一些实施例中,目标历史消息可以包括用户的全部历史消息或部分历史消息。例如,目标历史消息可以包括与当前会话最接近的N(如,10等)条历史消息等。获取模块220可以根据实际需求,设置N的取值,例如,N为10、15等。在一些实施例中,如图1部分所述,历史消息数据库131中的历史消息是以一问一答的形式进行存储。目标历史消息可以包括特定数量的用户历史提问和历史回复对。例如,目标历史消息可以包括用户的10对历史提问和历史回复。用户每输入一次历史消息加载指令,获取模块220均会获取10对历史提问和历史回复。只加载特定数量的目标历史消息和/或进行分次加载,可以提高响应速度,同时满足加载需求。在一些实施例中,目标历史消息可以包括至少一对历史提问和有效历史回复。例如,目标历史消息只会包括历史提问和其对应的有效历史回复。可以不将无效回复、点赞、点踩、评价、系统消息等加载出来,可以过滤无效信息,提升用户的查阅效率和使用体验。In some embodiments, the target historical messages may include all or part of the user's historical messages. For example, the target historical messages may include N (eg, 10, etc.) historical messages closest to the current session. The acquisition module 220 can set the value of N according to actual needs, for example, N is 10, 15, and so on. In some embodiments, as described in part in FIG. 1 , the historical messages in the historical message database 131 are stored in the form of one question and one answer. The target historical message may include a specific number of user historical question and historical reply pairs. For example, the target historical message may include 10 pairs of historical questions and historical replies of the user. Every time the user inputs a historical message loading instruction, the obtaining module 220 will obtain 10 pairs of historical questions and historical replies. Loading only a specific number of target historical messages and/or loading them in batches can improve responsiveness while meeting loading requirements. In some embodiments, the target historical message may include at least one pair of historical question and valid historical reply. For example, the target historical message will only include historical questions and their corresponding valid historical replies. Invalid replies, likes, dislikes, comments, system messages, etc. can not be loaded, and invalid information can be filtered to improve the user's viewing efficiency and experience.

在一些实施例中,目标历史消息不包括当前会话消息。例如,用户的每一次会话都有一个相应的数字身份识别框架(openID),作为会话的标识。假设当前会话的openID为A。获取模块220可以通过该openID可以用来区分不同的消息属于当前会话还是属于历史会话等,并只选择openID不为A的历史会话中包含的历史消息作为目标历史消息。对于当前会话中的产生的消息(例如,用户发出的用户消息、系统回复等),用户已经熟悉,如果在目标历史消息中再次出现当前会话消息,会降低用户使用问答小程序的体验效果和查询目标历史消息的效率。In some embodiments, the targeted historical messages do not include current session messages. For example, each session of a user has a corresponding digital identification framework (openID) as the identifier of the session. Assume that the openID of the current session is A. The acquisition module 220 can use the openID to distinguish whether different messages belong to the current session or the historical session, etc., and only select the historical messages contained in the historical sessions whose openID is not A as the target historical messages. The user is already familiar with the messages generated in the current session (for example, user messages sent by the user, system replies, etc.), if the current session message appears again in the target historical message, it will reduce the user's experience and query effect of using the Q&A applet Efficiency of target history messages.

在一些实施例中,获取模块220可以通过查询历史消息数据库来获取目标历史消息。在一些实施例中,获取模块220可以基于消息体来获取目标历史消息。例如,当用户开始会话后,获取模块220可以从历史消息数据库中读取该用户与会话机器人的目标历史消息,并基于读取的目标历史消息更新历史消息部分。当后续用户选择加载历史消息时,获取模块220可以直接从历史消息部分中获取目标历史消息。通过提前获取历史消息来更新消息体,并基于更新后的消息体来加载目标历史消息,可以提高历史消息加载的效率。In some embodiments, the acquiring module 220 can acquire the target historical message by querying the historical message database. In some embodiments, the acquiring module 220 can acquire the target history message based on the message body. For example, after the user starts a conversation, the obtaining module 220 may read the target historical message between the user and the chat robot from the historical message database, and update the historical message part based on the read target historical message. When the subsequent user chooses to load historical messages, the obtaining module 220 may directly obtain the target historical messages from the historical message part. By obtaining the historical message in advance to update the message body, and loading the target historical message based on the updated message body, the efficiency of historical message loading can be improved.

在一些实施例中,获取模块220获取目标历史消息时,会话界面可以被定位到目标历史消息的最后1条(即目标历史消息中与当前时间点最接近的1条历史消息)。用户可以通过向上滚动的方式按照时间顺序查看其他历史消息。便于用户从与当前时间点距离时间最接近的1条历史消息进行查阅。并且,通过这种设计,屏幕定位时不需要计算滚动高度。In some embodiments, when the acquiring module 220 acquires the target historical message, the conversation interface may be positioned to the last one of the target historical message (ie, the closest one among the target historical messages to the current time point). Users can view other historical messages in chronological order by scrolling up. It is convenient for the user to check from the 1 historical message closest to the current time point. And, with this design, there is no need to calculate the scroll height when positioning the screen.

在一些实施例中,获取模块220在获取目标历史消息的过程中,可能存在网络异常的情况。例如,获取模块220可以判断网络是否异常。响应于网络异常的判断结果,触发模块210可以触发交互终端显示记载历史消息失败的异常提示。可选地,触发模块210可以和用户确认是否切换账号。当用户选择切换账号操作时,系统初始化,重新进行会话。当用户拒绝切换账号时,会话交互结束。响应于网络正常的判断结果,可以执行步骤406。In some embodiments, when the acquisition module 220 acquires the target history message, there may be a network abnormality. For example, the acquisition module 220 can determine whether the network is abnormal. In response to the judgment result of the network abnormality, the triggering module 210 may trigger the interactive terminal to display an abnormality prompt indicating failure to record the historical message. Optionally, the triggering module 210 may confirm with the user whether to switch accounts. When the user chooses to switch accounts, the system is initialized and the session is resumed. When the user refuses to switch accounts, the session interaction ends. In response to the judgment result that the network is normal, step 406 may be executed.

步骤406,基于目标历史消息,更新历史消息部分,以使会话界面上显示目标历史消息。在一些实施例中,步骤406可以由更新模块230执行。Step 406: Based on the target historical message, update the historical message part, so that the target historical message is displayed on the conversation interface. In some embodiments, step 406 may be performed by the update module 230 .

在一些实施例中,更新模块230可以将目标历史消息添加到历史消息部分,以使会话界面上显示目标历史消息。例如,如图7C所示,会话界面121-3中的上半部分可以显示包括目标历史消息。在一些实施例中,当用户输入多次消息加载指令为多次时,获取模块220可以获取多次的目标历史消息,更新模块230可以多次更新历史消息部分,会话界面上可以多次显示目标历史消息。例如,用户第一次进行下拉操作后,获取模块220可以获取10条目标历史消息,会话界面可以显示上述10条目标历史消息。第2次下拉操作后,获取模块220可以再次获取10条目标历史消息,会话界面总共可以显示上述20条目标历史消息。再次获取的10条目标历史消息可以是与第1次获取的10条目标历史消息时间点最接近的10条目标历史消息。In some embodiments, the update module 230 may add the target historical message to the historical message part, so that the target historical message is displayed on the conversation interface. For example, as shown in FIG. 7C , the upper half of the conversation interface 121-3 may display history messages including the target. In some embodiments, when the user inputs multiple message loading instructions for multiple times, the acquisition module 220 can acquire multiple target historical messages, the update module 230 can update the historical message part multiple times, and the target message can be displayed multiple times on the conversation interface. historical news. For example, after the user performs a pull-down operation for the first time, the obtaining module 220 may obtain 10 target historical messages, and the conversation interface may display the above 10 target historical messages. After the second pull-down operation, the acquiring module 220 can acquire 10 target historical messages again, and the conversation interface can display the aforementioned 20 target historical messages in total. The 10 target historical messages acquired again may be the 10 target historical messages closest to the time points of the 10 target historical messages acquired for the first time.

当用户没有输入历史消息加载指令,而是输入了提问时,可以执行步骤407。步骤407,响应于用户提问,获取提问回复。在一些实施例中,步骤407可以由获取模块220执行。When the user does not input a historical message loading instruction but inputs a question, step 407 may be performed. Step 407, in response to the user's question, obtain a question reply. In some embodiments, step 407 may be performed by the acquiring module 220 .

用户提问可以指用户向问答机器人提出的需要咨询的问题。例如,如图7D所示,用户提问可以是“CT检查结果是否已经出来?”。The user question may refer to a question that needs to be consulted by the user to the question answering robot. For example, as shown in FIG. 7D , the user's question may be "has the CT examination result been released?".

提问回复可以指关于用户提问的回复。例如,如图7D所示,问答机器人针对用户提问的提问回复可以是“结果已出,是否打印胶片?如果打印,请点击“胶片打印”按钮”等。在一些实施例中,当问答机器人无法回答用户的提问时,提问回复可以是系统默认回复,例如,“对不起,小U还在学习中,暂时无法回答您的问题”。The question reply may refer to a reply about a user's question. For example, as shown in FIG. 7D , the question answering robot's reply to the user's question may be "the result is out, do you want to print the film? If you want to print, please click the "film print" button" and so on. In some embodiments, when the question answering robot is unable to answer the user's question, the question reply can be the system's default reply, for example, "Sorry, Xiao U is still learning, so I can't answer your question temporarily".

在一些实施例中,用户提问和提问回复为一一对应关系。用户提问可以具有第一ID号,对应的提问回复具有第二ID号,第一和第二ID号存在对应关系。或者,用户提问和对应的提问回复可以具有相同的ID号。在会话交互过程中,可能包括多个用户提问和多个提问回复。获取模块220可以将这些用户提问和提问回复一一对应起来。在一些实施例中,针对一个用户提问,对应的提问回复可能包括1条或多条信息。1条或多条信息均为针对该用户提问的提问回复,例如,可以具有相同的第二ID号。在一些实施例中,用户提问的提问回复可能包括大量信息,大量信息不适合直接显示到会话界面。提问回复可以用折叠、链接等形式显示。用户可以点击展开提问回复,或者点击链接跳转到新的页面来查看提问回复。In some embodiments, there is a one-to-one correspondence between user questions and question replies. A user's question may have a first ID number, and a corresponding question reply may have a second ID number, and there is a corresponding relationship between the first and second ID numbers. Alternatively, user questions and corresponding question replies may have the same ID number. During the session interaction process, multiple user questions and multiple question replies may be included. The obtaining module 220 can make a one-to-one correspondence between these user questions and question replies. In some embodiments, for a user question, the corresponding question reply may include one or more pieces of information. One or more pieces of information are question replies to the user's question, for example, may have the same second ID number. In some embodiments, the question reply to the user's question may include a large amount of information, which is not suitable for being directly displayed on the conversation interface. Question replies can be displayed in the form of folds, links, etc. Users can click to expand the question reply, or click the link to jump to a new page to view the question reply.

在一些实施例中,响应于用户提问,获取模块220可以通过多种方式获取提问回复。例如,获取模块220可以通过问答数据库132获取提问回复。示例性的,获取模块220可以基于用户提问,通过问答数据库获取相同或相似的提问,将相同或相似的提问对应的回复确定为提问回复。又例如,响应于用户提问,获取模块220可以通过网络获取提问回复。示例性的,用户提问为“CT检查结果是否已经出来?”,获取模块220可以通过网络确定CT设备的检查结果中是否存在该用户的检查结果。当存在该用户的检查结果时,对应的提问回复可以为“结果已出,是否打印胶片?如果打印,请点击“胶片打印”按钮”。当不存在该用户的检查结果时,对应的提问回复可以为“检查结果暂未出来,请您耐心等待”。在一些实施例中,获取模块220可以基于用户提问,采用模糊匹配的方式查询问答数据库或者搜索网络来获取提问回复。当匹配到相应的提问回复时,获取模块220可以对回复类型字段标记进行标记,例如,标记为有效回复。当未匹配到提问回复时,获取模块220可以对回复类型字段进行标记,例如,标记为无效回复。关于有效回复和无效回复的相关内容可以参见步骤409的相关描述。In some embodiments, in response to user questions, the obtaining module 220 may obtain question replies in various ways. For example, the acquiring module 220 can acquire the question replies through the question-answer database 132 . Exemplarily, the acquisition module 220 may acquire the same or similar questions through the question-and-answer database based on the user's questions, and determine the replies corresponding to the same or similar questions as question replies. For another example, in response to a user's question, the obtaining module 220 may obtain a reply to the question through the network. Exemplarily, the user asks "has the CT inspection result been released?", and the acquisition module 220 may determine whether the user's inspection result exists in the inspection results of the CT device through the network. When there is the user's inspection result, the corresponding question reply can be "The result is out, do you want to print the film? If you want to print it, please click the "film print" button". When there is no inspection result for the user, the corresponding question reply can be "the inspection result has not yet come out, please wait patiently". In some embodiments, the acquisition module 220 may query the question-and-answer database or search the Internet in a fuzzy matching manner based on the user's question to obtain the answer to the question. When a corresponding question reply is matched, the acquisition module 220 may mark the reply type field flag, for example, mark it as a valid reply. When no question reply is matched, the obtaining module 220 may mark the reply type field, for example, as an invalid reply. For relevant content about valid replies and invalid replies, please refer to the related description of step 409 .

在用户与问答机器人进行交互会话的过程中,可能存在网络异常的情况。在一些实施例中,获取模块220可以判断网络是否异常。进而根据网络的不同判断结果(如,异常、正常),确定不同的处理方法。响应于网络异常的判断结果,触发模块210可以触发交互终端显示消息异常提示。响应于网络正常的判断结果,获取模块220可以获取提问回复。During the interactive session between the user and the Q&A robot, there may be network anomalies. In some embodiments, the acquiring module 220 can determine whether the network is abnormal. Furthermore, different processing methods are determined according to different judgment results (eg, abnormal, normal) of the network. In response to the judgment result of network abnormality, the triggering module 210 may trigger the interactive terminal to display a message abnormality prompt. In response to the judgment result that the network is normal, the obtaining module 220 may obtain a reply to the question.

消息异常提示可以指提示用户目前网络异常的消息。例如,消息异常提示为“网络异常”的文字等。又例如,用户发送的提问对应的消息框附近可以显示红色感叹号标记,说明消息发送失败,且问答机器人不会回复该提问。当用户点击“网络异常”的文字或图标时,相应的“网络异常”消失,当前会话消息部分删除该条提问。当网络恢复后,触发模块210可以在当前会话消息部分的最前端重新添加该用户提问。The message exception prompt may refer to a message prompting the user that the current network is abnormal. For example, the message exception prompt is the text of "network abnormality" and the like. For another example, a red exclamation mark may be displayed near the message box corresponding to the question sent by the user, indicating that the sending of the message failed, and the Q&A robot will not reply to the question. When the user clicks on the text or icon of "Network Abnormality", the corresponding "Network Abnormality" disappears, and the current session message part deletes the question. After the network recovers, the triggering module 210 may re-add the user's question at the top of the message part of the current conversation.

当网络正常时,触发模块210可以触发交互终端在会话界面中显示“正在输入中”的文字或图标等。获取模块220可以通过问答数据库132等获取提问回复。当获取模块220获取到相应的提问回复时,上述“正在输入中”的文字或图标消失。When the network is normal, the triggering module 210 can trigger the interactive terminal to display the words or icons of "typing" in the conversation interface. The obtaining module 220 may obtain question replies through the question-answer database 132 and the like. When the obtaining module 220 obtains the corresponding question reply, the above-mentioned "inputting" text or icon disappears.

在一些实施例中,获取模块220可以通过问答机器人是否在时间阈值内进行提问回复判断网络是否异常。时间阈值可以指问答机器人回复用户提问的最长时间。例如,时间阈值为3秒等。当用户提问后,问答机器人未在时间阈值内回复提问回复,获取模块220可以确定网络异常的判断结果。在一些实施例中,获取模块220可以分析交互终端120和处理设备110的连接状态,从而判断网络是否异常。In some embodiments, the acquisition module 220 can judge whether the network is abnormal by whether the question answering robot responds to the question within the time threshold. The time threshold may refer to the maximum time for the question answering robot to reply to the user's question. For example, the time threshold is 3 seconds, etc. When the user asks a question and the question-answering robot fails to reply within the time threshold, the acquisition module 220 may determine the judgment result of the network abnormality. In some embodiments, the obtaining module 220 may analyze the connection status between the interactive terminal 120 and the processing device 110, so as to determine whether the network is abnormal.

步骤408,基于提问回复,更新当前会话消息部分,以使会话界面上显示提问回复。在一些实施例中,步骤408可以由更新模块230执行。Step 408, based on the reply to the question, update the message part of the current conversation, so that the reply to the question is displayed on the conversation interface. In some embodiments, step 408 may be performed by update module 230 .

在一些实施例中,更新模块230可以将提问回复添加到当前会话消息部分,以使会话界面上显示提问回复。例如,如图7D所示,会话界面121-4可以显示提问回复。In some embodiments, the update module 230 may add the reply to the question to the message part of the current conversation, so that the reply to the question is displayed on the conversation interface. For example, as shown in FIG. 7D, the conversation interface 121-4 may display a reply to a question.

步骤409,判断提问回复中是否包括有效回复。在一些实施例中,步骤409可以由确定模块240执行。Step 409 , judging whether the reply to the question includes a valid reply. In some embodiments, step 409 may be performed by the determining module 240 .

在一些实施例中,提问回复可以包括有效回复或无效回复等。有效回复可以指能够解答用户提问的回复。在一些实施例中,确定模块240可以根据提问回复的类型来确定其是有效回复还是无效回复。如果提问回复是在问答数据库或者网络上通过搜索获取的回复,则该提问回复是有效回复。如果提问回复是默认系统回复,如“小U还在学习,暂时无法回答您的问题”,该提问回复为无效回复。如果提问回复是点赞、点踩、评价等,则该提问回复为无效回复。In some embodiments, the question replies may include valid replies or invalid replies and the like. A valid reply may refer to a reply that can answer a user's question. In some embodiments, the determining module 240 can determine whether it is a valid reply or an invalid reply according to the type of the question reply. If the question reply is a reply obtained by searching in a question-and-answer database or on the Internet, then the question reply is a valid reply. If the question reply is the default system reply, such as "Xiao U is still studying and cannot answer your question for the time being", the question reply will be an invalid reply. If the reply to the question is a like, dislike, comment, etc., the reply to the question will be an invalid reply.

在一些实施例中,确定模块240可以根据用户对该提问回复的反馈,判断提问回复中是否包括有效回复。例如,可以会话界面上显示评价选项,让用户针对该提问回复的有效性进行评价。若用户对该提问回复提供了正面评价,可以判断该提问回复为有效回复。又例如,如果用户在收到提问回复后又发送了“好的,明白”、“知道了”等回复信息,确定模块240可以将该提问回复确定为有效回复。如果用户的回复信息为“我问的不是这个”、“不明白你的意思”等,确定模块240可以将该提问回复确定为无效回复。In some embodiments, the determination module 240 may determine whether the reply to the question includes a valid reply according to the user's feedback on the reply to the question. For example, an evaluation option may be displayed on the conversation interface, allowing the user to evaluate the validity of the reply to the question. If the user provides a positive comment on the reply to the question, it may be determined that the reply to the question is a valid reply. For another example, if the user sends a reply message such as "OK, I understand" and "Got it" after receiving the reply to the question, the determining module 240 may determine the reply to the question as a valid reply. If the user's reply information is "I didn't ask this", "I don't understand what you mean", etc., the determination module 240 can determine the question reply as an invalid reply.

步骤410,响应于提问回复中包括有效回复的判断结果,将用户提问和提问回复配对存储于历史消息数据库中。在一些实施例中,步骤410可以由确定模块240执行。Step 410, in response to the judgment result that the question reply includes a valid reply, store the user question and the question reply pair in the historical message database. In some embodiments, step 410 may be performed by the determining module 240 .

通过将用户提问和有效的提问回复配对后存储于历史消息数据库中,可以避免无效数据占据存储空间,从而节省数据的存储空间,并且可以提高后续数据的管理和检索效率。例如,在后续用户选择加载历史信息时,可以快速从历史数据库中搜索到用户提问和对应的有效提问回复,进而可以提升用户查阅历史消息的效率和用户使用问答机器人的体验。By pairing user questions and effective question replies and storing them in the historical message database, invalid data can be avoided from occupying storage space, thereby saving data storage space and improving the efficiency of subsequent data management and retrieval. For example, when a subsequent user chooses to load historical information, the user's question and the corresponding effective question reply can be quickly searched from the historical database, thereby improving the efficiency of the user's review of historical information and the user's experience of using the question-and-answer robot.

本说明书实施例可能带来的有益效果包括但不限于:(1)在本说明书一些实施例中,可以利用消息体来存储用户与问答机器人的会话过程中所涉及的历史消息、系统消息、当前会话消息等。由于消息体中各类消息是基于预设的排列方式进行存储的,处理设备110可以快速定位各类消息,并基于消息体确定会话界面的显示内容,无需从不同的来源获取不同类型的消息。并且,处理设备110可以统一处理和管理会话交互的相关数据,进而可以灵活调整数据结构,提高数据的存储和管理效率。而在传统的会话交互方法中,由于不同的消息对应不同的消息来源或类别,且用户提问和系统回复被单独存储,同时需要通过逻辑将有关联的消息关联起来。在会话过程中,需要去不同的来源检索不同的信息,同时需要进行逻辑判断才能找到有关联的数据。与传统的会话交互方法相比,基于消息体的会话交互方法具有更高的数据管理、存储效率,进而能够提供更好的会话服务。(2)针对不同的用户,获取不同的目标系统消息,进而使会话界面显示目标系统消息,可以使用户获取到需要的系统消息,提升用户使用问答小程序的使用体检。(3)通过将历史消息部分510、系统消息部分520和当前会话消息部分530按照预设顺序排列,可以帮助快速进行消息区分和定位,提高数据管理和控制效率。(4)在一些实施例中,目标历史消息只会包括历史提问和其对应的有效历史回复。可以不将无效回复、点赞、点踩、评价、系统消息等加载出来,可以过滤无效信息,提升用户的查阅效率和使用体验。(5)用户可以通过向上滚动的方式按照时间顺序查看其他历史消息。便于用户从与当前时间点距离时间最接近的1条历史消息进行查阅。并且,通过这种设计,屏幕定位时不需要计算滚动高度。(6)通过将用户提问和有效的提问回复配对后存储于历史消息数据库中,可以避免无效数据占据存储空间,从而节省数据的存储空间,并且可以提高后续数据的管理和检索效率。例如,在后续用户选择加载历史信息时,可以快速从历史数据库中搜索到用户提问和对应的有效提问回复,进而可以提升用户查阅历史消息的效率和用户使用问答机器人的体验。The possible beneficial effects of the embodiments of this specification include but are not limited to: (1) In some embodiments of this specification, the message body can be used to store historical messages, system messages, current conversation messages, etc. Since various messages in the message body are stored based on a preset arrangement, the processing device 110 can quickly locate various messages and determine the display content of the conversation interface based on the message body without obtaining different types of messages from different sources. Moreover, the processing device 110 can uniformly process and manage data related to session interaction, and then can flexibly adjust a data structure to improve data storage and management efficiency. In the traditional conversation interaction method, since different messages correspond to different message sources or categories, and user questions and system replies are stored separately, it is necessary to link related messages through logic. During the conversation, different information needs to be retrieved from different sources, and logical judgments are required to find related data. Compared with the traditional conversational interaction method, the message body-based conversational interaction method has higher data management and storage efficiency, and can provide better conversational services. (2) Obtain different target system messages for different users, and then make the conversation interface display the target system messages, so that users can obtain the required system messages, and improve the user's use of the Q&A applet. (3) By arranging the historical message part 510 , the system message part 520 and the current session message part 530 in a preset order, it can help to quickly distinguish and locate messages, and improve data management and control efficiency. (4) In some embodiments, the target historical message only includes historical questions and their corresponding valid historical replies. Invalid replies, likes, dislikes, comments, system messages, etc. can not be loaded, and invalid information can be filtered to improve the user's viewing efficiency and experience. (5) The user can view other historical messages in chronological order by scrolling up. It is convenient for the user to check from the 1 historical message closest to the current time point. And, with this design, there is no need to calculate the scroll height when positioning the screen. (6) By pairing user questions and effective question replies and storing them in the historical message database, invalid data can be avoided from occupying storage space, thereby saving data storage space and improving the management and retrieval efficiency of subsequent data. For example, when a subsequent user chooses to load historical information, the user's question and the corresponding effective question reply can be quickly searched from the historical database, thereby improving the efficiency of the user's review of historical information and the user's experience of using the question-and-answer robot.

应当注意的是,上述有关流程的描述仅仅是为了示例和说明,而不限定本说明书的适用范围。对于本领域技术人员来说,在本说明书的指导下可以对流程进行各种修正和改变。然而,这些修正和改变仍在本说明书的范围之内。It should be noted that, the above descriptions about the process are only for illustration and description, and do not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to the flow under the guidance of this specification. However, such modifications and changes are still within the scope of this specification.

上文已对基本概念做了描述,显然,对于本领域技术人员来说,上述详细披露仅仅作为示例,而并不构成对本说明书的限定。虽然此处并没有明确说明,本领域技术人员可能会对本说明书进行各种修改、改进和修正。该类修改、改进和修正在本说明书中被建议,所以该类修改、改进、修正仍属于本说明书示范实施例的精神和范围。The basic concept has been described above, obviously, for those skilled in the art, the above detailed disclosure is only an example, and does not constitute a limitation to this description. Although not expressly stated here, those skilled in the art may make various modifications, improvements and corrections to this description. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.

同时,本说明书使用了特定词语来描述本说明书的实施例。如“一个实施例”、“一实施例”、和/或“一些实施例”意指与本说明书至少一个实施例相关的某一特征、结构或特点。因此,应强调并注意的是,本说明书中在不同位置两次或多次提及的“一实施例”或“一个实施例”或“一个替代性实施例”并不一定是指同一实施例。此外,本说明书的一个或多个实施例中的某些特征、结构或特点可以进行适当的组合。Meanwhile, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and/or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that two or more references to "an embodiment" or "an embodiment" or "an alternative embodiment" in different places in this specification do not necessarily refer to the same embodiment . In addition, certain features, structures or characteristics in one or more embodiments of this specification may be properly combined.

此外,除非权利要求中明确说明,本说明书所述处理元素和序列的顺序、数字字母的使用、或其他名称的使用,并非用于限定本说明书流程和方法的顺序。尽管上述披露中通过各种示例讨论了一些目前认为有用的发明实施例,但应当理解的是,该类细节仅起到说明的目的,附加的权利要求并不仅限于披露的实施例,相反,权利要求旨在覆盖所有符合本说明书实施例实质和范围的修正和等价组合。例如,虽然以上所描述的系统组件可以通过硬件设备实现,但是也可以只通过软件的解决方案得以实现,如在现有的服务器或移动设备上安装所描述的系统。In addition, unless explicitly stated in the claims, the order of processing elements and sequences described in this specification, the use of numbers and letters, or the use of other names are not used to limit the sequence of processes and methods in this specification. While the foregoing disclosure has discussed by way of various examples some embodiments of the invention that are presently believed to be useful, it should be understood that such detail is for illustrative purposes only and that the appended claims are not limited to the disclosed embodiments, but rather, the claims The claims are intended to cover all modifications and equivalent combinations that fall within the spirit and scope of the embodiments of this specification. For example, although the system components described above may be implemented by hardware devices, they may also be implemented by a software-only solution, such as installing the described system on an existing server or mobile device.

同理,应当注意的是,为了简化本说明书披露的表述,从而帮助对一个或多个发明实施例的理解,前文对本说明书实施例的描述中,有时会将多种特征归并至一个实施例、附图或对其的描述中。但是,这种披露方法并不意味着本说明书对象所需要的特征比权利要求中提及的特征多。实际上,实施例的特征要少于上述披露的单个实施例的全部特征。In the same way, it should be noted that in order to simplify the expression disclosed in this specification and help the understanding of one or more embodiments of the invention, in the foregoing description of the embodiments of this specification, sometimes multiple features are combined into one embodiment, drawings or descriptions thereof. This method of disclosure does not, however, imply that the subject matter of the specification requires more features than are recited in the claims. Indeed, embodiment features are less than all features of a single foregoing disclosed embodiment.

一些实施例中使用了描述成分、属性数量的数字,应当理解的是,此类用于实施例描述的数字,在一些示例中使用了修饰词“大约”、“近似”或“大体上”来修饰。除非另外说明,“大约”、“近似”或“大体上”表明所述数字允许有±20%的变化。相应地,在一些实施例中,说明书和权利要求中使用的数值参数均为近似值,该近似值根据个别实施例所需特点可以发生改变。在一些实施例中,数值参数应考虑规定的有效数位并采用一般位数保留的方法。尽管本说明书一些实施例中用于确认其范围广度的数值域和参数为近似值,在具体实施例中,此类数值的设定在可行范围内尽可能精确。In some embodiments, numbers describing the quantity of components and attributes are used. It should be understood that such numbers used in the description of the embodiments use the modifiers "about", "approximately" or "substantially" in some examples. grooming. Unless otherwise stated, "about", "approximately" or "substantially" indicates that the stated figure allows for a variation of ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximations that can vary depending upon the desired characteristics of individual embodiments. In some embodiments, numerical parameters should take into account the specified significant digits and adopt the general digit reservation method. Although the numerical ranges and parameters used in some embodiments of this specification to confirm the breadth of the range are approximations, in specific embodiments, such numerical values are set as precisely as practicable.

针对本说明书引用的每个专利、专利申请、专利申请公开物和其他材料,如文章、书籍、说明书、出版物、文档等,特此将其全部内容并入本说明书作为参考。与本说明书内容不一致或产生冲突的申请历史文件除外,对本说明书权利要求最广范围有限制的文件(当前或之后附加于本说明书中的)也除外。需要说明的是,如果本说明书附属材料中的描述、定义、和/或术语的使用与本说明书所述内容有不一致或冲突的地方,以本说明书的描述、定义和/或术语的使用为准。Each patent, patent application, patent application publication, and other material, such as article, book, specification, publication, document, etc., cited in this specification is hereby incorporated by reference in its entirety. Application history documents that are inconsistent with or conflict with the content of this specification are excluded, and documents (currently or later appended to this specification) that limit the broadest scope of the claims of this specification are also excluded. It should be noted that if there is any inconsistency or conflict between the descriptions, definitions, and/or terms used in the accompanying materials of this manual and the contents of this manual, the descriptions, definitions and/or terms used in this manual shall prevail .

最后,应当理解的是,本说明书中所述实施例仅用以说明本说明书实施例的原则。其他的变形也可能属于本说明书的范围。因此,作为示例而非限制,本说明书实施例的替代配置可视为与本说明书的教导一致。相应地,本说明书的实施例不仅限于本说明书明确介绍和描述的实施例。Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other modifications are also possible within the scope of this description. Therefore, by way of example and not limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims (9)

1.一种会话交互方法,其特征在于,所述方法包括:1. A conversational interaction method, characterized in that the method comprises: 响应于用户经由交互终端输入的会话请求,触发所述交互终端呈现会话界面,所述会话界面的显示内容基于消息体确定,其中,所述消息体包括历史消息部分、系统消息部分和当前会话消息部分;In response to a session request input by the user via the interactive terminal, the interactive terminal is triggered to present a session interface, and the display content of the session interface is determined based on a message body, wherein the message body includes a historical message part, a system message part, and a current session message part; 响应于所述会话请求,获取目标系统消息;以及obtaining target system messages in response to the session request; and 基于所述目标系统消息,更新所述系统消息部分,以使所述会话界面上显示所述目标系统消息;updating the system message part based on the target system message, so that the target system message is displayed on the conversation interface; 获取所述用户经由所述交互终端输入的交互指令;Acquiring an interaction instruction input by the user via the interaction terminal; 响应于所述交互指令,更新所述消息体;updating the message body in response to the interaction instruction; 基于更新后的消息体,触发所述交互终端更新所述会话界面。Based on the updated message body, the interactive terminal is triggered to update the session interface. 2.根据权利要求1所述的会话交互方法,其特征在于,所述方法进一步包括:2. The session interaction method according to claim 1, wherein the method further comprises: 响应于所述会话请求,判断所述用户是否存在历史消息;In response to the session request, determine whether the user has historical messages; 响应于所述用户存在历史消息的判断结果,触发所述交互终端显示历史消息加载提示。In response to the judgment result that the user has historical messages, the interactive terminal is triggered to display a historical message loading prompt. 3.根据权利要求2所述的会话交互方法,其特征在于,所述交互指令包括历史消息加载指令,所述方法进一步包括:3. The session interaction method according to claim 2, wherein the interaction instruction includes a historical message loading instruction, and the method further includes: 响应于所述历史消息加载指令,基于历史消息数据库获取目标历史消息;Responding to the historical message loading instruction, acquiring the target historical message based on the historical message database; 基于所述目标历史消息,更新所述历史消息部分,以使所述会话界面上显示所述目标历史消息。Based on the target historical message, the historical message part is updated, so that the target historical message is displayed on the conversation interface. 4.根据权利要求3所述的会话交互方法,其特征在于,所述目标历史消息包括至少一对历史提问和有效历史回复。4. The conversational interaction method according to claim 3, wherein the target historical message includes at least a pair of historical questions and valid historical replies. 5.根据权利要求1所述的会话交互方法,其特征在于,所述交互指令包括用户提问,所述方法进一步包括:5. The conversation interaction method according to claim 1, wherein the interaction instruction includes user questions, and the method further comprises: 响应于所述用户提问,获取提问回复;以及Responding to said user question, obtaining a question reply; and 基于所述提问回复,更新所述当前会话消息部分,以使所述会话界面上显示所述提问回复。Based on the reply to the question, update the message part of the current conversation, so that the reply to the question is displayed on the conversation interface. 6.根据权利要求5所述的会话交互方法,其特征在于,所述方法进一步包括:6. The conversational interaction method according to claim 5, wherein the method further comprises: 判断所述提问回复中是否包括有效回复;judging whether the reply to the question includes a valid reply; 响应于所述提问回复中包括有效回复的判断结果,将所述用户提问和所述提问回复配对存储于历史消息数据库中。In response to a determination result that the question reply includes a valid reply, the user question and the question reply pair are stored in a history message database. 7.根据权利要求1所述的会话交互方法,其特征在于,所述历史消息部分、所述系统消息部分和所述当前会话消息部分基于预设顺序排列。7. The session interaction method according to claim 1, wherein the history message part, the system message part and the current session message part are arranged based on a preset order. 8.一种会话交互系统,其特征在于,所述系统包括:8. A conversational interaction system, characterized in that the system comprises: 触发模块,用于响应于用户经由交互终端输入的会话请求,触发所述交互终端呈现会话界面,所述会话界面的显示内容基于消息体确定,其中,所述消息体包括历史消息部分、系统消息部分和当前会话消息部分;A triggering module, configured to trigger the interactive terminal to present a session interface in response to a session request input by the user via the interactive terminal, the display content of the session interface is determined based on a message body, wherein the message body includes a historical message part, a system message section and the current session message section; 获取模块,用于响应于所述会话请求,获取目标系统消息;an acquisition module, configured to acquire target system messages in response to the session request; 更新模块,用于基于所述目标系统消息,更新所述系统消息部分,以使所述会话界面上显示所述目标系统消息;An update module, configured to update the system message part based on the target system message, so that the target system message is displayed on the conversation interface; 所述获取模块进一步用于获取所述用户经由所述交互终端输入的交互指令;The acquisition module is further configured to acquire an interaction instruction input by the user via the interaction terminal; 所述更新模块进一步用于响应于所述交互指令,更新所述消息体;The update module is further configured to update the message body in response to the interaction instruction; 触发模块,用于基于更新后的消息体,触发所述交互终端更新所述会话界面。A triggering module, configured to trigger the interactive terminal to update the session interface based on the updated message body. 9.一种计算机可读存储介质,其特征在于,所述存储介质存储计算机指令,当所述计算机指令被处理器执行时实现如权利要求1至7中任一项所述的会话交互方法。9. A computer-readable storage medium, wherein the storage medium stores computer instructions, and when the computer instructions are executed by a processor, the conversation interaction method according to any one of claims 1 to 7 is implemented.
CN202210800197.1A 2022-07-08 2022-07-08 Session interaction method and system Active CN115208846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210800197.1A CN115208846B (en) 2022-07-08 2022-07-08 Session interaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210800197.1A CN115208846B (en) 2022-07-08 2022-07-08 Session interaction method and system

Publications (2)

Publication Number Publication Date
CN115208846A CN115208846A (en) 2022-10-18
CN115208846B true CN115208846B (en) 2023-06-09

Family

ID=83580870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210800197.1A Active CN115208846B (en) 2022-07-08 2022-07-08 Session interaction method and system

Country Status (1)

Country Link
CN (1) CN115208846B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119002745B (en) * 2023-11-08 2025-08-22 北京字跳网络技术有限公司 Method, apparatus, device, and storage medium for conversation interaction

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917878A (en) * 2020-08-03 2020-11-10 腾讯科技(深圳)有限公司 Message processing method, device, equipment and storage medium
CN112230821A (en) * 2020-11-10 2021-01-15 腾讯科技(深圳)有限公司 Session display method and device, computer equipment and storage medium
CN112287262A (en) * 2020-10-29 2021-01-29 腾讯科技(深圳)有限公司 Session display method and device, computer equipment and storage medium
CN112420217A (en) * 2020-11-30 2021-02-26 腾讯科技(深圳)有限公司 Message pushing method, device, equipment and storage medium
CN112802614A (en) * 2021-01-27 2021-05-14 挂号网(杭州)科技有限公司 Online inquiry method, device, equipment and storage medium
WO2021208444A1 (en) * 2020-09-07 2021-10-21 平安科技(深圳)有限公司 Method and apparatus for automatically generating electronic cases, a device, and a storage medium
CN113934832A (en) * 2021-10-22 2022-01-14 腾讯科技(深圳)有限公司 Session-based interactive processing method, apparatus, device, medium and program product
US11257572B1 (en) * 2016-03-30 2022-02-22 Intrado Corporation Remote medical treatment application and operating platform
CN114629867A (en) * 2022-03-22 2022-06-14 康键信息技术(深圳)有限公司 On-line inquiry instant communication system and message processing method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9306878B2 (en) * 2012-02-14 2016-04-05 Salesforce.Com, Inc. Intelligent automated messaging for computer-implemented devices
US10965633B2 (en) * 2014-09-29 2021-03-30 Microsoft Technoiogy Licensing, LLC Session history horizon control
CN112367553B (en) * 2020-11-10 2022-07-01 北京达佳互联信息技术有限公司 Message interaction method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11257572B1 (en) * 2016-03-30 2022-02-22 Intrado Corporation Remote medical treatment application and operating platform
CN111917878A (en) * 2020-08-03 2020-11-10 腾讯科技(深圳)有限公司 Message processing method, device, equipment and storage medium
WO2021208444A1 (en) * 2020-09-07 2021-10-21 平安科技(深圳)有限公司 Method and apparatus for automatically generating electronic cases, a device, and a storage medium
CN112287262A (en) * 2020-10-29 2021-01-29 腾讯科技(深圳)有限公司 Session display method and device, computer equipment and storage medium
CN112230821A (en) * 2020-11-10 2021-01-15 腾讯科技(深圳)有限公司 Session display method and device, computer equipment and storage medium
CN112420217A (en) * 2020-11-30 2021-02-26 腾讯科技(深圳)有限公司 Message pushing method, device, equipment and storage medium
CN112802614A (en) * 2021-01-27 2021-05-14 挂号网(杭州)科技有限公司 Online inquiry method, device, equipment and storage medium
CN113934832A (en) * 2021-10-22 2022-01-14 腾讯科技(深圳)有限公司 Session-based interactive processing method, apparatus, device, medium and program product
CN114629867A (en) * 2022-03-22 2022-06-14 康键信息技术(深圳)有限公司 On-line inquiry instant communication system and message processing method

Also Published As

Publication number Publication date
CN115208846A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US11860945B2 (en) Information processing apparatus to output answer information in response to inquiry information
US11165723B2 (en) Methods and systems for a bimodal auto-response mechanism for messaging applications
US20190206520A1 (en) Mobile-native clinical trial operations service suite
JP6070888B1 (en) Health management information processing device
CN112037905B (en) Medical question-answering method, device and storage medium
Freytag et al. The importance of intergenerational communication in advance care planning: generational relationships among perceptions and beliefs
JP7782537B2 (en) Information processing system, chatbot system, information management method, program
CN105678057A (en) Medical information sharing system
US20210398624A1 (en) Systems and methods for automated intake of patient data
CN111563145B (en) Online consultation method and device
JP6082832B1 (en) Message management apparatus and message management method
CN115208846B (en) Session interaction method and system
CN116887001B (en) Short video pushing method and device integrating social attribute information and electronic equipment
US20250281834A1 (en) Service providing apparatus providing communication with friend using widgets and operation method of the service providing apparatus
CN113448566B (en) A form logic configuration method and device
US20160070924A1 (en) Virtual-Account-Initiated Communication of Protected Information
CN115268724A (en) Information statistical method, device, equipment and storage medium
JP7495071B1 (en) Support system, support method, and support program
JP2025001383A (en) Information processor, method for processing information, and information processing program
JP2021068204A (en) Test device, test method and test program
KR20250088135A (en) Service providing method for providing care service for caregiver
US10820163B1 (en) Method and system for automated population outreach
CN111326221A (en) A medical consultation system used by patients
JP2018005406A (en) User management terminal, program, communication system and terminal
JP7781457B2 (en) Server device, control method, and program.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant