[go: up one dir, main page]

HK40091078A - Notification message processing method, apparatus, computer device, and storage medium - Google Patents

Notification message processing method, apparatus, computer device, and storage medium Download PDF

Info

Publication number
HK40091078A
HK40091078A HK42023080012.0A HK42023080012A HK40091078A HK 40091078 A HK40091078 A HK 40091078A HK 42023080012 A HK42023080012 A HK 42023080012A HK 40091078 A HK40091078 A HK 40091078A
Authority
HK
Hong Kong
Prior art keywords
application
message
target
intelligent robot
request
Prior art date
Application number
HK42023080012.0A
Other languages
Chinese (zh)
Inventor
黄铁鸣
郭金辉
陈卓铭
文琛
李斌
Original Assignee
腾讯科技(深圳)有限公司
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of HK40091078A publication Critical patent/HK40091078A/en

Links

Description

通知消息的处理方法、装置、计算机设备和存储介质Methods, apparatus, computer equipment, and storage media for processing notification messages

技术领域Technical Field

本申请涉及互联网技术领域,特别是涉及一种通知消息的处理方法、装置、计算机设备和存储介质。This application relates to the field of Internet technology, and in particular to a method, apparatus, computer device, and storage medium for processing notification messages.

背景技术Background Technology

随着互联网技术和软件技术的不断发展,各领域的企业可以在web业务系统或业务客户端分配任务,然后通过通信应用推送通知消息以提示工作人员,该工作人员从通信应用切换到web业务系统或业务客户端,从而可以查看和处理所分配的任务。然而,这种需要从通信应用切换到web业务系统或业务客户端处理任务的方式,降低了任务的处理效率。With the continuous development of internet and software technologies, enterprises in various fields can assign tasks through web-based business systems or business clients, and then send notification messages to staff via communication applications. Staff can then switch from the communication application to the web-based business system or business client to view and process the assigned tasks. However, this method of requiring a switch from a communication application to a web-based business system or business client reduces task processing efficiency.

发明内容Summary of the Invention

基于此,有必要针对上述技术问题,提供一种能够提高任务处理效率的通知消息的处理方法、装置、计算机设备和存储介质。Therefore, it is necessary to provide a method, apparatus, computer device, and storage medium for processing notification messages that can improve task processing efficiency in response to the above-mentioned technical problems.

第一方面,本申请提供了一种通知消息的处理方法。所述方法包括:Firstly, this application provides a method for processing notification messages. The method includes:

接收智能机器人推送子应用的通知消息;Receive notification messages from sub-applications pushed by the intelligent robot;

在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The notification message is displayed as a target message card in the parent application's session page;

响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;In response to an interactive operation triggered on the target message card, the intelligent robot sends an interactive request to the application backend of the sub-application.

接收所述智能机器人返回的针对所述交互请求的处理结果;Receive the processing result of the interaction request returned by the intelligent robot;

基于所述处理结果对所述通知消息的处理状态进行更新并显示。The processing status of the notification message is updated and displayed based on the processing result.

第二方面,本申请还提供了一种通知消息的处理装置。所述装置包括:Secondly, this application also provides a notification message processing apparatus. The apparatus includes:

接收模块,用于接收智能机器人推送子应用的通知消息;The receiving module is used to receive notification messages pushed by the intelligent robot to the sub-application;

消息显示模块,用于在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The message display module is used to display the notification message in the form of a target message card in the session page of the parent application;

发送模块,用于响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;The sending module is used to respond to the interactive operation triggered on the target message card and send an interactive request to the application background of the sub-application through the intelligent robot;

所述接收模块,还用于接收所述智能机器人返回的针对所述交互请求的处理结果;The receiving module is also configured to receive the processing result of the interaction request returned by the intelligent robot;

更新显示模块,用于基于所述处理结果对所述通知消息的处理状态进行更新并显示。The update display module is used to update and display the processing status of the notification message based on the processing result.

第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

接收智能机器人推送子应用的通知消息;Receive notification messages from sub-applications pushed by the intelligent robot;

在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The notification message is displayed as a target message card in the parent application's session page;

响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;In response to an interactive operation triggered on the target message card, the intelligent robot sends an interactive request to the application backend of the sub-application.

接收所述智能机器人返回的针对所述交互请求的处理结果;Receive the processing result of the interaction request returned by the intelligent robot;

基于所述处理结果对所述通知消息的处理状态进行更新并显示。The processing status of the notification message is updated and displayed based on the processing result.

第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

接收智能机器人推送子应用的通知消息;Receive notification messages from sub-applications pushed by the intelligent robot;

在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The notification message is displayed as a target message card in the parent application's session page;

响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;In response to an interactive operation triggered on the target message card, the intelligent robot sends an interactive request to the application backend of the sub-application.

接收所述智能机器人返回的针对所述交互请求的处理结果;Receive the processing result of the interaction request returned by the intelligent robot;

基于所述处理结果对所述通知消息的处理状态进行更新并显示。The processing status of the notification message is updated and displayed based on the processing result.

第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

接收智能机器人推送子应用的通知消息;Receive notification messages from sub-applications pushed by the intelligent robot;

在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The notification message is displayed as a target message card in the parent application's session page;

响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;In response to an interactive operation triggered on the target message card, the intelligent robot sends an interactive request to the application backend of the sub-application.

接收所述智能机器人返回的针对所述交互请求的处理结果;Receive the processing result of the interaction request returned by the intelligent robot;

基于所述处理结果对所述通知消息的处理状态进行更新并显示。The processing status of the notification message is updated and displayed based on the processing result.

上述通知消息的处理方法、装置、计算机设备、存储介质和计算机程序产品,通过接收智能机器人推送子应用的通知消息,以目标消息卡片的形式显示该通知消息,从而通过通知消息的方式触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,通过在目标消息卡片上进行交互操作,将交互请求通过智能机器人发送到子应用的应用后台,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,在接收到智能机器人返回的关于交互请求的处理结果,在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。最后,以智能机器人作为母应用与子应用之间的通信桥梁,可以有效地确保母应用与子应用之间的数据通信,从而使子应用上执行的操作可以及时有效地触达到相应的目标对象,以使目标对象及时地根据通知消息进行交互操作,有利于提高交互效率。The aforementioned notification message processing method, apparatus, computer equipment, storage medium, and computer program product receive notification messages pushed by an intelligent robot to a sub-application, display the notification message in the form of a target message card, thereby reaching the target object through the notification message and informing the target object that another object has performed an operation in the sub-application. Furthermore, it can also notify the target object to perform corresponding interactions, thus avoiding missed interactions due to failure to reach the target object. In addition, by performing interactive operations on the target message card, the interaction request is sent to the application background of the sub-application via the intelligent robot, thus eliminating the need to switch from the parent application to the sub-application for interactive operations, improving interaction efficiency. Moreover, upon receiving the processing result of the interaction request returned by the intelligent robot, the processing status of the notification message is updated and displayed on the conversation page, thereby informing the target object that the notification message has been processed after completion, preventing the target object from being unaware whether their interaction request has been executed, and improving user experience. Finally, using intelligent robots as a communication bridge between the parent and child applications can effectively ensure data communication between them, so that operations performed on the child application can reach the corresponding target objects in a timely and effective manner, enabling the target objects to interact in a timely manner based on the notification messages, which helps to improve interaction efficiency.

第六方面,本申请提供了一种通知消息的处理方法。所述方法包括:Sixthly, this application provides a method for processing notification messages. The method includes:

向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;Push notification messages from child applications to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the session page;

接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application upon detecting an interaction operation triggered on the target message card;

将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The interaction request is forwarded to the application backend of the sub-application, so that the application backend executes the interaction request, obtains the processing result, and provides feedback.

当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。When the processing result is received from the application's backend, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result.

第七方面,本申请还提供了一种通知消息的处理装置。所述装置包括:Seventhly, this application also provides a notification message processing apparatus. The apparatus includes:

推送模块,用于向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;The push module is used to push notification messages from the child application to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the conversation page;

接收模块,用于接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;A receiving module is used to receive an interaction request initiated by the parent application; the interaction request is generated by the parent application when it detects an interaction operation triggered on the target message card;

转发模块,用于将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The forwarding module is used to forward the interaction request to the application backend of the sub-application, so that the application backend can execute the interaction request, obtain the processing result, and provide feedback.

所述推送模块,还用于当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。The push module is further configured to push the processing result to the target object when it receives the processing result from the application's backend, so that the parent application updates and displays the processing status of the notification message based on the processing result.

第八方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:Eighthly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;Push notification messages from child applications to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the session page;

接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application upon detecting an interaction operation triggered on the target message card;

将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The interaction request is forwarded to the application backend of the sub-application, so that the application backend executes the interaction request, obtains the processing result, and provides feedback.

当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。When the processing result is received from the application's backend, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result.

第九方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:Ninthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;Push notification messages from child applications to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the session page;

接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application upon detecting an interaction operation triggered on the target message card;

将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The interaction request is forwarded to the application backend of the sub-application, so that the application backend executes the interaction request, obtains the processing result, and provides feedback.

当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。When the processing result is received from the application's backend, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result.

第十方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:Tenthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;Push notification messages from child applications to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the session page;

接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application upon detecting an interaction operation triggered on the target message card;

将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The interaction request is forwarded to the application backend of the sub-application, so that the application backend executes the interaction request, obtains the processing result, and provides feedback.

当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。When the processing result is received from the application's backend, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result.

上述通知消息的处理方法、装置、计算机设备、存储介质和计算机程序产品,将母应用与子应用之间建立数据通信桥梁,从而其他对象在子应用执行了一项操作,可以及时地向母应用的目标对象推送通知消息,使母应用以目标消息卡片的形式将通知消息显示于会话页面,从而通过通知消息触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,当目标对象在目标消息卡片上触发了交互操作时,接收到母应用发起的交互请求,然后将该交互请求转发到子应用的应用后台,以使应用后台执行交互请求得到处理结果并进行反馈,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,向目标对象推送应用后台反馈的处理结果,从而使母应用在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。The aforementioned notification message processing method, apparatus, computer equipment, storage medium, and computer program product establish a data communication bridge between the parent application and the child application. When another object performs an operation in the child application, a notification message can be promptly pushed to the target object in the parent application. The parent application then displays the notification message as a target message card on the session page, thereby reaching the target object and informing them that another object has performed an operation in the child application. Furthermore, it can notify the target object to perform a corresponding interaction, thus preventing missed interactions due to failure to reach the target object. In addition, when the target object triggers an interaction operation on the target message card, it receives an interaction request initiated by the parent application and forwards the request to the child application's application backend. The application backend then processes the interaction request, obtains the processing result, and provides feedback, allowing interaction without switching from the parent application to the child application, improving interaction efficiency. Moreover, pushing the processing result from the application backend to the target object allows the parent application to update and display the notification message processing status on the session page. After processing is complete, the parent application can notify the target object that the notification message has been processed, ensuring the target object is aware of whether their interaction request has been executed, thus improving user experience.

附图说明Attached Figure Description

图1为一个实施例中通知消息的处理方法的应用环境图;Figure 1 is an application environment diagram of a notification message processing method in one embodiment;

图2为一个实施例中通知消息的处理方法的流程示意图;Figure 2 is a flowchart illustrating a notification message processing method in one embodiment;

图3为一个实施例中以目标消息卡片的形式显示通知消息的会话页面意图;Figure 3 shows a session page intent in one embodiment where notification messages are displayed in the form of target message cards;

图4为另一个实施例中以目标消息卡片的形式显示通知消息的会话页面意图;Figure 4 shows a session page intent in another embodiment where notification messages are displayed in the form of target message cards;

图5为另一个实施例中以目标消息卡片的形式显示通知消息的会话页面意图;Figure 5 shows a session page intent in another embodiment where notification messages are displayed in the form of target message cards;

图6为一个实施例中显示通知消息以及显示更新处理状态后通知消息的会话页面意图;Figure 6 shows a session page intent in one embodiment that displays notification messages and notification messages after updating the processing status;

图7为另一个实施例中显示通知消息以及显示更新处理状态后通知消息的会话页面意图;Figure 7 shows a session page intent in another embodiment that displays notification messages and notification messages after updating the processing status;

图8为另一个实施例中以目标消息卡片的形式显示通知消息的会话页面意图;Figure 8 shows a session page intent in another embodiment where notification messages are displayed in the form of target message cards;

图9为一个实施例中显示通知消息以及显示更新处理状态后通知消息的会话页面意图;Figure 9 shows a session page intent in one embodiment that displays notification messages and notification messages after updating the processing status;

图10为另一个实施例中以目标消息卡片的形式显示通知消息的会话页面意图;Figure 10 shows a session page intent in another embodiment where notification messages are displayed in the form of target message cards;

图11为一个实施例中显示处理结果和对应通知消息的会话页面意图;Figure 11 shows the intent of a session page displaying the processing results and corresponding notification messages in one embodiment;

图12为另一个实施例中对智能机器人进行配置的步骤的流程示意图;Figure 12 is a flowchart illustrating the steps for configuring an intelligent robot in another embodiment;

图13为另一个实施例中通知消息的处理方法的流程示意图;Figure 13 is a flowchart illustrating a notification message processing method in another embodiment;

图14为一个实施例中FunView跨平台框架的结构框图;Figure 14 is a structural block diagram of the FunView cross-platform framework in one embodiment;

图15为一个实施例中通知消息的处理装置的结构框图;Figure 15 is a structural block diagram of a notification message processing device in one embodiment;

图16为另一个实施例中通知消息的处理装置的结构框图;Figure 16 is a structural block diagram of a notification message processing device in another embodiment;

图17为另一个实施例中通知消息的处理装置的结构框图;Figure 17 is a structural block diagram of a notification message processing device in another embodiment;

图18为一个实施例中计算机设备的内部结构图;Figure 18 is an internal structure diagram of a computer device in one embodiment;

图19为另一个实施例中计算机设备的内部结构图。Figure 19 is an internal structural diagram of a computer device in another embodiment.

具体实施方式Detailed Implementation

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

本申请实施例提供的通知消息的处理方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与子应用的应用后台104和智能机器人的后台(简称机器人后台)106进行通信。数据存储系统可以存储应用后台104需要处理的数据。数据存储系统可以集成在应用后台104上,也可以放在云上或其他网络服务器上。终端102接收智能机器人对应的机器人后台106推送子应用的通知消息;在母应用的会话页面中,以目标消息卡片的形式显示通知消息;响应于在目标消息卡片上触发的交互操作,通过智能机器人向子应用的应用后台104发送交互请求;接收智能机器人对应的机器人后台106返回的针对交互请求的处理结果;基于处理结果对通知消息的处理状态进行更新并显示。The notification message processing method provided in this application embodiment can be applied to the application environment shown in Figure 1. The terminal 102 communicates with the application backend 104 of the sub-application and the backend of the intelligent robot (hereinafter referred to as the robot backend) 106 via a network. A data storage system can store the data that the application backend 104 needs to process. The data storage system can be integrated into the application backend 104 or placed in the cloud or other network servers. The terminal 102 receives notification messages from the sub-application pushed by the robot backend 106 corresponding to the intelligent robot; displays the notification messages as target message cards in the session page of the parent application; responds to interactive operations triggered on the target message card, sends an interaction request to the application backend 104 of the sub-application through the intelligent robot; receives the processing result returned by the robot backend 106 corresponding to the intelligent robot in response to the interaction request; and updates and displays the processing status of the notification messages based on the processing result.

其中,其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调和智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices, etc.

应用后台104和机器人后台106分别可以是独立的物理服务器,也可以是区块链系统中的服务节点,该区块链系统中的各服务节点之间形成组成点对点(P2P,Peer To Peer)网络,P2P协议是一个运行在传输控制协议(TCP,Transmission Control Protocol)协议之上的应用层协议。Application backend 104 and robot backend 106 can be independent physical servers or service nodes in a blockchain system. The service nodes in the blockchain system form a peer-to-peer (P2P) network. The P2P protocol is an application layer protocol that runs on top of the Transmission Control Protocol (TCP).

此外,应用后台104和机器人后台106分别可以是多个物理服务器构成的服务器集群,可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。In addition, the application backend 104 and the robot backend 106 can be server clusters composed of multiple physical servers, and can be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

在一个实施例中,如图2所示,提供了一种通知消息的处理方法,以该方法应用于图1中的终端102为例进行说明,包括以下步骤:In one embodiment, as shown in FIG2, a method for processing notification messages is provided. Taking the application of this method to terminal 102 in FIG1 as an example, the method includes the following steps:

S202,接收智能机器人推送子应用的通知消息。S202, Receive notification messages from the intelligent robot pushing sub-applications.

其中,智能机器人可以是机器人后台虚拟的机器人,在母应用(如通信应用)上为该智能机器人配置了通信账号,各操作人员在母应用上可以实现与该智能机器人进行交互。例如,操作人员在通信群组的会话页面或通讯录中某成员对象的会话页面@智能机器人,从而可以实时进行交互,如向智能机器人提问。又例如,当其它操作人员在子应用发起一个待办任务,智能机器人可以获得该待办任务的通知消息,向处理该待办任务的负责人的通信账号推送通知消息。此外,该智能机器人还可以与应用后台进行交互。The intelligent robot can be a virtual robot in the background, configured with a communication account on the parent application (such as a communication application). Operators can interact with the intelligent robot on the parent application. For example, an operator can @ the intelligent robot on the conversation page of a communication group or the conversation page of a member in their address book, thus enabling real-time interaction, such as asking the intelligent robot a question. Another example is when another operator initiates a task in a sub-application; the intelligent robot can receive a notification message for that task and push it to the communication account of the person responsible for handling it. Furthermore, the intelligent robot can also interact with the application's backend.

子应用可以指在母应用提供的系统环境下运行的应用程序,如网盘应用、智慧交通应用、企业的待办事务应用、投屏应用、直播应用、会议应用以及其它移动应用;此外,该子应用也可以指在母应用中申请的公账号。母应用可以是为子应用提供运行的系统环境的应用程序,包括通信应用、办公应用或支付应用等,该通信应用可以是企业通信应用或个人通信应用。Sub-applications can refer to applications running within the system environment provided by the parent application, such as cloud storage applications, smart transportation applications, enterprise to-do list applications, screen mirroring applications, live streaming applications, conferencing applications, and other mobile applications. Additionally, a sub-application can also refer to a public account applied for within the parent application. The parent application can be an application that provides the system environment for the sub-application, including communication applications, office applications, or payment applications; the communication application can be an enterprise communication application or a personal communication application.

通知消息可以是:请求目标对象赋予文件访问权限的消息、邀请目标对象加入目标任务组的消息、提示所述目标对象完成待办任务的消息,以及提示目标对象有其他对象对目标文件执行了第一操作或第二操作的消息。该目标文件可以是目标的文档。该第一操作可以是对目标文件进行编辑、点赞、收藏或评论等操作。第二操作可以是上传目标文件的操作。The notification message can be: a message requesting the target object to grant file access permissions, a message inviting the target object to join the target task group, a message prompting the target object to complete the pending task, and a message notifying the target object that another object has performed a first operation or a second operation on the target file. The target file can be a document of the target. The first operation can be editing, liking, saving, or commenting on the target file. The second operation can be uploading the target file.

在一个实施例中,S202具体可以包括:终端接收智能机器人推送子应用触发目标事件时获得的通知消息。例如,终端通过母应用接收智能机器人向目标通信群组或群组成员对象推送的子应用触发目标事件时获得的通知消息。In one embodiment, S202 may specifically include: the terminal receiving a notification message obtained when a sub-application pushed by a smart robot triggers a target event. For example, the terminal receives a notification message through the parent application when a sub-application pushed by a smart robot to a target communication group or group member object triggers a target event.

其中,目标事件包括:邀请目标对象加入目标任务组、请求目标对象赋予文件访问权限、提示目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。目标事件与通知消息相对应,如目标事件为邀请目标对象加入目标任务组,那么通知消息即为邀请目标对象加入目标任务组的消息。The target events include: inviting the target object to join the target task group, requesting the target object to grant file access permissions, prompting the target object to complete the pending task, and other objects performing at least one of the first or second operations on the target file. Target events correspond to notification messages; for example, if the target event is inviting the target object to join the target task group, then the notification message will be the message inviting the target object to join the target task group.

该目标任务组可以是处理目标任务的通信群组、任务小组或网盘的个人空间或共享空间等。The target task group can be a communication group, task team, or personal or shared space on a cloud drive for handling the target task.

文件访问权限可以是访问目标文件时所需的权限信息,具有该权限信息的访问方被允许访问目标文件,不具有该权限信息的访问方将无法访问目标文件。File access permissions are the permission information required to access a target file. Those with the required permissions are allowed to access the target file, while those without the required permissions will not be able to access the target file.

待办任务可以是操作人员(即发起方)通过子应用发起的需要目标对象(如负责人)审核的任务,如申请调级、请假以及财务保险等任务。Tasks to be done can be tasks initiated by operators (i.e., initiators) through sub-applications that require approval from the target (such as the person in charge), such as applying for a promotion, requesting leave, and financial insurance.

S204,在母应用的会话页面中,以目标消息卡片的形式显示通知消息。S204, In the parent application's session page, the notification message is displayed as a target message card.

其中,目标消息卡片可以是显示通知消息的载体,即通知消息在目标消息卡片中显示,从而该通知消息是以卡片形式显示在母应用的会话页面。目标消息卡片可以是基于跨平台引擎生成的跨平台应用的模板卡片,如可以在不同操作系统的母应用中均可应用。该目标消息卡片的卡片类型可以是交互式、图文式、选择型或文本通知型,或者上述两两类型的混合型。The target message card can be a carrier for displaying notification messages; that is, the notification message is displayed in the target message card, thus appearing as a card on the parent application's session page. The target message card can be a template card for a cross-platform application generated based on a cross-platform engine, meaning it can be applied to parent applications on different operating systems. The card type of the target message card can be interactive, graphic/text, selection-based, or text notification, or a hybrid of two or more of these types.

会话页面可以是目标通信群组中各成员对象(包括目标对象)以及智能机器人之间进行会话的页面,或者目标对象与智能机器人进行交互的页面。A conversation page can be a page for conversations between members of the target communication group (including the target object) and the intelligent robot, or a page for interaction between the target object and the intelligent robot.

在一个实施例中,当接收到通知消息之后,终端可以在母应用的消息首页显示该通知消息的关键词,如在消息首页的智能机器人的消息入口栏显示该通知消息的关键词,或在目标通信群组的消息入口栏显示该通知消息的关键词。当智能机器人的消息入口栏或目标通信群组的消息入口栏被触发时,进入智能机器人的会话页面或目标通信群组的会话页面。In one embodiment, upon receiving a notification message, the terminal can display the keyword of the notification message on the parent application's message homepage, such as displaying the keyword in the message entry bar of the smart robot on the message homepage, or displaying the keyword in the message entry bar of the target communication group. When the message entry bar of the smart robot or the message entry bar of the target communication group is triggered, the user is directed to the conversation page of the smart robot or the conversation page of the target communication group.

在一个实施例中,终端可以依据通知消息确定业务类型;基于业务类型获取匹配的目标消息卡片,从而在母应用的会话页面中,以目标消息卡片的形式显示通知消息。该业务类型可以是加入任务组的业务、文件访问权限的请求业务、待办任务的提示业务、文件交互业务和上传文件的提示业务等类型。In one embodiment, the terminal can determine the service type based on the notification message; obtain a matching target message card based on the service type, and then display the notification message in the form of a target message card in the session page of the parent application. This service type can be, for example, a service to join a task group, a request for file access permissions, a notification for pending tasks, a file interaction service, or a notification for uploading files.

其中,不同的业务类型可以对应不同模板的消息卡片,如当业务类型为邀请目标对象加入目标任务组的业务时,该目标消息卡片可以是交互式的模型卡片,目标对象在点击该目标消息卡片时,可以查看该目标任务组的信息以及加入该目标任务组。Different business types can correspond to different template message cards. For example, when the business type is to invite a target object to join a target task group, the target message card can be an interactive model card. When the target object clicks on the target message card, it can view the information of the target task group and join the target task group.

不同的业务类型可以对应不同的卡片类型,具体地:加入任务组的业务类型,可以采用文本通知型或交互式的卡片类型;文件访问权限的请求业务类型,可以采用交互式或选择型的卡片类型;待办任务的提示业务类型,可以采用交互式或图文式的卡片类型;文件交互业务和上传文件的提示业务类型,可以采用文本通知型的卡片类型。Different business types can correspond to different card types. Specifically: business types that involve joining a task group can use text notification or interactive card types; business types that request file access permissions can use interactive or selection card types; business types that provide reminders for pending tasks can use interactive or graphic card types; and business types that involve file interaction and file upload reminders can use text notification card types.

接下来,结合不同的场景对S204进行说明,具体如下:Next, S204 will be explained in different scenarios, as follows:

场景1,文本通知型的应用场景Scenario 1: Text notification application scenario

在一个实例中,当基于通知消息对应的业务类型获取到文本通知型的目标消息卡片时,在母应用的会话页面显示目标消息卡片,并将通知消息显示于该目标消息卡片中。此外,当交互的对象为文件时,还会将该文件的文件信息一并显示于目标消息卡片中。In one instance, when a text notification-type target message card is obtained based on the business type corresponding to the notification message, the target message card is displayed on the parent application's session page, and the notification message is also displayed within that target message card. Furthermore, when the object of interaction is a file, the file information of that file is also displayed in the target message card.

例如,当操作人员(如张三)通过网盘应用上传了一份网盘产品介绍的文档,此时网盘应用生成一个通知消息并发送给智能机器人,或者网盘应用发送一个上传消息给智能机器人,以使智能机器人生成一个通知消息,然后智能机器人将该通知消息推送给指定的目标对象或推送到该操作人员所在的目标通信群组,此外还可以将该文档一并进行推送。其中,该通知消息用于向目标对象提示张三上传了一份文档,对应的业务类型即为上传文档的提示业务类型,获取该业务类型对应的目标消息卡片,然后将该通知消息和文档信息显示于目标消息卡片,如图3的(a)图所示。For example, when an operator (such as Zhang San) uploads a document introducing the cloud storage product through a cloud storage application, the cloud storage application generates a notification message and sends it to the intelligent robot, or the cloud storage application sends an upload message to the intelligent robot, causing the intelligent robot to generate a notification message. The intelligent robot then pushes this notification message to a designated target or to the target communication group where the operator is located. In addition, the document can also be pushed along with the notification message. This notification message is used to inform the target that Zhang San has uploaded a document. The corresponding business type is the document upload notification business type. The system retrieves the target message card corresponding to this business type and then displays the notification message and document information on the target message card, as shown in Figure 3(a).

当操作人员在编辑了XX版本的需求文档后,网盘应用会向智能机器人发送包括文档编辑内容的通知消息,或直接发送文档的编辑内容,以使智能机器人可以根据该编辑内容生成通知消息,然后智能机器人将该通知消息推送给目标对象或推送到该操作人员所在的目标通信群组。其中,该通知消息用于向目标对象提示张三上传了编辑了文档,对应的业务类型即为文档交互业务类型,获取该业务类型对应的目标消息卡片,然后将包括编辑内容的通知消息显示于目标消息卡片,如图3的(b)图所示。When an operator edits a version of the requirements document, the cloud storage application sends a notification message containing the document's edited content to the intelligent robot, or directly sends the edited content. This allows the intelligent robot to generate a notification message based on the edited content, which is then pushed to the target user or to the target communication group where the operator is located. Specifically, this notification message informs the target user that Zhang San has uploaded and edited a document; the corresponding business type is the document interaction business type. The application retrieves the target message card corresponding to this business type and displays the notification message containing the edited content on the target message card, as shown in Figure 3(b).

当操作人员在待办事务应用中发起离职申请,根据填写的离职内容生成离职文件,然后向智能机器人发送离职文件和通知消息,或者发送离职文件,以使智能机器人根据该离职文件生成通知消息,智能机器人将该通知消息和离职文件推送给目标对象。其中,该通知消息用于向目标对象发起离职申请的提示,对应的业务类型即为待办任务的提示业务类型,获取该业务类型对应的目标消息卡片,然后将离职文件和通知消息显示于目标消息卡片,如图3的(c)图所示。When an operator initiates a resignation application in the to-do list application, a resignation document is generated based on the filled-in resignation information. The resignation document and notification message are then sent to the intelligent robot, or the operator sends the resignation document, prompting the intelligent robot to generate a notification message based on the resignation document. The intelligent robot then pushes the notification message and resignation document to the target recipient. The notification message serves as a prompt to the target recipient regarding the resignation application. The corresponding business type is the prompt business type of the to-do list task. The system retrieves the target message card corresponding to this business type and then displays the resignation document and notification message on the target message card, as shown in Figure 3(c).

当操作人员在待办事务应用中发起待办任务,如某个应用程序的迭代任务,将包括该任务的名称、所属清单、参与者和到期时间的通知消息发送给智能机器人,或者将该任务的名称、所属清单、参与者和到期时间发送给智能机器人,以使智能机器人根据这些信息生成通知消息,然后将该通知消息推送给目标对象,终端通过母应用将推送给目标对象的通知消息显示于目标消息卡片,如图3的(d)图所示。When an operator initiates a task in a task application, such as an iterative task of an application, a notification message including the task name, the list to which it belongs, the participants, and the due date is sent to the intelligent robot, or the task name, the list to which it belongs, the participants, and the due date are sent to the intelligent robot, so that the intelligent robot can generate a notification message based on this information, and then push the notification message to the target object. The terminal displays the notification message pushed to the target object in the target message card through the parent application, as shown in Figure 3(d).

场景2,图文式的应用场景Scenario 2: Image and text-based application scenarios

在一个实例中,当通知消息是邀请目标对象加入目标任务组的消息时,终端基于该通知消息对应的业务类型获取到图文式的目标消息卡片,终端将该目标消息卡片划分第一区域和突出显示的第二区域;其中,通知消息显示于第一区域;然后,在第二区域中显示于目标任务组关联的图标和关键词。In one instance, when the notification message is an invitation to a target object to join a target task group, the terminal obtains a graphic target message card based on the service type corresponding to the notification message. The terminal divides the target message card into a first area and a highlighted second area; the notification message is displayed in the first area; and then, the icon and keywords associated with the target task group are displayed in the second area.

其中,目标消息卡片中的第一区域主要用于显示文字内容;第二区域可以指主体区,主要用于显示图形,或图形与文字混合显示。The first area of the target message card is mainly used to display text content; the second area can refer to the main area, which is mainly used to display graphics, or a mixture of graphics and text.

例如,若操作人员的网盘应用中存在一个空间,该操作人员可以要求目标对象(如同事)加入该空间,若邀请目标对象加入该空间,此时网盘应用向智能机器人发送基于邀请生成的通知消息,或者发送邀请以使智能机器人在接收到邀请后生成通知消息,智能机器人将该通知消息发送到目标对象的通信账号,此时母应用可以将该通知消息的主题信息显示于第一区域,如张三邀请你加入空间,此外在第二区域显示该通知消息中关于空间的空间名称以及空间图标,如图4的(a)图所示。其中,第二区域以不同于第一区域的颜色进行显示,从而可以强化主体,强调仪式感。For example, if an operator has a space in their cloud storage application, the operator can request a target (such as a colleague) to join that space. If the target is invited, the cloud storage application sends a notification message generated based on the invitation to the intelligent robot, or sends an invitation so that the intelligent robot generates a notification message upon receiving the invitation. The intelligent robot then sends this notification message to the target's communication account. The parent application can then display the main information of the notification message in the first area, such as "Zhang San invites you to join the space." Additionally, the second area displays the space name and icon from the notification message, as shown in Figure 4(a). The second area uses a different color than the first area to emphasize the main theme and create a sense of occasion.

此外,若操作人员在待办事务应用邀请目标对象加入清单,该清单可以是某个目标任务的任务组(简称目标任务组),此时该待办事务应用向智能机器人发送基于加入消息生成的通知消息,或发送加入信息以使智能机器人基于该加入信息生成通知消息,然后智能机器人将该通知消息推送给目标对象的通信账号,此时母应用可以将该通知消息的主题信息显示于第一区域,并在第二区域显示该通知消息中关于目标任务组的组名、创建者名称以及已加入目标任务组的成员标识,如图4的(b)图所示。Furthermore, if an operator invites a target to join a list in a to-do application, the list can be a task group for a target task (hereinafter referred to as the target task group). In this case, the to-do application sends a notification message generated based on the join message to the intelligent robot, or sends join information so that the intelligent robot can generate a notification message based on the join information. Then, the intelligent robot pushes the notification message to the target's communication account. At this time, the parent application can display the subject information of the notification message in the first area and display the group name, creator name, and member identifier of the target task group in the notification message in the second area, as shown in Figure 4(b).

场景3,交互式的应用场景Scenario 3: Interactive Application Scenarios

在交互式的应用场景中,可以通过控件的方式进行交互,此时在目标消息卡片中显示相应功能的控件;此外,还可以以类似于会话的形式进行交互,此时在目标消息卡片中以类似于会话的结构进行显示,并提供评论或回复的快捷入口。接下来对这两种方式进行阐述,具体如下:In interactive application scenarios, interaction can be achieved through controls, which display the corresponding functional controls in the target message card. Alternatively, interaction can be conducted in a conversation-like format, displaying the message in a similar structure and providing quick access to comments or replies. These two methods will be explained in detail below:

(1)以控件方式的交互场景(1) Interaction scenarios using controls

在一个实施例中,当通知消息是请求目标对象赋予文件访问权限的消息时,终端基于该通知消息对应的业务类型获取到交互式的目标消息卡片,在目标消息卡片中显示通知消息以及同意授权控件,此外还可以目标消息卡片中显示候选授权选项和拒绝授权控件。In one embodiment, when the notification message is a message requesting the target object to grant file access permissions, the terminal obtains an interactive target message card based on the service type corresponding to the notification message, displays the notification message and an authorization consent control in the target message card, and may also display candidate authorization options and an authorization denial control in the target message card.

其中,同意授权控件用于触发授权请求,以便应用后台基于该授权请求赋予操作人员(如请求文件访问权限的人员)文件访问权限。拥有该文件访问权限的操作人员,可以访问对应的文件。The authorization control triggers an authorization request, allowing the application backend to grant file access permissions to operators (such as those requesting file access). Operators with file access permissions can then access the corresponding file.

拒绝授权控件用于触发拒绝授权请求,以便应用后台基于该拒绝授权请求拒绝赋予操作人员的文件访问权限。不具有该文件访问权限的操作人员,将无法访问对应的文件。The Deny Authorization control is used to trigger a denial authorization request, so that the application backend can deny file access permissions to the operator based on the denial authorization request. Operators who do not have the necessary file access permissions will not be able to access the corresponding file.

候选授权选项可以包括可编辑权限和仅预览权限等授权选项,此外还可以包括拒绝授权选项。其中,可编辑权限的授权选项可以触发可编辑的授权请求,以便基于该可编辑的授权请求赋予操作人员编辑和访问权限,从而操作人员可以访问以及编辑对应的文件。仅预览权限的授权选项可以触发仅预览的授权请求,以便基于该仅预览的授权请求赋予操作人员仅预览的访问权限,从而操作人员可以访问对应的文件,但无法对该文件进行编辑。The candidate authorization options can include editable permissions and preview-only permissions, as well as a deny authorization option. The editable permission authorization option triggers an editable authorization request, granting the operator editable and access permissions, allowing them to access and edit the corresponding file. The preview-only permission authorization option triggers a preview-only authorization request, granting the operator preview-only access permissions, allowing them to access the corresponding file but not edit it.

例如,操作人员在文档应用发起了一个文档访问权限的申请,文档应用此时向智能机器人发送基于该申请生成的通知消息,或发送该申请以使智能机器人基于该申请生成通知消息,然后智能机器人将通知消息发送给目标对象。母应用在与文档应用之间的会话页面显示目标消息卡片,然后将通知消息以结构化的形式显示在目标消息卡片中,如在通知消息中提取需要申请的文档名称、申请人名称以及申请理由,此外还会在该目标卡片中显示拒绝授权控件和同意授权控件,如图5所示。For example, an operator initiates a document access permission request in a document application. The document application then sends a notification message generated based on this request to the intelligent robot, or sends the request to cause the intelligent robot to generate a notification message based on the request. The intelligent robot then sends the notification message to the target object. The parent application displays the target message card on the conversation page between the parent and document applications, and then displays the notification message in a structured format within the target message card. This includes extracting the name of the document to be requested, the applicant's name, and the reason for the request. Additionally, the target card displays "deny authorization" and "accept authorization" controls, as shown in Figure 5.

此外,在目标消息卡片中显示拒绝授权控件和同意授权控件的基础上,还可以显示候选授权选项,该候选授权选项以下拉菜单的方式显示于目标消息卡片中,如图6的(a)图和(b)图所示。In addition to displaying the deny authorization control and the agree authorization control in the target message card, candidate authorization options can also be displayed. These candidate authorization options are displayed in the target message card in the form of a drop-down menu, as shown in Figures 6(a) and (b).

(2)以类似于会话形式的交互场景(2) Interactive scenarios similar to conversations

在一个实施例中,当通知消息是对目标文件进行评论或对评论进行回复的提示消息,终端基于该通知消息对应的业务类型获取到交互式的目标消息卡片,在目标消息卡片中以类似于会话的显示通知消息中的评论信息或者对评论信息的回复信息,如图7的(a)图、(b)图和(c)图所示。其中,划线评论可以指对文档中的某一部分内容进行评论。因此,目标对象可以查看目标文件的评论信息或者对评论信息的回复信息,而且还可以在该显示通知消息的页面对评论信息和回复信息进行回复。In one embodiment, when the notification message is a prompt message for commenting on or replying to a target file, the terminal obtains an interactive target message card based on the service type corresponding to the notification message. The target message card displays the comment information or reply information from the notification message in a conversation-like manner, as shown in Figures 7(a), (b), and (c). Here, an underlined comment can refer to commenting on a specific part of the document. Therefore, the target user can view the comment information or reply information of the target file, and can also reply to the comment information and reply information on the page displaying the notification message.

在另一个实施例中,当通知消息是者是操作人员针对待办任务发起了通知时,终端基于该通知消息对应的业务类型获取到交互式的目标消息卡片,在目标消息卡片中以类似于会话的显示该通知消息中关于操作人员的通知内容,如图7的(d)图所示。In another embodiment, when the notification message is initiated by the operator for a pending task, the terminal obtains an interactive target message card based on the service type corresponding to the notification message, and displays the notification content about the operator in the notification message in the target message card in a conversation-like manner, as shown in Figure 7(d).

此外,当通知消息是对目标文件进行点赞的提示消息,在目标消息卡片中以类似于会话的显示通知消息中的点赞信息,如图8的(a)图和(b)图所示。其中,图8的(a)图是关于文档的点赞,图8的(a)图是关于文档的评论信息的点赞。Furthermore, when the notification message is a prompt message indicating a "like" to the target file, the "like" information from the notification message is displayed in the target message card in a conversation-like manner, as shown in Figures 8(a) and 8(b). Figure 8(a) shows a "like" for a document, and Figure 8(b) shows a "like" for a comment on a document.

场景4,选择型的应用场景Scenario 4, Selective Application Scenarios

在一个实施例中,当通知消息是提示目标对象代办任务的进度消息时,终端基于该通知消息对应的业务类型获取到交互式的目标消息卡片,在目标消息卡片中显示通知消息和相应的选择控件。In one embodiment, when the notification message is a progress message indicating the task to be performed by the target object, the terminal obtains an interactive target message card based on the service type corresponding to the notification message, and displays the notification message and corresponding selection controls in the target message card.

例如,当操作人员在待办事务应用中发起待办任务的进度查询或待办事务应用自动发起的进度查询,待办事务应用将基于该待办任务的进度信息、任务名称、所属清单、参与者和到期时间生成的通知消息发送给智能机器人,或发送该待办任务的进度信息、任务名称、所属清单、参与者和到期时间发送给智能机器人,以使智能机器人根据这些信息生成通知消息,然后智能机器人将该通知消息推送给目标对象,然后将待办任务的状态、通知消息、稍后提醒的控件和标记为完成的控件显示于目标消息卡片,如图9所示。其中,待办任务的状态可以以标题的形式在目标消息卡片中显示,从而突出待办任务的状态。For example, when an operator initiates a progress query for a task in the to-do list application, or when the application automatically initiates a progress query, the application sends a notification message to the intelligent robot based on the task's progress information, task name, belonging list, participants, and due date. Alternatively, it sends the same information to the intelligent robot so that the robot can generate a notification message. The intelligent robot then pushes this notification message to the target object, and displays the task's status, the notification message, a "Remind Later" control, and a "Completed" control on the target message card, as shown in Figure 9. The task's status can be displayed as a title in the target message card to highlight its position.

S206,响应于在目标消息卡片上触发的交互操作,通过智能机器人向子应用的应用后台发送交互请求。S206, in response to an interactive operation triggered on the target message card, sends an interactive request to the application backend of the sub-application via the intelligent robot.

其中,子应用的应用后台可以是子应用的后台服务器。The application backend of a sub-application can be the backend server of the sub-application.

在一个实施例中,S206具体可以包括:终端响应于在目标消息卡片上触发的交互操作,生成匹配的交互消息;对交互消息进行加密;将加密后的交互消息作为消息体进行封装,得到交互请求;通过智能机器人向子应用的应用后台发送交互请求。In one embodiment, S206 may specifically include: the terminal generating a matching interaction message in response to an interaction operation triggered on the target message card; encrypting the interaction message; encapsulating the encrypted interaction message as a message body to obtain an interaction request; and sending the interaction request to the application backend of the sub-application through the intelligent robot.

其中,该交互消息可以是执行该交互操作所获得的信息,如打开文件的信息、赋予文件访问权限的信息等。交互消息的加密可以是基于对称加密方式或非对称加密方式的加密。The interactive message can be information obtained by performing the interactive operation, such as information about opening a file or granting file access permissions. The encryption of the interactive message can be based on either symmetric or asymmetric encryption methods.

具体地,终端响应于在目标消息卡片上触发的交互操作,通过母应用向智能机器人的后台发送交互请求,该智能机器人的后台将交互请求发送给子应用的应用后台。Specifically, in response to an interactive operation triggered on the target message card, the terminal sends an interactive request to the background of the intelligent robot through the parent application, and the background of the intelligent robot sends the interactive request to the application background of the sub-application.

在一个实施例中,当通知消息是请求目标对象赋予文件访问权限的消息时,终端在目标消息卡片中显示同意授权控件。S206具体可以包括:终端响应于对同意授权控件的触发操作,通过智能机器人向子应用的应用后台发送授权请求,可参考图5。从而,请求获取文件访问权限的操作人员可以获得文件访问权限。In one embodiment, when the notification message requests file access permissions from the target object, the terminal displays an authorization control in the target message card. S206 may specifically include: in response to the triggering of the authorization control, the terminal sends an authorization request to the application backend of the sub-application via a smart robot, as shown in Figure 5. Thus, the operator requesting file access permissions can obtain them.

在一个实施例中,当通知消息是请求目标对象赋予文件访问权限的消息时,除了可以在目标消息卡片上显示同意授权控件,还可以在目标消息卡片中显示候选授权选项,可参考图5;终端响应于对候选授权选项的选择操作,选择目标授权项。S206具体可以包括:终端响应于对同意授权控件的触发操作,基于目标授权项生成授权请求,并通过智能机器人向子应用的应用后台发送授权请求。In one embodiment, when the notification message is a request for file access permissions from the target object, in addition to displaying an authorization control on the target message card, candidate authorization options can also be displayed in the target message card, as shown in Figure 5; the terminal responds to the selection operation of the candidate authorization options and selects the target authorization item. S206 may specifically include: the terminal responds to the triggering operation of the authorization control, generates an authorization request based on the target authorization item, and sends the authorization request to the application backend of the sub-application through the intelligent robot.

其中,候选授权选项可以包括可编辑权限和仅预览权限等授权选项,因此,通过上述方案可以选择其中一种权限赋予请求获取文件访问权限的操作人员,从而可以根据实际情况向不同人员开发不同的权限,既能向相关人员共享信息,还可以有效提高信息安全。The candidate authorization options can include editing permissions and preview-only permissions. Therefore, the above scheme allows you to select one of the permissions to grant file access permissions to the operator requesting the permission. This allows you to develop different permissions for different people according to the actual situation, which can not only share information with relevant people, but also effectively improve information security.

若需要拒绝给请求获取文件访问权限的操作人员赋予权限时,可以通过设置拒绝授权控件快速拒绝授权,具体包括:终端在对应于同意授权控件的位置显示拒绝授权控件;响应于对拒绝授权控件的触发操作,通过智能机器人向子应用的应用后台发送拒绝授权请求。因此,通过上述方案可以在会话页面实现拒绝授权的操作,提高了操作效率。If it's necessary to deny permissions to operators requesting file access, authorization denial can be quickly achieved by setting up a denial control. Specifically, this involves displaying a denial control on the terminal in the location corresponding to the grant-grant control; and, in response to triggering the denial control, sending a denial request to the application's backend via a smart chatbot. Therefore, this solution allows for authorization denial on the session page, improving operational efficiency.

在一个实施例中,当通知消息是邀请目标对象加入目标任务组的消息时,终端在目标消息卡片中划分第一区域和突出显示的第二区域;通知消息显示于第一区域;在第二区域中显示于目标任务组关联的图标和关键词,可参考图4。S206具体可以包括:终端响应于在目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;响应于在加入页面或确认窗口上触发的加入操作,通过智能机器人向子应用的应用后台发送加入请求;或者,响应于在加入页面或确认窗口上触发的拒绝加入操作,通过智能机器人向子应用的应用后台发送拒绝加入请求。In one embodiment, when the notification message is an invitation for a target object to join a target task group, the terminal divides the target message card into a first area and a highlighted second area; the notification message is displayed in the first area; and the icon and keywords associated with the target task group are displayed in the second area, as shown in Figure 4. S206 may specifically include: the terminal responding to an interactive operation triggered on the second area of the target message card by displaying a join page or confirmation window; responding to a join operation triggered on the join page or confirmation window by sending a join request to the application backend of the sub-application via a smart robot; or, responding to a refuse join operation triggered on the join page or confirmation window by sending a refuse join request to the application backend of the sub-application via a smart robot.

在一个实施例中,当通知消息是提示目标对象完成待办任务的消息;S206具体可以包括:终端响应于在目标消息卡片上触发的显示操作,在母应用的任务处理页面显示待办任务;当完成待办任务时,通过智能机器人向子应用的应用后台发送任务状态变更请求。In one embodiment, when the notification message is a message prompting the target object to complete a pending task; S206 may specifically include: the terminal responding to a display operation triggered on the target message card and displaying the pending task on the task processing page of the parent application; when the pending task is completed, sending a task status change request to the application background of the sub-application through the intelligent robot.

S208,接收智能机器人返回的针对交互请求的处理结果。S208, Receive the processing result of the interaction request returned by the intelligent robot.

其中,该处理结果可以是应用后台针对交互进行相应处理所得的结果。例如,若交互请求为授权请求时,该处理结果可以是给请求获取文件访问权限的操作人员赋予文件访问权限,该文件访问权限可以是可编辑文件的权限,也可以是仅预览文件的权限。又例如,若交互请求为加入目标任务组的请求时,该处理结果将请求加入目标任务组的操作人员加入该目标任务组的结果。The processing result can be the result of the application backend processing the interaction. For example, if the interaction request is an authorization request, the processing result could be granting file access permissions to the operator requesting the file access permission; this file access permission could be the permission to edit the file or the permission to preview the file only. As another example, if the interaction request is a request to join a target task group, the processing result would be the result of the operator requesting to join the target task group being added to that target task group.

S210,基于处理结果对通知消息的处理状态进行更新并显示。S210, Update and display the processing status of the notification message based on the processing result.

在一个实施例中,在接收到处理结果之后,终端可以基于该处理结果对通知消息的处理状态进行更新,然后在会话页面将更新后的通知消息以目标消息卡片的形式进行显示。In one embodiment, after receiving the processing result, the terminal can update the processing status of the notification message based on the processing result, and then display the updated notification message as a target message card on the session page.

例如,如图5所示,当目标对象点击了图5中的同意授权控件时,终端会通过智能机器人向文档应用的应用后台发送同意赋予请求方(即请求获取文件访问权限的操作人员)权限的授权请求,应用后台在接收到该授权请求之后,赋予该请求方文件访问权限,从而该请求方具有文件访问权限,此外,应用后台会将处理结果返回给目标对象的终端,从而根据该处理结果对通知消息进行处理状态更新,在会话页面将更新后的通知消息以目标消息卡片的形式进行显示,如图5所示。同理,当目标对象在图6中选择了可编辑或仅预览的授权选项之后,在会话页面显示更新处理状态后的通知消息,包括已开通可编辑权限或已开通仅预览权限,具体可参考图6。For example, as shown in Figure 5, when the target user clicks the "Agree to Authorize" control in Figure 5, the terminal sends an authorization request to the document application's backend via the intelligent robot, agreeing to grant permissions to the requester (i.e., the operator requesting file access permissions). Upon receiving the authorization request, the application backend grants the requester file access permissions, thus granting the requester file access rights. Furthermore, the application backend returns the processing result to the target user's terminal, updating the processing status of the notification message based on this result. The updated notification message is then displayed as a target message card on the conversation page, as shown in Figure 5. Similarly, when the target user selects the editable or preview-only authorization option in Figure 6, the updated processing status notification message is displayed on the conversation page, indicating whether editable permissions or preview-only permissions have been granted, as detailed in Figure 6.

此外,应用后台还会将处理结果发送给请求方的终端,基于该处理结果对通知消息进行状态更新,在会话页面将更新后的通知消息以目标消息卡片的形式进行显示,如图11所示。In addition, the application backend will send the processing result to the requester's terminal, update the status of the notification message based on the processing result, and display the updated notification message as a target message card on the session page, as shown in Figure 11.

在一个实施例中,当向智能机器人发送交互消息,或在母应用的通信群组中添加智能机器人的通信账号,或将智能机器人的通信账号从通信群组中移除,或进入与智能机器人交互的会话页面,终端生成交互事件;将交互事件进行加密,得到加密交互事件;将加密交互事件回调至智能机器人,以使智能机器人对加密交互事件进行解密,并处理解密所得的交互事件。In one embodiment, when an interactive message is sent to the intelligent robot, or when the intelligent robot's communication account is added to the communication group of the parent application, or when the intelligent robot's communication account is removed from the communication group, or when a session page for interacting with the intelligent robot is entered, the terminal generates an interactive event; the interactive event is encrypted to obtain an encrypted interactive event; the encrypted interactive event is called back to the intelligent robot so that the intelligent robot can decrypt the encrypted interactive event and process the decrypted interactive event.

例如,当目标对象在通信群组中@智能机器人发送文本消息或图文混排消息,或者在与智能机器人交互的会话页面向智能机器人发送文本消息或图文混排消息,此时根据文本消息或图文混排消息生成交互事件,然后将该交互事件进行加密,将所得的加密交互事件发送至智能机器人,以使智能机器人对加密交互事件进行解密,得到交互事件,进而得到文本消息或图文混排消息,然后根据文本消息或图文混排消息进行回复。或者,在通信群组中添加智能机器人的通信账号时,会基于该通信群组的群组账号生成用于绑定的交互事件,然后将该交互事件进行加密,将所得的加密交互事件发送至智能机器人,以使智能机器人对加密交互事件进行解密,得到交互事件,进而得到通信群组的群组账号,然后根据通信群组的群组账号与智能机器人的通信账号进行绑定。For example, when a target sends a text message or a mixed text/image message to the intelligent robot in a communication group, or sends a text message or a mixed text/image message to the intelligent robot on a conversation page, an interaction event is generated based on the text message or mixed text/image message. This interaction event is then encrypted and sent to the intelligent robot, which decrypts it to obtain the interaction event, and subsequently the text message or mixed text/image message, from which it replies. Alternatively, when adding an intelligent robot's communication account to a communication group, an interaction event for binding is generated based on the group's account. This interaction event is then encrypted and sent to the intelligent robot, which decrypts it to obtain the group's account, and subsequently binds the group's account to the intelligent robot's communication account.

上述实施例中,通过接收智能机器人推送子应用的通知消息,以目标消息卡片的形式显示该通知消息,从而通过通知消息的方式触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,通过在目标消息卡片上进行交互操作,将交互请求通过智能机器人发送到子应用的应用后台,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,在接收到智能机器人返回的关于交互请求的处理结果,在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。最后,以智能机器人作为母应用与子应用之间的通信桥梁,可以有效地确保母应用与子应用之间的数据通信,从而使子应用上执行的操作可以及时有效地触达到相应的目标对象,以使目标对象及时地根据通知消息进行交互操作,有利于提高交互效率。In the above embodiments, by receiving notification messages from the intelligent robot pushed to the sub-application, and displaying these notification messages as target message cards, the target object is reached through notification messages. This notifies the target object that another object has performed an operation in the sub-application, and also notifies the target object to perform the corresponding interaction, thus preventing missed interactions due to failure to reach the target object. Furthermore, by performing interaction operations on the target message card, the interaction request is sent to the sub-application's application background via the intelligent robot, eliminating the need to switch from the parent application to the sub-application, improving interaction efficiency. Moreover, upon receiving the processing result of the interaction request from the intelligent robot, the processing status of the notification message is updated and displayed on the conversation page. This notifies the target object that the notification message has been processed, preventing the target object from being unaware that their interaction request has been executed, thus improving user experience. Finally, using the intelligent robot as a communication bridge between the parent and sub-applications effectively ensures data communication between them, allowing operations performed on the sub-application to reach the corresponding target object in a timely and effective manner, enabling the target object to perform timely interaction operations based on the notification messages, further improving interaction efficiency.

为了更加清楚地了解上述方案,这里结合图6、11进行说明,具体如下:To better understand the above scheme, we will explain it in conjunction with Figures 6 and 11, as follows:

当请求方想要获得文档名称a的文档访问权限时,在网盘应用(即子应用)中向目标对象申请获得该文档的文档访问权限,此时网盘应用会智能机器人向目标对象的通信应用(即母应用)发送申请获得文件访问权限的通知消息。母应用接收智能机器人推送子应用的通知消息,然后在母应用的会话页面中,以目标消息卡片的形式显示该通知消息,如图6所示。目标对象若要给该请求方编辑权限,那么可以选择图6中的可编辑的授权选项;若要给该请求方仅预览权限,那么可以选择图6中的仅预览的授权选项,然后点击同意授权控件,此时通过智能机器人向网盘应用的应用后台授权请求,从而网盘应用的应用后台根据该授权请求赋予请求方可编辑或仅预览的权限。在赋予相应的权限之后,一方面将授权的处理结果发送给目标对象,目标对象侧的通信应用接收智能机器人返回的处理结果,基于处理结果对通知消息的处理状态进行更新,如更新为已开通可编辑权限,或更新为已开通仅预览权限,然后进行显示,如图6所示。另一方面,网盘应用还可以通过智能机器人向请求方发送处理结果,结合该通知消息以及处理结果进行显示,如当目标对象同意赋予可编辑的权限时,则将“访问申请已通过”作为主题信息与处理人、访问权限以及通知消息中申请文档的名称一并进行显示,如图11(a)图所示;又如,当目标对象拒绝请求方得到文档的权限时,则将“访问申请被拒绝”作为主题信息与处理人以及通知消息中申请文档的名称一并进行显示,如图11(b)图所示。When a requester wants access to a document with the name 'a', they request access from the target object within the cloud storage application (i.e., the sub-application). At this time, the cloud storage application's intelligent robot sends a notification message requesting file access to the target object's communication application (i.e., the parent application). The parent application receives the notification message pushed by the intelligent robot to the sub-application and then displays the notification message as a target message card in the parent application's conversation page, as shown in Figure 6. If the target object wants to grant the requester editing permissions, they can select the editable authorization option in Figure 6; if they want to grant the requester only preview permissions, they can select the preview-only authorization option in Figure 6 and then click the "Agree to Authorization" control. The intelligent robot then sends an authorization request to the cloud storage application's backend, which grants the requester either editable or preview-only permissions based on the authorization request. After granting the corresponding permissions, the processing result is sent to the target object. The communication application on the target object's side receives the processing result returned by the intelligent robot and updates the processing status of the notification message based on the processing result, such as updating it to "editable permission granted" or "preview-only permission granted," and then displays it, as shown in Figure 6. On the other hand, the cloud storage application can also send the processing result to the requester through the intelligent robot and display it in combination with the notification message and the processing result. For example, when the target object agrees to grant editable permission, "Access request approved" is displayed as the subject information along with the processor, access permissions, and the name of the requested document in the notification message, as shown in Figure 11(a). As another example, when the target object refuses the requester's permission to obtain the document, "Access request denied" is displayed as the subject information along with the processor and the name of the requested document in the notification message, as shown in Figure 11(b).

在一个实施例中,S202之前,可以对智能机器人进行配置,具体的配置过程包括:In one embodiment, prior to S202, the intelligent robot can be configured, and the specific configuration process includes:

S1202,显示机器人详情页面。S1202, Displaying the robot details page.

其中,机器人详情页面可以是显示智能机器人各种信息的页面,智能机器人的信息包括机器人接口地址。The robot details page can be a page that displays various information about the intelligent robot, including the robot's interface address.

在一个实施例中,智能机器人可以将通知消息发送到对应的目标通信群组或目标对象,终端在母应用的会话页面显示对应的消息卡片,然后在消息卡片中显示通知消息。当检测到鼠标指针在该消息卡片上方时,终端通过母应用显示机器人详情页面。In one embodiment, the intelligent robot can send notification messages to the corresponding target communication group or target object. The terminal displays the corresponding message card on the session page of the parent application, and then displays the notification message in the message card. When the mouse pointer is detected above the message card, the terminal displays the robot details page through the parent application.

S1204,响应于在机器人详情页面触发的配置请求操作,显示机器人配置页面。S1204, in response to a configuration request triggered on the robot details page, displays the robot configuration page.

其中,机器人配置页面可以是用于配置机器人参数的页面。The robot configuration page can be a page used to configure robot parameters.

在一个实施例中,配置请求操作包括对机器人详情页面中的机器人接口地址的点击操作;S1204具体可以包括:响应于对机器人详情页面中的机器人接口地址的点击操作,显示机器人配置页面。例如,当目标对象通过鼠标点击机器人详情页面中的机器人接口地址时,从机器人详情页面切换到机器人配置页面。In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page; S1204 may specifically include: displaying the robot configuration page in response to the click on the robot interface address in the robot details page. For example, when the target object clicks on the robot interface address in the robot details page with the mouse, the system switches from the robot details page to the robot configuration page.

S1206,响应于在机器人配置页面触发的配置操作,对智能机器人的消息接收参数和消息发送参数进行配置,以及对智能机器人发送消息的频率参数进行配置。S1206, in response to a configuration operation triggered on the robot configuration page, configures the message receiving parameters and message sending parameters of the intelligent robot, as well as the frequency parameters for the intelligent robot to send messages.

其中,消息接收参数可以是用于机器人接收消息的参数,如配置了该消息接收参数之后,可以接收相应子应用发出的信息,如接收网盘应用发出的请求获取文件访问权限的信息。Among them, the message receiving parameters can be parameters used by the robot to receive messages. For example, after configuring the message receiving parameters, it can receive information sent by the corresponding sub-application, such as receiving information from the cloud storage application requesting to obtain file access permissions.

消息发送参数可以是在接收到子应用发出的信息之后,向绑定智能机器人的通信群组或目标对象推送通知消息。The message sending parameters can be to push notification messages to the communication group or target object bound to the smart robot after receiving information from the sub-application.

频率参数可以是智能机器人向母应用中各通信群组广播消息的最大频次、向单个通信群组发送消息的最大频次、在单位时间调用接口发消息的最大数量以及在发送相同消息包体的消息时并发请求的最大数量。Frequency parameters can be the maximum frequency at which the intelligent robot broadcasts messages to various communication groups in the parent application, the maximum frequency at which it sends messages to a single communication group, the maximum number of messages sent by calling the interface per unit time, and the maximum number of concurrent requests when sending messages with the same message body.

在一个实施例中,S1206中的对智能机器人发送消息的频率参数进行配置的步骤,具体可以包括:终端配置智能机器人向母应用中各通信群组广播消息的频次不超过第一阈值;配置智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, the step of configuring the frequency parameter for the intelligent robot to send messages in S1206 may specifically include: configuring the terminal to ensure that the frequency of the intelligent robot broadcasting messages to each communication group in the parent application does not exceed a first threshold; configuring the intelligent robot to send messages to a single communication group does not exceed a second threshold; configuring the intelligent robot to send messages by calling the interface per unit time does not exceed a third threshold; and configuring the intelligent robot to make concurrent requests when sending messages with the same message body does not exceed a fourth threshold.

在一个实施例中,配置请求操作包括对机器人详情页面中的机器人接口地址的点击操作;当完成智能机器人的消息接收参数、消息发送参数和频率参数的配置时,终端向智能机器人的反向接口地址发起数据传输请求;其中,数据传输请求,用于指示智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送通知消息。In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page; when the configuration of the intelligent robot's message receiving parameters, message sending parameters, and frequency parameters is completed, the terminal initiates a data transmission request to the intelligent robot's reverse interface address; wherein, the data transmission request is used to instruct the intelligent robot to push a notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event.

在一个实施例中,终端获取智能机器人的响应地址;通过响应地址上传更新的控件文案和消息卡片;其中,控件文案用于对目标消息卡片上显示的控件文案进行更新。In one embodiment, the terminal obtains the response address of the intelligent robot; and uploads updated control text and message card through the response address; wherein, the control text is used to update the control text displayed on the target message card.

例如,获取响应地址(response_url)后,可以主动变更原消息卡片的控件文案,或者变更消息卡片。此外,response_url有两个获取来源:一个是主动发消息时设置延迟变更,发送消息成功后会在返回中得到该response_url,该response_url在3个月内有效且能使用一次;另一个是目标对象与目标消息卡片交互时触发的回调事件中包含response_url,该response_url在24小时内有效且能使用一次。For example, after obtaining the response URL, you can actively change the control text of the original message card, or change the message card itself. Furthermore, the response URL can be obtained from two sources: one is by setting a delay when actively sending a message; the response URL will be obtained in the response after successful message sending, and this response URL is valid for 3 months and can be used once. The other source is the callback event triggered when the target object interacts with the target message card, which includes the response URL; this response URL is valid for 24 hours and can be used once.

上述实施例中,通过对智能机器人进行参数设置,可以在子应用发生了相关的操作,可以触发智能机器人向母应用推送通知消息,从而以消息方式触达目标对象,而且还可以接收母应用基于通知消息的交互操作而产生的信息,从而实现母应用与子应用之间的交互。而且,还配置了智能机器人推送消息的频次,可以有效地避免智能机器人推送大量通知消息而造成网络影响。In the above embodiments, by setting parameters for the intelligent robot, when a related operation occurs in the sub-application, the intelligent robot can be triggered to push a notification message to the parent application, thereby reaching the target object via message. Furthermore, it can receive information generated by the parent application's interactive operations based on the notification message, thus realizing interaction between the parent and sub-applications. Moreover, the frequency of the intelligent robot's message pushes is configured, effectively preventing network impact caused by the intelligent robot pushing a large number of notification messages.

在一个实施例中,如图13所示,提供了一种通知消息的处理方法,以该方法应用于智能机器人,即图1中的机器人后台106虚拟出来的机器人为例进行说明,包括以下步骤:In one embodiment, as shown in Figure 13, a method for processing notification messages is provided. Taking the application of this method to an intelligent robot, specifically the robot virtualized by the robot backend 106 in Figure 1, as an example, the method includes the following steps:

S1302,向母应用中的目标对象推送子应用的通知消息,以使母应用以目标消息卡片的形式将通知消息显示于会话页面。S1302, push the notification message of the child application to the target object in the parent application so that the parent application displays the notification message on the session page in the form of a target message card.

其中,母应用可以是为子应用提供运行的系统环境的应用程序,包括通信应用、办公应用或支付应用等,该通信应用可以是企业通信应用或个人通信应用。子应用可以指在母应用提供的系统环境下运行的应用程序,如网盘应用、交通应用、企业的待办事务应用、投屏应用、直播应用、会议应用以及其它移动应用;此外,该子应用也可以指在母应用中申请的公账号。The parent application can be an application that provides the system environment for the child applications, including communication applications, office applications, or payment applications. The communication application can be an enterprise communication application or a personal communication application. The child application can refer to an application that runs in the system environment provided by the parent application, such as cloud storage applications, transportation applications, enterprise to-do list applications, screen mirroring applications, live streaming applications, conferencing applications, and other mobile applications; in addition, the child application can also refer to a public account applied for in the parent application.

通知消息可以是:请求目标对象赋予文件访问权限的消息、邀请目标对象加入目标任务组的消息、提示所述目标对象完成待办任务的消息,以及提示目标对象有其他对象对目标文件执行了第一操作或第二操作的消息。该目标文件可以是目标的文档。该第一操作可以是对目标文件进行编辑、点赞、收藏或评论等操作。第二操作可以是上传目标文件的操作。The notification message can be: a message requesting the target object to grant file access permissions, a message inviting the target object to join the target task group, a message prompting the target object to complete the pending task, and a message notifying the target object that another object has performed a first operation or a second operation on the target file. The target file can be a document of the target. The first operation can be editing, liking, saving, or commenting on the target file. The second operation can be uploading the target file.

在一个实施例中,智能机器人接收子应用在触发目标事件而发出的包括事件内容的通知消息,或接收子应用在触发目标事件而发出的事件内容,基于该事件消息生成通知消息,然后向母应用中的目标对象推送该通知消息,以使母应用在会话页面显示目标消息卡片,并将通知消息显示于目标消息卡片,显示的具体形式和具体内容可以参考图2的相关实施例。In one embodiment, the intelligent robot receives a notification message containing event content sent by a sub-application when a target event is triggered, or receives event content sent by a sub-application when a target event is triggered, generates a notification message based on the event message, and then pushes the notification message to the target object in the parent application so that the parent application displays the target message card on the session page and displays the notification message on the target message card. The specific form and content of the display can be referred to the relevant embodiment in Figure 2.

其中,目标事件包括:邀请目标对象加入目标任务组、请求目标对象赋予文件访问权限、提示目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。需要指出的是,目标事件与通知消息相对应,如目标事件为邀请目标对象加入目标任务组,那么通知消息即为邀请目标对象加入目标任务组的消息。The target events include: inviting the target object to join the target task group, requesting the target object to grant file access permissions, prompting the target object to complete the pending task, and other objects performing at least one of the first or second operations on the target file. It should be noted that the target events correspond to notification messages; for example, if the target event is inviting the target object to join the target task group, then the notification message will be the message inviting the target object to join the target task group.

该目标任务组可以是处理目标任务的通信群组、任务小组或网盘的个人空间或共享空间等。The target task group can be a communication group, task team, or personal or shared space on a cloud drive for handling the target task.

文件访问权限可以是访问目标文件时所需的权限信息,具有该权限信息的访问方被允许访问目标文件,不具有该权限信息的访问方将无法访问目标文件。File access permissions are the permission information required to access a target file. Those with the required permissions are allowed to access the target file, while those without the required permissions will not be able to access the target file.

待办任务可以是操作人员(即发起方)通过子应用发起的需要目标对象(如负责人)审核的任务,如申请调级、请假以及财务保险等任务。Tasks to be done can be tasks initiated by operators (i.e., initiators) through sub-applications that require approval from the target (such as the person in charge), such as applying for a promotion, requesting leave, and financial insurance.

S1304,接收母应用发起的交互请求;交互请求是母应用在检测到目标消息卡片上触发的交互操作而产生的。S1304, Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application when it detects an interaction operation triggered on the target message card.

其中,不同的通知消息,对应的交互请求可以不同。例如,请求获得文件访问权限的通知消息,该交互请求可以是授权请求或拒绝授权请求;而邀请加入目标任务组的通知消息,该交互请求可以是加入请求或拒绝加入请求。Different notification messages may correspond to different interaction requests. For example, a notification message requesting file access permissions may request authorization or deny authorization; while a notification message inviting someone to join a target task group may request to join or deny joining.

在一个实施例中,当通知消息以目标消息卡片的形式显示于母应用的会话页面之后,目标对象可以在目标消息卡片上执行相应的交互操作,此时终端通过母应用生成交互请求,然后将该交互请求发送给智能机器人。从而,智能机器人接收终端的母应用发送的交互请求。In one embodiment, after a notification message is displayed as a target message card on the parent application's session page, the target object can perform corresponding interactive operations on the target message card. At this time, the terminal generates an interaction request through the parent application and then sends the interaction request to the intelligent robot. Thus, the intelligent robot receives the interaction request sent by the terminal's parent application.

S1306,将交互请求转发至子应用的应用后台,以使应用后台执行交互请求得到处理结果并进行反馈。S1306, forward the interaction request to the application backend of the sub-application so that the application backend can execute the interaction request, obtain the processing result, and provide feedback.

在一个实施例中,S1306具体可以包括:智能机器人对所述交互请求进行解封装,得到经过加密的交互消息;对经过加密的所述交互消息进行解密,得到解密后的交互消息;将解密后的所述交互消息转发至所述子应用的应用后台,以使所述应用后台基于所述交互信息进行处理得到处理结果并进行反馈。In one embodiment, S1306 may specifically include: the intelligent robot decapsulating the interaction request to obtain an encrypted interaction message; decrypting the encrypted interaction message to obtain a decrypted interaction message; and forwarding the decrypted interaction message to the application backend of the sub-application so that the application backend processes the interaction information to obtain a processing result and provides feedback.

