CN113709021B - Session message generation method and device, computer equipment and storage medium - Google Patents
Session message generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113709021B CN113709021B CN202010439382.3A CN202010439382A CN113709021B CN 113709021 B CN113709021 B CN 113709021B CN 202010439382 A CN202010439382 A CN 202010439382A CN 113709021 B CN113709021 B CN 113709021B
- Authority
- CN
- China
- Prior art keywords
- time
- target
- message
- requester
- occupancy information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
- G06Q10/1093—Calendar-based scheduling for persons or groups
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/216—Handling conversation history, e.g. grouping of messages in sessions or threads
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Signal Processing (AREA)
- Entrepreneurship & Innovation (AREA)
- Strategic Management (AREA)
- Computer Networks & Wireless Communication (AREA)
- Operations Research (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请涉及一种会话消息生成方法、装置、计算机设备和存储介质。该方法包括:接收通过会话页面发送的时间推荐请求;根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段;根据相同时间段对应的时间占用信息确定时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。采用本方法能够节省网络资源,提高约定时间的效率。
The present application relates to a conversation message generation method, device, computer equipment and storage medium. The method includes: receiving a time recommendation request sent through a session page; searching for the same idle time period according to the requester ID and the target party ID, and determining the same time slot for the requester ID and the target party ID when the same idle time segment is not found ; Determine the importance of the time occupancy information according to the time occupancy information corresponding to the same time period, and obtain the same time period in which the importance of the time occupancy information is less than the preset threshold, and obtain the recommended time list; return the recommended time list to the terminal corresponding to the requester identification, The terminal displays the recommended time list on the session page, and when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page. The method can save network resources and improve the efficiency of appointment time.
Description
技术领域technical field
本申请涉及互联网技术领域,特别是涉及一种会话消息生成方法、装置、计算机设备和存储介质。The present application relates to the technical field of the Internet, in particular to a conversation message generation method, device, computer equipment and storage medium.
背景技术Background technique
随着互联网技术的发展,出现了即时通讯技术,人们通常使用即时通讯软件来进行消息交互,比如,通过即时通讯软件来约定时间开会时间,又比如通过即时通讯软件来约定时间客户到访企业的时间。传统技术中,通过通讯软件来约定时间,需要通过不断发送聊天会话消息来同需要约定的对象确认约定时间,这种约定时间的方法,需要多次发送会话消息,存在网络资源浪费,效率低下的问题。With the development of Internet technology, instant messaging technology has emerged. People usually use instant messaging software for message interaction. time. In the traditional technology, to make an appointment through communication software, it is necessary to confirm the appointment time with the object to be agreed by sending chat session messages continuously. This method of appointment time requires sending conversation messages multiple times, which wastes network resources and is inefficient. question.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够节省网络资源,提高效率的会话消息生成方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, device, computer equipment and storage medium for generating conversation messages that can save network resources and improve efficiency in order to address the above technical problems.
一种会话消息生成方法,所述方法包括:A method for generating conversational messages, the method comprising:
接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;Receive the time recommendation request sent through the session page, and the time recommendation request carries the requester ID and the target party ID;
根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;Searching for the same free time period according to the requester ID and the target party ID, and determining the same time period of the requester ID and the target party ID when the same idle time segment is not found, and obtaining time occupancy information corresponding to the same time segment;
根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Determine the importance of the corresponding time occupancy information according to the time occupancy information, acquire the same time periods in which the importance of the time occupancy information is less than a preset threshold, and obtain a recommended time list;
将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page. When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the Interactable target time messages are displayed on the session page.
在其中一个实施例中,在将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括:In one of the embodiments, after returning the recommended time list to the terminal corresponding to the requester's identification, so that the terminal displays the recommended time list on the session page, when a selection operation acting on the target time in the recommended time list is detected, the target time After generating an interactive target time message and displaying the interactive target time message on the session page, it also includes:
获取可交互目标时间消息和对应的确认信息,将可交互目标时间消息和对应的确认信息关联保存;Obtain the interactive target time message and corresponding confirmation information, and store the interactive target time message and the corresponding confirmation information in association;
获取系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。Obtain the current time of the system, and when the current time of the system is consistent with the target time in the interactive target time message, obtain the time reminder information, and send the time reminder information to the terminal corresponding to the requester identifier and the terminal identified by the target party.
在其中一个实施例中,请求方标识为客户标识,目标方标识为服务方标识;所述方法还包括:In one of the embodiments, the identification of the requesting party is a client identification, and the identification of the target party is an identification of a service party; the method further includes:
根据服务方标识查找对应的各个空闲时间段,各个空闲时间段是预先从服务方标识对应的终端中获取到的;According to the identification of the server, each corresponding idle time period is searched, and each idle time period is obtained from the terminal corresponding to the identification of the server in advance;
根据各个空闲时间段得到推荐时间列表;Get the recommended time list according to each free time period;
将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page. When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the Interactable target time messages are displayed on the session page.
一种会话消息生成方法,所述方法包括:A method for generating conversational messages, the method comprising:
检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;A time recommendation event triggered in the session page is detected, and a time recommendation request is generated, and the time recommendation request carries the requester ID and the target party ID;
向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Send a time recommendation request to the server, so that the server can find the same free time period according to the requester ID and the target party ID, and if the same free time slot is not found, determine the same time period of the requester ID and the target party ID, and obtain the same time The time occupancy information corresponding to the segment; determine the importance of the corresponding time occupancy information according to the time occupancy information, and obtain the same time segments whose importance of the time occupancy information is less than the preset threshold value, and obtain the recommended time list;
获取服务器返回的推荐时间列表并展示;Obtain and display the recommended time list returned by the server;
检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page.
在其中一个实施例中,检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中,包括:In one of the embodiments, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page, including:
检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间展示在会话页面中的编辑区域中;When a selection operation acting on the target time in the recommended time list is detected, the target time is displayed in the editing area on the session page;
检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息;When an editing operation acting on the editing area is detected, the edited session message is obtained;
检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。When the sending operation of the edited session message is detected, an interactive target session message is generated according to the edited session message, and the interactive target session message is displayed in the session area on the session page.
在其中一个实施例中,在检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括:In one of the embodiments, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and after the interactive target time message is displayed on the conversation page, further includes:
检测到对可交互目标时间消息的确认操作时,得到对可交互目标时间消息的确认信息;When the confirmation operation of the interactive target time message is detected, the confirmation information of the interactive target time message is obtained;
将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。The confirmation information of the interactive target time message is displayed on the session page, and the interactive target time message and corresponding confirmation information are sent to the server for storage.
在其中一个实施例中,在检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括:In one of the embodiments, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and after the interactive target time message is displayed on the conversation page, further includes:
检测到对可交互目标时间消息的修改操作,展示推荐时间列表;A modification operation to the interactive target time message is detected, and a list of recommended times is displayed;
检测到对推荐时间列表中修改时间的选择操作时,使用修改时间替换可交互目标时间消息中的目标时间,得到修改后的可交互目标时间消息,并生成修改提醒信息,将修改后的可交互目标时间消息和修改提醒信息展示在会话页面中。When the selection operation of the modified time in the recommended time list is detected, the modified time is used to replace the target time in the interactive target time message, the modified interactive target time message is obtained, and a modification reminder message is generated, and the modified interactive target time message is generated. Target time messages and modification reminders are displayed on the session page.
一种会话消息生成装置,所述装置包括:A conversation message generating device, the device comprising:
请求接收模块,用于接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;The request receiving module is used to receive the time recommendation request sent through the session page, and the time recommendation request carries the requester ID and the target party ID;
信息获取模块,用于根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;The information acquisition module is used to find the same idle time period according to the requester ID and the target party ID, and when the same idle time segment is not found, determine the same time period of the requester ID and the target party ID, and obtain the time corresponding to the same time segment occupancy information;
时间推荐模块,用于根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;A time recommendation module, configured to determine the importance of the corresponding time occupancy information according to the time occupancy information, acquire the same time periods in which the importance of the time occupancy information is less than a preset threshold, and obtain a recommended time list;
消息生成模块,用于将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。The message generation module is used to return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page, and when a selection operation acting on the target time in the recommended time list is detected, an available time frame is generated according to the target time. Interactive target time message, display the interactive target time message on the session page.
在其中一个实施例中,请求方标识为第一应用中的对象标识,目标方标识为第二应用中的对象标识。In one of the embodiments, the requester ID is an object ID in the first application, and the target party ID is an object ID in the second application.
在其中一个实施例中,时间推荐模块还用于从时间占用信息中确定占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级;基于占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级确定事项等级特征、时间长度特征、数量特征和参与者等级特征;将事项等级特征、时间长度特征、数量特征和参与者等级特征输入到时间推荐模型中进行计算,得到时间占用信息重要性,时间推荐模型是根据历史数据使用人工智能算法训练得到的。In one of the embodiments, the time recommendation module is also used to determine the occupation level, the duration of the occupation, the number of participants of the occupation and the level of each participant of the occupation from the time occupancy information; based on the occupation level, the duration of the occupation , the number of occupancy event participants and the participant levels of each occupancy event determine the item level features, time length features, quantity features and participant level features; input the item level features, time length features, quantity features and participant level features into the time recommendation The calculation is performed in the model to obtain the importance of time occupancy information, and the time recommendation model is trained using artificial intelligence algorithms based on historical data.
在其中一个实施例中,时间推荐模块还用于从时间占用信息中确定占用事项等级、占用事项参与者数量和各个占用事项参与者等级;基于占用事项等级获取对应的事项等级评分,基于占用事项参与者数量获取对应的数量评分,基于各个占用事项参与者等级获取对应的各个参与者等级评分;使用事项等级评分、数量评分和各个参与者等级评分计算时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性。In one of the embodiments, the time recommendation module is also used to determine the occupation level, the number of occupancy event participants and the level of each occupation event participant from the time occupancy information; obtain the corresponding item level score based on the occupancy item level, The number of participants obtains the corresponding quantity score, and obtains the corresponding participant level score based on the participant level of each occupancy item; uses the item level score, quantity score and each participant level score to calculate the target score corresponding to the time occupancy information, and according to the target score Get time occupancy information importance.
在其中一个实施例中,会话消息生成装置还用于获取可交互目标时间消息和对应的确认信息,将可交互目标时间消息和对应的确认信息关联保存;获取系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。In one of the embodiments, the session message generation device is also used to obtain the interactive target time message and corresponding confirmation information, and store the interactive target time message and the corresponding confirmation information in association; obtain the current time of the system, when the current time of the system and the corresponding confirmation information When the target time in the interactive target time message is consistent, the time reminder information is obtained, and the time reminder information is sent to the terminal corresponding to the requester identifier and the terminal identified by the target party.
在其中一个实施例中,请求方标识为客户标识,目标方标识为服务方标识;会话消息生成装置还用于根据服务方标识查找对应的各个空闲时间段,各个空闲时间段是预先从服务方标识对应的终端中获取到的;根据各个空闲时间段得到推荐时间列表;将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。In one of the embodiments, the identification of the requesting party is the identification of the client, and the identification of the target party is the identification of the server; Obtained from the terminal corresponding to the ID; get the recommended time list according to each idle time period; return the recommended time list to the terminal corresponding to the requester ID, so that the terminal displays the recommended time list on the session page, when it is detected that it is acting on the recommended time list During the selection operation of the target time, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page.
一种会话消息生成装置,所述装置包括:A conversation message generating device, the device comprising:
检测模块,用于检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;A detection module, configured to detect a time recommendation event triggered in the session page, and generate a time recommendation request, where the time recommendation request carries a requester ID and a target party ID;
请求发送模块,用于向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;A request sending module, configured to send a time recommendation request to the server, so that the server searches for the same free time period according to the requester ID and the target party ID, and determines that the requester ID and the target party ID are identical A time period, obtaining time occupancy information corresponding to the same time period; determining the importance of the corresponding time occupancy information according to the time occupancy information, obtaining each same time period whose importance of the time occupancy information is less than a preset threshold, and obtaining a recommended time list;
时间获取模块,用于获取服务器返回的推荐时间列表并展示;The time acquisition module is used to obtain and display the recommended time list returned by the server;
消息展示模块,用于检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。The message display module is configured to generate an interactive target time message according to the target time when a selection operation acting on the target time in the recommended time list is detected, and display the interactive target time message on the session page.
在其中一个实施例中,会话页面为至少三人会话页面;检测模块还用于检测到在会话页面中触发的时间推荐事件,响应于时间推荐事件,获取会话页面中的请求方标识和各个目标方标识;根据请求方标识和各个目标方标识生成时间推荐请求。In one of the embodiments, the session page is a session page of at least three people; the detection module is also used to detect a time recommendation event triggered in the session page, and obtain the requester ID and each target in the session page in response to the time recommendation event Party ID; generate a time recommendation request according to the requester ID and each target party ID.
在其中一个实施例中,会话消息生成装置还用于检测到对可交互目标时间消息的确认操作时,得到对可交互目标时间消息的确认信息;将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。In one of the embodiments, the session message generation device is also used to obtain the confirmation information of the interactive target time message when detecting the confirmation operation of the interactive target time message; display the confirmation information of the interactive target time message in the session page, and send the interactive target time message and corresponding confirmation information to the server for storage.
在其中一个实施例中,消息展示模块,还用于检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间展示在会话页面中的编辑区域中;检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息;检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。In one of the embodiments, the message display module is also used to display the target time in the editing area of the session page when detecting the selection operation acting on the target time in the recommended time list; During the operation, the edited session message is obtained; when the sending operation of the edited session message is detected, an interactive target session message is generated according to the edited session message, and the interactive target session message is displayed in the session on the session page in the area.
在其中一个实施例中,会话消息生成装置还用于检测到对可交互目标时间消息的修改操作,展示推荐时间列表;检测到对推荐时间列表中修改时间的选择操作时,使用修改时间替换可交互目标时间消息中的目标时间,得到修改后的可交互目标时间消息,并生成修改提醒信息,将修改后的可交互目标时间消息和修改提醒信息展示在所述会话页面中。In one of the embodiments, the conversation message generation device is also used to detect the modification operation of the interactive target time message, and display the recommended time list; when the selection operation of the modification time in the recommended time list is detected, the modification time is used to replace the The target time in the interactive target time message is obtained to obtain a modified interactive target time message, and modification reminder information is generated, and the modified interactive target time message and modification reminder information are displayed on the session page.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;Receive the time recommendation request sent through the session page, and the time recommendation request carries the requester ID and the target party ID;
根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;Searching for the same free time period according to the requester ID and the target party ID, and determining the same time period of the requester ID and the target party ID when the same idle time segment is not found, and obtaining time occupancy information corresponding to the same time segment;
根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Determine the importance of the corresponding time occupancy information according to the time occupancy information, acquire the same time periods in which the importance of the time occupancy information is less than a preset threshold, and obtain a recommended time list;
将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page. When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the Interactable target time messages are displayed on the session page.
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;A time recommendation event triggered in the session page is detected, and a time recommendation request is generated, and the time recommendation request carries the requester ID and the target party ID;
向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Send a time recommendation request to the server, so that the server can find the same free time period according to the requester ID and the target party ID, and if the same free time slot is not found, determine the same time period of the requester ID and the target party ID, and obtain the same time The time occupancy information corresponding to the segment; determine the importance of the corresponding time occupancy information according to the time occupancy information, and obtain the same time segments whose importance of the time occupancy information is less than the preset threshold value, and obtain the recommended time list;
获取服务器返回的推荐时间列表并展示;Obtain and display the recommended time list returned by the server;
检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;Receive the time recommendation request sent through the session page, and the time recommendation request carries the requester ID and the target party ID;
根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;Searching for the same free time period according to the requester ID and the target party ID, and determining the same time period of the requester ID and the target party ID when the same idle time segment is not found, and obtaining time occupancy information corresponding to the same time segment;
根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Determine the importance of the corresponding time occupancy information according to the time occupancy information, acquire the same time periods in which the importance of the time occupancy information is less than a preset threshold, and obtain a recommended time list;
将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page. When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the Interactable target time messages are displayed on the session page.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;A time recommendation event triggered in the session page is detected, and a time recommendation request is generated, and the time recommendation request carries the requester ID and the target party ID;
向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;Send a time recommendation request to the server, so that the server can find the same free time period according to the requester ID and the target party ID, and if the same free time slot is not found, determine the same time period of the requester ID and the target party ID, and obtain the same time The time occupancy information corresponding to the segment; determine the importance of the corresponding time occupancy information according to the time occupancy information, and obtain the same time segments whose importance of the time occupancy information is less than the preset threshold value, and obtain the recommended time list;
获取服务器返回的推荐时间列表并展示;Obtain and display the recommended time list returned by the server;
检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page.
上述会话消息生成方法、装置、计算机设备和存储介质,通过当请求方标识和目标方标识未存在相同空闲时间段时,通过计算相同时间段中时间占用信息的重要性,将重要性小于预设阈值的各个相同时间段,作为推荐时间列表,然后使用推荐时间列表进行可交互会话信息的生成,从而进行时间的约定,能够减少会话沟通次数,节省网络资源,提高效率。The above conversation message generation method, device, computer equipment and storage medium, by calculating the importance of time occupancy information in the same time period when the requester ID and the target party ID do not have the same idle time period, the importance is less than the preset The same time period of the threshold is used as a recommended time list, and then the recommended time list is used to generate interactive session information, so as to make time appointments, which can reduce the number of conversations, save network resources, and improve efficiency.
附图说明Description of drawings
图1为一个实施例中会话消息生成方法的应用环境图;Fig. 1 is an application environment diagram of a conversation message generating method in an embodiment;
图2为一个实施例中会话消息生成方法的流程示意图;Fig. 2 is a schematic flow chart of a method for generating a session message in an embodiment;
图3为一个具体实施例中会话消息页面的示意图;Fig. 3 is a schematic diagram of a session message page in a specific embodiment;
图4为一个实施例中得到时间占用信息重要性的流程示意图;FIG. 4 is a schematic flow diagram of obtaining the importance of time occupancy information in an embodiment;
图5为另一个实施例中得到时间占用信息重要性的流程示意图;FIG. 5 is a schematic flow diagram of obtaining the importance of time occupancy information in another embodiment;
图6为一个实施例中发送时间提醒信息的流程示意图;FIG. 6 is a schematic flow diagram of sending time reminder information in an embodiment;
图7为另一个实施例中会话消息生成的流程示意图;Fig. 7 is a schematic flow chart of conversation message generation in another embodiment;
图8为又一个实施例中会话消息生成方法的流程示意图;FIG. 8 is a schematic flowchart of a method for generating a session message in yet another embodiment;
图9a为一个具体实施例中显示菜单栏的会话页面示意图;Fig. 9a is a schematic diagram of a session page displaying a menu bar in a specific embodiment;
图9b为一个具体实施例中显示推荐列表的会话页面示意图;Fig. 9b is a schematic diagram of a session page displaying a recommendation list in a specific embodiment;
图9c为一个具体实施例中显示可交互目标时间消息的会话页面示意图;Fig. 9c is a schematic diagram of a session page displaying interactive target time messages in a specific embodiment;
图9d为一个具体实施例中显示确认信息的会话页面示意图;Fig. 9d is a schematic diagram of a session page displaying confirmation information in a specific embodiment;
图10为一个实施例中编辑会话消息的流程示意图;Fig. 10 is a schematic flow diagram of editing a session message in an embodiment;
图11为一个具体实施例中编辑会话消息的会话页面示意图;Fig. 11 is a schematic diagram of a session page for editing a session message in a specific embodiment;
图12为一个具体实施例中修改会话消息的会话页面示意图;Fig. 12 is a schematic diagram of a session page for modifying a session message in a specific embodiment;
图13为一个具体实施例中会话消息生成方法的流程示意图;Fig. 13 is a schematic flow chart of a method for generating a session message in a specific embodiment;
图14为一个实施例中会话消息生成装置的结构框图;Fig. 14 is a structural block diagram of a conversation message generation device in an embodiment;
图15为另一个实施例中会话消息生成装置的结构框图;Fig. 15 is a structural block diagram of a conversation message generation device in another embodiment;
图16为一个实施例中计算机设备的内部结构图;Figure 16 is an internal structural diagram of a computer device in one embodiment;
图17为另一个实施例中计算机设备的内部结构图。Fig. 17 is an internal structure diagram of a computer device in another embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
本申请提供的会话消息生成方法,可以应用于如图1所示的应用环境中。其中,请求方终端102通过网络与服务器104进行通信,服务器104通过网络与目标方终端106进行通信。服务器104接收请求方终端102通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;服务器104将推荐时间列表返回请求方标识对应的终端102,以使终端102在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中,即将可交互目标时间消息通过服务器104发送到目标方标识对应的终端106。其中,终端可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The conversation message generation method provided by this application can be applied to the application environment shown in FIG. 1 . Wherein, the
在一个实施例中,如图2所示,提供了一种会话消息生成方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a method for generating a session message is provided. The method is applied to the server in FIG. 1 as an example for illustration, including the following steps:
步骤202,接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;Step 202, receiving a time recommendation request sent through the session page, where the time recommendation request carries the requester ID and the target party ID;
其中,会话页面是指用来进行会话聊天的页面,该会话页面可以是即时通讯应用中的会话页面。比如,微信应用中的聊天页面或者QQ应用中的聊天页面或者钉钉应用中的聊天页面。时间推荐是指在会话页面中进行约时间时,需要对会话各方的空闲时间进行推荐。请求方标识唯一标识发起时间推荐请求的会话方,该请求方标识可以是名称、字符串或者手机号等等。该请求方标识是会话页面中的会话对象。目标方标识唯一标识在会话页面中请求方会话的对象,该目标方标识可以是名称、字符串或者手机号等等,该目标方标识用来接收请求方标识发送的约时间的消息并进行回复。该目标方标识可以只有一个,也可以有多个。Wherein, the session page refers to a page used for session chatting, and the session page may be a session page in an instant messaging application. For example, the chat page in the WeChat application or the chat page in the QQ application or the chat page in the DingTalk application. Time recommendation refers to recommending the free time of all parties in the conversation when making an appointment on the conversation page. The requester ID uniquely identifies the session party who initiates the time recommendation request, and the requester ID can be a name, a character string, or a mobile phone number, etc. The requester ID is the session object in the session page. The target party ID uniquely identifies the object of the requester’s session on the session page. The target party ID can be a name, a character string, or a mobile phone number, etc. The target party ID is used to receive and reply to the message about the time sent by the requester ID . There may be only one or multiple target party identifiers.
具体地,服务器接收到请求方标识对应的终端通过会话页面发送的时间推荐请求,该时间推荐请求携带请求方标识和目标方标识。Specifically, the server receives a time recommendation request sent by the terminal corresponding to the requester ID through the session page, and the time recommendation request carries the requester ID and the target party ID.
在一个实施例中,请求方标识为第一应用中的对象标识,目标方标识为第二应用中的对象标识。In one embodiment, the requester identifier is an object identifier in the first application, and the target identifier is an object identifier in the second application.
其中,第一应用和第二应用是不同的能够用于进行会话的应用。即该会话页面是第一应用向第二应用中的对象进行会话的页面。对象标识用于唯一标识应用中的对象。该目标方标识中可以包括目标方的对象标识和第二应用标识,第二应用标识用于唯一标识第二应用,可以是第二应用的名称。则服务器为互通服务器,该互通服务器用于将第一应用和第二应用进行互通,使第一应用中的用户和第二应用中的用户可以进行会话。Wherein, the first application and the second application are different applications that can be used for conversation. That is, the session page is a page where the first application conducts a session with an object in the second application. Object IDs are used to uniquely identify objects in an application. The target party identifier may include an object identifier of the target party and a second application identifier, where the second application identifier is used to uniquely identify the second application and may be a name of the second application. Then the server is an interworking server, and the interworking server is used for intercommunicating the first application and the second application, so that the user in the first application and the user in the second application can have a conversation.
在一个具体的实施例中,如图3所示的会话页面示意图,是在企业微信中向微信中的对象进行会话的会话页面示意图。该会话页面中,其中,在该会话页面中目标方标识为“好友0@微信”,通过该页面用户可以与微信中的用户进行聊天。In a specific embodiment, the schematic diagram of the conversation page as shown in FIG. 3 is a schematic diagram of the conversation page for conducting conversations with objects in WeChat in Enterprise WeChat. In the session page, where the target party is identified as "friend 0@微信" in the session page, the user can chat with users in WeChat through this page.
步骤204,根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息。Step 204: Search for the same idle time period according to the requester ID and the target party ID. If the same idle time slot is not found, determine the same time slot for the requester ID and the target party ID, and obtain time occupancy information corresponding to the same time slot.
其中,空闲时间段是指没有事项进行处理的时间段。相同空闲时间段是指在同一时间段请求方标识和目标方标识都没有事项进行处理。事项可以是会议,外出、请假等等。相同时间段是指请求方标识和目标方标识对应的同一个时间段,比如,请求方标识和目标方标识对应的3点到4点之间的时间段。该相同时间段可以有多个,比如,将1个小时作为一个相同时间段,则从8点到12点可以有4个相同时间段。时间占用信息是指占用时间段事项的具体信息。Wherein, the idle time period refers to a time period when there is no matter to be processed. The same idle time period means that neither the requester ID nor the target party ID has anything to process during the same time period. Items can be meetings, going out, asking for leave, etc. The same time period refers to the same time period corresponding to the requester ID and the target party ID, for example, the time period between 3 o'clock and 4 o'clock corresponding to the requester ID and the target party ID. There may be multiple same time periods, for example, if one hour is regarded as one same time period, there may be four same time periods from 8:00 to 12:00. The time occupancy information refers to specific information of items occupying a time period.
具体地,服务器中预先保存有请求方标识和目标方标识的日历数据,该日历数据中记录了各个时间段要处理的事项。服务器根据请求方标识和目标方标识在对应的日历中查找相同空闲时间段即是否有同一个时间段没有事项进行处理。当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息。Specifically, calendar data of the requester ID and the target party ID are stored in advance in the server, and the calendar data records items to be processed in various time periods. The server searches the corresponding calendar for the same free time period according to the requester ID and the target party ID, that is, whether there is no item for processing in the same time slot. When the same idle time period is not found, determine the same time period of the requester ID and the target party ID, and acquire time occupancy information corresponding to the same time period.
在一个实施例中,当查找到相同空闲时间段时,直接将相同空闲时间段作为推荐时间,将推荐时间返回到请求方标识对应的终端进行后续处理。In one embodiment, when the same idle time period is found, the same idle time period is directly used as the recommended time, and the recommended time is returned to the terminal corresponding to the requester identifier for subsequent processing.
步骤206,根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表。Step 206: Determine the importance of the corresponding time occupancy information according to the time occupancy information, and obtain the same time periods in which the importance of the time occupancy information is less than a preset threshold, and obtain a recommended time list.
其中,时间占用信息重要性用于表示占用时间段事项的重要程度,重要性越高,说明该事项越难以延期,重要性越低,说明该事项越容易延期。预设阈值是指预先设置好的时间占用信息重要性的阈值,超过该阈值对应的事项比较难以延期。未超过该阈值对应的事项可以进行延期,则可以将对应的时间段作为推荐时间段。推荐时间列表是指根据推荐时间得到的列表,该列表中推荐时间可以有多个。Among them, the importance of the time occupation information is used to indicate the importance of the item occupying the time period. The higher the importance, the more difficult it is to postpone the item, and the lower the importance, the easier it is to postpone the item. The preset threshold refers to the threshold of the importance of time-occupied information set in advance, and it is difficult to postpone the items corresponding to the threshold. Items that do not exceed the threshold can be postponed, and the corresponding time period can be used as the recommended time period. The recommended time list refers to a list obtained according to recommended times, and there may be multiple recommended times in the list.
具体地,服务器根据相同时间段对应的时间占用信息确定对应的时间占用信息重要性,将相同时间段对应的时间占用信息重要性与预设阈值进行比较,从而确定是否将该相同时间段作为推荐时间。将每个相同时间段对应的时间占用信息重要性与预设阈值进行比较,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表。其中,当目标方或者请求方在相同时间段未存在对应的时间占用信息时,则对应的时间占用信息重要性为零。Specifically, the server determines the importance of the corresponding time occupancy information according to the time occupancy information corresponding to the same time period, and compares the importance of the time occupancy information corresponding to the same time period with a preset threshold, thereby determining whether to use the same time period as a recommendation time. Comparing the importance of time occupancy information corresponding to each same time period with a preset threshold, acquiring each same time period in which the importance of time occupancy information is less than the preset threshold, and obtaining a recommended time list. Wherein, when the target party or the requesting party does not have the corresponding time occupancy information in the same time period, the importance of the corresponding time occupancy information is zero.
步骤208,将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Step 208, return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page, and when a selection operation acting on the target time in the recommended time list is detected, an interactive target time is generated according to the target time Message, to display the interactive target time message on the session page.
其中,目标时间是指请求方从推荐时间列表中选择的要进行约定的时间。选择操作是指从推荐时间列表中选择目标时间的操作,可以包括点击操作、按压操作和滑动操作等等。可交互目标时间消息是指能够对目标时间进行交互操作的消息,该可交互目标时间消息是使用预先设置的可交互模板和目标时间生成的,可交互模板中包括有能够进行交互操作的模板。该交互操作是指会话对象对目标时间进行交互的操作,即可以进行确认目标时间的操作和进行未确认目标时间的操作。该交互目标时间消息可以是文本消息、图片消息和视频消息。Wherein, the target time refers to the time that the requester selects from the recommended time list to make an appointment. The selection operation refers to an operation of selecting a target time from the recommended time list, and may include a click operation, a press operation, a slide operation, and the like. The interactive target time message refers to a message capable of interactive operation on the target time. The interactive target time message is generated by using a preset interactive template and target time, and the interactive template includes a template capable of interactive operation. The interactive operation refers to an operation for the session object to interact with the target time, that is, an operation for confirming the target time and an operation for not confirming the target time can be performed. The interaction target time message may be a text message, a picture message and a video message.
具体地,服务器将推荐时间列表返回请求方标识对应的终端,请求方标识对应的终端接收到推荐时间列表中,可以在会话页面中弹窗展示推荐时间列表,以使请求方选择目标时间,当检测到作用于推荐时间列表中目标时间的选择操作时,获取到预先设置的可交互模板,该可交互模板能够进行交互操作,比如,点击操作、按压操作、滑动操作等等。根据目标时间和可交互模板生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中的会话区域中,即将可交互目标时间消息发送给目标方标识对应的终端。Specifically, the server returns the recommended time list to the terminal corresponding to the requester ID. After receiving the recommended time list, the terminal corresponding to the requester ID can display the recommended time list in a pop-up window on the session page so that the requester can select the target time. When a selection operation acting on the target time in the recommended time list is detected, a preset interactive template is obtained, and the interactive template can perform interactive operations, such as click operations, press operations, slide operations, and the like. The interactive target time message is generated according to the target time and the interactive template, and the interactive target time message is displayed in the session area of the session page, that is, the interactive target time message is sent to the terminal corresponding to the target party identifier.
在一个具体的实施例中,如图3所示的会话页面示意图,其中,生成的可交互目标时间消息为“今天下午5:00开会讨论需求”和关联的“可以”与“不方便”的交互按钮。In a specific embodiment, a schematic diagram of a conversation page is shown in FIG. 3 , wherein the generated interactive target time message is "A meeting to discuss requirements at 5:00 pm today" and the associated "possible" and "inconvenient" Interactive buttons.
上述会话消息生成方法,通过当请求方标识和目标方标识未存在相同空闲时间段时,通过计算相同时间段中时间占用信息的重要性,将重要性小于预设阈值的各个相同时间段,作为推荐时间列表,然后使用推荐时间列表进行可交互会话信息的生成,从而进行时间的约定,能够减少会话沟通次数,节省网络资源,提高效率。The above conversation message generation method, when the requester ID and the target party ID do not have the same idle time period, by calculating the importance of the time occupancy information in the same time period, each same time period whose importance is less than the preset threshold value is used as Recommend a time list, and then use the recommended time list to generate interactive session information, so as to make time appointments, which can reduce the number of conversations, save network resources, and improve efficiency.
在一个实施例中,如图4所示,步骤206,即根据时间占用信息确定对应的时间占用信息重要性,包括步骤:In one embodiment, as shown in FIG. 4, step 206, that is, determining the importance of the corresponding time occupancy information according to the time occupancy information, includes steps:
步骤402,从时间占用信息中确定占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级。Step 402: Determine the level of occupation, the duration of occupation, the number of participants of occupation and the level of participants of each occupation from the time occupation information.
其中,占用事项等级是预先设置好的事项对应的等级,不同的事项有不同的等级,等级越高,说明事项越重要。比如,不同的会议有不同的等级,不同的外出有不同的等级。占用事项时间长度是指该事项完成需要花费的时间,时间越长,说明事项越重要。占用事项参与者数量是指参与完成该事项的人数,参与者数量越多,说明事项越重要。占用事项参与者等级是指参加稿事项的参与者的等级,该等级是预先设置的,不同的参与者有不同的等级,参与者等级越高,说明该参与者参与的事项越重要。Wherein, the occupation item level is a level corresponding to a pre-set item, and different items have different levels, and the higher the level, the more important the explanatory item is. For example, different conferences have different levels, and different outings have different levels. The length of time occupied by an item refers to the time it takes to complete the item. The longer the time, the more important the item is. The number of participants in an occupation item refers to the number of people involved in completing the item. The more the number of participants, the more important the item. The participant level of the occupation item refers to the level of the participant who participates in the manuscript item. This level is preset. Different participants have different levels. The higher the level of the participant, the more important the item that the participant participates in.
具体地,服务器从时间占用信息中确定占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级。Specifically, the server determines the occupation event level, the occupation event time length, the number of occupation event participants and the respective occupation event participant levels from the time occupation information.
步骤404,基于占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级确定事项等级特征、时间长度特征、数量特征和参与者等级特征。Step 404: Determine item level features, time length features, quantity features, and participant level features based on the occupation event level, the occupation event duration, the number of occupation event participants and the respective occupation event participant levels.
其中,事项等级特征是指根据占用事项等级得到的特征。时间长度特征是指根据占用事项时间长度得到的特征。数量特征是指根据占用事项参与者数量得到的特征。参与者等级特征是指根据各个占用事项参与者等级得到的特征。Wherein, the item level feature refers to the feature obtained according to the occupation item level. The time length feature refers to the feature obtained according to the time length of the occupation item. Quantitative features are those derived from the number of participants in an occupation event. The participant level feature refers to a feature obtained from the participant level of each occupation item.
具体地,服务器基于占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级进行特征提取,得到对应的事项等级特征、时间长度特征、数量特征和参与者等级特征。Specifically, the server performs feature extraction based on the level of occupation, the duration of the occupation, the number of participants in the occupation, and the level of participants in each occupation, and obtains the corresponding level features, time length features, quantity features, and participant level features.
步骤406,将事项等级特征、时间长度特征、数量特征和参与者等级特征输入到时间推荐模型中进行计算,得到时间占用信息重要性,时间推荐模型是根据历史数据使用人工智能算法训练得到的。In step 406, input the item level feature, time length feature, quantity feature and participant level feature into the time recommendation model for calculation to obtain the importance of time occupancy information. The time recommendation model is trained using artificial intelligence algorithms based on historical data.
其中,历史数据是指历史相同时间段对应的计划时间占用信息和实际时间占用信息。人工智能算法包括但不限于逻辑回归算法、支持向量机算法、决策树算法、神经网络算法等等。通过将历史相同时间段对应的计划时间占用信息作为人工智能算法建立的模型的输入,将实际时间占用信息作为人工智能算法建立的模型的标签进行训练,当训练完成时,得到时间推荐模型。Wherein, the historical data refers to planned time occupation information and actual time occupation information corresponding to the same historical time period. Artificial intelligence algorithms include, but are not limited to, logistic regression algorithms, support vector machine algorithms, decision tree algorithms, neural network algorithms, and so on. By using the planned time occupancy information corresponding to the same historical time period as the input of the model established by the artificial intelligence algorithm, the actual time occupancy information is used as the label of the model established by the artificial intelligence algorithm for training, and when the training is completed, the time recommendation model is obtained.
在上述实施例中,通过提取时间占用信息中的事项等级特征、时间长度特征、数量特征和参与者等级特征,根据事项等级特征、时间长度特征、数量特征和参与者等级特征使用时间推荐模型计算得到时间占用信息重要性,从而根据时间占用信息重要性确定推荐时间,提高了得到推荐时间的准确性。In the above-mentioned embodiment, by extracting the item level feature, time length feature, quantity feature and participant level feature in the time occupation information, the time recommendation model is used to calculate according to the item level feature, time length feature, quantity feature and participant level feature The importance of the time occupancy information is obtained, so that the recommended time is determined according to the importance of the time occupancy information, and the accuracy of obtaining the recommended time is improved.
在一个实施例中,如图5所示,步骤206,根据时间占用信息确定对应的时间占用信息重要性,包括:In one embodiment, as shown in FIG. 5, step 206, determining the importance of the corresponding time occupancy information according to the time occupancy information, includes:
步骤502,从时间占用信息中确定占用事项等级、占用事项参与者数量和各个占用事项参与者等级。Step 502, determine the level of occupation, the number of participants of the occupation and the level of each participant of the occupation from the time occupation information.
具体地,服务器从时间占用信息中确定占用事项等级、占用事项参与者数量和各个占用事项参与者等级,Specifically, the server determines the occupancy event level, the number of occupancy event participants and the respective occupancy event participant levels from the time occupancy information,
步骤504,基于占用事项等级获取对应的事项等级评分,基于占用事项参与者数量获取对应的数量评分,基于各个占用事项参与者等级获取对应的各个参与者等级评分。Step 504, obtain the corresponding item level score based on the occupation item level, obtain the corresponding quantity score based on the number of occupation event participants, and obtain the corresponding participant level scores based on each occupation item participant level.
其中,事项等级评分是指设置好的事项等级对应的评分,事项等级越高,评分越高。数量评分是指设置好的参与者数量对应的评分,数量越多,评分越高。参与者等级评分是指设置好的参与者等级对应的评分,参与者等级越高,评分越高。Wherein, the item level score refers to the score corresponding to the set item level, and the higher the item level, the higher the score. Quantity score refers to the score corresponding to the set number of participants, the more the number, the higher the score. The participant level score refers to the score corresponding to the set participant level. The higher the participant level, the higher the score.
具体地,服务器基于占用事项等级获取对应的事项等级评分,基于占用事项参与者数量获取对应的数量评分,基于各个占用事项参与者等级获取对应的各个参与者等级评分。比如,Specifically, the server obtains the corresponding item grade score based on the occupation item grade, obtains the corresponding quantity score based on the number of occupation event participants, and obtains the corresponding participant grade scores based on each occupation event participant level. for example,
步骤506,使用事项等级评分、数量评分和各个参与者等级评分计算时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性。In step 506, the target score corresponding to the time occupancy information is calculated by using the item level score, the quantity score and each participant level score, and the importance of the time occupancy information is obtained according to the target score.
其中,目标评分为时间占用信息对应的总评分。Wherein, the target score is the total score corresponding to the time occupation information.
具体地,服务器使用事项等级评分、数量评分和各个参与者等级评分进行加权计算,得到时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性。通过计算各个相同时间段的时间占用信息对应的目标评分,目标评分有大到小进行排序,得到各个相同时间段的时间占用信息重要性的排序,可以选择目标评分最小的相同时间段作为推荐时间。Specifically, the server performs weighted calculations using the item grade score, the quantity score, and each participant grade score to obtain a target score corresponding to the time occupation information, and obtains the importance of the time occupation information according to the target score. By calculating the target score corresponding to the time occupancy information of each same time period, the target scores are sorted from large to small, and the importance of the time occupancy information of each same time period is obtained. The same time period with the smallest target score can be selected as the recommended time .
在一个实施例中,可以使用如下公式计算目标评分:In one embodiment, the target score can be calculated using the following formula:
在一个具体的实施例中,时间占用信息中的事项为会议A。则确定会议A的预先设置好的等级第一级,对应的评分为0.2。会议A参与者数量为2人,对应的评分为0.1,包括用户A和用户B,用户A的预先设置好的等级为第一级,对应的评分为0.2,用户B的预先设置好的等级为第二级,对应的评分为0.3。则使用上述公式计算的目标评分为0.185,然后将0.185直接作为时间占用信息重要性。In a specific embodiment, the item in the time occupancy information is meeting A. Then, the first level of the pre-set level of meeting A is determined, and the corresponding score is 0.2. The number of participants in conference A is 2, and the corresponding score is 0.1, including user A and user B. The preset level of user A is the first level, and the corresponding score is 0.2. The preset level of user B is The second level corresponds to a score of 0.3. Then the target score calculated using the above formula is 0.185, and then 0.185 is directly used as the importance of time occupancy information.
在一个实施例中,也可以使用事项等级评分和各个参与者等级评分计算时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性。In an embodiment, the target score corresponding to the time occupancy information may also be calculated by using the item level score and each participant level score, and the importance of the time occupancy information is obtained according to the target score.
在上述实施例中,通过使用事项等级评分、数量评分和各个参与者等级评分计算时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性,可以提高得到时间占用信息重要性的效率。In the above embodiment, by using the item grade score, the quantity score and each participant grade score to calculate the target score corresponding to the time occupancy information, the importance of the time occupancy information is obtained according to the target score, and the efficiency of obtaining the importance of the time occupancy information can be improved.
在一个实施例中,如图6所示,在步骤S208之后,即在将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括:In one embodiment, as shown in FIG. 6, after step S208, the recommended time list is returned to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page. During the selection operation of the target time, an interactive target time message is generated according to the target time, and after the interactive target time message is displayed on the session page, it also includes:
步骤602,获取可交互目标时间消息和对应的确认信息,将可交互目标时间消息和对应的确认信息关联保存。Step 602: Obtain the time message of the interactable target and the corresponding confirmation information, and associate and store the time message of the interactive target and the corresponding confirmation information.
其中,确认信息用于反映对可交互目标时间消息中目标时间的约定达成。会话页面中会话对象都对应有确认信息。即确认信息中可以包括请求方标识对应的已确认目标时间的信息,也可以包括目标方标识对应的已确认目标时间的信息。Wherein, the confirmation information is used to reflect the achievement of the agreement on the target time in the interactive target time message. The session object on the session page has confirmation information corresponding to it. That is, the confirmation information may include information about the confirmed target time corresponding to the requester ID, and may also include information about the confirmed target time corresponding to the target party ID.
具体地,服务器获取到可交互目标时间消息并获取到会话页面中的请求方标识对应的终端和目标方标识对应的终端返回的对目标时间的确认信息。Specifically, the server obtains the interactive target time message and obtains confirmation information on the target time returned by the terminal corresponding to the requester ID and the target party ID in the session page.
步骤604,获取系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。Step 604: Obtain the current system time. When the current system time is consistent with the target time in the interactive target time message, obtain time reminder information, and send time reminder information to the terminal corresponding to the requester ID and the terminal ID of the target party.
其中,系统当前时间是指服务器中的当前时间。时间提醒信息用于提醒确认的请求方和目标方时间到约定的目标时间的信息。可以是提示语,提示响铃等等。该时间提醒信息是预先根据目标时间设置好的。Wherein, the current system time refers to the current time in the server. The time reminder information is used to remind the confirmed requester and the target party that the time has reached the agreed target time. It can be a reminder, a reminder ringing a bell, etc. The time reminder information is pre-set according to the target time.
具体地,服务器监控系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取到时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。在一个实施例中,提醒方式不限于使用时间提醒信息,可以通过将目标时间发送至目标方终端和请求方终端中,终端通过日历日程等工具记录目标时间,目标方终端和请求方终端通过日历日程等工具进行时间提醒。Specifically, the server monitors the current time of the system, and when the current time of the system is consistent with the target time in the interactive target time message, it obtains the time reminder information, and sends the time reminder information to the terminal corresponding to the requester identifier and the terminal identified by the target party. In one embodiment, the reminder method is not limited to using time reminder information, the target time can be sent to the target terminal and the requester terminal, the terminal records the target time through tools such as calendar schedule, and the target terminal and the requester terminal use the calendar Schedule and other tools for time reminders.
在一个实施例中,可以设置在目标时间提前预设时间的系统当前时间发送时间提醒信息。比如,目标时间可以是4点,则当系统当前时间为3点45时,提前15分钟发送时间提醒信息。In one embodiment, it can be set to send the time reminder information at the current time of the system, which is a preset time ahead of the target time. For example, the target time can be 4:00, and when the current time of the system is 3:45, a time reminder message will be sent 15 minutes in advance.
在上述实施例中,通过服务器监控系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致,进行时间提醒,避免用户遗漏。In the above embodiment, the current time of the system is monitored by the server, and when the current time of the system is consistent with the target time in the interactive target time message, a time reminder is performed to avoid omission by the user.
在一个实施例中,请求方标识为客户标识,目标方标识为服务方标识。如图7所示,会话消息生成方法还包括:In one embodiment, the identifier of the requester is the identifier of the client, and the identifier of the target is the identifier of the server. As shown in Figure 7, the conversation message generation method also includes:
步骤702,根据服务方标识查找对应的各个空闲时间段,各个空闲时间段是预先从服务方标识对应的终端中获取到的。Step 702, search for each corresponding idle time period according to the server identifier, and each idle time period is obtained in advance from the terminal corresponding to the server identifier.
步骤704,根据各个空闲时间段得到推荐时间列表。In step 704, a recommended time list is obtained according to each free time period.
步骤706,将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Step 706: Return the recommended time list to the terminal corresponding to the requester's identifier, so that the terminal displays the recommended time list on the session page, and generates an interactive target time according to the target time when a selection operation acting on the target time in the recommended time list is detected Message, to display the interactive target time message on the session page.
其中,客户标识用于唯一标识客户,服务方标识用于唯一标识服务方,该服务方是为客户标识对应的客户提供服务的。比如,病人为客户标识,医生为服务方标识。则此时,约定的时间需要以服务方标识对应的空闲时间为准。Wherein, the customer ID is used to uniquely identify the customer, and the service party ID is used to uniquely identify the service party, which provides services for the customer corresponding to the customer ID. For example, a patient is identified as a client, and a doctor is identified as a server. At this time, the agreed time needs to be based on the free time corresponding to the service party ID.
具体地,服务器查找到服务方标识对应的空闲时间生成时间推荐列表,并将时间推荐列表返回给客户标识对应的终端,使客户进行选择,从而生成可交互目标时间消息,将可交互目标时间消息发送到服务方标识对应的终端中,从而使服务方进行时间的确认。即客户需要根据服务器方的时间进行时间的约定。在一个具体地实施例中,客户标识为门店客户,服务方为门店。门店工作人员预先设置好开门营业时间,比如,下午2点到5点。当门店客户需要预约时间时,服务器根据门店查找对应的下午2点到5点,将下午2点到5点返回给门店客户对应的终端,门店客户从下午2点到5点中选择3点到4点的时间段作为目标时间,然后生成可交互目标时间消息,将可交互目标时间消息发送给门店,从而进行时间的约定。Specifically, the server finds the idle time corresponding to the server ID to generate a time recommendation list, and returns the time recommendation list to the terminal corresponding to the client ID, so that the client can make a selection, thereby generating an interactive target time message, and the interactive target time message Send it to the terminal corresponding to the server ID, so that the server can confirm the time. That is, the client needs to agree on the time according to the server's time. In a specific embodiment, the client is identified as a store customer, and the service provider is the store. Store staff have pre-set opening hours, for example, 2pm to 5pm. When a store customer needs to make an appointment time, the server searches the corresponding 2:00 to 5:00 pm according to the store, and returns 2:00 to 5:00 pm to the corresponding terminal of the store customer, and the store customer chooses from 2:00 pm to 5:00 pm The time period at 4 o'clock is used as the target time, and then an interactive target time message is generated, and the interactive target time message is sent to the store to make a time appointment.
在上述实施例中,当会话双方的角色属性不同时,即请求方标识为客户标识,目标方标识为服务方标识,通过根据服务方标识对应的空闲时间段进行时间推荐,从而方便客户进行时间的约定,提高效率。In the above embodiment, when the role attributes of the two parties in the conversation are different, that is, the requester ID is the customer ID, and the target party ID is the server ID, the time recommendation is made according to the idle time period corresponding to the server ID, so that it is convenient for the customer to make time agreement to improve efficiency.
在一个实施例中,如图8所示,提供了一种会话消息生成方法,以该方法应用于图1中的终端为例进行说明,包括:In one embodiment, as shown in FIG. 8 , a method for generating a session message is provided. The method is applied to the terminal in FIG. 1 as an example for illustration, including:
步骤802,检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;Step 802, detecting a time recommendation event triggered in the session page, and generating a time recommendation request, which carries the requester ID and the target party ID;
其中,时间推荐事件是指在会话页面中触发约定时间推荐的事件,比如,通过点击会话页面中的约定时间按钮触发时间推荐事件。比如,通过点击会话页面中功能菜单栏中的约时间功能触发时间推荐事件。Wherein, the time recommendation event refers to an event that triggers the appointment time recommendation on the session page, for example, the time recommendation event is triggered by clicking the appointment time button on the session page. For example, a time recommendation event is triggered by clicking the appointment time function in the function menu bar on the session page.
具体地,请求方通过请求方标识对应的终端登录到即时通讯应用中,然后在即时通讯应用中向目标方进行约时间,即请求方在即时通讯应用中打开与目标方进行会话的页面。然后在该会话页面中进行约时间的操作,终端接收到约时间的操作时,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识。在一个具体的实施例中,如图9a所示,通过会话页面中的“+”按钮进入功能菜单栏,在功能菜单栏点击约时间功能按钮触发时间推荐事件。Specifically, the requester logs into the instant messaging application through a terminal corresponding to the requester's identifier, and then makes an appointment with the target party in the instant messaging application, that is, the requester opens a page for conversation with the target party in the instant messaging application. Then perform an operation of appointment on the session page, and when receiving the operation of appointment, the terminal generates a time recommendation request, and the time recommendation request carries the identifier of the requester and the identifier of the target party. In a specific embodiment, as shown in FIG. 9a , enter the function menu bar through the "+" button on the session page, and click the appointment time function button in the function menu bar to trigger a time recommendation event.
步骤804,向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息,根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表。Step 804, sending a time recommendation request to the server, so that the server searches for the same free time period according to the requester ID and the target party ID, and when the same idle time segment is not found, determines the same time period of the requester ID and the target party ID, The time occupancy information corresponding to the same time period is obtained, the importance of the corresponding time occupancy information is determined according to the time occupancy information, and the same time periods whose importance of the time occupancy information is less than a preset threshold are acquired to obtain a recommended time list.
步骤806,获取服务器返回的推荐时间列表并展示。Step 806, acquire and display the recommended time list returned by the server.
具体地,请求方标识对应的终端向服务器发送时间推荐请求,服务器接收到时间推荐请求时,根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息,根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表,将时间推荐列表返回请求方标识对应的终端,请求方标识对应的终端获取到推荐时间列表,在会话页面中展示推荐时间列表。Specifically, the terminal corresponding to the requester ID sends a time recommendation request to the server. When the server receives the time recommendation request, it searches for the same idle time period according to the requester ID and the target party ID. When the same idle time segment is not found, determine the request The same time period identified by the party and the target party, the time occupancy information corresponding to the same time period is obtained, the importance of the corresponding time occupancy information is determined according to the time occupancy information, and the same time period for which the importance of the time occupancy information is less than the preset threshold is acquired, The recommended time list is obtained, and the time recommended list is returned to the terminal corresponding to the requester ID, and the terminal corresponding to the requester ID obtains the recommended time list, and displays the recommended time list on the session page.
在一个具体的实施例中,如图9b所示,展示的推荐时间列表中包括了今天、明天和后天推荐的时间,用户可以选择目标时间。In a specific embodiment, as shown in FIG. 9 b , the displayed recommended time list includes recommended times for today, tomorrow and the day after tomorrow, and the user can select a target time.
步骤808,检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Step 808: When a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the conversation page.
具体地,请求方标识对应的终端检测到作用于推荐时间列表中目标时间的选择操作时,请求方标识对应的终端获取到选择的目标时间根据目标时间和可交互模板生成可交互目标时间消息然后将可交互目标时间消息展示在会话页面中,即发生给会话对象。例如,如图9c所示,用户选择今天下午5:00的时间作为约定时间时,生成可交互目标时间消息,展示在会话页面中的示意图。Specifically, when the terminal corresponding to the requester ID detects a selection operation acting on the target time in the recommended time list, the terminal corresponding to the requester ID obtains the selected target time and generates an interactive target time message according to the target time and the interactive template, and then Display the interactive target time message on the session page, that is, to the session object. For example, as shown in FIG. 9c, when the user selects 5:00 pm today as the appointed time, an interactive target time message is generated, which is shown in a schematic diagram on the conversation page.
在上述会话消息生成方法中,通过检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识,发送时间推荐请求到服务器中,获取到服务器返回的时间推荐列表进行展示,并根据用户选择的目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中,方便用户进行时间的约定,节省网络资源,提高效率。In the above conversation message generation method, by detecting the time recommendation event triggered in the session page, a time recommendation request is generated, the time recommendation request carries the requester ID and the target party ID, the time recommendation request is sent to the server, and the server receives The returned time recommendation list is displayed, and an interactive target time message is generated according to the target time selected by the user, and the interactive target time message is displayed on the session page, which is convenient for users to make time appointments, saves network resources, and improves efficiency.
在一个实施例中,会话页面为至少三人会话页面。步骤802,检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,包括:In one embodiment, the session page is a session page for at least three persons. Step 802, detecting a time recommendation event triggered in the session page, and generating a time recommendation request, including:
检测到在会话页面中触发的时间推荐事件,响应于时间推荐事件,获取会话页面中的请求方标识和各个目标方标识。根据请求方标识和各个目标方标识生成时间推荐请求。A time recommendation event triggered in the session page is detected, and in response to the time recommendation event, the requester ID and each target party ID in the session page are acquired. A time recommendation request is generated according to the requester ID and the respective target party IDs.
其中,当会话页面为至少三人进行会话的会话页面时,说明是进行群组聊天,此时,检测到触发的时间推荐事件时,获取会话页面中的请求方标识和各个目标方标识,根据请求方标识和各个目标方标识生成时间推荐请求,将该时间推荐请求发送服务器,服务器根据请求方标识和各个目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和各个目标方标识的相同时间段,获取相同时间段对应的时间占用信息,根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表。将推荐时间列表返回请求方标识对应的终端进行展示,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。Wherein, when the session page is a session page with at least three people having a session, it means that a group chat is performed. At this time, when a triggered time recommendation event is detected, the requester ID and each target party ID in the session page are obtained, according to The requester ID and each target party ID generate a time recommendation request, and send the time recommendation request to the server. The server searches for the same free time slot according to the requester ID and each target party ID. When the same free time slot is not found, determine the requester Identify the same time period identified by each target party, obtain the time occupancy information corresponding to the same time period, determine the importance of the corresponding time occupancy information according to the time occupancy information, and obtain the same time period for which the importance of the time occupancy information is less than the preset threshold, Get a list of recommended times. Return the recommended time list to the terminal corresponding to the requester ID for display. When a selection operation for the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page middle.
在上述实施例中,在群组会话页面中时,需要查找所有会话对象的空闲时间,当未查找到时,确定每个会话对象在相同时间段的时间占用信息,计算每个会话对象对应的时间占用信息的重要性,获取到间占用信息重要性小于预设阈值的各个相同时间段,从而得到推荐时间列表,即当相同时间段中每个会话对象的时间占用信息重要性都小于预设阈值时,将该相同时间段作为推荐时间。从而能够实现在至少三人会话页面中进行时间的约定,从而不需要去分别进行时间约定,提高了效率,节省了网络资源。In the above embodiment, when in the group conversation page, it is necessary to search for the idle time of all conversation objects. The importance of time occupancy information, the same time period in which the importance of occupancy information is less than the preset threshold is obtained, and the recommended time list is obtained, that is, when the importance of time occupancy information of each session object in the same time period is less than the preset threshold When the threshold is reached, the same time period is used as the recommended time. Therefore, it is possible to make time appointments in at least three-person conversation pages, so that there is no need to make time appointments separately, which improves efficiency and saves network resources.
在一个实施例中,在步骤806之后,即在检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括步骤:In one embodiment, after step 806, that is, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the conversation page , also include the steps:
检测到对可交互目标时间消息的确认操作时,得到对可交互目标时间消息的确认信息。将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。When the confirmation operation of the interactive target time message is detected, the confirmation information of the interactive target time message is obtained. The confirmation information of the interactive target time message is displayed on the session page, and the interactive target time message and corresponding confirmation information are sent to the server for storage.
具体地,确认操作用于对可交互目标时间消息中的目标时间进行确认,可以是点击操作、按压操作、滑动操作等等。在会话页面中的会话对象都可以对可交互目标时间消息进行确认,即在会议页面中请求方和目标方都需要对可交互目标时间消息进去确认操作。此时,终端检测到对可交互目标时间消息的确认操作时,得到会话页面中的会话对象对可交互目标时间消息的确认信息,将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。例如,如图9d所示,为会话双方确认对可交互目标时间消息中的目标时间后,在会话页面中展示的可交互目标时间消息的确认信息的示意图,其中,可交互目标时间消息的确认信息包括“你该时间可以”和“好友0该时间可以”,并且,在确认操作对象的周围显示确认的对象标识,即在好友按钮展示已确认的对象标识“好友0”和“你”。Specifically, the confirmation operation is used to confirm the target time in the interactive target time message, and may be a click operation, a press operation, a slide operation, and the like. The session objects on the session page can confirm the interactive target time message, that is, both the requester and the target party need to confirm the interactive target time message on the conference page. At this time, when the terminal detects the confirmation operation of the interactive target time message, it obtains the confirmation information of the interactive target time message from the session object in the session page, displays the confirmation information of the interactive target time message on the session page, and The interactive target time message and the corresponding confirmation information are sent to the server for storage. For example, as shown in Figure 9d, it is a schematic diagram of the confirmation information of the interactive target time message displayed on the conversation page after the two parties in the conversation confirm the target time in the interactive target time message, wherein the confirmation of the interactive target time message The information includes "you can at this time" and "friend 0 at this time", and the confirmed object identification is displayed around the confirmation operation object, that is, the confirmed object identification "friend 0" and "you" are displayed on the friend button.
在一个实施例中,当检测到对可交互目标时间消息的未确认操作时,得到对可交互目标时间消息的未确认信息。将可交互目标时间消息的未确认信息展示在会话页面中,并将可交互目标时间消息和对应的未确认信息发送服务器保存。In one embodiment, when an unconfirmed operation on the interactive target time message is detected, unconfirmed information on the interactive target time message is obtained. The unconfirmed information of the interactive target time message is displayed on the session page, and the interactive target time message and the corresponding unconfirmed information are sent to the server for storage.
在上述实施例中,用户可以直接在会话页面中对可交互目标时间消息进行确认,方便快捷。In the above embodiment, the user can directly confirm the interactive target time message on the session page, which is convenient and quick.
在一个实施例中,如图10所示,步骤806,即检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中,包括:In one embodiment, as shown in Figure 10, step 806, that is, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed in the session page, including:
步骤1002,检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间展示在会话页面中的编辑区域中。Step 1002, when a selection operation acting on the target time in the recommended time list is detected, the target time is displayed in the editing area on the session page.
其中,编辑区域用于对会话消息进行编辑。Wherein, the editing area is used to edit the conversation message.
具体地,请求方标识对应的终端检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间显示在会话页面中的编辑区域中。例如,如图11所示,当请求方选择了今天下午5:00时,在编辑区域中高亮显示“今天下午5:00”。Specifically, when the terminal corresponding to the requester identifier detects a selection operation on the target time in the recommended time list, the target time is displayed in the editing area on the session page. For example, as shown in FIG. 11 , when the requester selects 5:00 pm today, "5:00 pm today" is highlighted in the editing area.
步骤1004,检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息。Step 1004, when an editing operation acting on the editing area is detected, an edited session message is obtained.
具体地,用户可以在编辑区域编辑会话消息,比如,在该时间添加具体要处理事项。请求方标识对应的终端检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息。Specifically, the user can edit the conversation message in the editing area, for example, add specific items to be processed at this time. When the terminal corresponding to the requester identifier detects the editing operation acting on the editing area, it obtains the edited session message.
步骤1006,检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。Step 1006, when an operation to send the edited conversation message is detected, an interactive target conversation message is generated according to the edited conversation message, and the interactive goal conversation message is displayed in the conversation area of the conversation page.
其中,会话区域是用于展示会话消息的区域。Wherein, the conversation area is an area for displaying conversation messages.
具体地,当请求方标识对应的终端检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息使用可交互模板生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。例如,如图9d所示,展示的编辑后的会话消息生成的可交互目标会话消息。其中,编辑后的会话消息为“今天下午5:00开会讨论需求”,其中,“开会讨论需求”为重新编辑的内容。Specifically, when the terminal corresponding to the requester identifier detects the sending operation of the edited session message, an interactive target session message is generated using an interactive template according to the edited session message, and the interactive target session message is displayed on the session in the session area of the page. For example, as shown in Fig. 9d, the edited conversation message shown generates an interactive target conversation message. Wherein, the edited conversation message is "meeting to discuss requirements at 5:00 pm today", wherein "meeting to discuss requirements" is the re-edited content.
在一个实施例中,在步骤806之后,即在检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中之后,还包括:In one embodiment, after step 806, that is, when a selection operation acting on the target time in the recommended time list is detected, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the conversation page ,Also includes:
检测到对可交互目标时间消息的修改操作,展示推荐时间列表,检测到对推荐时间列表中修改时间的选择操作时,使用修改时间替换可交互目标时间消息中的目标时间,得到修改后的可交互目标时间消息,并生成修改提醒信息,将修改后的可交互目标时间消息和修改提醒信息展示在所述会话页面中。When the modification operation of the interactive target time message is detected, the recommended time list is displayed. When the selection operation of the modified time in the recommended time list is detected, the modified time is used to replace the target time in the interactive target time message, and the modified available time is obtained. Interact with the target time message, and generate modification reminder information, and display the modified interactive target time message and modification reminder information on the session page.
其中,修改操作用于对已发送的交互目标时间消息中的目标时间进行修改。Wherein, the modification operation is used to modify the target time in the sent interaction target time message.
具体地,请求方和目标方需要对可交互目标时间消息中的目标时间进行修改时,可以通过触发可交互目标时间消息中的修改交互设置,比如,如图12所示,好友0该时间不可以,则可以对时间进行修改,点击可交互目标时间信息中的“+”按钮,可以对目标时间进行修改。终端检测到对可交互目标时间消息的修改操作时,展示推荐时间列表,然后从推荐时间列表中重新选择修改后的时间,当终端检测到对推荐时间列表中修改时间的选择操作时,使用修改时间替换可交互目标时间消息中的目标时间,得到修改后的可交互目标时间消息,并生成修改提醒信息,将修改后的可交互目标时间消息和修改提醒信息展示在所述会话页面中。如图12所示,将目标时间从3:00修改到了5:00。展示的修改提醒信息为“你修改了该时间”。Specifically, when the requester and the target party need to modify the target time in the interactive target time message, they can trigger the modification interaction settings in the interactive target time message. For example, as shown in Figure 12, the time for friend 0 is not Yes, you can modify the time. Click the "+" button in the interactive target time information to modify the target time. When the terminal detects the modification operation of the interactive target time message, it displays the recommended time list, and then reselects the modified time from the recommended time list. When the terminal detects the selection operation of the modified time in the recommended time list, it uses the modified Time replaces the target time in the interactive target time message to obtain a modified interactive target time message, and generates modification reminder information, and displays the modified interactive target time message and modification reminder information on the session page. As shown in Figure 12, the target time was changed from 3:00 to 5:00. The displayed modification reminder message is "You have modified the time".
在一个实施例中,可以预先设置好会话页面中的会话对象的修改权限。具有修改权限的请求方标识或者目标方标识才能对可交互目标时间消息中的目标时间进行修改。In one embodiment, the permission to modify the session object in the session page can be set in advance. The target time in the interactive target time message can only be modified by the requester ID or the target party ID with modification authority.
在上述实施例中,用户可以对可交互目标时间消息中的目标时间进行修改,避免发生需要重新约定时间时,重复操作的问题,直接进行修改,提高了效率。In the above embodiment, the user can modify the target time in the interactive target time message, avoiding the problem of repeated operations when the time needs to be re-scheduled, and directly modify it, which improves the efficiency.
在一个具体的实施例中,如图13所示,会话消息生成方法,具体包括以下步骤:In a specific embodiment, as shown in FIG. 13, the conversation message generation method specifically includes the following steps:
步骤1302,请求方标识对应的终端检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和各个目标方标识,向服务器发送时间推荐请求,其中,请求方标识为第一应用中的对象标识,目标方标识为第二应用中的对象标识。Step 1302, the terminal corresponding to the requester ID detects the time recommendation event triggered in the session page, generates a time recommendation request, the time recommendation request carries the requester ID and each target party ID, and sends a time recommendation request to the server, wherein the request The party ID is the object ID in the first application, and the target party ID is the object ID in the second application.
步骤1304,服务器接收通过会话页面发送的时间推荐请求,根据请求方标识和各个目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和各个目标方标识的相同时间段,获取相同时间段对应的时间占用信息。Step 1304, the server receives the time recommendation request sent through the session page, searches for the same free time period according to the requester ID and each target party ID, and determines that the requester ID and each target party ID are the same if the same free time period is not found. Time period, to obtain the time occupancy information corresponding to the same time period.
步骤1306,服务器根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表,将推荐时间列表返回请求方标识对应的终端。Step 1306, the server determines the importance of the corresponding time occupancy information according to the time occupancy information, obtains the same time period in which the importance of the time occupancy information is less than the preset threshold, obtains the recommended time list, and returns the recommended time list to the terminal corresponding to the requester ID.
步骤1308,请求方标识对应的终端获取服务器返回的推荐时间列表并展示,检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间展示在会话页面中的编辑区域中;Step 1308, the terminal corresponding to the requester's identifier obtains and displays the recommended time list returned by the server, and displays the target time in the editing area of the session page when a selection operation acting on the target time in the recommended time list is detected;
步骤1310,请求方标识对应的终端检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息;检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。即将可交互目标会话消息发送至各个目标方标识对应的终端中并进行展示。Step 1310, when the terminal corresponding to the requester identifier detects an editing operation acting on the editing area, it obtains the edited conversation message; when it detects a sending operation on the edited conversation message, it generates an interactive object according to the edited conversation message Session messages, and display interactive target session messages in the session area on the session page. That is, the interactive target session message is sent to the terminal corresponding to each target party ID and displayed.
步骤1312,请求方标识对应的终端和目标方标识对应的终端检测到对可交互目标时间消息的确认操作时,得到对可交互目标时间消息的确认信息。将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。Step 1312, when the terminal corresponding to the requester ID and the terminal corresponding to the target ID detect the confirmation operation on the interactive target time message, obtain the confirmation information on the interactive target time message. The confirmation information of the interactive target time message is displayed on the session page, and the interactive target time message and corresponding confirmation information are sent to the server for storage.
步骤1314,服务器获取系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。Step 1314, the server obtains the current time of the system, and when the current time of the system is consistent with the target time in the interactive target time message, obtains the time reminder information, and sends the time reminder information to the terminal corresponding to the requester ID and the target party ID.
本申请还提供一种应用场景,该应用场景应用上述的会话消息生成方法。具体地,该会话消息生成方法在该应用场景的应用如下:The present application also provides an application scenario, where the above-mentioned conversation message generation method is applied. Specifically, the application of the session message generation method in this application scenario is as follows:
用户A需要和用户B、用户C和用户D预约会议,其中,用户B、用户C和用户D是用户A微信应用的好友。此时,用户A通过企业微信应用进入到与用户B、用户C和用户D进行会话的群组会话页面。通过点击群组会话页面中的约时间功能触发时间推荐事件,生成时间推荐请求,该事件推荐请求中携带有用户A、用户B、用户C和用户D。User A needs to reserve a meeting with user B, user C, and user D, where user B, user C, and user D are friends of user A's WeChat application. At this point, user A enters the group conversation page where user B, user C, and user D have conversations through the enterprise WeChat application. A time recommendation event is triggered by clicking the time appointment function on the group conversation page, and a time recommendation request is generated. The event recommendation request includes user A, user B, user C, and user D.
互通服务器接收到时间推荐请求,解析得到用户A、用户B、用户C和用户D,从互通服务器中保存的用户日历信息中查找用户A、用户B、用户C和用户D的相同空闲时间段,当查找到相同空闲时间段时,直接将相同空闲时间段作为推荐时间,得到推荐时间列表。The intercommunication server receives the time recommendation request, analyzes and obtains user A, user B, user C and user D, searches for the same free time period of user A, user B, user C and user D from the user calendar information saved in the intercommunication server, When the same free time period is found, the same free time period is directly used as the recommended time to obtain a recommended time list.
互通服务器当未查找到相同空闲时间段时,确定用户A、用户B、用户C和用户D的同一个时间段比如,下午1点到3点。获取下午1点到3点用户A、用户B、用户C和用户D对应的时间占用信息,分别计算用户A、用户B、用户C和用户D对应的时间占用信息的重要性,比如,用户A、用户B、用户C和用户D对应的时间占用信息中的事项都是会议,则互通服务器获取得到的会议信息如下表1所示:When the interworking server does not find the same free time period, it determines the same time period of user A, user B, user C and user D, for example, from 1:00 p.m. to 3:00 p.m. Obtain the time occupancy information corresponding to user A, user B, user C, and user D from 1:00 p.m. to 3:00 p.m., and calculate the importance of the time occupancy information corresponding to user A, user B, user C, and user D, for example, user A The items in the time occupancy information corresponding to user B, user C, and user D are all meetings, and the meeting information obtained by the interworking server is shown in Table 1 below:
表1会议信息表Table 1 Conference Information Form
分别计算会议用户A、用户B、用户C和用户D对应的会议AE101、AB302和AC404的重要性。当该时间段即下午1点到3点时,会议AE101、AB302和AC404的重要性都小于预设阈值时,将下午1点到3点作为推荐时间,得到推荐时间列表。The importance of conferences AE101, AB302 and AC404 corresponding to conference user A, user B, user C and user D are calculated respectively. When the time period is from 1:00 p.m. to 3:00 p.m., and the importance of meetings AE101, AB302, and AC404 are all less than the preset threshold, 1:00 p.m. to 3:00 p.m. are used as recommended times to obtain a recommended time list.
当其中一个用户对应的时间占用信息的重要性大于预设阈值时,比如,预设阈值设置为0.5。当计算得到的会议AE101、AB302和AC404的重要性如下表2所示时,When the importance of the time occupancy information corresponding to one user is greater than a preset threshold, for example, the preset threshold is set to 0.5. When the calculated importance of conferences AE101, AB302 and AC404 is shown in Table 2 below,
表2会议重要性表Table 2 Meeting Importance Table
其中,会议AE101的重要性位0.82大于预设阈值设置0.5。此时,重新确定用户A、用户B、用户C和用户D的下一个相同时间段,比如,3点到4点。重新进行计算,直到所有用户的时间占用信息的重要性都大于预设阈值时,将对应的同一时间段作为推荐时间,得到推荐时间列表。将推荐时间列表返回给用户A对应的终端,用户A从推荐时间列表中选择目标时间,然后根据目标时间生成可交互目标时间消息,将可交互目标时间消息发送到在群组会话页面中,使用户B、用户C和用户D都通过微信应用接收到可交互目标时间消息,点击可交互目标时间消息中的确认按钮进行确认,得到确认信息,然后将确认信息显示在群组会话页面中。此时,会议预约完成。Wherein, the importance bit 0.82 of the meeting AE101 is greater than the preset threshold setting 0.5. At this time, the next same time period of user A, user B, user C and user D is re-determined, for example, from 3 o'clock to 4 o'clock. Recalculate until the importance of the time occupancy information of all users is greater than the preset threshold, use the corresponding same time period as the recommended time, and obtain the recommended time list. Return the recommended time list to the terminal corresponding to user A, user A selects the target time from the recommended time list, then generates an interactive target time message according to the target time, and sends the interactive target time message to the group conversation page, so that User B, user C and user D all receive the interactive target time message through the WeChat application, click the confirmation button in the interactive target time message to confirm, get the confirmation information, and then display the confirmation information on the group conversation page. At this point, the conference reservation is complete.
应该理解的是,虽然图2、4-8、10和13的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2、4-8、10和13中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of Figs. 2, 4-8, 10 and 13 are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2, 4-8, 10 and 13 may include multiple steps or multiple stages, these steps or stages are not necessarily executed at the same time, but may be executed at different times, The execution order of these steps or stages is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of steps or stages in other steps.
在一个实施例中,如图14所示,提供了一种会话消息生成装置1400,该装置可以采用软件模块或硬件模块,或者是二者的结合成为计算机设备的一部分,该装置具体包括:请求接收模块1402、信息获取模块1404、时间推荐模块1406和消息生成模块1408,其中:In one embodiment, as shown in FIG. 14 , a conversation message generating device 1400 is provided. The device may adopt a software module or a hardware module, or a combination of the two becomes a part of a computer device. The device specifically includes: request Receiving module 1402,
请求接收模块1402,用于接收通过会话页面发送的时间推荐请求,时间推荐请求携带请求方标识和目标方标识;The request receiving module 1402 is configured to receive a time recommendation request sent through the session page, where the time recommendation request carries the requester ID and the target party ID;
信息获取模块1404,用于根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息;The
时间推荐模块1406,用于根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;The
消息生成模块1408,用于将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。The
在一个实施例中,请求接收模块1402还用于请求方标识为第一应用中的对象标识,目标方标识为第二应用中的对象标识。In one embodiment, the request receiving module 1402 is further used to identify the requester as the object identifier in the first application, and the target party as the object identifier in the second application.
在一个实施例中,时间推荐模块1406还用于从时间占用信息中确定占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级;基于占用事项等级、占用事项时间长度、占用事项参与者数量和各个占用事项参与者等级确定事项等级特征、时间长度特征、数量特征和参与者等级特征;将事项等级特征、时间长度特征、数量特征和参与者等级特征输入到时间推荐模型中进行计算,得到时间占用信息重要性,时间推荐模型是根据历史数据使用人工智能算法训练得到的。In one embodiment, the
在一个实施例中,时间推荐模块1406还用于从时间占用信息中确定占用事项等级、占用事项参与者数量和各个占用事项参与者等级;基于占用事项等级获取对应的事项等级评分,基于占用事项参与者数量获取对应的数量评分,基于各个占用事项参与者等级获取对应的各个参与者等级评分;使用事项等级评分、数量评分和各个参与者等级评分计算时间占用信息对应的目标评分,根据目标评分得到时间占用信息重要性。In one embodiment, the
在一个实施例中,会话消息生成装置1400还用于获取可交互目标时间消息和对应的确认信息,将可交互目标时间消息和对应的确认信息关联保存;获取系统当前时间,当系统当前时间与可交互目标时间消息中的目标时间一致时,获取时间提醒信息,向请求方标识对应的终端和目标方标识的终端发送时间提醒信息。In one embodiment, the session message generation device 1400 is also used to obtain the interactive target time message and corresponding confirmation information, and store the interactive target time message and the corresponding confirmation information in association; obtain the current time of the system, when the current time of the system and the corresponding confirmation information When the target time in the interactive target time message is consistent, the time reminder information is obtained, and the time reminder information is sent to the terminal corresponding to the requester identifier and the terminal identified by the target party.
在一个实施例中,请求方标识为客户标识,目标方标识为服务方标识;会话消息生成装置1400还用于根据服务方标识查找对应的各个空闲时间段,各个空闲时间段是预先从服务方标识对应的终端中获取到的;根据各个空闲时间段得到推荐时间列表;将推荐时间列表返回请求方标识对应的终端,以使终端在会话页面展示推荐时间列表,当检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。In one embodiment, the requester ID is the client ID, and the target party ID is the server ID; the session message generation device 1400 is also used to search for each corresponding idle time period according to the server ID, and each idle time period is obtained from the server in advance. Obtained from the terminal corresponding to the ID; get the recommended time list according to each idle time period; return the recommended time list to the terminal corresponding to the requester ID, so that the terminal displays the recommended time list on the session page, when it is detected that it is acting on the recommended time list During the selection operation of the target time, an interactive target time message is generated according to the target time, and the interactive target time message is displayed on the session page.
在一个实施例中,如图15所示,提供了一种会话消息生成装置1500,该装置可以采用软件模块或硬件模块,或者是二者的结合成为计算机设备的一部分,该装置具体包括:检测模块1502、请求发送模块1504、时间获取模块1506和消息展示模块1508,其中:In one embodiment, as shown in FIG. 15 , a conversation message generating apparatus 1500 is provided. The apparatus may adopt a software module or a hardware module, or a combination of the two becomes a part of a computer device. The apparatus specifically includes: detecting Module 1502, request sending
检测模块1502,用于检测到在会话页面中触发的时间推荐事件,生成时间推荐请求,时间推荐请求携带有请求方标识和目标方标识;The detection module 1502 is configured to detect a time recommendation event triggered in the session page, and generate a time recommendation request, where the time recommendation request carries the requester ID and the target party ID;
请求发送模块1504,用于向服务器发送时间推荐请求,以使服务器根据请求方标识和目标方标识查找相同空闲时间段,当未查找到相同空闲时间段时,确定请求方标识和目标方标识的相同时间段,获取相同时间段对应的时间占用信息,根据时间占用信息确定对应的时间占用信息重要性,获取时间占用信息重要性小于预设阈值的各个相同时间段,得到推荐时间列表;The
时间获取模块1506,用于获取服务器返回的推荐时间列表并展示;
消息展示模块1508,用于检测到作用于推荐时间列表中目标时间的选择操作时,根据目标时间生成可交互目标时间消息,将可交互目标时间消息展示在会话页面中。The
在一个实施例中,会话页面为至少三人会话页面;检测模块1502还用于检测到在会话页面中触发的时间推荐事件,响应于时间推荐事件,获取会话页面中的请求方标识和各个目标方标识;根据请求方标识和各个目标方标识生成时间推荐请求。In one embodiment, the session page is a session page with at least three people; the detection module 1502 is also used to detect a time recommendation event triggered in the session page, and obtain the requester ID and each target in the session page in response to the time recommendation event Party ID; generate a time recommendation request according to the requester ID and each target party ID.
在一个实施例中,会话消息生成装置1500还用于检测到对可交互目标时间消息的确认操作时,得到对可交互目标时间消息的确认信息;将可交互目标时间消息的确认信息展示在会话页面中,并将可交互目标时间消息和对应的确认信息发送服务器保存。In one embodiment, the session message generation device 1500 is further configured to obtain confirmation information for the interactive target time message when a confirmation operation for the interactive target time message is detected; display the confirmation information for the interactive target time message in the session page, and send the interactive target time message and corresponding confirmation information to the server for storage.
在一个实施例中,消息展示模块1508,还用于检测到作用于推荐时间列表中目标时间的选择操作时,将目标时间展示在会话页面中的编辑区域中;检测到作用于编辑区域的编辑操作时,得到编辑后的会话消息;检测到对编辑后的会话消息的发送操作时,根据编辑后的会话消息生成可交互目标会话消息,并将可交互目标会话消息展示在会话页面中的会话区域中。In one embodiment, the
在一个实施例中,会话消息生成装置1500还用于检测到对可交互目标时间消息的修改操作,展示推荐时间列表;检测到对推荐时间列表中修改时间的选择操作时,使用修改时间替换可交互目标时间消息中的目标时间,得到修改后的可交互目标时间消息,并生成修改提醒信息,将修改后的可交互目标时间消息和修改提醒信息展示在所述会话页面中。In one embodiment, the conversation message generation device 1500 is also used to detect a modification operation on the interactive target time message, and display a list of recommended times; The target time in the interactive target time message is obtained to obtain a modified interactive target time message, and modification reminder information is generated, and the modified interactive target time message and modification reminder information are displayed on the session page.
关于会话消息生成装置的具体限定可以参见上文中对于会话消息生成方法的限定,在此不再赘述。上述会话消息生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations of the device for generating a conversation message, refer to the above-mentioned definition of the method for generating a conversation message, which will not be repeated here. Each module in the above conversation message generation device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图16所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储会话消息、日历信息等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种会话消息生成方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure may be as shown in FIG. 16 . The computer device includes a processor, memory and a network interface connected by a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs and databases. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The computer device's database is used to store conversation messages, calendar information, and other data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a conversation message generation method is realized.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图17所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种会话消息生成方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure may be as shown in FIG. 17 . The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (Near Field Communication) or other technologies. When the computer program is executed by the processor, a conversation message generation method is realized. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the computer device , and can also be an external keyboard, touchpad, or mouse.
本领域技术人员可以理解,图17中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 17 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, there is also provided a computer device, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, storing a computer program, and implementing the steps in the foregoing method embodiments when the computer program is executed by a processor.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile memory and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several implementation modes of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010439382.3A CN113709021B (en) | 2020-05-22 | 2020-05-22 | Session message generation method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010439382.3A CN113709021B (en) | 2020-05-22 | 2020-05-22 | Session message generation method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113709021A CN113709021A (en) | 2021-11-26 |
CN113709021B true CN113709021B (en) | 2023-04-07 |
Family
ID=78646420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010439382.3A Active CN113709021B (en) | 2020-05-22 | 2020-05-22 | Session message generation method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113709021B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499403B (en) * | 2022-09-19 | 2024-11-15 | 北京百度网讯科技有限公司 | Message processing method, device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369324A (en) * | 2007-08-15 | 2009-02-18 | 国际商业机器公司 | Scheduling system and method based on role |
CN103246952A (en) * | 2012-02-02 | 2013-08-14 | 国际商业机器公司 | Conflicting meeting scheduler |
CN105931018A (en) * | 2016-04-18 | 2016-09-07 | 张伟彬 | Activity time recommendation method based on activity plan of user |
CN108564184A (en) * | 2018-03-16 | 2018-09-21 | 北京三快在线科技有限公司 | A kind of preset device of the preordering method and meeting room of meeting room |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7395221B2 (en) * | 2002-05-09 | 2008-07-01 | International Business Machines Corporation | Intelligent free-time search |
-
2020
- 2020-05-22 CN CN202010439382.3A patent/CN113709021B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369324A (en) * | 2007-08-15 | 2009-02-18 | 国际商业机器公司 | Scheduling system and method based on role |
CN103246952A (en) * | 2012-02-02 | 2013-08-14 | 国际商业机器公司 | Conflicting meeting scheduler |
CN105931018A (en) * | 2016-04-18 | 2016-09-07 | 张伟彬 | Activity time recommendation method based on activity plan of user |
CN108564184A (en) * | 2018-03-16 | 2018-09-21 | 北京三快在线科技有限公司 | A kind of preset device of the preordering method and meeting room of meeting room |
Non-Patent Citations (1)
Title |
---|
分布式会议调度;吕泽民等;《福建电脑》(第02期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113709021A (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11461712B2 (en) | Efficiency enhancements in task management applications | |
US10601739B2 (en) | Smart messaging for computer-implemented devices | |
US10607165B2 (en) | Systems and methods for automatic suggestions in a relationship management system | |
US8255923B2 (en) | Shared persistent communication thread | |
US9319442B2 (en) | Real-time agent for actionable ad-hoc collaboration in an existing collaboration session | |
CN114009056B (en) | Dynamic scalable summaries with adaptive graphical association between people and content | |
US9864974B2 (en) | Serendipitous issue reminder system | |
US10229373B1 (en) | Context-based event creation | |
CN104604199A (en) | Shared resource and session model using presence data | |
CN112084426B (en) | Conference recommendation method, device, electronic device and storage medium | |
US20180189017A1 (en) | Synchronized, morphing user interface for multiple devices with dynamic interaction controls | |
US20210184876A1 (en) | Automatic conference management tool | |
CN113709021B (en) | Session message generation method and device, computer equipment and storage medium | |
US10984392B2 (en) | Providing multi-session event invitation | |
US20230019290A1 (en) | Email assistant options bar for email applications | |
CN113748420A (en) | Actively displaying relevant information related to an event on a search page | |
CN116418776A (en) | Communication object recommendation method, device, computer equipment and storage medium | |
HK40009655A (en) | Efficiency enhancements in task management applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |