CN116089736A - Social session processing method and related equipment - Google Patents
Social session processing method and related equipment Download PDFInfo
- Publication number
- CN116089736A CN116089736A CN202111310791.4A CN202111310791A CN116089736A CN 116089736 A CN116089736 A CN 116089736A CN 202111310791 A CN202111310791 A CN 202111310791A CN 116089736 A CN116089736 A CN 116089736A
- Authority
- CN
- China
- Prior art keywords
- historical
- conversation
- message
- social
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9536—Search customisation based on social or collaborative filtering
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,具体涉及社交应用技术领域,尤其涉及一种社交会话的处理方法、一种社交会话的处理装置、一种计算机设备、一种计算机可读存储介质及一种计算机程序产品。The present application relates to the field of computer technology, specifically to the field of social application technology, and in particular to a social conversation processing method, a social conversation processing device, a computer device, a computer-readable storage medium, and a computer program product .
背景技术Background technique
随着互联网技术的发展,当前各种社交APP(Application,应用程序),尤其是即时通讯应用已经成为人们日常生产生活中重要工具。通过社交应用人们可以进行聊天对话,分享各种音频、视频、图片等等,这类基于互联网的线上社交方式不仅实现人与人之间的跨距离沟通交流,而且交流形式多样,更加轻松便捷。With the development of Internet technology, various social APPs (Applications, application programs), especially instant messaging applications, have become important tools in people's daily production and life. Through social applications, people can chat, share various audio, video, pictures, etc. This kind of Internet-based online social mode not only realizes cross-distance communication between people, but also communicates in various forms, making it easier and more convenient .
然而,目前人们在使用社交应用进行沟通交流的时候,大部分社交应用均存在回复消息的操作繁琐、信息沟通不及时等问题,这可能会影响社交会话的处理便捷度和效率。However, when people use social applications to communicate at present, most social applications have problems such as cumbersome operations for replying messages and untimely information communication, which may affect the convenience and efficiency of social conversation processing.
发明内容Contents of the invention
本申请实施例提供一种社交会话的处理方法及相关设备,可以有效提高社交会话的处理的便捷度以及效率。Embodiments of the present application provide a social session processing method and related equipment, which can effectively improve the convenience and efficiency of social session processing.
本申请实施例一方面提供了一种社交会话的处理方法,包括:On the one hand, an embodiment of the present application provides a method for processing a social session, including:
显示社交会话界面;display the social session interface;
响应于社交会话界面中的第一会话消息,显示历史会话记录;第一会话消息包含目标问题;历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息;In response to the first session message in the social session interface, displaying historical session records; the first session message includes a target question; the historical session record includes historical questions similar to the target question and historical reply messages related to the historical questions;
响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息,第二会话消息基于被选择的历史回复消息生成。In response to the selection of the historical reply message, a second conversation message is displayed in the social conversation interface, and the second conversation message is generated based on the selected historical reply message.
本申请实施例一方面提供了一种社交会话的处理装置,包括:On the one hand, an embodiment of the present application provides an apparatus for processing a social session, including:
显示单元,用于显示社交会话界面;a display unit, configured to display a social conversation interface;
处理单元,用于响应于社交会话界面中的第一会话消息,显示历史会话记录;第一会话消息包含目标问题;历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息;The processing unit is configured to display historical session records in response to the first session message in the social session interface; the first session message includes a target question; the historical session record includes historical questions similar to the target question and historical reply messages related to the historical questions ;
处理单元,还用于响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息,第二会话消息基于被选择的历史回复消息生成。The processing unit is further configured to display a second conversation message on the social conversation interface in response to the selection of the historical reply message, where the second conversation message is generated based on the selected historical reply message.
在一实施例中,处理单元,具体用于:响应于社交会话界面中的第一会话消息,输出提示信息,提示信息用于提示存在与目标问题相关的历史会话记录;当提示信息被触发时,显示历史会话记录。In an embodiment, the processing unit is specifically configured to: output prompt information in response to the first conversation message in the social conversation interface, and the prompt information is used to prompt that there is a historical conversation record related to the target question; when the prompt information is triggered , to display the session history.
在一实施例中,提示信息为提示文本,处理单元,具体用于:在社交会话界面中的任意位置显示提示文本;或者,在社交会话界面中的第一会话消息的显示位置周围显示提示文本。In an embodiment, the prompt information is a prompt text, and the processing unit is specifically configured to: display the prompt text at any position in the social conversation interface; or display the prompt text around the display position of the first conversation message in the social conversation interface .
在一实施例中,提示信息为提示动画,处理单元,具体用于:在社交会话界面中播放提示动画;或者,在悬浮窗中播放提示动画;或者,在固定窗口中播放提示动画。In an embodiment, the prompt information is a prompt animation, and the processing unit is specifically configured to: play the prompt animation in the social conversation interface; or play the prompt animation in the floating window; or play the prompt animation in the fixed window.
在一实施例中,社交会话的处理装置还包括停止单元,用于:当提示信息被触发时,停止显示提示信息;或者,当提示信息的显示时长到达设定时长时,停止显示提示信息。In an embodiment, the social session processing apparatus further includes a stopping unit, configured to: stop displaying the prompting information when the prompting message is triggered; or stop displaying the prompting message when the display duration of the prompting message reaches a set duration.
在一实施例中,若历史会话记录中包含历史问题相关的历史回复消息的数量为P条,P为正整数;则处理单元,具体用于:显示历史问题,并从P条历史回复消息中选取至少一条目标历史回复消息进行显示;其中,选取包括以下任一种:随机选取,按照回复时间先后顺序选取,按照与历史问题相关度由高至低的顺序选取。In one embodiment, if the number of historical reply messages related to historical questions contained in the historical conversation records is P, and P is a positive integer; Select at least one target historical reply message for display; wherein, the selection includes any of the following: random selection, selection in order of reply time, and selection in order of relevance to historical issues from high to low.
在一实施例中,若历史会话记录的数量为N,N为正整数;则处理单元,具体用于:按照每个历史会话记录中的历史问题的发送时间由近及远的顺序,对N个历史会话记录进行排序显示。In one embodiment, if the number of historical session records is N, and N is a positive integer; the processing unit is specifically configured to: according to the order of sending time of historical questions in each historical session record from near to far, for N Sort and display historical session records.
在一实施例中,若历史会话记录的数量为N,N为正整数;则提示信息中还包括历史会话记录的数量提示。In an embodiment, if the number of historical session records is N, and N is a positive integer; the prompt information also includes a prompt of the number of historical session records.
在一实施例中,历史回复消息对应有操作控件;处理单元,具体用于:当操作控件被触发时,历史回复消息被选择。In an embodiment, the historical reply message corresponds to an operation control; the processing unit is specifically configured to select the historical reply message when the operation control is triggered.
在一实施例中,操作控件设置于历史会话记录的显示界面中。In an embodiment, the operation control is set in the display interface of the historical session record.
在一实施例中,历史会话记录的显示界面中设有浏览控件;处理单元,具体用于:当浏览控件被触发时,显示历史会话记录的详情页面;详情页面中包含历史回复消息;操作控件设置于详情页面中的历史回复消息的周围。In one embodiment, a browsing control is provided in the display interface of the historical session record; the processing unit is specifically used for: when the browsing control is triggered, display the detail page of the historical session record; the detail page contains historical reply messages; the operation control Set around the historical reply messages on the details page.
在一实施例中,历史回复消息关联有操作区域;处理单元,具体用于:当操作区域中存在预定触摸轨迹时,历史回复消息被选择。In an embodiment, the history reply message is associated with the operation area; the processing unit is specifically configured to: when there is a predetermined touch track in the operation area, the history reply message is selected.
在一实施例中,被选择的历史回复消息的数量为一条或多条;处理单元,还用于:将被选择的各条历史回复消息均确定为第二会话消息;或者,将被选择的一条或多条历史回复消息合并成为一条第二会话消息。In an embodiment, the number of selected historical reply messages is one or more; the processing unit is further configured to: determine each selected historical reply message as a second conversation message; One or more historical reply messages are merged into a second conversation message.
在一实施例中,处理单元,具体用于:响应于对历史回复消息的选择,将被选择的历史回复消息输出到会话编辑区域;会话编辑区域包括编辑窗口或者社交会话界面的输入栏;在会话编辑区域对历史回复消息进行编辑,形成第二会话消息;在社交会话界面中显示第二会话消息。In an embodiment, the processing unit is specifically configured to: in response to the selection of the historical reply message, output the selected historical reply message to the session editing area; the session editing area includes an editing window or an input column of a social session interface; The session editing area edits the historical reply messages to form a second session message; the second session message is displayed in the social session interface.
在一实施例中,社交会话的处理装置还包括分享单元,用于:响应于对历史回复消息的分享,显示分享对象列表;将历史回复消息分享至分享对象列表中被选中的目标分享对象。In an embodiment, the device for processing social conversations further includes a sharing unit, configured to: display a list of sharing objects in response to sharing the historical reply message; and share the historical reply message to the selected target sharing object in the sharing object list.
在一实施例中,处理单元,还用于:当社交会话界面中存在第一会话消息时,对第一会话消息进行检测;若检测到第一会话消息包括问题标志,则确定第一会话消息包含目标问题,触发执行响应于社交会话界面中的第一会话消息,显示历史会话记录;其中,问题标志包括以下任一种:疑问标识符、疑问词、表示疑问的字符。In an embodiment, the processing unit is further configured to: when there is a first conversation message in the social conversation interface, detect the first conversation message; if it is detected that the first conversation message includes a question mark, then determine the first conversation message Contains the target question, triggers the execution of responding to the first conversation message in the social conversation interface, and displays the historical conversation record; wherein, the question mark includes any of the following: question identifier, question word, character representing a question.
本申请实施例一方面提供了一种计算机设备,包括:处理器、存储器以及网络接口;处理器与存储器、网络接口相连,其中,网络接口用于提供网络通信功能,存储器用于存储程序代码,处理器用于调用程序代码,以执行本申请实施例中的社交会话的处理方法。An embodiment of the present application provides a computer device on the one hand, including: a processor, a memory, and a network interface; the processor is connected to the memory and the network interface, wherein the network interface is used to provide network communication functions, and the memory is used to store program codes. The processor is used for invoking program codes to execute the social session processing method in the embodiment of the present application.
本申请实施例一方面提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序包括程序指令,程序指令当被处理器执行时,执行本申请实施例中的社交会话的处理方法。An embodiment of the present application provides a computer-readable storage medium on the one hand. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the social session in the embodiment of the application is executed. processing method.
相应的,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中;计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行本申请实施例中一方面提供的社交会话的处理方法。Correspondingly, an embodiment of the present application provides a computer program product or computer program, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; The storage medium reads the computer instructions, and the processor executes the computer instructions, so that the computer device executes the social session processing method provided in one aspect of the embodiments of the present application.
在本申请实施例中,当社交会话界面中存在包含目标问题的第一会话消息时,可以响应于该第一会话消息而显示历史会话记录,此历史会话记录中包含与目标问题相似的历史问题及相关的历史回复消息;基于历史会话记录中被选择的历史回复消息可以在该社交会话界面中显示第二会话消息,从而实现对目标问题的快速回复。上述过程中,通过目标问题进行自动化且智能化地匹配历史会话记录,并提供相似的历史问题的历史回复消息来进行选择,只需用户少量且简单的选择操作,即可快速实现对目标问题的回复,极大地提升了社交会话的处理效率和便捷度。In the embodiment of the present application, when there is a first conversation message containing the target question in the social conversation interface, a historical conversation record may be displayed in response to the first conversation message, and the historical conversation record contains historical questions similar to the target question and related historical reply messages; based on the selected historical reply messages in the historical conversation records, a second conversation message can be displayed in the social conversation interface, thereby realizing a quick reply to the target question. In the above process, the historical conversation records are automatically and intelligently matched through the target question, and historical reply messages of similar historical questions are provided for selection. Only a small number of simple selection operations by the user are required to quickly realize the target question. Reply, which greatly improves the processing efficiency and convenience of social conversations.
附图说明Description of drawings
图1是本申请一个示例性实施例提供的一种社交会话的处理系统的架构图;FIG. 1 is an architecture diagram of a social session processing system provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图一;FIG. 2 is a first schematic flowchart of a social session processing method provided by an exemplary embodiment of the present application;
图3是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图二;FIG. 3 is a second schematic flow diagram of a social session processing method provided by an exemplary embodiment of the present application;
图4a是本申请一个示例性实施例提供的一种示例性地输出提示信息的示意图一;Fig. 4a is a schematic diagram 1 of an exemplary output prompt information provided by an exemplary embodiment of the present application;
图4b是本申请一个示例性实施例提供的一种示例性地输出提示信息的示意图二;Fig. 4b is a schematic diagram 2 of an exemplary output prompt information provided by an exemplary embodiment of the present application;
图4c是本申请一个示例性实施例提供的一种示例性地输出提示信息的示意图三;Fig. 4c is a third schematic diagram of an exemplary output prompt information provided by an exemplary embodiment of the present application;
图5是本申请一个示例性实施例提供的一种示例性地输出提示信息的示意图四;Fig. 5 is a schematic diagram 4 of an exemplary output prompt information provided by an exemplary embodiment of the present application;
图6是本申请一个示例性实施例提供的一种历史会话记录的显示界面的示意图;Fig. 6 is a schematic diagram of a display interface of a historical session record provided by an exemplary embodiment of the present application;
图7是本申请一个示例性实施例提供的一种显示历史会话记录的操作示意图;FIG. 7 is a schematic diagram of an operation for displaying historical session records provided by an exemplary embodiment of the present application;
图8是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图三;FIG. 8 is a third schematic flowchart of a method for processing a social session provided by an exemplary embodiment of the present application;
图9是本申请一个示例性实施例提供的一种操作控件设置的示意图;Fig. 9 is a schematic diagram of an operation control setting provided by an exemplary embodiment of the present application;
图10a是本申请一个示例性实施例一种功能控件设置的示意图;Fig. 10a is a schematic diagram of a functional control setting according to an exemplary embodiment of the present application;
图10b是本申请一个示例性实施例一种显示第二会话消息的操作示意图;Fig. 10b is a schematic diagram of an operation for displaying a second conversation message in an exemplary embodiment of the present application;
图10c是本申请一个示例性实施例另一种显示第二会话消息的操作示意图;Fig. 10c is another schematic diagram of an operation for displaying a second conversation message in an exemplary embodiment of the present application;
图11a是本申请一个示例性实施例提供的一种在会话编辑区域输出历史回复内容的操作示意图;Fig. 11a is a schematic diagram of an operation for outputting historical reply content in the session editing area provided by an exemplary embodiment of the present application;
图11b是本申请一个示例性实施例提供的另一种在会话编辑区域输出历史回复内容的操作示意图;Fig. 11b is a schematic diagram of another operation for outputting historical reply content in the session editing area provided by an exemplary embodiment of the present application;
图12a是本申请一个示例性实施例提供的一种操作控件设置在详情页面的示意图;Fig. 12a is a schematic diagram of setting an operation control on a details page provided by an exemplary embodiment of the present application;
图12b是本申请一个示例性实施例提供的另一种操作控件设置在详情页面的示意图;Fig. 12b is a schematic diagram of setting another operation control on the details page provided by an exemplary embodiment of the present application;
图13a是本申请一个示例性实施例提供的一种显示分享对象列表的操作示意图;Fig. 13a is a schematic diagram of an operation for displaying a list of sharing objects provided by an exemplary embodiment of the present application;
图13b是本申请一个示例性实施例提供的一种分享对象列表的显示界面的示意图;Fig. 13b is a schematic diagram of a display interface of a sharing object list provided by an exemplary embodiment of the present application;
图14是本申请一个示例性实施例提供的一种分享历史会话消息的操作示意图;Fig. 14 is a schematic diagram of an operation of sharing historical session messages provided by an exemplary embodiment of the present application;
图15是本申请一个示例性实施例提供的一种社交会话的处理过程时序图一;Fig. 15 is a sequence diagram 1 of a processing procedure of a social session provided by an exemplary embodiment of the present application;
图16是本申请一个示例性实施例提供的一种社交会话的处理过程时序图二;Fig. 16 is a sequence diagram 2 of a social session processing process provided by an exemplary embodiment of the present application;
图17是本申请一个示例性实施例提供的一种社交会话的处理过程时序图三;FIG. 17 is a sequence diagram three of a social session processing process provided by an exemplary embodiment of the present application;
图18a是本申请一个示例性实施例提供的一种回复会话消息的处理时序图一;Fig. 18a is a processing sequence diagram 1 of replying a session message provided by an exemplary embodiment of the present application;
图18b是本申请一个示例性实施例提供的一种回复会话消息的处理时序图二;Fig. 18b is a second processing sequence diagram of a reply session message provided by an exemplary embodiment of the present application;
图18c是本申请一个示例性实施例提供的一种回复会话消息的处理时序图三;Fig. 18c is a processing sequence diagram 3 of a reply conversation message provided by an exemplary embodiment of the present application;
图19是本申请一个示例性实施例提供的一种社交会话的处理装置的结构示意图;Fig. 19 is a schematic structural diagram of an apparatus for processing a social session provided by an exemplary embodiment of the present application;
图20是本申请一个示例性实施例提供的一种计算机设备的结构示意图。Fig. 20 is a schematic structural diagram of a computer device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is Some embodiments of this application are not all embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
为了更好地理解本申请实施例的方案,下面先对本申请实施例涉及的相关术语和概念进行介绍。In order to better understand the solutions of the embodiments of the present application, relevant terms and concepts involved in the embodiments of the present application are firstly introduced below.
一、即时通讯应用1. Instant messaging application
即时通讯应用也称为即时通信应用,是一种通过即时通讯技术实现在线聊天和交流的软件,基于互联网的即时通讯软件可以针对各种主流操作系统进行设计,包括Windows、macOS、iPadOS、Android、iOS、Windowsphone、Linux等操作系统,即时通讯应用的功能十分丰富,举例来说,一些即时通讯应用可以支持在线聊天、视频通话、点对点断点续传文件、共享文件、网络硬盘、自定义面板、邮箱等等功能,并可与多种通讯终端相连。Instant messaging application, also known as instant messaging application, is a software that realizes online chat and communication through instant messaging technology. Internet-based instant messaging software can be designed for various mainstream operating systems, including Windows, macOS, iPadOS, Android, For iOS, Windowsphone, Linux and other operating systems, instant messaging applications are very rich in functions. For example, some instant messaging applications can support online chat, video calls, peer-to-peer resuming of files, shared files, network hard drives, custom panels, Mailbox and other functions, and can be connected with a variety of communication terminals.
二、社交客户端2. Social client
社交客户端可以是指与服务器相对应,为客户提供本地服务的社交APP(Application,应用程序),例如社交客户端可包括但不限于:即时通信APP、地图社交APP、内容交互APP、游戏社交APP、免安装APP(一种无需下载安装即可使用的应用,用户扫一扫或者搜一下即可打开并使用,例如小程序)等等;社交客户端也可以是指与服务器相对应,为客户提供本地服务的具备社交会话功能的网站,例如社交网站、论坛等等。A social client can refer to a social APP (Application, application program) that corresponds to a server and provides local services for customers. For example, a social client can include but is not limited to: instant messaging APP, map social APP, content interaction APP, game social APP, installation-free APP (an application that can be used without downloading and installing, and can be opened and used by users by scanning or searching, such as small programs), etc.; social client can also refer to corresponding to the server, for Websites with social conversation features where customers provide local services, such as social networking sites, forums, etc.
三、会话3. Conversation
会话是指面向一个人或者一个群组的对话,通过与单个人或群组之间会话可以收发消息。在社交客户端中,会话可以叫做社交会话,对应地,社交会话可以包括单独会话和群组(或群聊)会话。单独会话是指两个社交用户参与的社交会话,用于在该两个社交用户之间进行信息交流。群组(或群聊)会话是指多个(大于两个)社交用户参与的社交会话,用于在该多个社交用户之间进行信息交流。Conversation refers to a dialogue for a person or a group, and messages can be sent and received through a conversation with a single person or group. In a social client, a session may be called a social session, and correspondingly, a social session may include an individual session and a group (or group chat) session. A separate session refers to a social session in which two social users participate, and is used for information exchange between the two social users. A group (or group chat) session refers to a social session in which multiple (more than two) social users participate, and is used for information exchange among the multiple social users.
四、社交会话界面4. Social Conversation Interface
社交会话界面是指用于进行社交会话的用户界面;该用户界面可以是设置于终端设备中的社交客户端所提供的会话界面。该社交会话界面中可以显示参与社交会话的不同社交用户发送的会话消息,还可以设置相关功能控件,例如用于查看更多历史回复的按钮。The social conversation interface refers to a user interface for social conversation; the user interface may be a conversation interface provided by a social client provided in a terminal device. The social session interface can display session messages sent by different social users participating in the social session, and can also set related function controls, such as buttons for viewing more historical replies.
五、历史会话消息5. Historical conversation messages
在社交会话的过程中,以当前时间点作为划分基准点,在当前时间点之前社交会话界面中显示的会话消息即历史会话消息,该会话消息可以通过文本、音频、视频、图像、链接等等形式展现,可以存储在本地终端设备或者服务器中。对于历史会话消息的管理可以是根据不同的联系人或群组划分。可选地,历史会话消息也称为聊天记录或历史聊天消息,本实施例中历史会话记录可以从历史会话消息中确定。In the process of social conversation, the current time point is used as the dividing reference point. The conversation messages displayed in the social conversation interface before the current time point are historical conversation messages. The conversation messages can be passed through text, audio, video, images, links, etc. It can be displayed in a form and can be stored in a local terminal device or a server. The management of historical conversation messages can be divided according to different contacts or groups. Optionally, historical session messages are also referred to as chat records or historical chat messages. In this embodiment, historical session records can be determined from historical session messages.
六、人工智能(Artificial Intelligence,AI)6. Artificial Intelligence (AI)
人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。换句话说,人工智能是计算机科学的一个综合技术,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器。人工智能也就是研究各种智能机器的设计原理与实现方法,使机器具有感知、推理与决策的功能。人工智能技术是一门综合学科,涉及领域广泛,既有硬件层面的技术也有软件层面的技术。人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。Artificial Intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technique of computer science that attempts to understand the nature of intelligence and produce a new kind of intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines, so that the machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive subject that involves a wide range of fields, including both hardware-level technology and software-level technology. Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation/interaction systems, and mechatronics. Artificial intelligence software technology mainly includes several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning/deep learning.
自然语言处理(Nature Language processing,NLP)是计算机科学领域与人工智能领域中的一个重要方向。它研究能实现人与计算机之间用自然语言进行有效通信的各种理论和方法。自然语言处理是一门融语言学、计算机科学、数学于一体的科学。因此,这一领域的研究将涉及自然语言,即人们日常使用的语言,所以它与语言学的研究有着密切的联系。自然语言处理技术通常包括文本处理、语义理解、机器翻译、机器人问答、知识图谱等技术。本申请中基于目标问题确定相似的历史问题及相关历史回复消息具体涉及对文本的处理和语义理解等技术中的一种或多种。Natural Language Processing (NLP) is an important direction in the field of computer science and artificial intelligence. It studies various theories and methods that can realize effective communication between humans and computers using natural language. Natural language processing is a science that combines linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language that people use every day, so it is closely related to the study of linguistics. Natural language processing technologies usually include text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies. In this application, determining similar historical questions and related historical reply messages based on the target question specifically involves one or more of technologies such as text processing and semantic understanding.
基于上述描述,本申请实施例提供了一种社交会话的处理方法,该方法基于社交会话界面中的目标问题可以快速检索出与该目标问题相关历史会话记录,该历史会话记录提供与该目标问题相似的历史问题,并且提供相应的历史回复消息供用户选择,用户仅需要简单的操作就可快速生成对目标问题的回复,并显示到社交会话界面中,实现对该目标问题的快速回复,提升了社交会话的处理效率和便捷度。Based on the above description, the embodiment of the present application provides a social conversation processing method, the method can quickly retrieve the historical conversation records related to the target question based on the target question in the social conversation interface, and the historical conversation record provides information related to the target question. Similar historical questions, and provide corresponding historical reply messages for users to choose. Users only need simple operations to quickly generate replies to target questions, and display them in the social conversation interface to achieve quick replies to the target question and improve It improves the processing efficiency and convenience of social conversations.
下面将结合附图,对本申请实施例提供的社交会话的处理系统的架构进行介绍。The architecture of the social session processing system provided by the embodiment of the present application will be introduced below with reference to the accompanying drawings.
请参见图1,图1是本申请一个示例性实施例提供的一种社交会话的处理系统的架构图,如图1所示,该架构图可以包括多个(至少两个)计算机设备(例如图中的计算机设备100a、计算机设备100b和计算机设备100c)及服务器101。计算机设备可以和服务器通过有线或无线的方式建立通信连接,并和服务器进行数据交互。其中:Please refer to FIG. 1. FIG. 1 is an architecture diagram of a social conversation processing system provided by an exemplary embodiment of the present application. As shown in FIG. 1, the architecture diagram may include multiple (at least two) computer devices (such as Computer equipment 100a, computer equipment 100b and computer equipment 100c) and server 101 in the figure. The computer equipment can establish a communication connection with the server through wired or wireless means, and perform data interaction with the server. in:
计算机设备是指参与社交会话的用户所使用的设备,该计算机设备可包括但不限于智能手机、平板电脑、智能可穿戴设备、智能语音交互设备、智能家电、个人电脑、车载终端等等设备,本申请实施例对此不作限制。对于计算机设备的数量,本申请不做限制。计算机设备中安装并运行有社交客户端,用户可以基于各自的计算机设备中运行的社交客户端与其他用户进行社交交互,例如:用户A可以使用计算机设备100a中运行的社交客户端与用户B进行社交交互;再如:用户A、用户B和用户C均可使用各自计算机设备中运行的社交客户端进行社交交互。社交客户端可以提供社交会话界面,用户基于社交客户端进行社交交互产生的会话消息可以显示于社交会话界面中。Computer equipment refers to the equipment used by users participating in social conversations, which may include but not limited to smartphones, tablet computers, smart wearable devices, smart voice interaction devices, smart home appliances, personal computers, vehicle terminals, etc. The embodiment of the present application does not limit this. The application does not limit the number of computer devices. A social client is installed and running in the computer device, and users can socially interact with other users based on the social client running in their respective computer devices, for example: user A can use the social client running in the computer device 100a to interact with user B Social interaction; another example: user A, user B, and user C can all use the social client running in their respective computer devices for social interaction. The social client can provide a social conversation interface, and the conversation messages generated by the user through social interaction based on the social client can be displayed on the social conversation interface.
服务器101可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器,但并不局限于此。对于服务器101的数量,本申请不做限制。在一种实施方式中,服务器101可以是社交客户端所对应的后台服务器,用于管理社交客户端并为其提供服务支持,该服务支持可包括但不限于:为各个社交客户端转发社交会话的会话消息,存储社交会话的历史会话消息,管理参与社交会话的成员信息,等等。The server 101 can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, and can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but are not limited thereto. For the number of servers 101, there is no limitation in this application. In one embodiment, the server 101 may be a background server corresponding to the social client, and is used to manage the social client and provide service support for it. The service support may include but is not limited to: forwarding social sessions for each social client session messages, store historical session messages of social sessions, manage member information participating in social sessions, etc.
设社交客户端中存在社交会话,该社交会话可以是单独会话,也可以是群组会话,本申请实施例以由用户A、用户B和用户C共同参与的群组会话为例进行说明。下面详细阐述图1所示系统的工作原理如下:Assuming that there is a social session in the social client, the social session may be an individual session or a group session. The embodiment of the present application uses a group session jointly participated by user A, user B, and user C as an example for illustration. The working principle of the system shown in Figure 1 is explained in detail below:
(1)计算机设备(可以是系统中的任一计算机设备,假设为计算机设备100a)显示社交客户端中的社交会话界面,在社交会话界面中包括第一会话消息;其中该第一会话消息可以是由参与社交会话的任一用户(例如用户A)发送的。(1) A computer device (which may be any computer device in the system, assumed to be computer device 100a) displays a social conversation interface in a social client, and includes a first conversation message in the social conversation interface; wherein the first conversation message can be Sent by any user participating in the social session (for example, user A).
(2)在一种实施方式中,计算机设备100a对用户A发送的第一会话消息进行检测,如果检测出第一会话消息包括目标问题,计算机设备100a向服务器101发送处理请求,请求服务器101返回与所述目标问题相关的历史会话记录;该处理请求会触发服务器101可以根据目标问题自动从存储的历史会话消息中快速查找到相似的历史问题以及对应的历史会话消息,进而形成历史会话记录,并将其返回至计算机设备100a,也可以一并发送给参与社交会话的其他计算机设备(即计算机设备100b和计算机设备100c)。(2) In one embodiment, the computer device 100a detects the first conversation message sent by user A, and if it detects that the first conversation message includes the target question, the computer device 100a sends a processing request to the server 101, and requests the server 101 to return A historical session record related to the target issue; this processing request will trigger the server 101 to automatically quickly find similar historical issues and corresponding historical session messages from stored historical session messages according to the target issue, and then form a historical session record, And return it to the computer device 100a, and also send it to other computer devices participating in the social session (ie, the computer device 100b and the computer device 100c).
在另一种实施方式中,计算机设备100a可以将用户A发送的第一会话消息提交给服务器101,由服务器101对该第一会话消息进行检测,如果检测出该第一会话消息包含目标问题,服务器101即会根据目标问题自动从存储的历史会话消息中快速查找到相似的历史问题以及对应的历史会话消息,进而形成历史会话记录,并将其返回至计算机设备100a,也可以一并发送给参与社交会话的其他计算机设备(即计算机设备100b和计算机设备100c)。In another embodiment, the computer device 100a may submit the first conversation message sent by user A to the server 101, and the server 101 detects the first conversation message, and if it is detected that the first conversation message contains the target question, The server 101 will automatically quickly find similar historical issues and corresponding historical session messages from the stored historical session messages according to the target issue, and then form a historical session record, and return it to the computer device 100a, or send it to the computer device 100a together. Other computer devices participating in the social session (ie, computer device 100b and computer device 100c).
(3)计算机设备100a显示历史会话记录;当参与社交会话的任一用户(例如用户A)从历史会话记录中选择任一条历史回复消息时,基于该被选择的历史回复消息生成第二会话消息,例如将被选择的历史回复消息直接作为第二会话消息,或者对被选择的历史回复消息进行编辑形成第二会话消息。(3) The computer device 100a displays the historical conversation record; when any user (such as user A) participating in the social conversation selects any historical reply message from the historical conversation record, a second conversation message is generated based on the selected historical reply message For example, the selected historical reply message is directly used as the second conversation message, or the selected historical reply message is edited to form the second conversation message.
(4)计算机设备100a在社交会话界面中显示第二会话消息,可以理解的是,该第二会话消息也会提交至服务器101中,由服务器101将该第二会话消息推送给参加社交会话的其他用户所使用计算机设备中进行显示。即参与同一社交会话的各用户的计算机机设备中显示的社交会话界面的内容相同。(4) The computer device 100a displays the second session message in the social session interface, it can be understood that the second session message will also be submitted to the server 101, and the server 101 pushes the second session message to those participating in the social session Displayed on computer equipment used by other users. That is, the content of the social session interface displayed on the computer equipment of each user participating in the same social session is the same.
通过上述(1)-(4),当社交会话界面中存在包含目标问题的第一会话消息时,计算机设备能够快速显示与该目标问题相关的历史会话记录(包括与目标问题相似的历史问题和历史问题相关的历史回复消息),以提供给用户选择历史回复消息快速实现对目标问题的回复。上述的社交会话的处理方案可以应用于各种互联网场景中,包括但不限于云技术、人工智能、智慧交通、辅助驾驶、社交交互等各种场景,具体可以是当这些场景中的社交会话中存在目标问题时,能够基于历史会话记录快速回复该目标问题,非常便捷。Through the above (1)-(4), when there is a first session message containing the target question in the social conversation interface, the computer device can quickly display the historical session records related to the target question (including historical questions similar to the target question and Historical reply messages related to historical questions), so as to provide users with a choice of historical reply messages to quickly reply to the target question. The above-mentioned social session processing scheme can be applied to various Internet scenarios, including but not limited to various scenarios such as cloud technology, artificial intelligence, intelligent transportation, assisted driving, social interaction, etc. Specifically, when social sessions in these scenarios When there is a target problem, it is very convenient to be able to quickly reply to the target problem based on historical session records.
下面结合附图,对本申请实施例提出的社交会话的处理方法的具体实现方式进行详细阐述。除特别说明外,本申请后续实施例中提及的社交会话的处理方法可以由计算机设备来执行,该计算机设备例如可以是图1所示系统中的任一个计算机设备;该计算机设备中运行有社交客户端。并且,社交会话可以是单独会话或群组会话,本申请实施例以群组会话为例进行说明。The specific implementation manner of the social session processing method proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings. Except for special instructions, the processing method of the social conversation mentioned in the subsequent embodiments of the present application can be executed by a computer device, which can be, for example, any computer device in the system shown in Figure 1; the computer device runs social client. Moreover, the social session may be an individual session or a group session, and this embodiment of the present application uses a group session as an example for description.
请参见图2,图2是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图一。该社交会话的处理方法包括但不限于以下步骤:Please refer to FIG. 2 . FIG. 2 is a first schematic flowchart of a method for processing a social session provided by an exemplary embodiment of the present application. The processing method of the social session includes but not limited to the following steps:
S201,显示社交会话界面。S201, displaying a social conversation interface.
社交会话界面用于展示参与社交会话的各用户交互的会话消息。会话消息具体可以为文本、语音、视频、图像、小程序、链接、文件、地理位置等等。如图2中的社交会话界面20为群聊会话界面,在该群聊会话界面中显示有会话消息2001和会话消息2002,其中,会话消息2001为小程序链接,会话消息2002为文本内容,这两条消息可以由不同或相同的用户发送或分享。The social conversation interface is used to display conversation messages interacted by users participating in the social conversation. Specifically, the conversation message may be text, voice, video, image, applet, link, file, geographic location, and the like. As shown in Figure 2, the social conversation interface 20 is a group chat conversation interface, in which a
S202,响应于社交会话界面中的第一会话消息,显示历史会话记录。S202. Display historical session records in response to the first session message in the social session interface.
其中,第一会话消息包含目标问题,该目标问题是指要求回答、回复或解释的任意题目,例如:目标问题可以是“为什么?”“吃什么?”“xx怎么样?”等等,本申请并不对目标问题的类型或内容进行限定。历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息。Wherein, the first session message includes a target question, and the target question refers to any topic requiring an answer, reply or explanation, for example: the target question can be "why?" "what to eat?" "how about xx?" The application does not limit the type or content of the targeted questions. The historical session records include historical questions similar to the target question and historical reply messages related to the historical questions.
第一会话消息可以是社交会话界面中所显示的发送时间戳最大的会话消息(即最新发送的会话消息),该第一会话消息也可以是社交会话界面中所显示的任一条会话消息。如图2所示,社交会话界面20显示的会话消息2001和/或会话消息2002。在一实施例中,在第一会话消息包含目标问题时,计算机设备自动响应该第一会话消息,具体是响应该目标问题,根据该目标问题找到相关的历史会话记录,所谓相关是指:历史会话记录包含与目标问题相似的历史问题以及该历史问题相关的历史回复消息。其中,目标问题具体可以是文本或者语音等形式的问句。举例来说,社交会话界面20中用户A发送的会话消息2002包含目标问题,该目标问题的具体文本内容为“吃什么?”。又例如,用户在社交会话界面中发送的第一会话消息中包含带问号的问句,则该第一会话消息包含目标问题。如图1所示实施例的描述,计算机设备可以自行检测第一会话消息是否包含目标问题,计算机设备也可以提交给服务器来检测第一会话消息是否包含目标问题;当第一会话消息包含目标问题时,服务器会从社交会话的历史聊天记录(即历史会话消息)中检索与目标问题相似的历史问题,如果检测到,则提取历史问题相关的历史回复消息形成历史会话记录返回给计算机设备。The first conversation message may be the conversation message displayed on the social conversation interface with the largest sending time stamp (that is, the latest sent conversation message), and the first conversation message may also be any conversation message displayed on the social conversation interface. As shown in FIG. 2 , the social conversation interface 20 displays a
历史会话记录可包含多个历史问题以及每个历史问题相关的一条或多条历史回复消息,该历史问题和目标问题相似,可选地,这里的相似包括历史问题和目标问题完全相同的情况,即历史问题和目标问题为重复问题。如图2中历史会话记录的显示界面21中示例性展示的历史会话记录,其中一个历史会话记录210包括:历史问题2101以及该历史问题相关的历史回复消息2102。该历史问题2101为“吃什么?”,和社交会话界面中的目标问题2002为完全相同的问题。需要说明的是,历史问题、历史回复消息都是属于历史会话消息,即在第一会话消息之前发送的会话消息。历史问题相关的历史回复消息可以包括针对历史问题进行回复的一条或多条历史会话消息;举例来说,对于历史问题“吃什么?”,群聊中按照回复时间的历史回复消息依次为“我们去吃炒菜呗”、“好的”、“走起”,其中,该历史问题“吃什么?”相关的历史回复消息可以仅为第一条“我们去吃炒菜呗”的消息,或者,也可以为“我们去吃炒菜呗”、“好的”、“走起”这三条消息。The historical session record may contain multiple historical questions and one or more historical reply messages related to each historical question. The historical question is similar to the target question. Optionally, the similarity here includes the situation that the historical question and the target question are exactly the same. That is, the history question and the target question are repeated questions. As shown in the historical session record display interface 21 of FIG. 2 , one of the historical session records 210 includes: a
S203,响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息。S203, in response to selecting the historical reply message, display the second conversation message on the social conversation interface.
第二会话消息基于被选择的历史回复消息生成。针对历史会话记录中的历史回复消息的选择,可以是用户手动选择,也可以是系统自动随机选择后由用户确认,在本申请实施例中,以用户手动选择进行说明。对于历史回复消息的选择的实现方式可参见下述实施例,在此先不做详述。在一种可行的实施方式中,被选择的历史回复消息可以包括至少一条;该被选择的至少一条历史回复消息可以直接作为第二会话消息,即第二会话消息的数量和被选择的历史回复消息的数量相同。在另一种可行的实施方式中,该第二会话消息也可以是对被选择的一条或多条历史回复消息进行组合、拼接、编辑等任一种或多种操作之后得到的一条会话消息;本申请实施例对第二会话消息的生成方式在此不做限制。The second conversation message is generated based on the selected historical reply messages. The selection of historical reply messages in the historical conversation records can be manually selected by the user, or can be automatically selected randomly by the system and then confirmed by the user. In this embodiment of the application, manual selection by the user is used for illustration. For the implementation of the selection of historical reply messages, reference may be made to the following embodiments, which will not be described in detail here. In a feasible implementation manner, the selected historical reply message may include at least one; the selected at least one historical reply message may be directly used as the second conversation message, that is, the number of the second conversation message and the selected historical reply message The number of messages is the same. In another feasible implementation manner, the second conversation message may also be a conversation message obtained after performing any one or more operations such as combining, splicing, and editing one or more selected historical reply messages; The embodiment of the present application does not limit the method of generating the second session message here.
响应于对历史回复消息的选择,计算机设备可以在社交会话界面中显示第二会话消息,该第二会话消息即可以作为对目标问题的回复消息。如图2所示,社交会话界面22和社交会话界面20为相同群聊的社交会话界面,但是两个社交会话界面中显示的会话消息有所不同,社交会话界面22中除了显示第一会话消息,还包括第二会话消息2201。可选地,第一会话消息和第二会话消息可以是不同用户发送的会话消息,也可以是相同用户发送的不同会话消息。需要说明的是,本实施例提供的方案可以应用于各种社交场景中,例如使用即时通讯软件进行聊天的场景中,也可以是其他支持社交会话功能的软件的场景中,在此不做限制。In response to the selection of the historical reply message, the computer device may display a second conversation message in the social conversation interface, and the second conversation message may serve as a reply message to the target question. As shown in Figure 2, the
综上所述,本实施例至少具有以下优点:In summary, this embodiment has at least the following advantages:
在显示的社交会话界面中的第一会话消息包含目标问题时,显示历史会话记录,通过该历史会话记录为用户智能化匹配可供选择的历史回复消息,之后响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息。整个过程无需用户进行复杂的输入操作,只需对历史回复消息进行简单的选择操作,就可以实现对社交会话界面中的目标问题直接快速地回复,进而有效提高会话消息回复的便捷度和效率。When the first conversation message in the displayed social conversation interface contains the target question, the historical conversation record is displayed, through which the historical conversation record is intelligently matched for the user to select the historical reply message, and then in response to the selection of the historical reply message, A second conversation message is displayed in the social conversation interface. The whole process does not require the user to perform complex input operations, and only needs to perform a simple selection operation on the historical reply message to achieve a direct and rapid reply to the target question in the social conversation interface, thereby effectively improving the convenience and efficiency of conversation message reply.
请参见图3,图3是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图二。该社交会话的处理方法可以由计算机设备来执行,该计算机设备例如可以是图1所示系统中的任一个计算机设备;该计算机设备中运行有社交客户端,该计算机设备可以是终端设备;该社交会话的处理方法包括但不限于以下步骤:Please refer to FIG. 3 . FIG. 3 is a second schematic flowchart of a method for processing a social session provided by an exemplary embodiment of the present application. The processing method of the social session can be performed by a computer device, and the computer device can be, for example, any computer device in the system shown in Figure 1; a social client runs in the computer device, and the computer device can be a terminal device; The processing method of social session includes but not limited to the following steps:
S301,显示社交会话界面。S301, displaying a social conversation interface.
此步骤的具体实现方式可以参见图2对应实施例中的S201,在此不做赘述。For the specific implementation manner of this step, refer to S201 in the embodiment corresponding to FIG. 2 , and details are not described here.
S302,响应于社交会话界面中的第一会话消息,输出提示信息。S302. Output prompt information in response to the first conversation message in the social conversation interface.
在本申请实施例中,第一会话消息包含目标问题,提示信息用于提示存在与目标问题相关的历史会话记录。In this embodiment of the present application, the first conversation message includes the target question, and the prompt information is used to prompt that there is a historical conversation record related to the target question.
在一可行的实施例中,在执行步骤S302之前,还包括:当社交会话界面中存在第一会话消息时,对第一会话消息进行检测;若检测到第一会话消息包括问题标志,则确定第一会话消息包含目标问题,触发执行响应于社交会话界面中的第一会话消息,显示历史会话记录;其中,问题标志包括以下任一种:疑问标识符、疑问词、表示疑问的字符。上述方式也即对社交会话界面中的第一会话消息中是否包含目标问题的一种判断方式,可选地,可以通过第一会话消息中包含的问题标志来确定,问题标志可以是疑问标识符,具体为疑问符号,例如问号“?”,也可以是疑问词,例如“什么”、“怎么样”、“如何”等等,还可以是表示疑问的字符,例如“吗”、“呢”等等,可选地,还可以是多种问题标志的组合。举例来说,若第一会话消息为“今天中午吃什么啊?”,通过检测发现其中包括疑问标识符“?”以及疑问词“什么”,则可以判定第一会话消息包含目标问题。基于此,通过运行社交客户端的计算机设备可以触发执行步骤S303以及其之后的步骤。In a feasible embodiment, before performing step S302, it also includes: when there is a first conversation message in the social conversation interface, detecting the first conversation message; if it is detected that the first conversation message includes a question mark, then determine The first session message contains a target question, triggering the execution of responding to the first session message in the social session interface, and displaying historical session records; wherein, the question mark includes any of the following: question identifiers, question words, and characters representing questions. The above method is also a way of judging whether the first conversation message in the social conversation interface contains the target question. Optionally, it can be determined by the question flag contained in the first conversation message, and the question flag can be a question identifier , specifically interrogative symbols, such as question mark "?", can also be interrogative words, such as "what", "how", "how", etc., and can also be interrogative characters, such as "do", "what" etc. Optionally, it may also be a combination of various problem flags. For example, if the first conversational message is "What did you eat for lunch today?", and it is found through detection that it includes the question identifier "?" and the question word "what", then it can be determined that the first conversational message contains the target question. Based on this, the execution of step S303 and the subsequent steps may be triggered by the computer device running the social client.
在一实施例中,提示信息为提示文本,那么计算机设备输出提示信息的实现方式可以包括以下任一种:方式一、在社交会话界面中的任意位置显示提示文本;方式二、在社交会话界面中的第一会话消息的显示位置周围显示提示文本。In an embodiment, the prompt information is a prompt text, and then the implementation of the computer device output prompt information may include any of the following: method 1, displaying the prompt text at any position in the social conversation interface; method 2, displaying the prompt text on the social conversation interface Hint text is displayed around the display position of the first conversation message in .
针对方式一:社交会话界面中的任意位置可以是指在社交会话界面中不遮挡会话消息或不影响会话消息编辑或发送的任何区域,由于提示文本是和目标问题相关联的提示,因此提示文本的具体内容可以选择指向具体的目标问题,例如提示文本为“问题1相关的聊天记录(或历史会话记录)”,其中,问题1即为目标问题,并且这种方式适用于社交会话界面中存在多个目标问题,多个提示信息可以同时存在且具备指向性。可选地,文本内容也可以不指向具体的目标问题,例如“相关的聊天记录”或者“相关的历史会话记录”等等,这种方式适用于社交会话界面存在的目标问题为单个时的提示。For method 1: Any position in the social conversation interface can refer to any area in the social conversation interface that does not block the conversation message or does not affect the editing or sending of the conversation message. Since the prompt text is a prompt associated with the target question, the prompt text The specific content can be selected to point to a specific target question, for example, the prompt text is "chat records (or historical conversation records) related to question 1", where question 1 is the target question, and this method is suitable for social conversation interface. For multiple target questions, multiple prompt messages can exist at the same time and be directional. Optionally, the text content may not point to a specific target question, such as "related chat records" or "related historical conversation records", etc. This method is suitable for prompting when the target question in the social conversation interface is a single one .
基于图2示出的社交会话界面20,如图4a示出了一种示例性地输出提示信息的示意图一,在社交会话界面40中,会话消息的右侧空白区域显示有一标识符4011,该标识符4011用于指示该会话消息为目标问题,以便用户能够根据该提示信息显示在任意位置时快速和该目标问题关联;在社交会话界面的输入栏上方显示有提示信息4010,该提示信息为提示文本,具体为“问题①相关的聊天记录”,通过该提示文本可知存在和该目标问题“吃什么?”相关的历史会话记录。在此需要说明的是,后续涉及在社交会话界面中显示或输出或设置等一系列的示意图,均基于图2示出的社交会话界面20绘制作为示例性地说明。Based on the social conversation interface 20 shown in FIG. 2, FIG. 4a shows a schematic diagram 1 of exemplary output prompt information. In the
针对方式二:在社交会话界面中的第一会话消息的显示位置周围可以是第一会话消息的显示位置的下方、上方、右侧、左侧等等。具体地,第一会话消息包括目标问题时,在该目标问题的显示位置周围显示提示文本,该提示文本的具体文本内容可以选择指向具体的目标问题(例如“问题1相关的聊天记录”),也可以选择不指向具体的目标问题(例如“相关的聊天记录”),此时主要是通过位置表明该条提示信息对应的目标问题。如图4b示出的一种示例性地输出提示信息的示意图二,在社交会话界面41中,该提示文本4100位于紧挨着第一会话消息的下方位置,具体文本内容为“相关的聊天记录”,用于提示数据库存储的历史聊天记录中存在与“吃什么”相关的历史会话记录,包括与目标问题相似的历史问题以及该历史问题相关的历史回复消息。需要说明的是,上述图示的显示提示信息的方式和位置等内容仅为示例性地说明,并不能对具体实现方式构成限定,下述提示信息为提示动画时同理。For the second manner: the surroundings of the display position of the first conversation message in the social conversation interface may be below, above, right, left, etc. of the display position of the first conversation message. Specifically, when the first conversation message includes a target question, a prompt text is displayed around the display position of the target question, and the specific text content of the prompt text can be selected to point to a specific target question (such as "chat records related to question 1"), It is also possible to choose not to point to a specific target question (for example, "related chat records"). In this case, the target question corresponding to the piece of prompt information is mainly indicated through the location. As shown in Figure 4b, a schematic diagram 2 of an exemplary output prompt information, in the
在一可行的实施例中,若历史会话记录的数量为N,N为正整数;则提示信息中还包括历史会话记录的数量提示。基于图4a或图4b提供的示例性地输出提示信息的示意图,其中提示文本的“相关的聊天记录”可以替换为包括历史会话记录的数量提示的文本,例如“3条相关的聊天记录”,同时,将该提示文本显示在社交会话界面中目标问题的附近位置。根据该提示文本即可以得知和目标问题相关的历史会话记录包括3个。具体可参见图4c,在社交会话界面42中提示信息4201“3条相关的聊天记录”显示于目标问题“吃什么?”的下方位置。上述过程也即,目标问题在历史聊天消息中出现过,则社交会话的处理系统可以将检索到的相关的历史聊天记录的数量信息提示(即提示信息)展示在聊天窗(也即社交会话界面)中该目标问题附近。In a feasible embodiment, if the number of historical session records is N, and N is a positive integer; the prompt information also includes a prompt of the number of historical session records. Based on the schematic diagram of an exemplary output prompt information provided in FIG. 4a or FIG. 4b, the "related chat records" in the prompt text can be replaced with text including the number prompt of historical session records, for example, "3 related chat records", At the same time, the prompt text is displayed near the target question in the social conversation interface. According to the prompt text, it can be known that there are 3 historical session records related to the target question. Refer to FIG. 4c for details. In the
在另一实施例中,提示信息为提示动画,那么计算机设备输出提示信息包括以下任一种实现方式:1)在社交会话界面中播放提示动画;2)在悬浮窗中播放提示动画;3)在固定窗口中播放提示动画。该提示动画可以是目标问题相关的历史会话记录的动态预览显示。在社交会话界面中播放提示动画可以将社交会话界面作为播放背景对提示动画进行播放,例如将历史会话记录的内容通过视频弹幕的形式在社交会话界面中播放,具体可以包括多种方向的悬浮弹幕或者过场弹幕等等,再例如将历史会话记录的内容从社交会话界面的顶部往底部降落的方式实现播放。可选地,播放提示动画也可以是在悬浮窗或者是固定窗口中实现。In another embodiment, the prompt information is a prompt animation, and the output of the prompt information by the computer device includes any of the following implementations: 1) Play the prompt animation in the social conversation interface; 2) Play the prompt animation in the floating window; 3) Play hint animation in fixed window. The prompt animation may be a dynamic preview display of historical session records related to the target question. Playing the prompt animation in the social session interface can use the social session interface as the playback background to play the prompt animation, for example, the content recorded in the historical session is played in the social session interface in the form of video barrage, which can include suspension in various directions Barrage or cut-scene barrage, etc., and then, for example, the content of the historical session record is played from the top to the bottom of the social session interface. Optionally, playing the prompt animation may also be implemented in a floating window or a fixed window.
如图5示出了一种示例性地输出提示信息的示意图四,为提示文本在固定窗口播放提示动画的界面示意图,在输入栏的底部为固定窗口,用于播放该提示动画。具体地,可以在不同的时刻按照预设显示方式(例如滚动显示)对历史回复消息进行显示实现动画播放,在社交会话页面50中底部的固定窗口501和社交会话页面51中底部的固定窗口511播放的提示动画的内容是不同的。例如在t1时刻显示会话消息为“麻辣烫”,在t2时刻显示会话消息为“麻辣烫,吃吗”,其中,t1和t2为大于或等于0数值且t1<t2。可选地,所有在该固定窗口显示的提示动画可以均是和目标问题相关的历史会话记录,包括历史问题或者与历史问题相关的历史回复消息中的部分展示,也可以是其他内容,在此不做限制。需要说明的是,图5是示例性地一种提示动画的显示方式,例如在社交会话界或者在悬浮窗中播放提示动画均没有通过附图的方式展示出来,但本申请提供的社交会话的处理方案中对提示信息为提示动画时的多种显示方式均是支持的。在社交会话界面中播放提示动画可以是将如图5中的内容直接在社交会话界面中的悬浮窗中动态显示,悬浮窗可以拖动到任意位置。此外,提示信息除了上述提示文本或者提示动画之外,还可以是提示图标。FIG. 5 shows a schematic diagram 4 of an exemplary output of prompt information, which is a schematic diagram of an interface in which a prompt animation is played in a fixed window for the prompt text. The bottom of the input field is a fixed window for playing the prompt animation. Specifically, historical reply messages can be displayed in a preset display mode (for example, scrolling display) at different times to realize animation playback, and the fixed
进一步地,计算机设备在输出提示信息之后,还可以停止显示提示信息,可选方式包括:当提示信息被触发时,停止显示提示信息;或者,当提示信息的显示时长到达设定时长时,停止显示提示信息。其中,提示信息的触发方式可以包括物理按键触发、点击操作触发、手势操作触发、语音触发、体感触发等等,在此不做限制。在社交会话界面中显示的提示信息被触发时,停止显示的提示信息具体可以是提示文本,即该提示文本可以不再显示在社交会话界面中。提示信息为提示动画时,则可以在提示信息的显示时长到达设定时长之后停止显示,针对上述不同的输出提示信息的方式,停止显示具体可以是选择恢复原本的社交会话界面,或者关闭固定窗口,或者关闭悬浮窗口。可选地,设定可以是根据人工经验值设定,也可以根据不同用户对该提示信息的使用频次进行设定,在此不做限定。上述方式针对提示文本或提示动画均是适用的。Further, after the computer device outputs the prompt information, it may also stop displaying the prompt information. The optional method includes: when the prompt information is triggered, stop displaying the prompt information; or, when the display duration of the prompt information reaches the set duration, stop Display prompt information. Wherein, the triggering manner of the prompt information may include physical button triggering, click operation triggering, gesture operation triggering, voice triggering, motion sensory triggering, etc., which are not limited here. When the prompt information displayed on the social conversation interface is triggered, the prompt information to stop displaying may specifically be prompt text, that is, the prompt text may no longer be displayed on the social conversation interface. When the prompt information is a prompt animation, it can stop displaying after the display duration of the prompt information reaches the set duration. For the above-mentioned different ways of outputting prompt information, the specific way to stop displaying can be to choose to restore the original social session interface, or to close the fixed window , or close the floating window. Optionally, the setting may be based on manual experience, or may be set according to the frequency of use of the prompt information by different users, which is not limited here. The above method is applicable to both the prompt text and the prompt animation.
可选地,在提示信息为提示文本时,提示信息被触发之后也可以不停止显示,而是始终存在于社交会话界面中;当提示信息达到设定显示时长之后还可以自动转换提示信息的显示方式,例如当达到设定显示时长之后,将提示文本转换为提示图标隐藏在社交会话界面的边缘区域,待用户需要时通过触发该提示图标再将提示文本显示到社交会话界面中。Optionally, when the prompt information is prompt text, the prompt information may not stop displaying after being triggered, but always exists in the social conversation interface; when the prompt information reaches the set display duration, the display of the prompt information may be automatically converted For example, after the set display time is reached, the prompt text is converted into a prompt icon and hidden in the edge area of the social conversation interface, and the prompt text is displayed in the social conversation interface by triggering the prompt icon when the user needs it.
S303,当提示信息被触发时,显示历史会话记录。S303, when the prompt message is triggered, display the historical session record.
在一实施例中,当提示信息被触发时,计算机设备显示历史会话记录,提示信息的触发方式可以包括物理按键触发、点击操作触发、手势操作触发、语音触发、体感触发等方式中的任一种,当提示信息被触发时,可以停止显示提示信息,也可以不停止显示提示信息,同时可以显示历史会话记录。历史会话记录可以是计算机设备从社交会话界面跳转到新的显示界面中进行显示,也可以是在悬浮于社交会话界面的窗口中显示,在此不做限制。通过在显示历史会话记录的界面中的回退控件,例如返回标识或者是取消选项,可以从显示历史会话记录的界面或窗口返回至社交会话界面。在本申请实施例中,以在新的显示界面中显示历史会话记录为例进行说明。In an embodiment, when the prompt information is triggered, the computer device displays the historical session record, and the trigger mode of the prompt information may include any one of physical button trigger, click operation trigger, gesture operation trigger, voice trigger, and somatosensory trigger. One, when the prompt information is triggered, the display of the prompt information can be stopped, or the prompt information can not be stopped, and the historical session records can be displayed at the same time. The historical session record may be displayed by the computer device jumping from the social session interface to a new display interface, or displayed in a window suspended on the social session interface, which is not limited here. Through the return control in the interface displaying historical session records, such as a return sign or a cancel option, it is possible to return to the social session interface from the interface or window displaying historical session records. In this embodiment of the application, an example of displaying historical session records in a new display interface is used for illustration.
历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息。在一实施例中,若历史会话记录的数量为N,N为正整数;则显示历史会话记录的实现方式可以包括:按照每个历史会话记录中的历史问题的发送时间由近及远的顺序,对N个历史会话记录进行排序显示。计算机设备可以获取各个历史问题的发送时间,按照距离当前时间最近到距离当前时间最远的顺序,排列显示N个历史会话记录,包括N个历史问题以及每个历史问题相关的历史回复消息。该发送时间可以由计算机设备(例如服务器或终端设备)存储相应历史问题时记录。The historical session records include historical questions similar to the target question and historical reply messages related to the historical questions. In one embodiment, if the number of historical session records is N, and N is a positive integer; then the implementation of displaying the historical session records may include: according to the order of sending time of the historical questions in each historical session record from near to far , to sort and display the N historical session records. The computer device can obtain the sending time of each historical question, and arrange and display N historical conversation records, including N historical questions and historical reply messages related to each historical question, in order from the closest to the current time to the furthest from the current time. The sending time may be recorded when a computer device (such as a server or a terminal device) stores the corresponding historical questions.
请参见图6,图6是本申请一个示例性实施例提供的一种历史会话记录的显示界面的示意图。该历史会话记录基于图2对应的社交会话页面20中的目标问题“吃什么”确定。如图6所示,在历史会话记录的显示界面61中包括3个历史会话记录,在每个历史会话记录之前都有一个时间点,这个时间点即为历史问题的发送时间,图6中示出发送时间6001、6002、6003按照由近到远的顺序将历史问题以及对应的历史回复消息排列在该显示界面61中。需要说明的是,该显示界面61中示出的历史会话记录可能是所有与目标问题相关的历史会话记录中的一部分,通过设定的浏览方式,例如下滑、翻页等可以在显示界面61依次查看所有的历史会话记录,或者是在显示的历史会话记录达到设定的显示时间之后自动更换显示的历史问题以及对应的历史回复消息。Please refer to FIG. 6 . FIG. 6 is a schematic diagram of a display interface of a historical session record provided by an exemplary embodiment of the present application. The historical session record is determined based on the target question "what to eat" in the social session page 20 corresponding to FIG. 2 . As shown in Figure 6, in the
可选地,此步骤对应的操作示意图可以参见图7,通过点击社交会话界70中的提示信息7001,跳转到历史会话记录的显示界面71,如图7所示,其中社交会话界面70和图4c示出的社交会话界面42相同,在目标问题附近显示有数量信息提示的提示文本。此外,和图6示出的历史会话记录的显示页面60稍有不同的是:历史会话记录的显示界面71中除了显示历史问题、和历史问题相关的历史回复消息、历史问题的发送时间,还可以在预设区域(例如顶部或底部)设置搜索栏7101,并在该搜索栏中显示在社交会话界面中的目标问题以及指示历史会话记录的群组名称。如图7所示,搜索栏7101中包括文本内容:“吃什么?”以及“在吃喝玩乐群的历史回复”,其中,文本内容“吃什么”为目标问题,“在吃喝玩乐群的历史回复”即指示了历史会话记录从属于吃喝玩乐群这一群组,可选地,历史会话记录是从吃喝玩乐群的历史会话消息中确定的。更进一步地,搜索栏还可以支持在多个历史会话记录中进行进一步地搜索,这样可以使得历史会话记录的数量众多时更加智能化地查看历史会话记录,通过搜索进一步增加历史会话记录数量较多时中获取目标历史回复消息的速度和便捷度。Optionally, the operation schematic diagram corresponding to this step can be referred to FIG. 7 , by clicking the
针对历史会话记录的生成方式,可选实现步骤可以是:当目标问题为文本时,通过匹配目标问题的字符确定与目标问题相关的历史会话记录,当目标问题为语音时,可以先将该语音转换为文本,再根据上述方式进行历史会话记录的匹配。具体地,根据目标问题在存储的历史会话消息中首先匹配到的是相似的历史问题,然后再从与历史问题相关的历史回复消息中选取一个或多个显示作为历史会话记录显示到对应的界面中。举例来说,假设目标问题为“吃什么”,历史问题可以是包含“吃什么”这三个字符的历史会话消息,如图6或者图7展示的“谁知道姐姐喜欢吃什么”中包括“吃什么”这三个字符,该历史问题也可以作为与目标问题相似的历史问题显示到对应的界面中。可选地,还可以通过目标问题的语义确定与之相似的历史问题。需要说明的是,历史问题以及历史回复消息可以是根据在本地数据库或者是在服务器中获取到的所有符合条件的历史会话消息生成的。For the generation of historical conversation records, an optional implementation step can be: when the target question is text, determine the historical conversation records related to the target question by matching the characters of the target question; Convert it to text, and then match the historical session records according to the above method. Specifically, according to the target question, in the stored historical conversation messages, firstly, similar historical questions are matched, and then one or more displays are selected from the historical reply messages related to the historical questions as historical conversation records and displayed on the corresponding interface middle. For example, assuming the target question is "what to eat", the historical question can be a historical conversation message containing the three characters "what to eat", as shown in Figure 6 or Figure 7, "who knows what my sister likes to eat" includes " What to eat", this historical question can also be displayed on the corresponding interface as a historical question similar to the target question. Optionally, the semantics of the target question can also be used to determine similar historical questions. It should be noted that the historical questions and historical reply messages may be generated according to all qualified historical session messages obtained in the local database or in the server.
在一实施例中,若历史会话记录中包含历史问题相关的历史回复消息的数量为P条,P为正整数;则显示历史会话记录的实现方式可以包括:显示历史问题,并从P条历史回复消息中选取至少一条目标历史回复消息进行显示。其中,选取包括以下任一种:①随机选取;②按照回复时间先后顺序选取;③按照与历史问题相关度由高至低的顺序选取。In one embodiment, if the historical session records contain P pieces of historical reply messages related to historical questions, and P is a positive integer; then the implementation of displaying historical session records may include: displaying historical questions, and Select at least one target historical reply message from the reply message to display. Among them, the selection includes any of the following: ① random selection; ② selection in order of reply time; ③ selection in order of relevance to historical issues from high to low.
也即,针对每个历史问题,数据库中存储的相关的历史回复消息的数量为P条,而作为历史会话记录显示在计算机设备中运行社交客户端的所提供的显示界面中的历史回复消息,则可以是在P条中选取出一条或多条历史回复消息,具体的选取规则可以参照上述选取的三种规则中的任一种。其中,回复时间先后具体为历史回复消息在该历史问题发送到社交会话界面之后,发送历史回复消息到社交会话界面中的时间戳大小,依据该回复时间的先后可以将历史问题之后的第一条历史回复消息作为目标历史回复消息,并显示至历史会话记录所在的界面中;历史问题相关度是指历史回复消息和历史问题的匹配程度,即历史回复消息作为历史问题的答案的匹配度。举例来说,“你喜欢吃什么”这一历史问题,如果历史回复消息为“好的”,显然两者是匹配不上的,也即答非所问,但是如果历史回复消息为“三文鱼”此类和食物相关的回复消息,则可以认为是满足匹配条件的。对于历史问题和历史回复消息相关度的计算具体可以是文本语义分析或者通过其他自然语言处理模型,例如问答模型实现,在此不展开说明。按照与历史问题相关度由高到低进行排序,可以将相关度排列在第一个或者前L(L为正整数)个选取出来,并将其作为目标历史回复消息进行显示。可选地,还可以设置相关度阈值选取历史回复消息,例如将大于该相关度阈值的历史回复消息作为目标回复消息进行显示。对于按照相应选取规则显示历史回复消息的,每个问题的历史回复的数量可以是统一或者不统一的,如上述图7示出的一种历史会话记录的显示界面的示意图,按照与历史问题的相关度选取出的历史回复消息,一部分历史问题对应的是一条,一部分历史问题对应的是多条。That is, for each historical problem, the number of relevant historical reply messages stored in the database is P pieces, and the historical reply messages displayed in the display interface provided by running the social client in the computer device as a historical session record, then It may be to select one or more historical reply messages from the P items, and the specific selection rules may refer to any one of the above three selection rules. Among them, the reply time is specifically the time stamp size of the historical reply message sent to the social conversation interface after the historical question is sent to the social conversation interface. According to the reply time, the first post after the historical question can be The historical reply message is used as the target historical reply message, and is displayed on the interface where the historical session record is located; the historical question relevance refers to the matching degree of the historical reply message and the historical question, that is, the matching degree of the historical reply message as the answer to the historical question. For example, for the historical question "what do you like to eat", if the historical reply message is "good", obviously the two do not match, that is, the answer is not the question, but if the historical reply message is "salmon" and Reply messages related to food can be considered as meeting the matching conditions. The calculation of the correlation between historical questions and historical reply messages may specifically be implemented by text semantic analysis or through other natural language processing models, such as question answering models, which will not be described here. Sorting according to the degree of relevance to historical issues from high to low, the first or top L (L is a positive integer) can be selected and displayed as the target historical reply message. Optionally, a correlation threshold may also be set to select historical reply messages, for example, historical reply messages greater than the correlation threshold may be displayed as target reply messages. For displaying historical reply messages according to the corresponding selection rules, the number of historical replies to each question can be unified or not, as shown in the schematic diagram of a display interface of a historical conversation record shown in Figure 7 above, according to the historical question For historical reply messages selected by relevance, some historical questions correspond to one message, and some historical questions correspond to multiple messages.
S304,响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息。S304, in response to selecting the historical reply message, display the second conversation message on the social conversation interface.
此步骤的具体实现方式可以参见下述图8对应实施例中的步骤S803,在此先不做详述。For the specific implementation manner of this step, reference may be made to step S803 in the embodiment corresponding to FIG. 8 below, which will not be described in detail here.
综上所述,本实施例在计算机设备响应第一会话消息之后,可以在社交会话界面输出提示信息,为用户提供是否显示历史会话记录的功能,这样可以在用户有需求时才启用对历史会话记录的显示,进而使得快速回复目标问题的功能更加智能化;同时,提示信息可以有不同的展现形式,包括但不限于文本、图像、动画等,这样能够丰富用户体验;用户可以直接通过相应方式触发提示信息,计算机设备可以按照设定的显示顺序显示多个历史会话记录,基于对历史回复消息的选择,进而生成更加合适的第二会话消息进行显示,这样可以在社交会话界面中通过明确的提示信息以及少量的操作步骤帮助用户实现对目标问题的快速回复,可有效提升回复的效率,降低社交会话处理的复杂度。To sum up, in this embodiment, after the computer device responds to the first conversation message, it can output prompt information on the social conversation interface to provide the user with the function of whether to display the history conversation record, so that the history conversation history can be enabled only when the user needs it. The display of the record makes the function of quickly replying to the target question more intelligent; at the same time, the prompt information can be displayed in different forms, including but not limited to text, image, animation, etc., which can enrich the user experience; the user can directly use the corresponding method Triggering the prompt information, the computer device can display multiple historical conversation records according to the set display order, based on the selection of the historical reply message, and then generate a more suitable second conversation message for display, so that it can be displayed in the social conversation interface through a clear Prompt information and a small number of operation steps help users to quickly reply to the target question, which can effectively improve the efficiency of reply and reduce the complexity of social conversation processing.
请参见图8,图8是本申请一个示例性实施例提供的一种社交会话的处理方法的流程示意图三。该社交会话的处理方法可以由计算机设备来执行,该计算机设备例如可以是图1所示系统中的任一个计算机设备;该计算机设备中运行有社交客户端,该计算机设备可以是终端设备;该社交会话的处理方法包括但不限于以下步骤:Please refer to FIG. 8 . FIG. 8 is a third schematic flowchart of a method for processing a social session provided by an exemplary embodiment of the present application. The processing method of the social session can be performed by a computer device, and the computer device can be, for example, any computer device in the system shown in Figure 1; a social client runs in the computer device, and the computer device can be a terminal device; The processing method of social session includes but not limited to the following steps:
S801,显示社交会话界面。S801, displaying a social conversation interface.
S802,响应于社交会话界面中的第一会话消息,显示历史会话记录。S802. Display historical session records in response to the first session message in the social session interface.
上述步骤的具体实现方式可以参见图2对应实施例中的步骤S201~S202或者图3对应实施例中的S301~S303,在此不做赘述。For the specific implementation of the above steps, reference may be made to steps S201-S202 in the embodiment corresponding to FIG. 2 or steps S301-S303 in the embodiment corresponding to FIG. 3, and details are not described here.
S803,响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息。S803. In response to selecting the historical reply message, display the second conversation message on the social conversation interface.
在一实施例中,历史回复消息被选择的实现方式可以包括以下任一种:In an embodiment, the implementation of selecting historical reply messages may include any of the following:
1)针对历史回复消息的选择历史回复消息对应有操作控件;当操作控件被触发时,历史回复消息被选择。1) Selection of the historical reply message The historical reply message corresponds to an operation control; when the operation control is triggered, the historical reply message is selected.
2)历史回复消息关联有操作区域;当操作区域中存在预定触摸轨迹时,历史回复消息被选择。2) The history reply message is associated with the operation area; when there is a predetermined touch track in the operation area, the history reply message is selected.
对于1),操作控件设置于历史会话记录的显示界面中。可选地,该操作控件在历史会话记录的显示界面具体可以通过文本选项或者是图标进行显示。操作控件用于选择历史回复消息,生成第二会话消息并将其发送到社交会话界面。可选地,操作控件具体可以设置于历史会话记录的显示界面中显示的每条历史回复消息的周围区域,例如在历史回复消息的下方,或者和历史回复消息显示在同一区域。基于图7中示例性地历史会话记录的显示界面71,图9示出了一种操作控件设置的示意图,如图9所示,每条历史回复消息的显示区域900中除了历史回复消息,还包括操作控件9001,该操作控件9001为文本选项“发送到当前聊天”,通过触发其中的任一条历史回复消息所在显示区域中的操作控件可以实现对该条历史回复消息的选择。For 1), the operation control is set in the display interface of the historical session record. Optionally, the operation control may be displayed through text options or icons on the display interface of the historical session record. The operation control is used to select the historical reply message, generate the second conversation message and send it to the social conversation interface. Optionally, the operation control can be specifically set in the surrounding area of each historical reply message displayed in the display interface of the historical session record, for example, below the historical reply message, or displayed in the same area as the historical reply message. Based on the
对于2),历史回复消息关联的操作区域可以是显示该历史回复消息的周围区域。例如,图9中不包括操作控件9001的显示区域900,预设触摸轨迹可以是预定方向的滑动操作(例如上滑、左滑、右滑、下滑中的任一种),也可以是预定的图形手势(例如圆形、长方形、字符形状),或者其他更复杂的轨迹。相应地,用户通过计算机设备在任一历史回复消息的操作区域产生的触摸轨迹符合预设触摸轨迹时,即表示该操作区域存在预设触摸轨迹,该任一历史回复消息即可以认为被选择。Regarding 2), the operation area associated with the historical reply message may be the surrounding area where the historical reply message is displayed. For example, the
在历史回复消息被选择之后,计算机设备可以响应于对历史回复消息的选择,基于历史回复消息生成第二会话消息,并将第二会话消息输出到社交会话界面中。在一实施例中,被选择的历史回复消息的数量为一条或多条,基于历史回复消息生成第二会话消息的方式可以是:将被选择的各条历史回复消息均确定为第二会话消息;或者,将被选择的一条或多条历史回复消息合并成为一条第二会话消息。也就是说,一种实现方式是将历史会话记录中被选择的一条或多条历史回复消息均作为第二会话消息,在此方式下,在社交会话界面中显示的第二会话消息的数量即历史回复消息的数量;另一种实现方式则是将选择的一条或多条历史回复消息合并成一条消息作为第二会话消息,在此方式下,在社交会话界面中显示的第二会话消息为单条。需要说明的是,多条历史回复消息的合并可以通过社交客户端所在的计算机设备执行,对于具体的合并方式可以是通过智能化地判断语义之后重新组合,或者将其按照选择顺序直接拼接在一起。可以理解的是,如果只有一条被选择的历史回复消息,两种方式都是直接将该条历史回复消息确定为第二会话消息,即在社交会话界面中显示该条历史回复消息。After the historical reply message is selected, the computer device may generate a second conversation message based on the historical reply message in response to the selection of the historical reply message, and output the second conversation message into the social conversation interface. In an embodiment, the number of selected historical reply messages is one or more, and the method of generating the second conversation message based on the historical reply messages may be: all selected historical reply messages are determined as the second conversation message ; Or, merge the selected one or more historical reply messages into a second conversation message. That is to say, one implementation is to use one or more historical reply messages selected in the historical conversation record as the second conversation message. In this way, the number of second conversation messages displayed in the social conversation interface is The number of historical reply messages; another implementation is to combine one or more selected historical reply messages into one message as the second conversation message. In this way, the second conversation message displayed in the social conversation interface is Single. It should be noted that the merging of multiple historical reply messages can be performed by the computer device where the social client is located, and the specific merging method can be recombined after intelligently judging the semantics, or directly splicing them together in the order of selection . It can be understood that if there is only one selected historical reply message, the two methods are to directly determine the historical reply message as the second conversation message, that is, to display the historical reply message in the social conversation interface.
可选地,历史会话记录的显示界面中除了设置操作控件之外,还可以同时设置浏览控件、分享控件等功能控件,其中,浏览控件可以支持对该历史问题的更多历史回复消息的查看,分享控件可以支持将对应的历史回复消息分享至同一应用内的联系人,也可以分享至不同的应用,对历史回复消息的分享可参见下述步骤S804~S805,在此先不做详述。对于此种方式下的历史回复消息的显示界面可以参见图10a示出的内容,其中,“发送到当前聊天”、“转发给朋友”、“查看相关消息”分别对应操作控件、分享控件和浏览控件。Optionally, in addition to setting operation controls in the display interface of historical session records, functional controls such as browsing controls and sharing controls can also be set at the same time, wherein the browsing controls can support viewing of more historical reply messages to the historical question, The sharing control can support sharing the corresponding historical reply messages to contacts in the same application, and can also be shared to different applications. For the sharing of historical reply messages, please refer to the following steps S804-S805, which will not be described in detail here. For the display interface of historical reply messages in this way, please refer to the content shown in Figure 10a, where "send to current chat", "forward to friends", and "view related messages" correspond to operation controls, sharing controls and browsing controls.
结合前述触发操作控件对历史回复消息进行选择,在社交会话界面中显示第二会话消息的实现方式。基于图10a可以分别提供图10b和图10c的两种显示第二会话消息的操作示意图。如图10b所示,是一种显示第二会话消息的操作示意图,在历史会话记录的显示界面通过触发操作控件“发送到当前聊天”可以直接将对应的历史回复消息“楼下拐角那家辣子鸡怎么样?”作为第二会话消息发送到社交会话界面中。如图10c,是另一种显示第二会话消息的操作示意图,在选择多条历史回复消息之后,触发任一个历史回复消息下的操作控件“发送到当前聊天”,即可将选择的多条历史回复消息发送到社交会话界面中,多条历史回复消息可以包括文字类消息和小程序链接。在历史会话记录所在的显示界面中,还可以提供勾选历史回复消息的选择框,实现对多条历史回复消息的选择。Combining with the aforementioned trigger operation control to select the historical reply message, and display the second conversation message in the social conversation interface. Based on FIG. 10a, two schematic diagrams of operations for displaying the second conversation message in FIG. 10b and FIG. 10c can be respectively provided. As shown in Figure 10b, it is a schematic diagram of the operation of displaying the second conversation message. In the display interface of the historical conversation record, by triggering the operation control "send to the current chat", the corresponding historical reply message "that hot pepper at the corner downstairs How about the chicken?" is sent into the social conversation interface as a second conversation message. As shown in Figure 10c, it is another schematic diagram showing the operation of the second conversation message. After selecting multiple historical reply messages, trigger the operation control "send to the current chat" under any historical reply message, and the selected multiple reply messages can be sent to the current chat. Historical reply messages are sent to the social conversation interface, and multiple historical reply messages can include text messages and applet links. In the display interface where the historical session records are located, a selection box for checking historical reply messages may also be provided to realize the selection of multiple historical reply messages.
在另一实施例中,响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息的实现方式可以是:响应于对历史回复消息的选择,将被选择的历史回复消息输出到会话编辑区域;该会话编辑区域包括编辑窗口或者社交会话界面的输入栏;在会话编辑区域对历史回复消息进行编辑,形成第二会话消息;在社交会话界面中显示第二会话消息。也即,基于历史回复消息生成第二会话消息的方式可以是通过对历史回复消息的编辑而实现的。若会话编辑区域为编辑窗口,例如可以是在历史会话记录的显示界面上的固定窗口或者是悬浮窗。可选地,会话编辑区域也可以是社交会话界面的输入栏,在该输入栏中支持对各种文本字符、表情符号等的编辑。在会话编辑区域,计算机设备可以对历史回复消息进行编辑,具体的编辑操作可以是增加、删除等修改操作,编辑之后即可形成第二会话消息,举例来说,历史回复消息为“椰子鸡?”,对该历史回复消息编辑之后为“我们去吃椰子鸡吧”,即第二会话消息,那么社交会话界面中也可以显示该条会话消息。接着第二会话消息可以显示在社交会话界面中,此第二会话消息可以作为对社交会话界面中目标问题的回复消息。In another embodiment, in response to the selection of historical reply messages, the realization of displaying the second conversation message in the social conversation interface may be: in response to the selection of historical reply messages, outputting the selected historical reply messages to A session editing area; the session editing area includes an editing window or an input field of a social session interface; editing historical reply messages in the session editing area to form a second session message; displaying the second session message in the social session interface. That is, the manner of generating the second conversation message based on the historical reply message may be realized by editing the historical reply message. If the session editing area is an editing window, for example, it may be a fixed window or a floating window on the display interface of the historical session record. Optionally, the conversation editing area may also be an input field of the social conversation interface, in which the editing of various text characters, emoticons, etc. is supported. In the conversation editing area, the computer device can edit the historical reply message. The specific editing operations can be modification operations such as adding and deleting. After editing, the second conversation message can be formed. For example, the historical reply message is "coconut chicken? ", the historical reply message is edited as "Let's go eat coconut chicken", that is, the second conversation message, then this conversation message can also be displayed in the social conversation interface. Then the second conversation message can be displayed in the social conversation interface, and this second conversation message can be used as a reply message to the target question in the social conversation interface.
请参见图11a和图11b,分别是两种不同的在会话编辑区域输出历史回复内容的操作示意图,图11a示出的是一种在会话编辑区域输出历史回复内容的操作示意图,用户通过触发操作控件“发送到当前聊天”,可以将对应的历史回复消息“楼下拐角那家辣子鸡怎么样?”发送到编辑窗口1102中,然后在用户编辑完成之后,可以点击发送按钮,将编辑之后的消息“辣子鸡怎么样”发送到社交会话界面中,即在社交会话界面中显示第二会话消息1103。图11b示出的是另一种在会话编辑区域输出历史回复内容的操作示意图,该会话编辑区域为社交会话界面的输入栏。和图11a不同的是,在图11b中,历史回复消息直接输入到社交会话界面的输入栏1112中,然后基于该输入栏的编辑功能可以对该条历史回复消息进行编辑,在编辑完成之后点击发送按钮,将第二会话消息1113显示到社交会话界面中。需要说明的是,被选择的历史回复消息支持编辑主要针对文本类的会话消息。Please refer to Figure 11a and Figure 11b, which are two different schematic diagrams of operations for outputting historical reply content in the session editing area. Figure 11a shows a schematic diagram of an operation for outputting historical reply content in the session editing area. The control "send to the current chat" can send the corresponding historical reply message "How about the spicy chicken at the corner downstairs?" The message "how about the spicy chicken" is sent to the social conversation interface, that is, the second conversation message 1103 is displayed on the social conversation interface. Fig. 11b is a schematic diagram of another operation for outputting historical reply content in a conversation editing area, which is an input field of a social conversation interface. The difference from Figure 11a is that in Figure 11b, the historical reply message is directly input into the
针对操作控件的设置,在一可行的实施例中,历史会话记录的显示界面中设有浏览控件;当浏览控件被触发时,显示历史会话记录的详情页面;详情页面中包含历史回复消息;操作控件设置于详情页面中的历史回复消息的周围。在历史会话记录的显示界面中通过触发浏览控件,可以显示历史会话记录的详情页面,其中,浏览控件可以是文本或者是图标。在该详情页面中包含历史问题以及历史问题相关的多条历史回复消息,该详情页面的这些消息可以属于历史会话消息,针对详情页面中显示的每条历史回复消息,可以将操作控件设置在该历史回复消息的周围,这里的操作控件用于一键发送详情页面中的任一历史回复消息到当前聊天。For the setting of the operation control, in a feasible embodiment, the display interface of the historical session record is provided with a browsing control; when the browsing control is triggered, the detailed page of the historical session record is displayed; the detailed page contains historical reply messages; the operation Controls are placed around the historical reply messages in the details page. By triggering the browse control in the display interface of the historical session record, a detailed page of the historical session record can be displayed, wherein the browse control can be a text or an icon. The details page contains historical questions and multiple historical reply messages related to historical questions. These messages on the details page can belong to historical session messages. For each historical reply message displayed on the details page, the operation control can be set in this Around the historical reply message, the operation control here is used to send any historical reply message in the details page to the current chat with one click.
请参见图12a,图12a是本申请实施例提供的一种示例性地操作控件设置在详情页面的操作示意图。B用户在计算机设备中通过触发设置在历史会话记录的显示界面中的浏览控件“查看相关消息”,可以跳转到该条历史回复消息所在的详情页面120,在详情页面中包括历史问题“吃什么?”,对应的历史回复消息“楼下拐角那家辣子鸡怎么样?”以及其他相关的历史回复消息。在该详情页面120中的每条消息右侧,都对应设置有操作控件1202,示例性地,图12a中通过图标表示,通过触发该操作控件,可以使得对应的历史回复消息,即“地锅鸡也不错”这条回复内容被选择,进而可以将其作为第二会话消息显示到社交会话界面1203中。Please refer to Fig. 12a, Fig. 12a is a schematic diagram of an exemplary operation control provided on a details page provided by an embodiment of the present application. User B can jump to the
对于操作控件的设置,对应的还可以支持在详情页面的每条消息经过目标操作(例如按压达到时长阈值后停止)之后,在该历史回复消息周围显示消息操作面板,在该消息操作面板内添加操作控件,实现发送到当前聊天的功能。如图12b示出的另一种示例性地操作控件设置的示意图。在详情页面121中通过触发用户A发送的历史回复消息可以输出消息操作面板1210,在该消息操作面板1210中设置有操作控件“发送到当前聊天”,通过触发该操作控件,可以实现对用户A发送的历史回复消息的选择,进而后续可以将其作为第二会话消息显示到社交会话界面中,对应显示效果可以参见图12a中的社交会话界面1203中的内容。For the setting of the operation control, correspondingly, after each message on the details page has undergone the target operation (such as pressing to stop after reaching the duration threshold), the message operation panel will be displayed around the historical reply message, and the message operation panel can be added. Operate the control to realize the function of sending to the current chat. Another schematic diagram of an exemplary operation control setting is shown in FIG. 12 b . On the
可选地,浏览控件和操作控件也可以同时设置在历史会话记录的显示页面,而在历史回复消息的详情页面也可设置有操作控件,即操作控件可以同时存在于多个界面中,这样可以方便对不同历史回复消息快速发送到社交会话界面中。Optionally, the browsing control and the operation control can also be set on the display page of the historical session record at the same time, and the operation control can also be set on the detail page of the historical reply message, that is, the operation control can exist in multiple interfaces at the same time, so that It is convenient to quickly send different historical reply messages to the social conversation interface.
需要说明的是,上述在社交会话界面显示第二会话消息可以是通过触发操作控件对历史回复消息的选择实现的,该操作控件支持一键发送到当前聊天的功能,除了对历史会话记录中历史回复消息的选择、对历史回复消息的详情页面的浏览,还可以支持对历史回复消息的分享。具体可以参见下述步骤。It should be noted that the above-mentioned display of the second conversation message on the social conversation interface can be realized by triggering the selection of the historical reply message by the operation control. The selection of reply messages, the browsing of the detailed pages of historical reply messages, and the sharing of historical reply messages can also be supported. For details, see the following steps.
S804,响应于对历史回复消息的分享,显示分享对象列表。S804, in response to sharing the historical reply message, display a list of sharing objects.
在一实施例中,在历史回复消息的显示界面可以设置有分享控件,该分享控件可以为文字或图标,通过触发分享控件使得计算机设备响应于对历史回复消息的分享,进而输出分享对象列表,可选地,也可以是历史回复消息的操作区域存在预设触摸轨迹使得计算机设备响应于对历史回复消息的分享。需要说明的是,分享对象列表中的分享对象可以是提供该社交会话界面的社交客户端中的任意社交用户,例如好友或者群聊,也可以是其他支持社交会话业务的社交应用,例如即时通讯类应用、内容交互类应用等等。In an embodiment, a sharing control may be provided on the display interface of the historical reply message, and the sharing control may be a text or an icon. By triggering the sharing control, the computer device responds to the sharing of the historical reply message, and then outputs a list of sharing objects. Optionally, there may be a preset touch track in the operation area of the historical reply message so that the computer device responds to the sharing of the historical reply message. It should be noted that the sharing object in the sharing object list can be any social user in the social client that provides the social conversation interface, such as friends or group chat, or other social applications that support social conversation services, such as instant messaging Class applications, content interactive applications, etc.
请参见图13a,图13a是本申请实施例提供的一种示例性显示分享对象列表的操作示意图,如图13a所示,通过触发设置在历史回复消息的下方的分享控件“转发给好友”的文字选项,可以显示分享对象列表1302,该分享对象列表包括最近联系人和群聊,并且分享对像列表所在的页面还可以支持对分享对象的直接搜索,或者创建群聊天同时发送给多个联系人。Please refer to Figure 13a. Figure 13a is a schematic diagram of an exemplary operation of displaying a list of sharing objects provided by the embodiment of the present application. The text option can display the
请参见图13b,图13b是本申请实施例提供的一种示例性分享对象列表的显示界面的示意图,如图13b所示,可以在历史会话记录的显示页面弹出固定窗口显示分享对象列表1312,该分享对象列表中包括不同社交客户端的图标,以及分享至相应的社交客户端的提示文字,通过触发相应提示文字或图标所在的操作区域,可以将历史回复消息发送给不同应用中的联系人,可选地,用户也可以选择将自己认为有价值的历史回复消息,例如图片、视频等保存到云端存储设备中。需要说明的是,对于显示分享对象列表的触发方式可以同图13a示出的操作示意图,点击分享控件实现。Please refer to FIG. 13b. FIG. 13b is a schematic diagram of a display interface of an exemplary sharing object list provided by the embodiment of the present application. As shown in FIG. 13b, a fixed window can pop up on the display page of the historical session record to display the
S805,将历史回复消息分享至分享对象列表中被选中的目标分享对象。S805, sharing the historical reply message to the target sharing object selected in the sharing object list.
在计算机设备显示分享对象列表之后,根据在分享对象列表(如图13a或图13b示出的分享对象列表)中选中任意一个分享对象作为目标分享对象,该目标分享对象例如是联系人、群聊或者其他社交应用。通过相应的触发规则可以将该历史回复消息分享至选中的目标分享对象,该触发规则可以是语音触发、手势触发、物理按键触发、触摸轨迹触发等等。After the computer device displays the list of sharing objects, select any one of the sharing objects in the list of sharing objects (such as the list of sharing objects shown in Figure 13a or Figure 13b) as the target sharing object. or other social apps. The historical reply message can be shared with the selected target sharing object through the corresponding trigger rule, and the trigger rule can be voice trigger, gesture trigger, physical button trigger, touch track trigger and so on.
如图14所示,是一种示例性地分享历史回复消息的操作示意图,基于图13a中分享对象列表的展示,在历史会话记录的显示界面选中历史回复消息对应的分享按钮,跳转到分享对象列表所在的页面,然后在分享对象列表1401(和图13a中示出的分享对象列表1302相同)中选中目标分享对象,并通过确认发送弹窗中的发送按钮1402将历史回复消息发送给目标分享对象。As shown in Figure 14, it is a schematic diagram of an exemplary operation of sharing historical reply messages. Based on the display of the sharing object list in Figure 13a, select the share button corresponding to the historical reply message on the display interface of the historical session record, and jump to the sharing The page where the object list is located, then select the target sharing object in the sharing object list 1401 (the same as the
需要说明的是,本实施例中的步骤序号并不能构成对执行顺序的限定,例如步骤S803和S804,可以选择其中一个步骤执行,而非顺序执行。It should be noted that the sequence number of the steps in this embodiment does not constitute a limitation on the execution sequence, for example, one of the steps of steps S803 and S804 may be selected to be executed instead of being executed sequentially.
综上所述,本实施例至少具有以下优点:In summary, this embodiment has at least the following advantages:
通过第一会话消息中包含的目标问题快速检索到相似的历史问题和相关历史回复消息,进而展示历史会话记录,为用户提供多样化的回复选择。在历史会话记录中,历史回复消息支持多种功能,包括一键发送到聊天窗、查看更多历史回复内容、分享历史回复消息、对历史回复消息进行编辑等等,通过这些既可以实现对消息的快速回复,进而提高社交会话的效率,也可以基于历史回复消息为用户提供更加个性化和多样化的操作,进而提高用户的使用体验。Quickly retrieve similar historical questions and related historical reply messages through the target questions contained in the first conversation message, and then display the historical conversation records to provide users with a variety of reply options. In historical conversation records, historical reply messages support a variety of functions, including one-click sending to the chat window, viewing more historical reply content, sharing historical reply messages, editing historical reply messages, etc. Quick replies can improve the efficiency of social conversations, and can also provide users with more personalized and diversified operations based on historical reply messages, thereby improving user experience.
基于前述实施例介绍的社交会话的处理流程图,还可以提供如下所示的社交会话的处理时序图,对应的是在历史回复消息支持的不同功能的处理流程。请参见图15,图15是本申请一个示例性实施例提供的一种社交会话的处理时序图一。该处理时序图是针对重复问题快速回复到当前聊天窗的过程时序图,详细步骤如下所示:Based on the processing flowchart of the social session introduced in the foregoing embodiments, the following sequence diagram of the processing of the social session may also be provided, corresponding to the processing flow of different functions supported by the historical reply message. Please refer to FIG. 15 . FIG. 15 is a processing sequence diagram 1 of a social session provided by an exemplary embodiment of the present application. This processing sequence diagram is a sequence diagram of the process of quickly replying to the current chat window for repeated questions. The detailed steps are as follows:
S1501、用户A在聊天窗输入带问号的问题并发送到聊天窗。S1501. User A inputs a question with a question mark in the chat window and sends it to the chat window.
用户A可以在聊天窗(即社交会话界面)的输入栏中输入带问号的问题(即目标问题),然后将目标问题发送到聊天窗中,之后社交客户端可以根据用户A发送的目标问题执行步骤S1502。其中,社交客户端可以是如图1示出的社交客户端100,用于提供社交会话界面,该社交客户端可以运行于计算机设备中,例如服务器或者是终端设备。User A can enter a question with a question mark (that is, the target question) in the input field of the chat window (that is, the social conversation interface), and then send the target question to the chat window, and then the social client can execute according to the target question sent by user A Step S1502. Wherein, the social client may be the
S1502、社交客户端快速检索历史聊天记录,查找是否有与该问题重复的历史消息记录,若有,则将相关聊天记录的数量信息提示展示在该问题附近。S1502. The social client quickly retrieves historical chat records to find out whether there are historical message records that overlap with the question, and if so, display the quantity information of the relevant chat records near the question.
社交客户端可以根据用户A发送的目标问题快速检索存储的历史聊天记录(即历史消息记录),在历史聊天记录中查找与该目标问题重复或者相似的历史消息记录,如果存在重复或相似的历史消息,则可以将查找到的数量信息提示(即提示信息)显示在目标问题的周围区域,并且生成历史会话记录。The social client can quickly retrieve the stored historical chat records (that is, historical message records) according to the target question sent by user A, and look for historical message records that are repeated or similar to the target question in the historical chat records. message, the found quantity information prompt (that is, prompt information) can be displayed in the surrounding area of the target question, and a historical session record can be generated.
S1503、用户B点击相关消息记录提示。S1503. User B clicks on a relevant message to record a prompt.
由于社交客户端在检索到和目标问题重复的历史消息记录时,会给用户提供提示信息,该提示信息用于提示存在与目标问题相关的历史消息记录。这个提示信息对于聊天窗中的所有用户,例如用户A和用户B均是可见且一致的,此时用户B可以点击该提示信息,以使得社交客户端进一步执行步骤S1504。When the social client retrieves a historical message record duplicated with the target question, it will provide the user with prompt information, and the prompt information is used to prompt that there is a historical message record related to the target question. This prompt information is visible and consistent to all users in the chat window, for example, user A and user B. At this time, user B can click on the prompt information, so that the social networking client further executes step S1504.
S1504、社交客户端在界面上呈现所有重复问题的具体内容及其第一条历史回复消息的历史信息列表。S1504. The social client presents on the interface the specific content of all repeated questions and the historical information list of the first historical reply message.
用户B在点击提示信息之后,可以在对应计算机设备的运行社交客户端的所提供的界面上呈现历史信息列表(即历史会话记录),其中的界面是指历史会话记录的显示界面,该显示界面中可以输出社交客户端查找到的所有重复问题和/或相似问题(也即与目标问题相似的历史问题)的具体内容,该具体内容可以是文本、音频、视频、图片、小程序、链接等等,还可以输出重复问题对应的第一条历史回复消息,该第一条历史回复消息是指按照回复时间排列在重复问题之后的第一条历史会话消息,可选地,也可以通过计算历史回复消息和重复问题的相关度确定。After user B clicks on the prompt information, the historical information list (that is, the historical session record) can be presented on the interface provided by the running social client of the corresponding computer device, where the interface refers to the display interface of the historical session record, and in the display interface The specific content of all repeated questions and/or similar questions (that is, historical questions similar to the target question) found by the social client can be output, and the specific content can be text, audio, video, pictures, applets, links, etc. , you can also output the first historical reply message corresponding to the repeated question. The first historical reply message refers to the first historical conversation message after the repeated question according to the reply time. Optionally, you can also calculate the historical reply by Relevance determination for messages and repeating questions.
S1505、用户B选择要使用的历史回复,点击“发送到当前聊天”按钮。S1505. User B selects the historical reply to be used, and clicks the "send to current chat" button.
在呈现所有的历史会话记录之后,用户B可以从中选择一条或多条合适的历史回复(即历史回复消息),点击相应的操作控件,例如“发送到当前聊天”按钮,社交客户端在响应之后以执行步骤S1506的具体内容。After presenting all the historical conversation records, user B can select one or more appropriate historical replies (that is, historical reply messages), click the corresponding operation control, such as the "send to the current chat" button, and the social client will respond To execute the specific content of step S1506.
S1506、社交客户端在当前聊天窗中展示用户B发送了该历史回复信息内容。S1506. The social client terminal displays in the current chat window the content of the historical reply message sent by user B.
当前聊天窗具体是指用户A发送目标问题的聊天窗,对于用户A和用户B该聊天窗中的内容是可以共享的,并且可以支持聊天窗对应的所有参与社交会话的用户发送会话消息到该聊天窗中。用户B通过点击相应的发送按钮,可以将其选择的历史回复直接展示到当前聊天窗,进而实现对用户A提出的问题的快捷回复。需要说明的是,上述用户B和用户A也可以是不同的用户,也可以是相同的用户,在此不做限制。The current chat window specifically refers to the chat window where user A sends the target question. The content in the chat window can be shared between user A and user B, and it can support all users participating in the social session corresponding to the chat window to send conversation messages to this chat window. in the chat window. By clicking the corresponding send button, user B can directly display the historical reply selected by him to the current chat window, so as to realize a quick reply to the question raised by user A. It should be noted that the user B and the user A may be different users or the same user, which is not limited here.
上述内容也可视为社交会话的处理方法的交互流程,该交互流程示出了一种针对重复问题快速回复的新型交互方法,可以帮助用户在聊天窗中通过明确的提示信息以及少量的操作步骤,实现快速查看所有重复问题的第一条历史回复消息,并快速利用相关历史回复消息回答提问用户的问题。节省了被提问用户的回复操作步骤和时间,帮助被提问这减少等待的时间和焦虑,进而显著提升用户的沟通效率。The above content can also be regarded as the interaction process of the method for processing social conversations. This interaction process shows a new interaction method for quick replies to repeated questions, which can help users pass clear prompt information and a small number of operation steps in the chat window. , to quickly view the first historical reply message of all repeated questions, and quickly use the relevant historical reply message to answer the question of the user asking the question. It saves the reply operation steps and time of the questioned user, helps the questioned party reduce the waiting time and anxiety, and thus significantly improves the communication efficiency of the user.
相应地,在针对重复问题快速回复到任意聊天窗的过程时序图可以参见图16,图16是本申请一个示例性实施例提供的一种社交会话的处理时序图二。详细的步骤可以参见下述内容:Correspondingly, for the sequence diagram of the process of quickly replying to any chat window for repeated questions, refer to FIG. 16 , which is a processing sequence diagram 2 of a social session provided by an exemplary embodiment of the present application. For detailed steps, see the following:
S1601、用户A在聊天窗输入带问号的问题并发送到聊天窗。S1601. User A inputs a question with a question mark in the chat window and sends it to the chat window.
S1602、社交客户端快速检索历史聊天记录,查找是否有与该问题重复的历史消息记录,若有则将相关聊天记录的数量信息提示展示在该问题附近。S1602. The social client quickly retrieves historical chat records to find out whether there are historical message records that overlap with the question, and if so, display the quantity information of the relevant chat records near the question.
S1603、用户B点击相关消息记录提示。S1603. User B clicks on a relevant message to record a prompt.
S1604、社交客户端在界面上呈现所有重复问题的具体内容及其第一条历史回复消息的历史信息列表。S1604. The social client presents on the interface the specific content of all repeated questions and the historical information list of the first historical reply message.
上述步骤和图15示出的内容相同,在此不做赘述。下述步骤通过相关的功能按钮实现将选择的历史回复发送到任意聊天窗,该任意聊天窗可以包括当前聊天窗,也可以包括和其他用户进行会话的聊天窗。The above steps are the same as those shown in FIG. 15 , and will not be repeated here. The following steps realize sending the selected historical reply to any chat window through the relevant function buttons, and the random chat window may include the current chat window or the chat window having conversations with other users.
S1605、用户B选择要使用的历史回复,点击“转发给朋友”按钮。S1605. User B selects the historical reply to be used, and clicks the "forward to a friend" button.
S1606、社交客户端展示选择朋友面板。S1606. The social client terminal displays a friend selection panel.
S1607、用户B在选择朋友面板中选择要转发的用户C。S1607. User B selects user C to forward in the friend selection panel.
S1608、社交客户端展示确认发送弹窗。S1608. The social client terminal displays a confirmation sending pop-up window.
S1609、用户B在确认发送弹窗中点击“发送”按钮。S1609. User B clicks a "send" button in the pop-up window for confirming sending.
S1610、社交客户端在用户B与用户C的聊天窗中展示用户B发送了该历史回复信息内容。S1610. The social client terminal displays in the chat window between user B and user C that user B has sent the historical reply information.
上述步骤具体可以参见图14对应内容以及说明,其中朋友面板和分享对象列表对应,在此不做赘述。For details of the above steps, please refer to the corresponding content and description in FIG. 14 , where the friend panel corresponds to the list of sharing objects, and details are not repeated here.
在针对重复问题快速查看相关历史回复的过程时序图,可以参见图17,图17是本申请一个示例性实施例提供的一种社交会话的处理时序图三。详细步骤如下:For the sequence diagram of the process of quickly viewing relevant historical replies for repeated questions, refer to FIG. 17 , which is a processing sequence diagram 3 of a social session provided by an exemplary embodiment of the present application. The detailed steps are as follows:
S1701、用户A在聊天窗中发送了带问号的问题。S1701. User A sends a question with a question mark in the chat window.
S1702、社交客户端快速检索历史聊天记录查找是否有与该问题重复的历史消息记录,如果有则将相关聊天记录的数量信息提示展示在该问题附近。S1702. The social client quickly retrieves historical chat records to find out whether there are historical message records that overlap with the question, and if so, display the quantity information of the relevant chat records near the question.
S1703、用户B点击该相关消息记录提示。S1703. User B clicks the relevant message to record a prompt.
S1704、社交客户端在界面上呈现所有重复问题的具体内容及其第一条历史回复消息的历史信息列表。S1704. The social client presents on the interface the specific content of all repeated questions and the historical information list of the first historical reply message.
上述步骤和图15示出的内容相同,在此也不做赘述。下述步骤通过相关的功能按钮可以实现对某个重复问题的更多历史回复的查看或浏览。The above steps are the same as those shown in FIG. 15 , and will not be repeated here. The following steps can be used to view or browse more historical replies to a repeated question through the relevant function buttons.
S1705、用户B在历史信息列表中选择任意要使用的历史回复,点击“查看相关消息”按钮。S1705. User B selects any historical reply to be used in the historical information list, and clicks the "View Related Message" button.
S1706、社交客户端将界面跳转至当前聊天窗并展示更多历史回复内容。S1706. The social client terminal jumps the interface to the current chat window and displays more historical reply content.
在一实施例中,这两个步骤的内容对应可以参见图12a中示出的操作示意图,通过点击浏览控件,即“查看相关消息”按钮跳转到历史回复消息的详情页面120。In one embodiment, the contents of these two steps correspond to the operation schematic diagram shown in FIG. 12 a . By clicking the browse control, that is, the “View Related Messages” button, you can jump to the
需要说明的是,这里当前聊天窗和用户A发送问题的聊天窗是相同的聊天窗口,区别仅在于聊天窗中包括的会话消息内容是不同的。在当前聊天窗中通过相应的操作,例如在浏览更多历史回复内容时提供“回到最新位置”的标识,用户通过点击该标识可以在聊天窗中由显示更多历史回复内容定位到显示用户A发送的问题。It should be noted that the current chat window and the chat window where user A sends the question are the same chat window, and the only difference is that the content of the conversation message included in the chat window is different. Through the corresponding operation in the current chat window, for example, when browsing more historical reply content, the logo of "return to the latest position" is provided. By clicking this logo, the user can navigate from displaying more historical reply content to displaying the user in the chat window A sent question.
总的来说,本申请实施例提供的处理方案可以应用在各种社交场景中,相比于目前针对当前聊天窗中重复问题的回复操作,能够更加便捷快速。举例来说,在即时通讯应用中聊天的场景下,一旦发送了带问号的问题,便可触发系统快速检索历史聊天记录查找是否有重复问题,如果有则将相关条数提示呈现到用户发送的问题附近,让用户通过点击提示能快速查看到具体的重复问题内容及相关回复,且能将历史回复内容一键转发给提问者,这种新型交互方法能帮助被提问者快速回复消息,省去输入文字的繁琐操作,操作步骤少、非常便捷,能极大程度缩短双方沟通的时间、提高沟通的效率。针对本申请提供的社交会话的处理方案的优势,通过以下示例进行对比说明:In general, the processing solution provided by the embodiment of the present application can be applied in various social scenarios, and it can be more convenient and faster than the current reply operation for repeated questions in the current chat window. For example, in the scenario of chatting in an instant messaging application, once a question with a question mark is sent, the system can be triggered to quickly search the historical chat records to find out whether there are repeated questions, and if so, a reminder of the number of relevant entries will be presented to the message sent by the user. Near the question, users can quickly view the specific repeated question content and related replies by clicking on the prompt, and can forward the historical reply content to the questioner with one click. This new interactive method can help the questionee quickly reply to the message, saving The cumbersome operation of inputting text has fewer steps and is very convenient, which can greatly shorten the time for communication between the two parties and improve the efficiency of communication. With regard to the advantages of the social conversation processing solution provided by this application, the following examples are used for comparison and description:
示例一:对聊天窗中的问题回复纯文字类的内容,需要两个步骤:1)在聊天窗中输入问题;2)点击发送按钮。具体地操作示意图可参见图18a,在聊天窗180中针对问题“吃什么?”,通过触摸键盘输入回复内容“楼下那家辣子鸡怎样”,在输入完成之后点击发送按钮将该条消息发送到聊天窗。图18a中输出的三个聊天窗均为同一个聊天窗,仅展示的会话消息内容有所区别。可以发现,在聊天窗输入回复文字的过程,不仅需要逐字逐句的点击输入,当输入的内容较多且复杂时,输入所花费的时间也会相应增加,操作也较为繁琐,而且回复内容还需要用户自己思考选择。Example 1: Replying plain text content to a question in the chat window requires two steps: 1) Enter the question in the chat window; 2) Click the send button. The specific operation schematic diagram can be seen in Figure 18a. In the chat window 180, for the question "what to eat?", input the reply content "how about the spicy chicken downstairs" by touching the keyboard, and click the send button to send the message after the input is completed to the chat window. The three chat windows output in Figure 18a are all the same chat window, only the content of the displayed conversation messages is different. It can be found that the process of inputting the reply text in the chat window not only needs to click and input word by word, but when the input content is large and complex, the time spent on input will increase accordingly, and the operation is more cumbersome, and the reply content also requires the user to Think about options for yourself.
而本方案提供的消息回复方式,通过和图2示出的内容进行比对,显而易见地,本方案可以智能化地提供可选择的历史回复消息,基于历史回复消息快速回复聊天窗中的问题,并且历史回复消息是基于提出的目标问题检索的相似历史问题相关的历史回复消息,这进一步提高展示的历史回复消息对聊天窗中问题的适用性。By comparing the message reply method provided by this solution with the content shown in Figure 2, it is obvious that this solution can intelligently provide optional historical reply messages, and quickly reply to questions in the chat window based on historical reply messages. And the historical reply messages are historical reply messages related to similar historical questions retrieved based on the proposed target question, which further improves the applicability of the displayed historical reply messages to the questions in the chat window.
示例二:对聊天窗中的问题回复小程序链接类内容,包括以下步骤:1)点击聊天软件的搜索入口,唤起搜索输入框;2)在搜索输入框中输入小程序名字“xx点评”,获得多条搜索结果;3)点击搜索结果里的“xx点评”小程序,进入xx点评小程序首页;4)在xx点评小程序的搜索输入框中输入要找的店铺名称,获得多条店铺搜索结果;5)在店铺搜索结果里点击要找的店铺,进入该店铺主页;6)点击店铺主页右上角的操作入口,打开小程序操作面板;7)点击“发送给朋友”按钮,跳转至选择朋友面板;8)在选择朋友面板中点击要发送至的聊天朋友或群;9)点击发送按钮,即将该店铺的小程序链接发送给朋友或群。具体操作示意图可以参见图18b,每个页面与上述步骤一一对应,最后一个页面为小程序链接显示到聊天窗中的效果。可以发现,上述步骤对应的回复操作时十分繁琐的,并且花费的时间也比较多,在网络出现问题时,任一步骤的搜索可能都导致整体花费时间进一步增加。Example 2: Reply to the content of the applet link to the question in the chat window, including the following steps: 1) Click the search entry of the chat software to bring up the search input box; 2) Enter the name of the applet "xx Comments" in the search input box, Get multiple search results; 3) Click the "xx Comments" applet in the search results to enter the homepage of the xx Comments applet; 4) Enter the name of the store you are looking for in the search input box of the xx Comments applet to get multiple stores Search results; 5) Click the store you are looking for in the store search results to enter the store homepage; 6) Click the operation entry in the upper right corner of the store homepage to open the small program operation panel; 7) Click the "Send to a friend" button to jump Go to the select friend panel; 8) Click the chat friend or group to be sent to in the select friend panel; 9) Click the send button to send the mini program link of the store to the friend or group. The specific operation schematic diagram can be found in Figure 18b. Each page corresponds to the above steps one by one, and the last page is the effect of the applet link displayed in the chat window. It can be found that the reply operation corresponding to the above steps is very cumbersome and takes a lot of time. When there is a problem in the network, the search of any step may lead to a further increase in the overall time spent.
而本方案中在历史回复消息中可以包括小程序链接,只需要用户通过相应操作按钮就可以实现小程序链接的一键发送,而不用专门在搜索栏中进行搜索。并且和目标问题有较好的匹配度。In this solution, the link to the applet can be included in the historical reply message, and the user only needs to press the corresponding operation button to realize the one-click sending of the link to the applet, instead of searching in the search bar. And it has a good matching degree with the target problem.
示例三:通过查找聊天记录回复纯文字类或小程序链接类的内容,包括以下步骤:1)点击聊天窗右上角的更多功能入口;2)点击“查找聊天记录”功能入口,唤起聊天记录搜索输入框;3)在聊天记录搜索输入框中输入要查找的问题;4)系统如果没有找到相关聊天记录,则前面所有操作均为无效操作,即用户花费了时间进行的多步操作却没有获得相关问题回复;系统如果有找到问题相关消息记录,则点击所要查看的聊天记录,查看该记录在此消息窗中的相关历史消息,继续进行步骤5;5)长按要使用的历史回复消息,唤起消息操作面板;6)点击转发按钮,跳转至选择朋友面板;7)在选择朋友面板中点击要发送至的聊天朋友或群;8)点击发送按钮,即将要使用的历史回复消息发送给朋友或群。具体操作示意图可以参见图18c,每个步骤中的操作与图18c中的各个页面一一对应,可见,通过查找聊天记录回复的方式的操作也十分繁琐并且花费了时间也并不一定能够找到相关信息,进而导致沟通效率低。Example 3: Reply to plain text or applet link content by searching chat records, including the following steps: 1) Click the more function entry in the upper right corner of the chat window; 2) Click the "Search Chat Records" function entry to invoke the chat history Search input box; 3) Input the question to be searched in the chat record search input box; 4) If the system does not find the relevant chat record, all previous operations are invalid operations, that is, the multi-step operation that the user has spent time performing does not Obtain relevant question replies; if the system finds the relevant message records of the questions, click the chat record to be viewed, view the relevant historical messages recorded in this message window, and proceed to step 5; 5) Long press the historical reply message to be used , to call up the message operation panel; 6) Click the forward button to jump to the select friend panel; 7) Click the chat friend or group to be sent to in the select friend panel; 8) Click the send button to send the historical reply message to be used to a friend or group. The specific operation schematic diagram can be found in Figure 18c. The operations in each step correspond to each page in Figure 18c. It can be seen that the operation of searching for chat records and replies is also very cumbersome and time-consuming, and it may not be possible to find relevant information, resulting in low communication efficiency.
而本方案中通过社交会话界面中出现的目标问题,可以触发系统自动检索重复或者相似的历史问题,并为用户提供相关的历史回复消息,避免用户手动搜索,使得对消息的回复更加自动化和智能化。In this solution, the target problem that appears in the social conversation interface can trigger the system to automatically retrieve repeated or similar historical problems, and provide users with relevant historical reply messages, avoiding manual search by users, making the reply to messages more automatic and intelligent change.
综上,现有的一些即时通讯应用中,在聊天窗中想要获得到回复的操作过程中,沟通效率低,用户体验较差,既可能因不知道什么时候有人回复而浪费时间在等待上,并产生不好的焦虑感,也可能在进行多步操作后却找不到相关回复而浪费时间,并导致心情烦躁。然而,本方案提供的一种针对重复问题快速回复的新型交互方法,可以帮助用户在聊天窗中通过明确的提示加少量的操作就能快速查看所有重复问题的第一条历史回复消息,并能快速的将相关回复一键发送给提问者,既能节省被提问者的回复操作和时间,又能帮助提问者减少等待的时间和焦虑,显著提升用户获得重复问题回复的沟通效率。To sum up, in some existing instant messaging applications, in the process of getting a reply in the chat window, the communication efficiency is low, and the user experience is poor. It is possible to waste time waiting for not knowing when someone will reply. , and produce a bad sense of anxiety, and may also waste time after performing multi-step operations but cannot find relevant replies, and lead to irritability. However, this solution provides a new interactive method for quick replies to repeated questions, which can help users quickly view the first historical reply message of all repeated questions in the chat window through clear prompts and a small amount of operations, and can Quickly send relevant replies to the questioner with one click, which can not only save the reply operation and time of the questionee, but also help the questioner reduce waiting time and anxiety, and significantly improve the communication efficiency for users to get replies to repeated questions.
请参见图19,图19是本申请一个示例性实施例提供的一种社交会话的处理装置的结构示意图。上述社交会话的处理装置可以是运行于计算机设备中的一个计算机程序(包括程序代码),例如该社交会话的处理装置为一个应用软件;该社交会话的处理装置可以用于执行本申请实施例提供的方法中的相应步骤。如图19所示,该社交会话的处理装置1900可以包括:显示单元1901、处理单元1902,其中:Please refer to FIG. 19 , which is a schematic structural diagram of an apparatus for processing a social session provided by an exemplary embodiment of the present application. The above-mentioned social session processing device may be a computer program (including program code) running in a computer device, for example, the social session processing device is an application software; the social session processing device may be used to execute the corresponding steps in the method. As shown in FIG. 19, the social
显示单元1901,用于显示社交会话界面;A
处理单元1902,用于响应于社交会话界面中的第一会话消息,显示历史会话记录;第一会话消息包含目标问题;历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息;The
处理单元1902,还用于响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息,第二会话消息基于被选择的历史回复消息生成。The
在一实施例中,处理单元1902,具体用于:响应于社交会话界面中的第一会话消息,输出提示信息,提示信息用于提示存在与目标问题相关的历史会话记录;当提示信息被触发时,显示历史会话记录。In an embodiment, the
在一实施例中,提示信息为提示文本,处理单元1902,具体用于:在社交会话界面中的任意位置显示提示文本;或者,在社交会话界面中的第一会话消息的显示位置周围显示提示文本。In an embodiment, the prompt information is a prompt text, and the
在一实施例中,提示信息为提示动画,处理单元1902,具体用于:在社交会话界面中播放提示动画;或者,在悬浮窗中播放提示动画;或者,在固定窗口中播放提示动画。In one embodiment, the prompt information is a prompt animation, and the
在一实施例中,社交会话的处理装置还包括停止单元1903,用于:当提示信息被触发时,停止显示提示信息;或者,当提示信息的显示时长到达设定时长时,停止显示提示信息。In an embodiment, the apparatus for processing social conversations further includes a
在一实施例中,若历史会话记录中包含历史问题相关的历史回复消息的数量为P条,P为正整数;则处理单元1902,具体用于:显示历史问题,并从P条历史回复消息中选取至少一条目标历史回复消息进行显示;其中,选取包括以下任一种:随机选取,按照回复时间先后顺序选取,按照与历史问题相关度由高至低的顺序选取。In one embodiment, if the number of historical reply messages related to historical questions in the historical conversation records is P, and P is a positive integer; then the
在一实施例中,若历史会话记录的数量为N,N为正整数;则处理单元1902,具体用于:按照每个历史会话记录中的历史问题的发送时间由近及远的顺序,对N个历史会话记录进行排序显示。In one embodiment, if the number of historical session records is N, and N is a positive integer; then the
在一实施例中,若历史会话记录的数量为N,N为正整数;则提示信息中还包括历史会话记录的数量提示。In an embodiment, if the number of historical session records is N, and N is a positive integer; the prompt information also includes a prompt of the number of historical session records.
在一实施例中,历史回复消息对应有操作控件;处理单元1902,具体用于:当操作控件被触发时,历史回复消息被选择。In an embodiment, the historical reply message corresponds to an operation control; the
在一实施例中,操作控件设置于历史会话记录的显示界面中。In an embodiment, the operation control is set in the display interface of the historical session record.
在一实施例中,历史会话记录的显示界面中设有浏览控件;处理单元1902,具体用于:当浏览控件被触发时,显示历史会话记录的详情页面;详情页面中包含历史回复消息;操作控件设置于详情页面中的历史回复消息的周围。In one embodiment, a browsing control is provided in the display interface of the historical session record; the
在一实施例中,历史回复消息关联有操作区域;处理单元1902,具体用于:当操作区域中存在预定触摸轨迹时,历史回复消息被选择。In an embodiment, the history reply message is associated with an operation area; the
在一实施例中,被选择的历史回复消息的数量为一条或多条;处理单元1902,还用于:将被选择的各条历史回复消息均确定为第二会话消息;或者,将被选择的一条或多条历史回复消息合并成为一条第二会话消息。In an embodiment, the number of selected historical reply messages is one or more; the
在一实施例中,处理单元1902,具体用于:响应于对历史回复消息的选择,将被选择的历史回复消息输出到会话编辑区域;会话编辑区域包括编辑窗口或者社交会话界面的输入栏;在会话编辑区域对历史回复消息进行编辑,形成第二会话消息;在社交会话界面中显示第二会话消息。In an embodiment, the
在一实施例中,社交会话的处理装置还包括分享单元1904,用于:响应于对历史回复消息的分享,显示分享对象列表;将历史回复消息分享至分享对象列表中被选中的目标分享对象。In one embodiment, the device for processing social conversations further includes a
在一实施例中,处理单元1902,还用于:当社交会话界面中存在第一会话消息时,对第一会话消息进行检测;若检测到第一会话消息包括问题标志,则确定第一会话消息包含目标问题,触发执行响应于社交会话界面中的第一会话消息,显示历史会话记录;其中,问题标志包括以下任一种:疑问标识符、疑问词、表示疑问的字符。In an embodiment, the
可以理解的是,本申请实施例所描述的社交会话的处理装置的各功能模块或者单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It can be understood that the functions of each functional module or unit of the social conversation processing device described in the embodiment of the present application can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment , which will not be repeated here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here.
请参见图20,图20是本申请实施例提供的一种计算机设备的结构示意图。该计算机设备2000可以包含独立设备(例如服务器、节点、终端等等中的一个或者多个),也可以包含独立设备内部的部件(例如芯片、软件模块或者硬件模块等)。该计算机设备2000可以包括至少一个处理器2001和通信接口2002,进一步可选地,计算机设备2000还可以包括至少一个存储器2003和总线2004。其中,处理器2001、通信接口2002和存储器2003通过总线2004相连。Please refer to FIG. 20 , which is a schematic structural diagram of a computer device provided by an embodiment of the present application. The
其中,处理器2001是进行算术运算和/或逻辑运算的模块,具体可以是中央处理器(central processing unit,CPU)、图片处理器(graphics processing unit,GPU)、微处理器(microprocessor unit,MPU)、专用集成电路(Application Specific IntegratedCircuit,ASIC)、现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)、复杂可编程逻辑器件(Complex programmable logic device,CPLD)、协处理器(协助中央处理器完成相应处理和应用)、微控制单元(Microcontroller Unit,MCU)等处理模块中的一种或者多种的组合。Wherein, the
通信接口2002可以用于为所述至少一个处理器提供信息输入或者输出。和/或,所述通信接口2002可以用于接收外部发送的数据和/或向外部发送数据,可以为包括诸如以太网电缆等的有线链路接口,也可以是无线链路(Wi-Fi、蓝牙、通用无线传输、车载短距通信技术以及其他短距无线通信技术等)接口。The
存储器2003用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器2003可以是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read onlymemory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM)等等中的一种或者多种的组合。The
该计算机设备2000中的至少一个处理器2001用于调用至少一个存储器2003中存储的计算机程序,用于执行前述的社交会话的处理方法,例如前述图2、图3、图8所示实施例所描述的社交会话的处理方法。At least one
在一种可能的实施方式中,该计算机设备2000中的处理器2001用于调用至少一个存储器2003中存储的计算机程序,用于执行以下操作:In a possible implementation manner, the
显示社交会话界面;display the social session interface;
响应于社交会话界面中的第一会话消息,显示历史会话记录;第一会话消息包含目标问题;历史会话记录中包含与目标问题相似的历史问题及历史问题相关的历史回复消息;In response to the first session message in the social session interface, displaying historical session records; the first session message includes a target question; the historical session record includes historical questions similar to the target question and historical reply messages related to the historical questions;
响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息,第二会话消息基于被选择的历史回复消息生成。In response to the selection of the historical reply message, a second conversation message is displayed in the social conversation interface, and the second conversation message is generated based on the selected historical reply message.
在一实施例中,处理器2001响应于社交会话界面中的第一会话消息,显示历史会话记录时,具体用于:响应于社交会话界面中的第一会话消息,输出提示信息,提示信息用于提示存在与目标问题相关的历史会话记录;当提示信息被触发时,显示历史会话记录。In an embodiment, when the
在一实施例中,提示信息为提示文本,处理器2001输出提示信息时,具体用于:在社交会话界面中的任意位置显示提示文本;或者,在社交会话界面中的第一会话消息的显示位置周围显示提示文本。In one embodiment, the prompt information is a prompt text, and when the
在一实施例中,提示信息为提示动画,处理器2001输出提示信息时,具体用于:在社交会话界面中播放提示动画;或者,在悬浮窗中播放提示动画;或者,在固定窗口中播放提示动画。In one embodiment, the prompt information is a prompt animation, and when the
在一实施例中,处理器2001还用于:当提示信息被触发时,停止显示提示信息;或者,当提示信息的显示时长到达设定时长时,停止显示提示信息。In an embodiment, the
在一实施例中,若历史会话记录中包含历史问题相关的历史回复消息的数量为P条,P为正整数;则处理器2001显示历史会话记录时,具体用于:显示历史问题,并从P条历史回复消息中选取至少一条目标历史回复消息进行显示;其中,选取包括以下任一种:随机选取,按照回复时间先后顺序选取,按照与历史问题相关度由高至低的顺序选取。In one embodiment, if the number of historical reply messages related to the historical question contained in the historical conversation record is P, and P is a positive integer; when the
在一实施例中,若历史会话记录的数量为N,N为正整数;则处理器2001显示历史会话记录时,具体用于:按照每个历史会话记录中的历史问题的发送时间由近及远的顺序,对N个历史会话记录进行排序显示。In one embodiment, if the number of historical session records is N, and N is a positive integer; when the
在一实施例中,若历史会话记录的数量为N,N为正整数;则提示信息中还包括历史会话记录的数量提示。In an embodiment, if the number of historical session records is N, and N is a positive integer; the prompt information also includes a prompt of the number of historical session records.
在一实施例中,历史回复消息对应有操作控件;处理器2001还用于:当操作控件被触发时,历史回复消息被选择。In an embodiment, the history reply message corresponds to an operation control; the
在一实施例中,操作控件设置于历史会话记录的显示界面中。In an embodiment, the operation control is set in the display interface of the historical session record.
在一实施例中,历史会话记录的显示界面中设有浏览控件;处理器2001还用于:当浏览控件被触发时,显示历史会话记录的详情页面;详情页面中包含历史回复消息;操作控件设置于详情页面中的历史回复消息的周围。In one embodiment, the display interface of the historical session record is provided with a browse control; the
在一实施例中,历史回复消息关联有操作区域;处理器2001还用于:当操作区域中存在预定触摸轨迹时,历史回复消息被选择。In an embodiment, the history reply message is associated with the operation area; the
在一实施例中,被选择的历史回复消息的数量为一条或多条;处理器2001还用于:将被选择的各条历史回复消息均确定为第二会话消息;或者,将被选择的一条或多条历史回复消息合并成为一条第二会话消息。In one embodiment, the number of selected historical reply messages is one or more; the
在一实施例中,处理器2001响应于对历史回复消息的选择,在社交会话界面中显示第二会话消息时,具体用于:响应于对历史回复消息的选择,将被选择的历史回复消息输出到会话编辑区域;会话编辑区域包括编辑窗口或者社交会话界面的输入栏;在会话编辑区域对历史回复消息进行编辑,形成第二会话消息;在社交会话界面中显示第二会话消息。In an embodiment, when the
在一实施例中,处理器2001还用于:响应于对历史回复消息的分享,显示分享对象列表;将历史回复消息分享至分享对象列表中被选中的目标分享对象。In an embodiment, the
在一实施例中,处理器2001还用于:当社交会话界面中存在第一会话消息时,对第一会话消息进行检测;若检测到第一会话消息包括问题标志,则确定第一会话消息包含目标问题,触发执行响应于社交会话界面中的第一会话消息,显示历史会话记录;其中,问题标志包括以下任一种:疑问标识符、疑问词、表示疑问的字符。In one embodiment, the
应当理解,本申请实施例中所描述的计算机设备2000可执行前文所对应实施例中对该社交会话的处理方法的描述,也可执行前文图19所对应实施例中对该社交会话的处理装置1900的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。It should be understood that the
此外,还应指出,本申请一个示例性实施例还提供了一种存储介质,该存储介质中存储了前述社交会话的处理方法的计算机程序,该计算机程序包括程序指令,当一个或多个处理器加载并执行该程序指令,可以实现实施例中对社交会话的处理方法的描述,这里不再赘述,对采用相同方法的有益效果描述,也在此不再赘述。可以理解的是,程序指令可以被部署在一个或能够互相通信的多个计算机设备上执行。In addition, it should also be pointed out that an exemplary embodiment of the present application also provides a storage medium in which the computer program of the aforementioned social conversation processing method is stored, the computer program includes program instructions, and when one or more processing The device loads and executes the program instructions to implement the description of the social session processing method in the embodiment, which will not be repeated here, and the description of the beneficial effects of using the same method will not be repeated here. It can be understood that program instructions can be deployed and executed on one or more computer devices capable of communicating with each other.
上述计算机可读存储介质可以是前述任一实施例提供的社交会话的处理装置或者上述计算机设备的内部存储单元,例如计算机设备的硬盘或内存。该计算机可读存储介质也可以是该计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(smart media card,SMC),安全数字(secure digital,SD)卡,闪存卡(flash card)等。进一步地,该计算机可读存储介质还可以既包括该计算机设备的内部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该计算机设备所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned computer-readable storage medium may be the social session processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the above-mentioned computer equipment, such as a hard disk or memory of the computer equipment. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, Flash card (flash card), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行本申请实施例中一方面提供的方法。One aspect of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in one aspect of the embodiments of the present application.
本申请的一个方面,提供了另一种计算机程序产品,该计算机程序产品包括计算机程序或计算机指令,该计算机程序或计算机指令被处理器执行时实现本申请实施例提供的社交会话的处理方法的步骤。One aspect of the present application provides another computer program product, the computer program product includes a computer program or a computer instruction, and when the computer program or computer instruction is executed by a processor, the method for processing a social session provided by the embodiment of the present application is implemented. step.
以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。The above disclosures are only preferred embodiments of the present application, which certainly cannot limit the scope of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope of the present application.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111310791.4A CN116089736A (en) | 2021-11-05 | 2021-11-05 | Social session processing method and related equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111310791.4A CN116089736A (en) | 2021-11-05 | 2021-11-05 | Social session processing method and related equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116089736A true CN116089736A (en) | 2023-05-09 |
Family
ID=86197880
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111310791.4A Pending CN116089736A (en) | 2021-11-05 | 2021-11-05 | Social session processing method and related equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116089736A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118433144A (en) * | 2024-07-04 | 2024-08-02 | 阿里健康科技(杭州)有限公司 | Method and related device for determining target instant messaging message |
| CN118642626A (en) * | 2024-08-15 | 2024-09-13 | 深圳市爱聊科技有限公司 | Interaction method, device, equipment and medium for matching users in social conversation |
| CN118764453A (en) * | 2024-07-31 | 2024-10-11 | 北京字跳网络技术有限公司 | Information processing method, device, terminal and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648385A (en) * | 2015-11-03 | 2017-05-10 | 东莞酷派软件技术有限公司 | Processing method and device for message inputting and terminal |
| CN108228033A (en) * | 2018-01-29 | 2018-06-29 | 维沃移动通信有限公司 | A kind of message display method and mobile terminal |
| CN112003778A (en) * | 2020-07-17 | 2020-11-27 | 北京百度网讯科技有限公司 | Message processing method, device, equipment and computer storage medium |
-
2021
- 2021-11-05 CN CN202111310791.4A patent/CN116089736A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106648385A (en) * | 2015-11-03 | 2017-05-10 | 东莞酷派软件技术有限公司 | Processing method and device for message inputting and terminal |
| CN108228033A (en) * | 2018-01-29 | 2018-06-29 | 维沃移动通信有限公司 | A kind of message display method and mobile terminal |
| CN112003778A (en) * | 2020-07-17 | 2020-11-27 | 北京百度网讯科技有限公司 | Message processing method, device, equipment and computer storage medium |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118433144A (en) * | 2024-07-04 | 2024-08-02 | 阿里健康科技(杭州)有限公司 | Method and related device for determining target instant messaging message |
| CN118764453A (en) * | 2024-07-31 | 2024-10-11 | 北京字跳网络技术有限公司 | Information processing method, device, terminal and storage medium |
| CN118642626A (en) * | 2024-08-15 | 2024-09-13 | 深圳市爱聊科技有限公司 | Interaction method, device, equipment and medium for matching users in social conversation |
| CN118642626B (en) * | 2024-08-15 | 2024-11-05 | 深圳市爱聊科技有限公司 | Interaction method, device, equipment and medium for matching users in social session |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20190332400A1 (en) | System and method for cross-platform sharing of virtual assistants | |
| US8725826B2 (en) | Linking users into live social networking interactions based on the users' actions relative to similar content | |
| CN106716934B (en) | Chat interaction method and device and electronic equipment thereof | |
| KR102081233B1 (en) | apparatus for control of messenger | |
| CN111557006B (en) | Hybrid intelligent method for extracting knowledge about inline annotations | |
| KR101821358B1 (en) | Method and system for providing multi-user messenger service | |
| US11336594B2 (en) | Information processing system and information processing method | |
| CN110945840A (en) | Embedded programs and interfaces for chat conversations | |
| JP2020521995A (en) | Analyzing electronic conversations for presentations on alternative interfaces | |
| CN112422405B (en) | Message interaction method and device and electronic equipment | |
| JP2017153078A (en) | Artificial intelligence learning method, artificial intelligence learning system, and answer relay method | |
| US20180218252A1 (en) | Artificial intelligence entity interaction platform | |
| CN116089736A (en) | Social session processing method and related equipment | |
| WO2017157174A1 (en) | Information processing method, device, and terminal device | |
| US20220319482A1 (en) | Song processing method and apparatus, electronic device, and readable storage medium | |
| CN117033587A (en) | Man-machine interaction method and device, electronic equipment and medium | |
| CN114327180A (en) | Audio content display method and device, electronic equipment and storage medium | |
| CN118828043A (en) | Live video processing method, device, storage medium and program product based on digital human | |
| CN114390017B (en) | Session reminding method, device and equipment | |
| CN117743560A (en) | Multi-role intelligent dialogue method, device, electronic equipment and storage medium | |
| KR20230016366A (en) | Method and system for self-training artificial intelligence character's dialogue engine | |
| US20250323995A1 (en) | Interaction processing method and apparatus, electronic device, and computer-readable storage medium | |
| CN118828040A (en) | Live broadcast method, device, storage medium and program product based on digital human | |
| WO2023142415A1 (en) | Social interaction method and apparatus, and device, storage medium and program product | |
| CN104065614B (en) | Information processing method and message processing device |
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 | ||
| REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40086811 Country of ref document: HK |