其中,在得到加密的交互消息之后,智能机器人还可以对目标对象进行身份校验(如校验目标对象的身份是否合法),在校验通过后,对加密的交互消息进行解密。After receiving the encrypted interaction message, the intelligent robot can also verify the identity of the target object (such as verifying whether the target object's identity is legitimate). After the verification is successful, the encrypted interaction message can be decrypted.

在一个实施例中,在发送交互请求到应用后台之后,且接收到应用后台反馈的处理结果之前,智能机器人还可以向目标对象的通信账号回复空包,以通知目标对象已发送交互请求至应用后台,起到提示作用。智能机器人后续还可以通过机器人接口(webhook)地址主动发送提示消息到目标对象的通信账号,或者也可以在响应本次交互请求时直接回复处理结果。In one embodiment, after sending the interaction request to the application backend and before receiving the processing result from the application backend, the intelligent robot can also reply with an empty packet to the target object's communication account to notify the target object that the interaction request has been sent to the application backend, serving as a prompt. The intelligent robot can subsequently proactively send prompt messages to the target object's communication account via the robot interface (webhook) address, or it can directly reply with the processing result when responding to this interaction request.

S1308,当接收到应用后台反馈的处理结果时,向目标对象推送处理结果,以使母应用基于处理结果对通知消息的处理状态进行更新并显示。S1308, when the processing result is received from the application background, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result.

在一个实施例中,当接收到应用后台反馈的处理结果时,智能机器人向目标对象的通信账号推送处理结果,以使目标对象的终端在接收到处理结果之后,基于该处理结果对通知消息的处理状态进行更新,然后在母应用的会话页面将更新后的通知消息以目标消息卡片的形式进行显示。In one embodiment, when the processing result is received from the application's backend, the intelligent robot pushes the processing result to the target object's communication account, so that the target object's terminal updates the processing status of the notification message based on the processing result after receiving the processing result, and then displays the updated notification message in the form of a target message card on the parent application's session page.

例如,如图5所示,当目标对象点击了图5中的同意授权控件时,终端会向智能机器人发送同意赋予请求方(即请求获取文件访问权限的操作人员)权限的授权请求,此时智能机器人向文档应用的应用后台发送授权请求,应用后台在接收到该授权请求之后,赋予该请求方文件访问权限,从而该请求方具有文件访问权限,此外,应用后台会通过智能机器人将处理结果返回给目标对象的通信账号,从而目标对象的终端根据该处理结果对通知消息进行处理状态更新,在会话页面将更新后的通知消息以目标消息卡片的形式进行显示,如图5所示。同理,当目标对象在图6中选择了可编辑或仅预览的授权选项之后,在会话页面显示更新处理状态后的通知消息,包括已开通可编辑权限或已开通仅预览权限,具体可参考图6。For example, as shown in Figure 5, when the target user clicks the "Agree to Authorize" control in Figure 5, the terminal sends an authorization request to the intelligent robot, agreeing to grant permissions to the requester (i.e., the operator requesting file access permissions). At this time, the intelligent robot sends an authorization request to the application's backend. After receiving the authorization request, the application backend grants the requester file access permissions, thus granting the requester file access permissions. Furthermore, the application backend returns the processing result to the target user's communication account through the intelligent robot. The target user's terminal then updates the processing status of the notification message based on this result, displaying the updated notification message as a target message card on the conversation page, as shown in Figure 5. Similarly, when the target user selects the editable or preview-only authorization option in Figure 6, the updated processing status notification message is displayed on the conversation page, indicating whether editable permissions or preview-only permissions have been granted. See Figure 6 for details.

此外,智能机器人将处理结果发送给请求方的终端,以使请求方的终端基于该处理结果对通知消息进行状态更新,在会话页面将更新后的通知消息以目标消息卡片的形式进行显示,如图11所示。In addition, the intelligent robot sends the processing result to the requester's terminal so that the requester's terminal can update the status of the notification message based on the processing result, and display the updated notification message as a target message card on the session page, as shown in Figure 11.

在一个实施例中,目标对象为通信群组内的成员对象;智能机器人向母应用中各通信群组广播消息的频次不超过第一阈值;智能机器人向单个通信群组发送消息的频次不超过第二阈值;智能机器人在单位时间调用接口发消息的数量不超过第三阈值;智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, the target object is a member object within a communication group; the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application does not exceed a first threshold; the frequency at which the intelligent robot sends messages to a single communication group does not exceed a second threshold; the number of messages sent by the intelligent robot through the interface per unit time does not exceed a third threshold; and the number of concurrent requests made by the intelligent robot when sending messages with the same message body does not exceed a fourth threshold.

其中,智能机器人发送消息的频次和数量通过机器人配置页面进行配置,具体地,响应于在机器人配置页面触发的配置操作,对智能机器人发送消息的频率参数进行配置,此外还可以对智能机器人的消息接收参数和消息发送参数进行配置。The frequency and number of messages sent by the intelligent robot can be configured through the robot configuration page. Specifically, in response to the configuration operation triggered on the robot configuration page, the frequency parameter for the intelligent robot to send messages can be configured. In addition, the message receiving parameters and message sending parameters of the intelligent robot can also be configured.

其中,频率参数可以是智能机器人向母应用中各通信群组广播消息的最大频次(即第一阈值)、向单个通信群组发送消息的最大频次(即第二阈值)、在单位时间调用接口发消息的最大数量(即第三阈值)以及在发送相同消息包体的消息时并发请求的最大数量(即第四阈值)。Among them, the frequency parameter can be the maximum frequency at which the intelligent robot broadcasts messages to each communication group in the parent application (i.e., the first threshold), the maximum frequency at which it sends messages to a single communication group (i.e., the second threshold), the maximum number of messages sent by calling the interface per unit time (i.e., the third threshold), and the maximum number of concurrent requests when sending messages with the same message body (i.e., the fourth threshold).

消息接收参数可以是用于机器人接收消息的参数,如配置了该消息接收参数之后,可以接收相应子应用发出的信息,如接收网盘应用发出的请求获取文件访问权限的信息。The message receiving parameter can be a parameter used by the robot to receive messages. For example, after configuring this message receiving parameter, it can receive information sent by the corresponding sub-application, such as receiving information from the cloud storage application requesting access to files.

消息发送参数可以是在接收到子应用发出的信息之后,向绑定智能机器人的通信群组或目标对象推送通知消息。The message sending parameters can be to push notification messages to the communication group or target object bound to the smart robot after receiving information from the sub-application.

在一个实施例中,上述对智能机器人发送消息的频率参数进行配置的步骤,具体可以包括:配置智能机器人向母应用中各通信群组广播消息的频次不超过第一阈值;配置智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, the step of configuring the frequency parameters for the intelligent robot to send messages may specifically include: configuring the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application to not exceed a first threshold; configuring the frequency at which the intelligent robot sends messages to a single communication group to not exceed a second threshold; configuring the number of messages sent by the intelligent robot by calling the interface per unit time to not exceed a third threshold; and configuring the number of concurrent requests made by the intelligent robot when sending messages with the same message body to not exceed a fourth threshold.

上述实施例中,将母应用与子应用之间建立数据通信桥梁,从而其他对象在子应用执行了一项操作,可以及时地向母应用的目标对象推送通知消息,使母应用以目标消息卡片的形式将通知消息显示于会话页面,从而通过通知消息触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,当目标对象在目标消息卡片上触发了交互操作时,接收到母应用发起的交互请求,然后将该交互请求转发到子应用的应用后台,以使应用后台执行交互请求得到处理结果并进行反馈,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,向目标对象推送应用后台反馈的处理结果,从而使母应用在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。In the above embodiments, a data communication bridge is established between the parent application and the child application. When another object performs an operation in the child application, a notification message can be promptly pushed to the target object in the parent application. The parent application then displays the notification message as a target message card on the conversation page, thus reaching the target object and informing them that another object has performed an operation in the child application. Furthermore, it can also notify the target object to perform a corresponding interaction, preventing missed interactions due to failure to reach the target object. In addition, when the target object triggers an interaction operation on the target message card, it receives an interaction request initiated by the parent application and forwards it to the application's backend. The application backend then processes the interaction request, processes the result, and provides feedback, allowing interaction without switching from the parent application to the child application, improving interaction efficiency. Moreover, pushing the processing result from the application backend to the target object allows the parent application to update and display the processing status of the notification message on the conversation page. After processing is complete, the parent application can notify the target object that the notification message has been processed, ensuring the target object is aware of whether their interaction request has been executed, thus improving user experience.

作为一个示例,以母应用为通信应用为例进行阐述,具体如下:As an example, let's take a communication application as the parent application for illustration, as follows:

本申请的技术方案基于FunView跨平台引擎提供的各卡片模板,包括交互式、图文式、选择型和文本通知型等具备各种能力的消息卡片,以便智能机器人通过回调事件和消息推送的方式完成与目标对象之间的交互,涉及的技术流程如下:The technical solution of this application is based on various card templates provided by the FunView cross-platform engine, including interactive, graphic, selection, and text notification message cards with various capabilities, so that the intelligent robot can complete the interaction with the target object through callback events and message push. The technical process involved is as follows:

S1,在终端某个通信群组添加智能机器人之后,可以在机器人详情页看的该智能机器人特有的webhook地址。可以按以下的步骤说明向webhook地址发起HTTP POST请求,即可实现给目标对象或通信群组发送消息。S1. After adding a smart robot to a communication group on the terminal, you can view the robot's unique webhook address on the robot's details page. You can send messages to the target object or communication group by following these steps to initiate an HTTP POST request to the webhook address.

S2,在终端群聊会话中将鼠标移到消息卡片上方,会弹出机器人详情(profile)页面,点击机器人详情页面中的webhook地址,跳转到机器人配置页面,在机器人配置页面可以设置消息推送参数,还可以向webhookurl地址发起HTTP POST请求,即可实现给该目标对象或通信群组发送消息。此外,可以在机器人详情页设置智能机器人的消息接收参数,接受目标对象与智能机器人的回调事件并及时处理,实现自定义的交互功能。S2: In a group chat session, hovering the mouse over a message card will bring up the robot's profile page. Clicking the webhook address on the robot profile page will redirect you to the robot configuration page. On the robot configuration page, you can set message push parameters and send an HTTP POST request to the webhook URL to send messages to the target object or communication group. Furthermore, you can set the robot's message receiving parameters on the robot profile page to receive and process callback events from the target object and the robot, enabling customized interactive functions.

S3,当前自定义智能机器人支持往通信群组或目标对象发送文本(text)、markdown(markdown)、图片(image)、图文(news)、文件(file)和消息卡片(template_card)等六种消息类型。S3, currently the custom intelligent robot supports sending six message types to communication groups or target objects: text, markdown, image, news, file, and template card.

其中,接口请求频率的限制如下:The restrictions on the frequency of API requests are as follows:

(1)智能机器人向特定的通信群组发送消息的频次不能超过20条/分钟。(1) The frequency of intelligent robots sending messages to specific communication groups shall not exceed 20 messages per minute.

(2)智能机器人向所有通信群组广播发送消息的频次不超过20条/分钟。(2) The frequency of intelligent robots broadcasting messages to all communication groups shall not exceed 20 messages per minute.

(3)智能机器人每分钟调用接口发消息的数量不能超过10000条/分钟。(3) The number of messages sent by the intelligent robot through the interface per minute shall not exceed 10,000 per minute.

(4)智能机器人发送相同请求body的消息,限制不能有2个及以上的并发请求。(4) Intelligent robots send messages with the same request body, and there are no more than two concurrent requests.

S4,获取响应地址(response_url)后,可以主动变更原消息卡片的按钮文案,或者变更部分消息卡片,该response_url有两个获取来源:主动发消息时设置延迟变更,发送消息成功后会在返回中得到该response_url,该response_url在3个月内有效且能使用一次;另一个是用户与消息卡片交互时触发的回调事件中包含response_url,该response_url在24小时内有效且能使用一次;S4. After obtaining the response URL (response_url), you can actively change the button text of the original message card or change some message cards. The response_url can be obtained from two sources: one is by setting a delay when actively sending a message, and the response_url will be obtained in the return after the message is successfully sent. This response_url is valid for 3 months and can be used once; the other is by including the response_url in the callback event triggered when the user interacts with the message card. This response_url is valid for 24 hours and can be used once.

S5,在机器人配置界面设置接受消息的url,当用户与机器人发生交互的时候,交互事件将加密回调给机器人接受消息url,机器人服务通过接受解密并处理回调事件,实现更加丰富的自定义功能。In S5, the URL for receiving messages is set in the robot configuration interface. When a user interacts with the robot, the interaction event will be encrypted and sent back to the robot's message receiving URL. The robot service can receive, decrypt, and process the callback event to achieve richer customization functions.

当前支持的交互事件回调:Currently supported interactive event callbacks:

(1)目标对象在通信群组中@智能机器人,或者在单聊页面(即目标对象与智能机器人会话的页面)中向智能机器人发送文本消息或图文混排消息;(1) The target object @ the intelligent robot in the communication group, or sends a text message or a mixed text and image message to the intelligent robot in the one-on-one chat page (i.e. the page where the target object has a conversation with the intelligent robot);

(2)在通信群组中添加智能机器人,或智能机器人被移出通信群组;(2) Add a smart robot to a communication group, or remove a smart robot from a communication group;

(3)目标对象进入智能机器人的单聊页面;(3) The target user enters the one-on-one chat page of the intelligent robot;

(4)目标对象在单聊页面中给智能机器人发送图片消息;(4) The target user sends an image message to the intelligent robot in the one-on-one chat page;

(5)目标对象点击消息卡片中的交互控件。(5) The target object clicks the interactive control in the message card.

S6,验证URL有效性、接收与解密、加密与回复。可以直接使用通信应用(如企业通信应用)为子应用提供的加解密库。需要注意的是,加解密库要求传receiveid参数,在通信群组的智能机器人的应用场景里,在传receiveid参数时,可以直接传空字符串即可。S6 verifies URL validity, receives and decrypts data, and encrypts and replies. You can directly use the encryption/decryption libraries provided by communication applications (such as enterprise communication applications) for sub-applications. Note that the encryption/decryption library requires a `receiveid` parameter. In the application scenario of a smart robot in a communication group, you can directly pass an empty string when passing the `receiveid` parameter.

S7,要求填写群机器人的URL、Token、EncodingAESKey三个参数。S7 requires you to fill in three parameters for the group robot: URL, Token, and EncodingAESKey.

URL是通信群组的智能机器人接收通信应用推送交互请求的访问协议和地址,支持http或https协议。A URL is the access protocol and address used by the intelligent robot in a communication group to receive push interaction requests from communication applications. It supports either HTTP or HTTPS protocols.

Token可用于生成签名,长度为3~32之间的英文或数字。Tokens can be used to generate signatures, with a length of 3 to 32 alphanumeric characters.

EncodingAESKey用于消息体的加密,是AES密钥的Base64编码,长度为43位的英文或数字。EncodingAESKey is used for encrypting the message body. It is a Base64 encoded AES key, consisting of 43 characters of alphanumeric characters.

S8,机器人后台收到请求后,需要做如下操作:After receiving the request, the robot backend needs to perform the following operations:

(1)对收到的请求做Urldecode处理(1) Perform URL decoding on the received request.

(2)通过参数msg_signature对请求进行校验,确认调用者的合法性。(2) Verify the request using the parameter msg_signature to confirm the legitimacy of the caller.

(3)解密echostr参数得到消息内容(即msg字段)(3) Decrypt the echostr parameter to obtain the message content (i.e., the msg field).

(4)在1秒内响应GET请求,响应内容为上一步得到的明文消息内容,该明文消息内容不带引号、不带bom头以及不带换行符。(4) Respond to the GET request within 1 second. The response content is the plaintext message content obtained in the previous step. The plaintext message content does not include quotation marks, BOM headers, or newline characters.

S9,开发者解密数据得到用户消息内容后,可以选择直接回复空包,后续再通过webhook地址主动发送消息到群里,也可以在响应本次请求的时候直接回复消息。回复的消息需要先按明文协议构造xml数据包,然后对明文消息进行加密,之后再回复最终的密文xml数据包。In S9, after decrypting the data to obtain the user's message content, the developer can choose to directly reply with an empty packet and then proactively send the message to the group via the webhook address later, or they can directly reply with a message when responding to this request. The reply message needs to first construct an XML data packet according to the plaintext protocol, then encrypt the plaintext message, and finally reply with the final ciphertext XML data packet.

S10,应用后台与智能机器人的后台可以通过响应回调的服务进行数据的通信,完成用户在会话中的操作或更新逻辑,使用机器人的消息通道完成对用户侧卡片状态的更新,同时应用后台更新用户操作后产生的数据状态变化。S10: The application backend and the intelligent robot backend can communicate data through the service of responding to callbacks to complete the user's operation or update logic in the session, use the robot's message channel to update the card status on the user side, and at the same time, the application backend updates the data status changes generated after the user's operation.

接下来,结合图14对FunView跨平台框架的技术方案进行描述:Next, the technical solution of the FunView cross-platform framework will be described with reference to Figure 14:

FunView是一款轻量级、具备跨平台(即跨各种操作系统平台,包括移动操作系统平台和桌面操作系统平台)、动态化渲染和更新用户界面(UI)能力的UI渲染引擎。FunView是一款视图(View)级别的低粒度UI组件,无需更多的适配,即可直接用于当前的业务中,并且可以做到无缝的与各原生的View嵌套使用,在不更新版本的前提下,动态更新线上UI样式,甚至新增UI视图,实现了真正意义上的跨端动态UI能力。FunView is a lightweight UI rendering engine with cross-platform (i.e., across various operating system platforms, including mobile and desktop operating systems) capabilities, enabling dynamic rendering and updating of the user interface (UI). FunView is a low-granularity UI component at the view level, requiring no further adaptation and can be directly used in current business applications. It can also be seamlessly nested with various native Views, dynamically updating online UI styles and even adding new UI views without updating versions, achieving true cross-platform dynamic UI capabilities.

FunView基于Kotlin-MultiPlatform进行构建,在渲染流程、UI布局、UI样式描述等方面将各端差异进行统一,实现最基本的跨平台UI渲染能力,在此基础上,提供一种可动态扩展的视图描述到视图树的解析构建方案,并且支持通过数据驱动来动态修改UI视图,实现视图层面从构建到更新的完全动态化。而在整个FunView的多层次架构设计上,每一层均做到了分层插拔式设计,FunView在解析构建、数据驱动、布局、测量、渲染等各个环节,均可结合自身业务,通过二次定制开发的方式,实现差异化定制,从而创造更多的可能性,做到更高层次的动态化。FunView is built on Kotlin-MultiPlatform, unifying the differences across platforms in rendering processes, UI layout, and UI style descriptions to achieve basic cross-platform UI rendering capabilities. Building upon this, it provides a dynamically extensible view description-to-view tree parsing and construction scheme, and supports dynamic modification of UI views via data-driven approaches, achieving complete dynamism from view construction to updates. In FunView's multi-layered architecture, each layer employs a pluggable design. In each stage of FunView—parsing and construction, data-driven processes, layout, measurement, and rendering—customization can be tailored to specific business needs, creating more possibilities and achieving a higher level of dynamism.

通过下发模板的方式,在引擎内实现模板的动态解析,得到视图树,然后将视图树进行测量->布局->绘制,完成完整的动态渲染流程。By distributing templates, the engine dynamically parses the templates to obtain a view tree. Then, the view tree is measured, laid out, and drawn to complete the entire dynamic rendering process.

FunView对整体框架进行分层设计,从下到上依次分为:实现层、平台层、解析层、业务层,以及异常体系。其中平台层、解析层和业务层实现完全实现跨平台,其中一些平台差异化特性,在各层以接口形式进行设计,这些接口均在实现层完成差异化实现。FunView employs a layered framework design, divided from bottom to top into: implementation layer, platform layer, parsing layer, business layer, and exception handling system. The platform layer, parsing layer, and business layer are fully cross-platform compliant. Platform-specific features are designed as interfaces in each layer, with these interfaces implemented differently in the implementation layer.

其中,各层主要功能如下:The main functions of each layer are as follows:

平台层:是整套方案的核心基础模块,主要实现基础视图相关的功能,如视图定义、描述、测量、布局、绘制、事件处理、视图状态管理等。在整套渲染流程中,测量、绘制和任务队列这几个步骤中,因各平台API的差异,可能无法在同一层中完全实现,因此把这部分抽象为接口,通过实现层实现接口的方式,完成完整的渲染流程。Platform Layer: This is the core foundational module of the entire solution, primarily implementing basic view-related functions such as view definition, description, measurement, layout, drawing, event handling, and view state management. In the entire rendering process, the measurement, drawing, and task queue steps may not be fully implemented in the same layer due to differences in platform APIs. Therefore, this part is abstracted as an interface, and the entire rendering process is completed by implementing these interfaces through an implementation layer.

实现层:主要用于抹平各模块无法直接在跨平台基础模块中实现的差异化,为整套方案打辅助。其中主要实现文本测量、UI绘制、任务队列、日志、文件加载和图片加载等差异化API。Implementation Layer: Primarily used to smooth out differences between modules that cannot be directly implemented in the cross-platform base module, providing support for the entire solution. It mainly implements differentiated APIs such as text measurement, UI rendering, task queue, logging, file loading, and image loading.

解析层:是整套方案中,动态化管理模块,通过模板、资源、样式管理,实现模板到视图树的动态解析创建过程。而在创建视图树的过程中,加入了表达式计算引擎,可通过数据驱动的方式,将视图的某些属性变活,动态的依据数据计算得到具体值,将UI模板由静态变为动态,提高模板的复用率,降低成本。The parsing layer is the dynamic management module in the entire solution. Through template, resource, and style management, it realizes the dynamic parsing and creation process from template to view tree. During the view tree creation process, an expression calculation engine is added, which can make certain properties of the view more dynamic through data-driven methods, dynamically calculating specific values based on data. This transforms the UI template from static to dynamic, improving template reusability and reducing costs.

业务层:实现业务相关的定制化逻辑,主要服务于业务相关的定制化需求,如通信应用(如企业通信应用)特有的消息模式、Markdown解析、JSON类模板解析等。Business layer: Implements customized logic related to business operations, mainly serving customized needs related to business operations, such as message patterns specific to communication applications (e.g., enterprise communication applications), Markdown parsing, JSON class template parsing, etc.

异常体系:代码逻辑中会遇到一些异常边界情况,如果任何的异常都直接导致崩溃,则影响用户体验,如在表达式计算时,数据出错或者表达式无法识别时,都算作异常,那么此时应当有默认值,而非直接crash。在异常体系里,将异常crash拦截,并依据实际运行情况,决定该如何处理。Exception handling: Code logic may encounter exceptional boundary conditions. If any exception directly causes a crash, it negatively impacts user experience. For example, errors in data or unrecognized expressions during evaluation are considered exceptions. In such cases, default values should be provided instead of immediate crashes. The exception handling system intercepts crashes and determines how to handle them based on the actual runtime situation.

FunView中各逻辑层的接口化设计,确保了除主流程外,其他任意环节,均可实现二次定制开发扩展,如渲染层的实现,现有方案不一定是最优,那么可以重新实现渲染接口,实现诸如Flutter甚至Skia绘制方案的接入;而当默认提供的布局方案无法满足需求时,也可以定制布局接口,实现布局方案的扩展等等。如此设计,整套方案将变得更加易用和灵活。The interface-based design of each logic layer in FunView ensures that any stage other than the main flow can be customized and extended. For example, in the rendering layer, if the existing solution is not optimal, the rendering interface can be reimplemented to allow integration with rendering solutions such as Flutter or Skia. Similarly, when the default layout solution cannot meet the requirements, the layout interface can be customized to extend the layout solution, and so on. This design makes the entire solution more user-friendly and flexible.

通过上述技术方案,可以具有以下有益效果:The above technical solution can achieve the following beneficial effects:

1)基于跨平台的FunView跨平台引擎开发不同类型的消息卡片,极大的提升了研发效率和迭代更新的灵活性,在未来支持后台动态调整满足不同卡片类型的定制化能力,而不依赖版本更新;1) Based on the cross-platform FunView engine, different types of message cards can be developed, which greatly improves the R&D efficiency and the flexibility of iteration updates. In the future, it will support the ability to dynamically adjust the background to meet the customization of different card types without relying on version updates.

2)智能机器人具备在通信群组内与目标对象交互的能力,可以让子应用具有更灵活的应用场景触达用户,并通过在通信群组内与目标对象完成互动,可以满足特定的功能场景;2) Intelligent robots have the ability to interact with target objects within communication groups, which allows sub-applications to reach users with more flexible application scenarios. By interacting with target objects within communication groups, they can meet specific functional scenarios.

3)通过智能机器人的交互式卡片能力和回调更新机制,可以在会话中完成事务的处理,而无需回到相应的子应用才能处理,避免了繁锁的切换过程,给用户更好的体验。3) Through the interactive card capabilities and callback update mechanism of the intelligent robot, transactions can be processed within the session without having to return to the corresponding sub-application, avoiding cumbersome switching processes and providing users with a better experience.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的通知消息的处理方法的通知消息的处理装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个通知消息的处理装置实施例中的具体限定可以参见上文中对于通知消息的处理方法的限定,在此不再赘述。Based on the same inventive concept, this application also provides a notification message processing apparatus for implementing the notification message processing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations of one or more notification message processing apparatus embodiments provided below can be found in the limitations of the notification message processing method described above, and will not be repeated here.

在一个实施例中,如图15所示,提供了一种通知消息的处理装置,包括:接收模块1502、消息显示模块1504、发送模块1506和更新显示模块1508,其中:In one embodiment, as shown in FIG15, a notification message processing apparatus is provided, including: a receiving module 1502, a message display module 1504, a sending module 1506, and an update display module 1508, wherein:

接收模块1502,用于接收智能机器人推送子应用的通知消息;The receiving module 1502 is used to receive notification messages from the intelligent robot pushing sub-applications;

消息显示模块1504,用于在母应用的会话页面中,以目标消息卡片的形式显示通知消息;The message display module 1504 is used to display notification messages in the form of target message cards in the session page of the parent application;

发送模块1504,用于响应于在目标消息卡片上触发的交互操作,通过智能机器人向子应用的应用后台发送交互请求;The sending module 1504 is used to respond to the interactive operation triggered on the target message card and send an interactive request to the application background of the sub-application through the intelligent robot.

接收模块1502,还用于接收智能机器人返回的针对交互请求的处理结果;The receiving module 1502 is also used to receive the processing results of the interaction request returned by the intelligent robot;

更新显示模块1508,用于基于处理结果对通知消息的处理状态进行更新并显示。The update display module 1508 is used to update and display the processing status of the notification message based on the processing result.

在一个实施例中,接收模块1502,还用于接收智能机器人推送子应用触发目标事件时获得的通知消息;其中,目标事件包括邀请目标对象加入目标任务组、请求目标对象赋予文件访问权限、提示目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。In one embodiment, the receiving module 1502 is further configured to receive a notification message obtained when the intelligent robot pushes a sub-application that triggers a target event; wherein the target event includes at least one of the following: inviting a target object to join a target task group, requesting the target object to grant file access permissions, prompting the target object to complete a pending task, or other objects performing a first operation or a second operation on the target file.

在一个实施例中,发送模块1504,还用于响应于在目标消息卡片上触发的交互操作,生成匹配的交互消息;对交互消息进行加密;将加密后的交互消息作为消息体进行封装,得到交互请求;通过智能机器人向子应用的应用后台发送交互请求。In one embodiment, the sending module 1504 is further configured to generate a matching interactive message in response to an interactive operation triggered on the target message card; encrypt the interactive message; encapsulate the encrypted interactive message as a message body to obtain an interactive request; and send the interactive request to the application backend of the sub-application through the intelligent robot.

在一个实施例中,通知消息是请求目标对象赋予文件访问权限的消息;In one embodiment, the notification message is a message requesting the target object to grant file access permissions;

消息显示模块1504,还用于在目标消息卡片中显示同意授权控件;The message display module 1504 is also used to display an consent/authorization control in the target message card;

发送模块1504,还用于响应于对同意授权控件的触发操作,通过智能机器人向子应用的应用后台发送授权请求。The sending module 1504 is also used to send an authorization request to the application backend of the sub-application via the intelligent robot in response to the triggering operation of the consent authorization control.

在一个实施例中,如图16所示,该装置还包括:In one embodiment, as shown in FIG16, the device further includes:

消息显示模块1504,还用于在目标消息卡片中显示候选授权选项;The message display module 1504 is also used to display candidate authorization options in the target message card;

选择模块1510,用于响应于对候选授权选项的选择操作,选择目标授权项;Selection module 1510 is used to select a target authorization item in response to a selection operation on candidate authorization options;

发送模块1504,还用于响应于对同意授权控件的触发操作,基于目标授权项生成授权请求,并通过智能机器人向子应用的应用后台发送授权请求。The sending module 1504 is also used to generate an authorization request based on the target authorization item in response to the trigger operation of the consent authorization control, and send the authorization request to the application backend of the sub-application through the intelligent robot.

在一个实施例中,消息显示模块1504,还用于在对应于同意授权控件的位置显示拒绝授权控件;In one embodiment, the message display module 1504 is further configured to display a deny authorization control at a position corresponding to the consent authorization control;

发送模块1504,还用于响应于对拒绝授权控件的触发操作,通过智能机器人向子应用的应用后台发送拒绝授权请求。The sending module 1504 is also used to send a denial of authorization request to the application backend of the sub-application via the intelligent robot in response to the triggering operation of the denial of authorization control.

在一个实施例中,通知消息是邀请目标对象加入目标任务组的消息;如图16所示,该装置还包括:In one embodiment, the notification message is an invitation to the target object to join the target task group; as shown in Figure 16, the device further includes:

划分模块1512,用于在目标消息卡片中划分第一区域和突出显示的第二区域;通知消息显示于第一区域;The segmentation module 1512 is used to divide the target message card into a first region and a highlighted second region; the notification message is displayed in the first region;

消息显示模块1504,还用于在第二区域中显示于目标任务组关联的图标和关键词。The message display module 1504 is also used to display icons and keywords associated with the target task group in the second area.

在一个实施例中,消息显示模块1504,还用于响应于在目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;In one embodiment, the message display module 1504 is further configured to display a join page or confirmation window in response to an interactive operation triggered on a second area of the target message card;

发送模块1504,还用于响应于在加入页面或确认窗口上触发的加入操作,通过智能机器人向子应用的应用后台发送加入请求;或者,响应于在加入页面或确认窗口上触发的拒绝加入操作,通过智能机器人向子应用的应用后台发送拒绝加入请求。The sending module 1504 is also used to send a join request to the application backend of the sub-application via the intelligent robot in response to a join operation triggered on the join page or confirmation window; or, in response to a refuse join operation triggered on the join page or confirmation window, send a refuse join request to the application backend of the sub-application via the intelligent robot.

在一个实施例中,通知消息是提示目标对象完成待办任务的消息;In one embodiment, the notification message is a message prompting the target object to complete the pending task;

发送模块1504,还用于响应于在目标消息卡片上触发的显示操作,在母应用的任务处理页面显示待办任务;当完成待办任务时,通过智能机器人向子应用的应用后台发送任务状态变更请求。The sending module 1504 is also used to respond to the display operation triggered on the target message card and display the pending task on the task processing page of the parent application; when the pending task is completed, it sends a task status change request to the application background of the sub-application through the intelligent robot.

在一个实施例中,如图16所示,该装置还包括:In one embodiment, as shown in FIG16, the device further includes:

确定模块1514,用于依据通知消息确定业务类型;Module 1514 is used to determine the service type based on the notification message;

第一获取模块1516,用于基于业务类型获取匹配的目标消息卡片;其中,目标消息卡片是基于跨平台引擎生成的跨平台应用的模板卡片。The first acquisition module 1516 is used to acquire a matching target message card based on the business type; wherein, the target message card is a template card of a cross-platform application generated by a cross-platform engine.

在一个实施例中,处理模块,用于当向智能机器人发送交互消息,或在母应用的通信群组中添加智能机器人的通信账号,或将智能机器人的通信账号从通信群组中移除,或进入与智能机器人交互的会话页面,生成交互事件;将交互事件进行加密,得到加密交互事件;将加密交互事件回调至智能机器人,以使智能机器人对加密交互事件进行解密,并处理解密所得的交互事件。In one embodiment, the processing module is configured to generate an interaction event when sending an interaction message to the intelligent robot, adding the intelligent robot's communication account to the communication group of the parent application, removing the intelligent robot's communication account from the communication group, or entering a session page for interacting with the intelligent robot; encrypt the interaction event to obtain an encrypted interaction event; and send the encrypted interaction event back to the intelligent robot so that the intelligent robot can decrypt the encrypted interaction event and process the decrypted interaction event.

上述实施例中,通过接收智能机器人推送子应用的通知消息,以目标消息卡片的形式显示该通知消息,从而通过通知消息的方式触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,通过在目标消息卡片上进行交互操作,将交互请求通过智能机器人发送到子应用的应用后台,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,在接收到智能机器人返回的关于交互请求的处理结果,在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。最后,以智能机器人作为母应用与子应用之间的通信桥梁,可以有效地确保母应用与子应用之间的数据通信,从而使子应用上执行的操作可以及时有效地触达到相应的目标对象,以使目标对象及时地根据通知消息进行交互操作,有利于提高交互效率。In the above embodiments, by receiving notification messages from the intelligent robot pushed to the sub-application, and displaying these notification messages as target message cards, the target object is reached through notification messages. This notifies the target object that another object has performed an operation in the sub-application, and also notifies the target object to perform the corresponding interaction, thus preventing missed interactions due to failure to reach the target object. Furthermore, by performing interaction operations on the target message card, the interaction request is sent to the sub-application's application background via the intelligent robot, eliminating the need to switch from the parent application to the sub-application, improving interaction efficiency. Moreover, upon receiving the processing result of the interaction request from the intelligent robot, the processing status of the notification message is updated and displayed on the conversation page. This notifies the target object that the notification message has been processed, preventing the target object from being unaware that their interaction request has been executed, thus improving user experience. Finally, using the intelligent robot as a communication bridge between the parent and sub-applications effectively ensures data communication between them, allowing operations performed on the sub-application to reach the corresponding target object in a timely and effective manner, enabling the target object to perform timely interaction operations based on the notification messages, further improving interaction efficiency.

在一个实施例中,如图16所示,该装置还包括:In one embodiment, as shown in FIG16, the device further includes:

页面显示模块1518,用于显示机器人详情页面;响应于在机器人详情页面触发的配置请求操作,显示机器人配置页面;Page display module 1518 is used to display the robot details page; in response to a configuration request triggered on the robot details page, it displays the robot configuration page;

配置模块1520,用于响应于在机器人配置页面触发的配置操作,对智能机器人的消息接收参数和消息发送参数进行配置,以及对智能机器人发送消息的频率参数进行配置。The configuration module 1520 is used to configure the message receiving parameters and message sending parameters of the intelligent robot, as well as the frequency parameters of the intelligent robot sending messages, in response to the configuration operation triggered on the robot configuration page.

在一个实施例中,配置模块1520,还用于配置智能机器人向母应用中各通信群组广播消息的频次不超过第一阈值;配置智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, the configuration module 1520 is further configured to configure the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application not to exceed a first threshold; configure the frequency at which the intelligent robot sends messages to a single communication group not to exceed a second threshold; configure the number of messages sent by the intelligent robot by calling the interface per unit time not to exceed a third threshold; and configure the number of concurrent requests made by the intelligent robot when sending messages with the same message body not to exceed a fourth threshold.

在一个实施例中,配置请求操作包括对机器人详情页面中的机器人接口地址的点击操作;In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page;

发送模块1504,还用于当完成智能机器人的消息接收参数、消息发送参数和频率参数的配置时,向智能机器人的反向接口地址发起数据传输请求;其中,数据传输请求,用于指示智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送通知消息。The sending module 1504 is also used to initiate a data transmission request to the reverse interface address of the intelligent robot when the configuration of the message receiving parameters, message sending parameters and frequency parameters of the intelligent robot is completed; wherein, the data transmission request is used to instruct the intelligent robot to push a notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event.

在一个实施例中,如图16所示,该装置还包括:In one embodiment, as shown in FIG16, the device further includes:

第二获取模块1522,用于获取智能机器人的响应地址;The second acquisition module 1522 is used to acquire the response address of the intelligent robot;

上传模块1524,用于通过响应地址上传更新的控件文案和消息卡片;其中,控件文案用于对目标消息卡片上显示的控件文案进行更新。The upload module 1524 is used to upload updated control text and message cards via the response address; among them, the control text is used to update the control text displayed on the target message card.

上述实施例中,通过对智能机器人进行参数设置,可以在子应用发生了相关的操作,可以触发智能机器人向母应用推送通知消息,从而以消息方式触达目标对象,而且还可以接收母应用基于通知消息的交互操作而产生的信息,从而实现母应用与子应用之间的交互。而且,还配置了智能机器人推送消息的频次,可以有效地避免智能机器人推送大量通知消息而造成网络影响。In the above embodiments, by setting parameters for the intelligent robot, when a related operation occurs in the sub-application, the intelligent robot can be triggered to push a notification message to the parent application, thereby reaching the target object via message. Furthermore, it can receive information generated by the parent application's interactive operations based on the notification message, thus realizing interaction between the parent and sub-applications. Moreover, the frequency of the intelligent robot's message pushes is configured, effectively preventing network impact caused by the intelligent robot pushing a large number of notification messages.

在一个实施例中,如图17所示,提供了一种通知消息的处理装置,包括:推送模块1702、接收模块1704和转发模块1706,其中:In one embodiment, as shown in FIG17, a notification message processing apparatus is provided, including: a push module 1702, a receiving module 1704, and a forwarding module 1706, wherein:

推送模块1702,用于向母应用中的目标对象推送子应用的通知消息,以使母应用以目标消息卡片的形式将通知消息显示于会话页面;The push module 1702 is used to push notification messages from the child application to the target object in the parent application, so that the parent application can display the notification message in the form of a target message card on the conversation page.

接收模块1704,用于接收母应用发起的交互请求;交互请求是母应用在检测到目标消息卡片上触发的交互操作而产生的;The receiving module 1704 is used to receive interaction requests initiated by the parent application; the interaction request is generated by the parent application when it detects an interaction operation triggered on the target message card;

转发模块1706,用于将交互请求转发至子应用的应用后台,以使应用后台执行交互请求得到处理结果并进行反馈;The forwarding module 1706 is used to forward the interaction request to the application backend of the sub-application, so that the application backend can execute the interaction request, obtain the processing result, and provide feedback.

推送模块1702,还用于当接收到应用后台反馈的处理结果时,向目标对象推送处理结果,以使母应用基于处理结果对通知消息的处理状态进行更新并显示。The push module 1702 is also used to push the processing result to the target object when it receives the processing result from the application background, so that the parent application can update and display the processing status of the notification message based on the processing result.

在一个实施例中,方法应用于智能机器人,目标对象为通信群组内的成员对象;智能机器人向母应用中各通信群组广播消息的频次不超过第一阈值;智能机器人向单个通信群组发送消息的频次不超过第二阈值;智能机器人在单位时间调用接口发消息的数量不超过第三阈值;智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, the method is applied to an intelligent robot, and the target object is a member object within a communication group; the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application does not exceed a first threshold; the frequency at which the intelligent robot sends messages to a single communication group does not exceed a second threshold; the number of messages sent by the intelligent robot by calling the interface per unit time does not exceed a third threshold; and the number of concurrent requests made by the intelligent robot when sending messages with the same message body does not exceed a fourth threshold.

在一个实施例中,转发模块1706,还用于对交互请求进行解封装,得到经过加密的交互消息;对经过加密的交互消息进行解密,得到解密后的交互消息;将解密后的交互消息转发至子应用的应用后台,以使应用后台基于交互信息进行处理得到处理结果并进行反馈。In one embodiment, the forwarding module 1706 is further configured to decapsulate the interaction request to obtain an encrypted interaction message; decrypt the encrypted interaction message to obtain a decrypted interaction message; and forward the decrypted interaction message to the application backend of the sub-application so that the application backend can process the interaction information to obtain a processing result and provide feedback.

上述实施例中,将母应用与子应用之间建立数据通信桥梁,从而其他对象在子应用执行了一项操作,可以及时地向母应用的目标对象推送通知消息,使母应用以目标消息卡片的形式将通知消息显示于会话页面,从而通过通知消息触达目标对象,提示目标对象有其他对象在子应用执行了一项的操作,此外还可以通知目标对象进行相应的交互,从而可以避免因未触达目标对象而导致遗漏进行交互。此外,当目标对象在目标消息卡片上触发了交互操作时,接收到母应用发起的交互请求,然后将该交互请求转发到子应用的应用后台,以使应用后台执行交互请求得到处理结果并进行反馈,从而无需从母应用切换到子应用即可进行交互操作,提高了交互效率。而且,向目标对象推送应用后台反馈的处理结果,从而使母应用在会话页面对通知消息的处理状态进行更新并显示,从而在完成处理之后,可以提示目标对象该通知消息已经处理完成,避免目标对象不知晓其交互请求是否被执行,可以提高用户体验。In the above embodiments, a data communication bridge is established between the parent application and the child application. When another object performs an operation in the child application, a notification message can be promptly pushed to the target object in the parent application. The parent application then displays the notification message as a target message card on the conversation page, thus reaching the target object and informing them that another object has performed an operation in the child application. Furthermore, it can also notify the target object to perform a corresponding interaction, preventing missed interactions due to failure to reach the target object. In addition, when the target object triggers an interaction operation on the target message card, it receives an interaction request initiated by the parent application and forwards it to the application's backend. The application backend then processes the interaction request, processes the result, and provides feedback, allowing interaction without switching from the parent application to the child application, improving interaction efficiency. Moreover, pushing the processing result from the application backend to the target object allows the parent application to update and display the processing status of the notification message on the conversation page. After processing is complete, the parent application can notify the target object that the notification message has been processed, ensuring the target object is aware of whether their interaction request has been executed, thus improving user experience.

上述通知消息的处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the aforementioned notification message processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是机器人后台,其内部结构图可以如图18所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储通知消息。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种通知消息的处理方法。In one embodiment, a computer device is provided, which can be a robot backend, and its internal structure diagram is shown in Figure 18. The computer device includes a processor, memory, input/output interfaces (I/O), and a communication interface. The processor, memory, and I/O interfaces are connected via a system bus, and the communication interface is connected to the system bus via the I/O interfaces. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage media stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device stores notification messages. The I/O interfaces of the computer device are used for exchanging information between the processor and external devices. The communication interface of the computer device is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a notification message processing method.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图19所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种通知消息的处理方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置,显示屏可以是液晶显示屏或电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram is shown in Figure 19. The computer device includes a processor, memory, input/output interface, communication interface, display unit, and input device. The processor, memory, and input/output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input/output interface. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and 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 input/output interface of the computer device is used for exchanging information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for processing notification messages. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

本领域技术人员可以理解,图18和图19中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structures shown in Figures 18 and 19 are merely block diagrams of some structures related to the present application and do not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than shown in the figures, or combine certain components, or have different component arrangements.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:接收智能机器人推送子应用的通知消息;在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;接收所述智能机器人返回的针对所述交互请求的处理结果;基于所述处理结果对所述通知消息的处理状态进行更新并显示。In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: receiving a notification message pushed by a smart robot to a sub-application; displaying the notification message as a target message card in a session page of the parent application; in response to an interactive operation triggered on the target message card, sending an interaction request to the application background of the sub-application through the smart robot; receiving a processing result returned by the smart robot for the interaction request; and updating and displaying the processing status of the notification message based on the processing result.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:接收智能机器人推送子应用触发目标事件时获得的通知消息;其中,所述目标事件包括邀请目标对象加入目标任务组、请求所述目标对象赋予文件访问权限、提示所述目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。In one embodiment, when the processor executes the computer program, it further implements the following steps: receiving a notification message obtained when the intelligent robot pushes a sub-application that triggers a target event; wherein the target event includes at least one of inviting a target object to join a target task group, requesting the target object to grant file access permissions, prompting the target object to complete a pending task, or other objects performing a first operation or a second operation on the target file.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:响应于在所述目标消息卡片上触发的交互操作,生成匹配的交互消息;对所述交互消息进行加密;将加密后的所述交互消息作为消息体进行封装,得到所述交互请求;通过所述智能机器人向所述子应用的应用后台发送所述交互请求。In one embodiment, when the processor executes the computer program, it further performs the following steps: generating a matching interactive message in response to an interactive operation triggered on the target message card; encrypting the interactive message; encapsulating the encrypted interactive message as a message body to obtain the interactive request; and sending the interactive request to the application backend of the sub-application through the intelligent robot.

在一个实施例中,所述通知消息是请求目标对象赋予文件访问权限的消息;处理器执行计算机程序时还实现以下步骤:在所述目标消息卡片中显示同意授权控件;响应于对所述同意授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送授权请求。In one embodiment, the notification message is a message requesting the target object to grant file access permissions; when the processor executes the computer program, it further implements the following steps: displaying an authorization control in the target message card; in response to the triggering operation of the authorization control, sending an authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:在所述目标消息卡片中显示候选授权选项;响应于对所述候选授权选项的选择操作,选择目标授权项;响应于对所述同意授权控件的触发操作,基于所述目标授权项生成授权请求,并通过所述智能机器人向所述子应用的应用后台发送所述授权请求。In one embodiment, when the processor executes the computer program, it further performs the following steps: displaying candidate authorization options in the target message card; selecting a target authorization item in response to a selection operation of the candidate authorization options; generating an authorization request based on the target authorization item in response to a trigger operation of the consent authorization control, and sending the authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:在对应于所述同意授权控件的位置显示拒绝授权控件;响应于对所述拒绝授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送拒绝授权请求。In one embodiment, when the processor executes the computer program, it further performs the following steps: displaying a deny authorization control at a location corresponding to the consent authorization control; and sending a deny authorization request to the application background of the sub-application via the intelligent robot in response to a triggering operation of the deny authorization control.

在一个实施例中,所述通知消息是邀请目标对象加入目标任务组的消息;处理器执行计算机程序时还实现以下步骤:在所述目标消息卡片中划分第一区域和突出显示的第二区域;所述通知消息显示于所述第一区域;在所述第二区域中显示于所述目标任务组关联的图标和关键词。In one embodiment, the notification message is an invitation to the target object to join the target task group; when the processor executes the computer program, it further implements the following steps: dividing the target message card into a first area and a highlighted second area; the notification message is displayed in the first area; and icons and keywords associated with the target task group are displayed in the second area.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:响应于在所述目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;响应于在所述加入页面或所述确认窗口上触发的加入操作,通过所述智能机器人向所述子应用的应用后台发送加入请求;或者,响应于在加入页面或确认窗口上触发的拒绝加入操作,通过智能机器人向子应用的应用后台发送拒绝加入请求。In one embodiment, when the processor executes the computer program, it further performs the following steps: in response to an interactive operation triggered on the second area of the target message card, displaying a join page or a confirmation window; in response to a join operation triggered on the join page or the confirmation window, sending a join request to the application backend of the sub-application via the intelligent robot; or, in response to a refuse join operation triggered on the join page or the confirmation window, sending a refuse join request to the application backend of the sub-application via the intelligent robot.

在一个实施例中,所述通知消息是提示所述目标对象完成待办任务的消息;处理器执行计算机程序时还实现以下步骤:响应于在所述目标消息卡片上触发的显示操作,在所述母应用的任务处理页面显示所述待办任务;当完成所述待办任务时,通过所述智能机器人向所述子应用的应用后台发送任务状态变更请求。In one embodiment, the notification message is a message prompting the target object to complete a pending task; when the processor executes the computer program, it also implements the following steps: in response to a display operation triggered on the target message card, the pending task is displayed on the task processing page of the parent application; when the pending task is completed, a task status change request is sent to the application background of the sub-application through the intelligent robot.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:依据所述通知消息确定业务类型;基于所述业务类型获取匹配的目标消息卡片;其中,所述目标消息卡片是基于跨平台引擎生成的跨平台应用的模板卡片。In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the service type based on the notification message; obtaining a matching target message card based on the service type; wherein the target message card is a template card of a cross-platform application generated by a cross-platform engine.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:显示机器人详情页面;响应于在所述机器人详情页面触发的配置请求操作,显示机器人配置页面;响应于在所述机器人配置页面触发的配置操作,对所述智能机器人的消息接收参数和消息发送参数进行配置,以及对所述智能机器人发送消息的频率参数进行配置。In one embodiment, when the processor executes the computer program, it further performs the following steps: displaying a robot details page; displaying a robot configuration page in response to a configuration request operation triggered on the robot details page; and configuring message receiving parameters and message sending parameters of the intelligent robot, as well as configuring message sending frequency parameters of the intelligent robot, in response to a configuration operation triggered on the robot configuration page.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:配置所述智能机器人向所述母应用中各通信群组广播消息的频次不超过第一阈值;配置所述智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置所述智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置所述智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, when the processor executes the computer program, it further implements the following steps: configuring the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application not to exceed a first threshold; configuring the frequency at which the intelligent robot sends messages to a single communication group not to exceed a second threshold; configuring the number of messages sent by the intelligent robot by calling the interface per unit time not to exceed a third threshold; and configuring the number of concurrent requests made by the intelligent robot when sending messages with the same message body not to exceed a fourth threshold.

在一个实施例中,所述配置请求操作包括对所述机器人详情页面中的机器人接口地址的点击操作;处理器执行计算机程序时还实现以下步骤:当完成所述智能机器人的消息接收参数、所述消息发送参数和所述频率参数的配置时,向所述智能机器人的反向接口地址发起数据传输请求;其中,所述数据传输请求,用于指示所述智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送所述通知消息。In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page; when the processor executes the computer program, it also implements the following steps: when the configuration of the message receiving parameters, the message sending parameters and the frequency parameters of the intelligent robot is completed, a data transmission request is initiated to the reverse interface address of the intelligent robot; wherein, the data transmission request is used to instruct the intelligent robot to push the notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:获取所述智能机器人的响应地址;通过所述响应地址上传更新的控件文案和消息卡片;其中,所述控件文案用于对所述目标消息卡片上显示的控件文案进行更新。In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining the response address of the intelligent robot; uploading updated control text and message card through the response address; wherein the control text is used to update the control text displayed on the target message card.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:当向智能机器人发送交互消息,或在母应用的通信群组中添加智能机器人的通信账号,或将智能机器人的通信账号从通信群组中移除,或进入与智能机器人交互的会话页面,生成交互事件;将交互事件进行加密,得到加密交互事件;将加密交互事件回调至智能机器人,以使智能机器人对加密交互事件进行解密,并处理解密所得的交互事件。In one embodiment, when the processor executes the computer program, it further performs the following steps: when sending an interactive message to the intelligent robot, or adding the intelligent robot's communication account to the communication group of the parent application, or removing the intelligent robot's communication account from the communication group, or entering the session page for interacting with the intelligent robot, an interactive event is generated; the interactive event is encrypted to obtain an encrypted interactive event; the encrypted interactive event is called back to the intelligent robot so that the intelligent robot can decrypt the encrypted interactive event and process the decrypted interactive event.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:接收智能机器人推送子应用的通知消息;在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;接收所述智能机器人返回的针对所述交互请求的处理结果;基于所述处理结果对所述通知消息的处理状态进行更新并显示。In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon. When executed by a processor, the computer program performs the following steps: receiving a notification message pushed by a smart robot to a sub-application; displaying the notification message as a target message card in a session page of the parent application; in response to an interactive operation triggered on the target message card, sending an interaction request to the application background of the sub-application via the smart robot; receiving a processing result returned by the smart robot for the interaction request; and updating and displaying the processing status of the notification message based on the processing result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收智能机器人推送子应用触发目标事件时获得的通知消息;其中,所述目标事件包括邀请目标对象加入目标任务组、请求所述目标对象赋予文件访问权限、提示所述目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。In one embodiment, when the computer program is executed by the processor, it further implements the following steps: receiving a notification message obtained when the intelligent robot pushes a sub-application that triggers a target event; wherein the target event includes at least one of inviting a target object to join a target task group, requesting the target object to grant file access permissions, prompting the target object to complete a pending task, or other objects performing a first operation or a second operation on the target file.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片上触发的交互操作,生成匹配的交互消息;对所述交互消息进行加密;将加密后的所述交互消息作为消息体进行封装,得到所述交互请求;通过所述智能机器人向所述子应用的应用后台发送所述交互请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: generating a matching interactive message in response to an interactive operation triggered on the target message card; encrypting the interactive message; encapsulating the encrypted interactive message as a message body to obtain the interactive request; and sending the interactive request to the application backend of the sub-application through the intelligent robot.

在一个实施例中,所述通知消息是请求目标对象赋予文件访问权限的消息;计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中显示同意授权控件;响应于对所述同意授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送授权请求。In one embodiment, the notification message is a message requesting the target object to grant file access permissions; when the computer program is executed by the processor, it further implements the following steps: displaying an authorization control in the target message card; and in response to a triggering operation of the authorization control, sending an authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中显示候选授权选项;响应于对所述候选授权选项的选择操作,选择目标授权项;响应于对所述同意授权控件的触发操作,基于所述目标授权项生成授权请求,并通过所述智能机器人向所述子应用的应用后台发送所述授权请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying candidate authorization options in the target message card; selecting a target authorization item in response to a selection operation of the candidate authorization options; generating an authorization request based on the target authorization item in response to a trigger operation of the consent authorization control, and sending the authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在对应于所述同意授权控件的位置显示拒绝授权控件;响应于对所述拒绝授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送拒绝授权请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying a deny authorization control at a location corresponding to the consent authorization control; and sending a deny authorization request to the application backend of the sub-application via the intelligent robot in response to a triggering operation of the deny authorization control.

在一个实施例中,所述通知消息是邀请目标对象加入目标任务组的消息;计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中划分第一区域和突出显示的第二区域;所述通知消息显示于所述第一区域;在所述第二区域中显示于所述目标任务组关联的图标和关键词。In one embodiment, the notification message is an invitation to the target object to join a target task group; when the computer program is executed by the processor, it further implements the following steps: dividing the target message card into a first area and a highlighted second area; displaying the notification message in the first area; and displaying an icon and keywords associated with the target task group in the second area.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;响应于在所述加入页面或所述确认窗口上触发的加入操作,通过所述智能机器人向所述子应用的应用后台发送加入请求;或者,响应于在加入页面或确认窗口上触发的拒绝加入操作,通过智能机器人向子应用的应用后台发送拒绝加入请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: in response to an interactive operation triggered on the second area of the target message card, displaying a join page or a confirmation window; in response to a join operation triggered on the join page or the confirmation window, sending a join request to the application backend of the sub-application via the intelligent robot; or, in response to a refuse join operation triggered on the join page or the confirmation window, sending a refuse join request to the application backend of the sub-application via the intelligent robot.

在一个实施例中,所述通知消息是提示所述目标对象完成待办任务的消息;计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片上触发的显示操作,在所述母应用的任务处理页面显示所述待办任务;当完成所述待办任务时,通过所述智能机器人向所述子应用的应用后台发送任务状态变更请求。In one embodiment, the notification message is a message prompting the target object to complete a pending task; when the computer program is executed by the processor, it further implements the following steps: in response to a display operation triggered on the target message card, the pending task is displayed on the task processing page of the parent application; when the pending task is completed, a task status change request is sent to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:依据所述通知消息确定业务类型;基于所述业务类型获取匹配的目标消息卡片;其中,所述目标消息卡片是基于跨平台引擎生成的跨平台应用的模板卡片。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the service type based on the notification message; obtaining a matching target message card based on the service type; wherein the target message card is a template card of a cross-platform application generated based on a cross-platform engine.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:显示机器人详情页面;响应于在所述机器人详情页面触发的配置请求操作,显示机器人配置页面;响应于在所述机器人配置页面触发的配置操作,对所述智能机器人的消息接收参数和消息发送参数进行配置,以及对所述智能机器人发送消息的频率参数进行配置。In one embodiment, when the computer program is executed by a processor, it further performs the following steps: displaying a robot details page; displaying a robot configuration page in response to a configuration request operation triggered on the robot details page; and configuring message receiving parameters and message sending parameters of the intelligent robot, as well as configuring message sending frequency parameters of the intelligent robot, in response to a configuration operation triggered on the robot configuration page.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:配置所述智能机器人向所述母应用中各通信群组广播消息的频次不超过第一阈值;配置所述智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置所述智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置所述智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, when the computer program is executed by the processor, it further implements the following steps: configuring the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application not to exceed a first threshold; configuring the frequency at which the intelligent robot sends messages to a single communication group not to exceed a second threshold; configuring the number of messages sent by the intelligent robot by calling the interface per unit time not to exceed a third threshold; and configuring the number of concurrent requests made by the intelligent robot when sending messages with the same message body not to exceed a fourth threshold.

在一个实施例中,所述配置请求操作包括对所述机器人详情页面中的机器人接口地址的点击操作;计算机程序被处理器执行时还实现以下步骤:当完成所述智能机器人的消息接收参数、所述消息发送参数和所述频率参数的配置时,向所述智能机器人的反向接口地址发起数据传输请求;其中,所述数据传输请求,用于指示所述智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送所述通知消息。In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page; when the computer program is executed by the processor, it further implements the following steps: when the configuration of the message receiving parameters, the message sending parameters and the frequency parameters of the intelligent robot is completed, a data transmission request is initiated to the reverse interface address of the intelligent robot; wherein, the data transmission request is used to instruct the intelligent robot to push the notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取所述智能机器人的响应地址;通过所述响应地址上传更新的控件文案和消息卡片;其中,所述控件文案用于对所述目标消息卡片上显示的控件文案进行更新。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the response address of the intelligent robot; uploading updated control text and message card through the response address; wherein the control text is used to update the control text displayed on the target message card.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当向智能机器人发送交互消息,或在母应用的通信群组中添加智能机器人的通信账号,或将智能机器人的通信账号从通信群组中移除,或进入与智能机器人交互的会话页面,生成交互事件;将交互事件进行加密,得到加密交互事件;将加密交互事件回调至智能机器人,以使智能机器人对加密交互事件进行解密,并处理解密所得的交互事件。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when sending an interactive message to the intelligent robot, or adding the intelligent robot's communication account to the communication group of the parent application, or removing the intelligent robot's communication account from the communication group, or entering the session page for interacting with the intelligent robot, an interactive event is generated; the interactive event is encrypted to obtain an encrypted interactive event; the encrypted interactive event is called back to the intelligent robot so that the intelligent robot can decrypt the encrypted interactive event and process the decrypted interactive event.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

接收智能机器人推送子应用的通知消息;在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;接收所述智能机器人返回的针对所述交互请求的处理结果;基于所述处理结果对所述通知消息的处理状态进行更新并显示。Receive a notification message from a sub-application pushed by a smart robot; display the notification message as a target message card in the parent application's session page; respond to an interactive operation triggered on the target message card, send an interaction request to the sub-application's application backend via the smart robot; receive the processing result of the interaction request returned by the smart robot; update and display the processing status of the notification message based on the processing result.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:接收智能机器人推送子应用触发目标事件时获得的通知消息;其中,所述目标事件包括邀请目标对象加入目标任务组、请求所述目标对象赋予文件访问权限、提示所述目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。In one embodiment, when the computer program is executed by the processor, it further implements the following steps: receiving a notification message obtained when the intelligent robot pushes a sub-application that triggers a target event; wherein the target event includes at least one of inviting a target object to join a target task group, requesting the target object to grant file access permissions, prompting the target object to complete a pending task, or other objects performing a first operation or a second operation on the target file.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片上触发的交互操作,生成匹配的交互消息;对所述交互消息进行加密;将加密后的所述交互消息作为消息体进行封装,得到所述交互请求;通过所述智能机器人向所述子应用的应用后台发送所述交互请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: generating a matching interactive message in response to an interactive operation triggered on the target message card; encrypting the interactive message; encapsulating the encrypted interactive message as a message body to obtain the interactive request; and sending the interactive request to the application backend of the sub-application through the intelligent robot.

在一个实施例中,所述通知消息是请求目标对象赋予文件访问权限的消息;计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中显示同意授权控件;响应于对所述同意授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送授权请求。In one embodiment, the notification message is a message requesting the target object to grant file access permissions; when the computer program is executed by the processor, it further implements the following steps: displaying an authorization control in the target message card; and in response to a triggering operation of the authorization control, sending an authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中显示候选授权选项;响应于对所述候选授权选项的选择操作,选择目标授权项;响应于对所述同意授权控件的触发操作,基于所述目标授权项生成授权请求,并通过所述智能机器人向所述子应用的应用后台发送所述授权请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying candidate authorization options in the target message card; selecting a target authorization item in response to a selection operation of the candidate authorization options; generating an authorization request based on the target authorization item in response to a trigger operation of the consent authorization control, and sending the authorization request to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:在对应于所述同意授权控件的位置显示拒绝授权控件;响应于对所述拒绝授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送拒绝授权请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: displaying a deny authorization control at a location corresponding to the consent authorization control; and sending a deny authorization request to the application backend of the sub-application via the intelligent robot in response to a triggering operation of the deny authorization control.

在一个实施例中,所述通知消息是邀请目标对象加入目标任务组的消息;计算机程序被处理器执行时还实现以下步骤:在所述目标消息卡片中划分第一区域和突出显示的第二区域;所述通知消息显示于所述第一区域;在所述第二区域中显示于所述目标任务组关联的图标和关键词。In one embodiment, the notification message is an invitation to the target object to join a target task group; when the computer program is executed by the processor, it further implements the following steps: dividing the target message card into a first area and a highlighted second area; displaying the notification message in the first area; and displaying an icon and keywords associated with the target task group in the second area.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;响应于在所述加入页面或所述确认窗口上触发的加入操作,通过所述智能机器人向所述子应用的应用后台发送加入请求;或者,响应于在加入页面或确认窗口上触发的拒绝加入操作,通过智能机器人向子应用的应用后台发送拒绝加入请求。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: in response to an interactive operation triggered on the second area of the target message card, displaying a join page or a confirmation window; in response to a join operation triggered on the join page or the confirmation window, sending a join request to the application backend of the sub-application via the intelligent robot; or, in response to a refuse join operation triggered on the join page or the confirmation window, sending a refuse join request to the application backend of the sub-application via the intelligent robot.

在一个实施例中,所述通知消息是提示所述目标对象完成待办任务的消息;计算机程序被处理器执行时还实现以下步骤:响应于在所述目标消息卡片上触发的显示操作,在所述母应用的任务处理页面显示所述待办任务;当完成所述待办任务时,通过所述智能机器人向所述子应用的应用后台发送任务状态变更请求。In one embodiment, the notification message is a message prompting the target object to complete a pending task; when the computer program is executed by the processor, it further implements the following steps: in response to a display operation triggered on the target message card, the pending task is displayed on the task processing page of the parent application; when the pending task is completed, a task status change request is sent to the application background of the sub-application through the intelligent robot.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:依据所述通知消息确定业务类型;基于所述业务类型获取匹配的目标消息卡片;其中,所述目标消息卡片是基于跨平台引擎生成的跨平台应用的模板卡片。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the service type based on the notification message; obtaining a matching target message card based on the service type; wherein the target message card is a template card of a cross-platform application generated based on a cross-platform engine.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:显示机器人详情页面;响应于在所述机器人详情页面触发的配置请求操作,显示机器人配置页面;响应于在所述机器人配置页面触发的配置操作,对所述智能机器人的消息接收参数和消息发送参数进行配置,以及对所述智能机器人发送消息的频率参数进行配置。In one embodiment, when the computer program is executed by a processor, it further performs the following steps: displaying a robot details page; displaying a robot configuration page in response to a configuration request operation triggered on the robot details page; and configuring message receiving parameters and message sending parameters of the intelligent robot, as well as configuring message sending frequency parameters of the intelligent robot, in response to a configuration operation triggered on the robot configuration page.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:配置所述智能机器人向所述母应用中各通信群组广播消息的频次不超过第一阈值;配置所述智能机器人向单个通信群组发送消息的频次不超过第二阈值;配置所述智能机器人在单位时间调用接口发消息的数量不超过第三阈值;配置所述智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。In one embodiment, when the computer program is executed by the processor, it further implements the following steps: configuring the frequency at which the intelligent robot broadcasts messages to each communication group in the parent application not to exceed a first threshold; configuring the frequency at which the intelligent robot sends messages to a single communication group not to exceed a second threshold; configuring the number of messages sent by the intelligent robot by calling the interface per unit time not to exceed a third threshold; and configuring the number of concurrent requests made by the intelligent robot when sending messages with the same message body not to exceed a fourth threshold.

在一个实施例中,所述配置请求操作包括对所述机器人详情页面中的机器人接口地址的点击操作;计算机程序被处理器执行时还实现以下步骤:当完成所述智能机器人的消息接收参数、所述消息发送参数和所述频率参数的配置时,向所述智能机器人的反向接口地址发起数据传输请求;其中,所述数据传输请求,用于指示所述智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送所述通知消息。In one embodiment, the configuration request operation includes clicking on the robot interface address in the robot details page; when the computer program is executed by the processor, it further implements the following steps: when the configuration of the message receiving parameters, the message sending parameters and the frequency parameters of the intelligent robot is completed, a data transmission request is initiated to the reverse interface address of the intelligent robot; wherein, the data transmission request is used to instruct the intelligent robot to push the notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:获取所述智能机器人的响应地址;通过所述响应地址上传更新的控件文案和消息卡片;其中,所述控件文案用于对所述目标消息卡片上显示的控件文案进行更新。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining the response address of the intelligent robot; uploading updated control text and message card through the response address; wherein the control text is used to update the control text displayed on the target message card.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:当向智能机器人发送交互消息,或在母应用的通信群组中添加智能机器人的通信账号,或将智能机器人的通信账号从通信群组中移除,或进入与智能机器人交互的会话页面,生成交互事件;将交互事件进行加密,得到加密交互事件;将加密交互事件回调至智能机器人,以使智能机器人对加密交互事件进行解密,并处理解密所得的交互事件。In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when sending an interactive message to the intelligent robot, or adding the intelligent robot's communication account to the communication group of the parent application, or removing the intelligent robot's communication account from the communication group, or entering the session page for interacting with the intelligent robot, an interactive event is generated; the interactive event is encrypted to obtain an encrypted interactive event; the encrypted interactive event is called back to the intelligent robot so that the intelligent robot can decrypt the encrypted interactive event and process the decrypted interactive event.

需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. 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 databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims (23)

1.一种通知消息的处理方法,其特征在于,所述方法包括:1. A method for processing notification messages, characterized in that the method includes: 接收智能机器人推送子应用的通知消息;Receive notification messages from sub-applications pushed by the intelligent robot; 在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The notification message is displayed as a target message card in the parent application's session page; 响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;In response to an interactive operation triggered on the target message card, the intelligent robot sends an interactive request to the application backend of the sub-application. 接收所述智能机器人返回的针对所述交互请求的处理结果;Receive the processing result of the interaction request returned by the intelligent robot; 基于所述处理结果对所述通知消息的处理状态进行更新并显示。The processing status of the notification message is updated and displayed based on the processing result. 2.根据权利要求1所述的方法,其特征在于,所述接收智能机器人推送子应用的通知消息包括:2. The method according to claim 1, wherein receiving the notification message from the intelligent robot pushing the sub-application includes: 接收智能机器人推送子应用触发目标事件时获得的通知消息;Receive notification messages obtained when a target event is triggered by a push notification from a sub-application pushed by an intelligent robot; 其中,所述目标事件包括邀请目标对象加入目标任务组、请求所述目标对象赋予文件访问权限、提示所述目标对象完成待办任务、其他对象对目标文件执行了第一操作或第二操作中的至少一种。The target events include at least one of the following: inviting the target object to join the target task group, requesting the target object to grant file access permissions, prompting the target object to complete the pending task, or other objects performing a first operation or a second operation on the target file. 3.根据权利要求1所述的方法,其特征在于,所述响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求包括:3. The method according to claim 1, wherein sending an interaction request to the application backend of the sub-application via the intelligent robot in response to an interactive operation triggered on the target message card includes: 响应于在所述目标消息卡片上触发的交互操作,生成匹配的交互消息;In response to an interactive operation triggered on the target message card, a matching interactive message is generated; 对所述交互消息进行加密;The interactive messages are encrypted; 将加密后的所述交互消息作为消息体进行封装,得到所述交互请求;The encrypted interaction message is encapsulated as a message body to obtain the interaction request; 通过所述智能机器人向所述子应用的应用后台发送所述交互请求。The intelligent robot sends the interaction request to the application backend of the sub-application. 4.根据权利要求1所述的方法,其特征在于,所述通知消息是请求目标对象赋予文件访问权限的消息;4. The method according to claim 1, wherein the notification message is a message requesting the target object to grant file access permissions; 所述以目标消息卡片的形式显示所述通知消息之后,所述方法还包括:After displaying the notification message in the form of a target message card, the method further includes: 在所述目标消息卡片中显示同意授权控件;A consent/authorization control is displayed in the target message card; 所述响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求包括:The step of sending an interaction request to the application backend of the sub-application via the intelligent robot in response to an interactive operation triggered on the target message card includes: 响应于对所述同意授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送授权请求。In response to the triggering of the consent/authorization control, the intelligent robot sends an authorization request to the application backend of the sub-application. 5.根据权利要求4所述的方法,其特征在于,所述以目标消息卡片的形式显示所述通知消息之后,所述方法还包括:5. The method according to claim 4, characterized in that, after displaying the notification message in the form of a target message card, the method further includes: 在所述目标消息卡片中显示候选授权选项;Candidate authorization options are displayed in the target message card; 响应于对所述候选授权选项的选择操作,选择目标授权项;In response to the selection operation of the candidate authorization options, the target authorization item is selected; 所述响应于对所述同意授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送授权请求包括:The step of sending an authorization request to the application backend of the sub-application via the intelligent robot in response to the triggering operation of the authorization control includes: 响应于对所述同意授权控件的触发操作,基于所述目标授权项生成授权请求,并通过所述智能机器人向所述子应用的应用后台发送所述授权请求。In response to the triggering operation of the consent authorization control, an authorization request is generated based on the target authorization item, and the authorization request is sent to the application backend of the sub-application through the intelligent robot. 6.根据权利要求4所述的方法,其特征在于,所述方法还包括:6. The method according to claim 4, characterized in that the method further comprises: 在对应于所述同意授权控件的位置显示拒绝授权控件;Display a deny authorization control in the location corresponding to the consent authorization control; 响应于对所述拒绝授权控件的触发操作,通过所述智能机器人向所述子应用的应用后台发送拒绝授权请求。In response to the triggering operation of the denied authorization control, the intelligent robot sends a denied authorization request to the application backend of the sub-application. 7.根据权利要求1所述的方法,其特征在于,所述通知消息是邀请目标对象加入目标任务组的消息;7. The method according to claim 1, wherein the notification message is a message inviting the target object to join the target task group; 所述以目标消息卡片的形式显示所述通知消息之后,所述方法还包括:After displaying the notification message in the form of a target message card, the method further includes: 在所述目标消息卡片中划分第一区域和突出显示的第二区域;所述通知消息显示于所述第一区域;The target message card is divided into a first area and a highlighted second area; the notification message is displayed in the first area. 在所述第二区域中显示于所述目标任务组关联的图标和关键词。The second area displays icons and keywords associated with the target task group. 8.根据权利要求7所述的方法,其特征在于,所述响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求包括:8. The method according to claim 7, wherein sending an interaction request to the application backend of the sub-application via the intelligent robot in response to an interactive operation triggered on the target message card comprises: 响应于在所述目标消息卡片的第二区域上触发的交互操作,显示加入页面或确认窗口;In response to an interactive operation triggered on the second area of the target message card, a join page or confirmation window is displayed; 响应于在所述加入页面或所述确认窗口上触发的加入操作,通过所述智能机器人向所述子应用的应用后台发送加入请求;或者,响应于在所述加入页面或所述确认窗口上触发的拒绝加入操作,通过所述智能机器人向所述子应用的应用后台发送拒绝加入请求。In response to a join operation triggered on the join page or the confirmation window, the intelligent robot sends a join request to the application backend of the sub-application; or, in response to a refuse join operation triggered on the join page or the confirmation window, the intelligent robot sends a refuse join request to the application backend of the sub-application. 9.根据权利要求1所述的方法,其特征在于,所述通知消息是提示所述目标对象完成待办任务的消息;9. The method according to claim 1, wherein the notification message is a message prompting the target object to complete the pending task; 所述响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求包括:The step of sending an interaction request to the application backend of the sub-application via the intelligent robot in response to an interactive operation triggered on the target message card includes: 响应于在所述目标消息卡片上触发的显示操作,在所述母应用的任务处理页面显示所述待办任务;In response to a display operation triggered on the target message card, the to-do task is displayed on the task processing page of the parent application; 当完成所述待办任务时,通过所述智能机器人向所述子应用的应用后台发送任务状态变更请求。When the task is completed, the intelligent robot sends a task status change request to the application backend of the sub-application. 10.根据权利要求1至9中的任一项所述的方法,其特征在于,所述方法还包括:10. The method according to any one of claims 1 to 9, characterized in that the method further comprises: 依据所述通知消息确定业务类型;The service type is determined based on the notification message; 基于所述业务类型获取匹配的目标消息卡片;Obtain the matching target message card based on the business type; 其中,所述目标消息卡片是基于跨平台引擎生成的跨平台应用的模板卡片。The target message card is a template card for a cross-platform application generated based on a cross-platform engine. 11.根据权利要求1至9中的任一项所述的方法,其特征在于,所述接收智能机器人推送子应用的通知消息之前,所述方法还包括:11. The method according to any one of claims 1 to 9, characterized in that, before receiving the notification message from the intelligent robot pushing the sub-application, the method further comprises: 显示机器人详情页面;Display the robot details page; 响应于在所述机器人详情页面触发的配置请求操作,显示机器人配置页面;In response to a configuration request triggered on the robot details page, the robot configuration page is displayed; 响应于在所述机器人配置页面触发的配置操作,对所述智能机器人的消息接收参数和消息发送参数进行配置,以及对所述智能机器人发送消息的频率参数进行配置。In response to a configuration operation triggered on the robot configuration page, the message receiving parameters and message sending parameters of the intelligent robot are configured, as well as the frequency parameters for the intelligent robot to send messages are configured. 12.根据权利要求11所述的方法,其特征在于,所述对所述智能机器人发送消息的频率参数进行配置包括:12. The method according to claim 11, wherein configuring the frequency parameters for sending messages by the intelligent robot includes: 配置所述智能机器人向所述母应用中各通信群组广播消息的频次不超过第一阈值;The frequency at which the intelligent robot broadcasts messages to each communication group in the parent application does not exceed a first threshold. 配置所述智能机器人向单个通信群组发送消息的频次不超过第二阈值;The frequency at which the intelligent robot sends messages to a single communication group shall not exceed a second threshold. 配置所述智能机器人在单位时间调用接口发消息的数量不超过第三阈值;The intelligent robot is configured to send no more than a third threshold number of messages per unit time via the interface; 配置所述智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。The configuration ensures that the number of concurrent requests made by the intelligent robot when sending messages with the same message body does not exceed a fourth threshold. 13.根据权利要求11所述的方法,其特征在于,所述配置请求操作包括对所述机器人详情页面中的机器人接口地址的点击操作;13. The method according to claim 11, wherein the configuration request operation includes a click operation on the robot interface address in the robot details page; 当完成所述智能机器人的消息接收参数、所述消息发送参数和所述频率参数的配置时,向所述智能机器人的反向接口地址发起数据传输请求;When the configuration of the message receiving parameters, message sending parameters and frequency parameters of the intelligent robot is completed, a data transmission request is initiated to the reverse interface address of the intelligent robot; 其中,所述数据传输请求,用于指示所述智能机器人在检测到子应用触发目标事件时,向母应用中的目标通信群组或群组成员对象推送所述通知消息。The data transmission request is used to instruct the intelligent robot to push the notification message to the target communication group or group member object in the parent application when it detects that the sub-application has triggered a target event. 14.根据权利要求1至9中的任一项所述的方法,其特征在于,所述方法还包括:14. The method according to any one of claims 1 to 9, characterized in that the method further comprises: 获取所述智能机器人的响应地址;Obtain the response address of the intelligent robot; 通过所述响应地址上传更新的控件文案和消息卡片;Upload updated control text and message cards via the response address; 其中,所述控件文案用于对所述目标消息卡片上显示的控件文案进行更新。The control text is used to update the control text displayed on the target message card. 15.根据权利要求1至9中的任一项所述的方法,其特征在于,所述方法还包括:15. The method according to any one of claims 1 to 9, characterized in that the method further comprises: 当向所述智能机器人发送交互消息,或在所述母应用的通信群组中添加所述智能机器人的通信账号,或将所述智能机器人的通信账号从所述通信群组中移除,或进入与所述智能机器人交互的会话页面,生成交互事件;An interactive event is generated when an interactive message is sent to the intelligent robot, or when the intelligent robot's communication account is added to the communication group of the parent application, or when the intelligent robot's communication account is removed from the communication group, or when a session page for interacting with the intelligent robot is entered. 将所述交互事件进行加密,得到加密交互事件;The interaction event is encrypted to obtain an encrypted interaction event; 将所述加密交互事件回调至所述智能机器人,以使所述智能机器人对所述加密交互事件进行解密,并处理解密所得的交互事件。The encrypted interaction event is then sent back to the intelligent robot, so that the intelligent robot can decrypt the encrypted interaction event and process the decrypted interaction event. 16.一种通知消息的处理方法,其特征在于,所述方法包括:16. A method for processing notification messages, characterized in that the method includes: 向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;Push notification messages from child applications to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the session page; 接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;Receive an interaction request initiated by the parent application; the interaction request is generated by the parent application upon detecting an interaction operation triggered on the target message card; 将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The interaction request is forwarded to the application backend of the sub-application, so that the application backend executes the interaction request, obtains the processing result, and provides feedback. 当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。When the processing result is received from the application's backend, the processing result is pushed to the target object so that the parent application updates and displays the processing status of the notification message based on the processing result. 17.根据权利要求16所述的方法,其特征在于,所述方法应用于智能机器人,所述目标对象为通信群组内的成员对象;所述方法还包括:17. The method according to claim 16, wherein the method is applied to an intelligent robot, and the target object is a member object within a communication group; the method further comprises: 所述智能机器人向所述母应用中各所述通信群组广播消息的频次不超过第一阈值;The frequency at which the intelligent robot broadcasts messages to each of the communication groups in the parent application does not exceed a first threshold. 所述智能机器人向单个所述通信群组发送消息的频次不超过第二阈值;The frequency with which the intelligent robot sends messages to a single communication group does not exceed a second threshold. 所述智能机器人在单位时间调用接口发消息的数量不超过第三阈值;The number of messages sent by the intelligent robot through the interface per unit time does not exceed the third threshold. 所述智能机器人在发送相同消息包体的消息时并发请求的数量不超过第四阈值。The number of concurrent requests made by the intelligent robot when sending messages with the same message body does not exceed the fourth threshold. 18.根据权利要求16所述的方法,其特征在于,所述将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈包括:18. The method according to claim 16, wherein forwarding the interaction request to the application backend of the sub-application, so that the application backend executes the interaction request, obtains a processing result, and provides feedback, comprises: 对所述交互请求进行解封装,得到经过加密的交互消息;The interaction request is decapsulated to obtain an encrypted interaction message; 对经过加密的所述交互消息进行解密,得到解密后的交互消息;The encrypted interaction message is decrypted to obtain the decrypted interaction message; 将解密后的所述交互消息转发至所述子应用的应用后台,以使所述应用后台基于所述交互信息进行处理得到处理结果并进行反馈。The decrypted interaction message is forwarded to the application backend of the sub-application, so that the application backend processes the interaction information, obtains the processing result, and provides feedback. 19.一种通知消息的处理装置,其特征在于,所述装置包括:19. A notification message processing apparatus, characterized in that the apparatus comprises: 接收模块,用于接收智能机器人推送子应用的通知消息;The receiving module is used to receive notification messages pushed by the intelligent robot to the sub-application; 消息显示模块,用于在母应用的会话页面中,以目标消息卡片的形式显示所述通知消息;The message display module is used to display the notification message in the form of a target message card in the session page of the parent application; 发送模块,用于响应于在所述目标消息卡片上触发的交互操作,通过所述智能机器人向所述子应用的应用后台发送交互请求;The sending module is used to respond to the interactive operation triggered on the target message card and send an interactive request to the application background of the sub-application through the intelligent robot; 所述接收模块,还用于接收所述智能机器人返回的针对所述交互请求的处理结果;The receiving module is also configured to receive the processing result of the interaction request returned by the intelligent robot; 更新显示模块,用于基于所述处理结果对所述通知消息的处理状态进行更新并显示。The update display module is used to update and display the processing status of the notification message based on the processing result. 20.一种通知消息的处理装置,其特征在于,所述装置包括:20. A notification message processing apparatus, characterized in that the apparatus comprises: 推送模块,用于向母应用中的目标对象推送子应用的通知消息,以使所述母应用以目标消息卡片的形式将所述通知消息显示于会话页面;The push module is used to push notification messages from the child application to target objects in the parent application, so that the parent application displays the notification messages in the form of target message cards on the conversation page; 接收模块,用于接收所述母应用发起的交互请求;所述交互请求是所述母应用在检测到所述目标消息卡片上触发的交互操作而产生的;A receiving module is used to receive an interaction request initiated by the parent application; the interaction request is generated by the parent application when it detects an interaction operation triggered on the target message card; 转发模块,用于将所述交互请求转发至所述子应用的应用后台,以使所述应用后台执行所述交互请求得到处理结果并进行反馈;The forwarding module is used to forward the interaction request to the application backend of the sub-application, so that the application backend can execute the interaction request, obtain the processing result, and provide feedback. 所述推送模块,还用于当接收到所述应用后台反馈的处理结果时,向所述目标对象推送所述处理结果,以使所述母应用基于所述处理结果对所述通知消息的处理状态进行更新并显示。The push module is further configured to push the processing result to the target object when it receives the processing result from the application's backend, so that the parent application updates and displays the processing status of the notification message based on the processing result. 21.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至18中任一项所述的方法的步骤。21. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 18. 22.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至18中任一项所述的方法的步骤。22. A computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 18. 23.一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至18中任一项所述的方法的步骤。23. A computer program product comprising a computer program, characterized in that, when executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 18.
HK42023080012.0A 2023-09-27 Notification message processing method, apparatus, computer device, and storage medium HK40091078A (en)

Publications (1)

Publication Number Publication Date
HK40091078A true HK40091078A (en) 2023-12-01

Family

ID=

Similar Documents

Publication Publication Date Title
US12108310B2 (en) Message extension app store
US9117087B2 (en) System and method for creating a secure channel for inter-application communication based on intents
CN107491296B (en) A messaging app that interfaces with one or more extension apps
US9027108B2 (en) Systems and methods for secure file portability between mobile applications on a mobile device
US10693821B2 (en) System and method for delivering inline interactive objects encapsulated in a message
US11695582B2 (en) Method, system, and non-transitory computer-readable record medium for providing multiple group calls in one chatroom
US20230396661A1 (en) Systems and methods for sharing content externally from a group-based communication platform
CN113260998B (en) Secure online collaboration
US12050705B2 (en) Enhanced security features for controlling access to shared content and private content of a shared document
JP2014531650A (en) Group opt-in link
CN107431708A (en) Session transfer between resources
EP3859546A1 (en) Recommending files for file sharing system
US20210208751A1 (en) Systems and methods for saas overlays using embedded browser
JP2023521508A (en) Mail processing method, device, electronic device and storage medium
US11804954B2 (en) Encryption key management for an automated workflow
CN113746719A (en) Task information processing method and device, electronic equipment and storage medium
CN114828000A (en) Login method, device and computer readable storage medium
CN116644040A (en) Conversation message processing method, device, computer equipment and storage medium
CN116627666A (en) Processing method and device of notification message, computer equipment and storage medium
US9699243B2 (en) User interface delegation to a delegated device
HK40091078A (en) Notification message processing method, apparatus, computer device, and storage medium
EP3142320A1 (en) Remote modification of a document database by a mobile telephone device
WO2024198827A1 (en) Information processing method and apparatus, and electronic device
US20230104786A1 (en) Time zone translation platform
Choudhry A cloud storage and file sharing platform with end-to-end data privacy