Data processing method and device
By receiving the association between the session identifier and the information collection in the instant messaging application and executing the workflow, the problem of insufficient business functions in the communication session is solved, and a richer user experience and service quality are achieved.
Patent Information
- Application Number
- PCT/CN2024/079381
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-02-29
- Publication Date
- 2024-09-26
AI Technical Summary
In the communication session scenario of instant messaging applications, existing technologies are difficult to provide diverse business functions, limiting user experience and service quality.
By receiving instructions containing session identifiers, the information set is determined, and the workflow is executed based on the association with the session, and business functions corresponding to the information set are provided to provide more business functions in the communication session.
It provides users with more business functions in communication session scenarios, improves user experience and service quality, and meets the needs of different session scenarios.
Smart Images

Figure CN2024079381_26092024_PF_FP
Abstract
Description
Data processing method and device
[0001] This application claims priority to the Chinese invention patent application entitled “A Data Processing Method and Device” and application number 202310288134.7, filed on March 22, 2023. The entire contents of that application are incorporated herein by reference. Technical Field
[0002] This specification relates to the field of data processing technology, and in particular to a data processing method and device. Background Art
[0003] Currently, with the development of the Internet and instant messaging technology, more and more individuals and teams like to handle daily activities and / or work tasks in communication sessions of instant messaging applications. Therefore, how to utilize the communication sessions of instant messaging applications to provide users with better services is crucial.
[0004] Summary of the Invention
[0005] One or more embodiments of this specification provide a data processing method and apparatus to provide users with more business functions in a communication session scenario of an instant messaging application.
[0006] According to a first aspect, a data processing method is provided, comprising:
[0007] receiving a first instruction including a session identifier of a first session, and determining a first information set; wherein a first association relationship between the first session and the first information set is stored in a first preset location;
[0008] A first workflow is executed based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session.
[0009] According to a second aspect, a data processing method is provided, comprising:
[0010] Obtaining an information storage request from the target program, where the information storage request carries a session identifier of the first session;
[0011] In response to the information storage request, correspondingly storing the session identifier of the first session and the identifier of the first information set to establish a first association relationship between the first session and the first information set, so that the target program provides a service function corresponding to the first information set for the first session based on the first association relationship;
[0012] The first information set includes at least part of the content of the target information set.
[0013] According to a third aspect, a data processing method is provided, comprising:
[0014] Acquire a target program, wherein the target program is associated with a first information set;
[0015] Get the target object;
[0016] Establishing an association relationship between the target object and the target program;
[0017] When the target program learns through the target object that a preset event in the target session is triggered, the target program executes a first workflow to provide a business function corresponding to the first information set in the target session.
[0018] According to a fourth aspect, there is provided a data processing apparatus, comprising:
[0019] A first receiving and determining module is configured to receive a first instruction including a session identifier of a first session and determine a first information set; wherein a first association relationship between the first session and the first information set is stored in a first preset location;
[0020] A first execution module is configured to execute a first workflow based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session.
[0021] According to a fifth aspect, there is provided a data processing apparatus, wherein a first acquisition module is configured to acquire an information storage request from a target program, wherein the information storage request carries a session identifier of a first session;
[0022] The first storage module is configured to store the session identifier of the first session and the identifier of the first information set in response to the information storage request, so as to establish a first association relationship between the first session and the first information set, so that the target program provides the business function corresponding to the first information set for the first session based on the first association relationship; the first information set includes at least part of the content of the target information set.
[0023] According to a sixth aspect, there is provided a data processing apparatus, comprising:
[0024] a second acquisition module configured to acquire a target program, wherein the target program is associated with a first information set;
[0025] A third acquisition module is configured to acquire a target object;
[0026] An establishing module configured to establish an association relationship between the target object and the target program;
[0027] When the target program learns through the target object that a preset event in the target session is triggered, the target program executes a first workflow to provide a business function corresponding to the first information set in the target session.
[0028] According to a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute the method described in the first aspect, the second aspect, or the third aspect.
[0029] According to an eighth aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in the first aspect, the second aspect, or the third aspect is implemented.
[0030] According to the method and apparatus provided in the embodiments of this specification, a first instruction including a session identifier of a first session is received, and a first information set is determined; wherein a first association relationship between the first session and the first information set is stored in a first preset location; and a first workflow is executed based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session. In the above process, after receiving the first instruction including the session identifier of the first session, the first information set is determined and then the first association relationship between the first session and the first information set is determined. Thereafter, based on the first association relationship, the first workflow for providing a business function corresponding to the first information set in the first session is executed, so as to provide the business function corresponding to the first information set for the first session, thereby achieving the effect of providing more business functions for the user in the session scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0032] FIG1 is a schematic diagram of an implementation framework of an embodiment disclosed in this specification;
[0033] 2A-2D are schematic diagrams of related interfaces in the service preparation stage according to an embodiment;
[0034] FIG3 is a flow chart of a data processing method provided in an embodiment;
[0035] FIG4 is another schematic flow chart of a data processing method provided in an embodiment;
[0036] FIG5 is another schematic flow chart of a data processing method provided in an embodiment;
[0037] FIG6 is a schematic block diagram of a data processing device provided in an embodiment;
[0038] FIG7 is a schematic block diagram of a data processing device provided in an embodiment;
[0039] FIG8 is a schematic block diagram of a data processing device provided in an embodiment;
[0040] FIG9 is a schematic block diagram of an electronic device provided by an embodiment. DETAILED DESCRIPTION
[0041] The technical solutions of the embodiments of this specification will be described in detail below with reference to the accompanying drawings.
[0042] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0043] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0044] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0045] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0046] The embodiments of this specification disclose a data processing method and apparatus. FIG1 is a schematic diagram of an implementation scenario according to an embodiment disclosed in this specification. In this implementation scenario, a data processing system can provide a target entity with a service corresponding to a target information set in a conversation scenario of an instant messaging application. The target information set is an information set corresponding to the target entity, and the target information set may include information related to the target entity. In one embodiment, the target entity may be any entity such as an organization, group, school, or enterprise. In one implementation, the target information set includes a first online form, and the first online form may be any online form of the target entity.
[0047] In one implementation, a data processing system may include a data processing service, a target object, and a target information set.
[0048] As shown in Figure 1, the process of the data processing system providing the target entity with a service for consuming the information set corresponding to the conversation in the conversation scenario of the instant messaging application can be divided into two stages, namely the service preparation stage and the service provision stage. The two stages are introduced below.
[0049] In stage one, a target object is first created to support interactive communication between the data processing service and users of the instant messaging application. In one embodiment, the target object is a chatbot or a pre-defined control in a conversation associated with the target entity. Conversations associated with the target entity include, for example, individual chat sessions with any member of the target entity and group chat sessions with any team of members of the target entity.
[0050] Specifically, if the target object is a preset control in a session associated with the target entity, the process of creating the target object may include: adding the preset control to any session associated with the target entity. Thereafter, establishing an association between the preset control and a data processing service, and binding a specified event (e.g., a trigger event) of the preset control to the data processing service, so that the data processing service can detect the specified event of the preset control.
[0051] In one implementation, the aforementioned construction of the association relationship between the preset control and the data processing service may be: configuring the control identifier of the preset control in the configuration information of the data processing service to construct the association relationship between the preset control and the data processing service.
[0052] It is understandable that, whether it is a chatbot or the preset control, its communication with the data processing service needs to be processed and forwarded by the instant messaging application server. Alternatively, in some embodiments, direct communication between the instant messaging client and the data processing service can also be achieved through configuration.
[0053] When the target object is a chatbot, the process of creating the target object may be: first, create an initial robot on the robot creation platform; then configure the initial robot with configuration permissions related to the business capabilities corresponding to the specified information set required by the data processing service in the conversation scenario (such as the first permission mentioned later), wherein the specified information set can be an information set corresponding to any conversation of the target entity and includes at least part of the content of the target information set. Through the above configuration, a chatbot corresponding to the target entity is obtained. The configuration permissions may include but are not limited to the following permissions: cloud document-related permissions, conversation message-related permissions, address book-related permissions, and the permission to obtain application information of instant messaging applications.
[0054] In one implementation, the robot creation platform can be a low-code platform, and the creator can use the low-code platform to visually create the initial robot and configure the initial robot with the aforementioned configuration permissions. The creator can be a person related to the target entity (for example, an employee of the target entity).
[0055] The address book related permissions include, for example, the permission to read the address book as an application, which is used to limit the scope of user data that the chatbot can obtain. For example, when the aforementioned address book related permissions are set to all members, it can be considered that the chatbot can obtain the data of all members under the target entity, and all members can search and use the chatbot. For another example, when the aforementioned address book related permissions are set to xx group (department), it can be considered that the chatbot can obtain the data of members under xx group (department) under the target entity, and only members of the xx group can search and use the chatbot.
[0056] In one implementation, application information permissions of an instant messaging application are obtained, where the obtained application information may include, for example, an application identifier and application-specific information (such as identifier information of a related session (a session entered by a chatbot)), which may be used to generate a menu name for a session menu.
[0057] In one implementation, cloud document permissions may include, but are not limited to, viewing, commenting, editing, and managing online tables (e.g., multi-dimensional tables); viewing, commenting, and exporting online tables; viewing, commenting, editing, and managing files in the cloud space (e.g., including files of the target entity in the cloud space). Conversation message permissions may include, but are not limited to, sending messages as an application; obtaining @bot messages from users (including members of the target entity) in a group; receiving @bot message events in a group chat; obtaining and sending single and group messages; obtaining single and group messages sent by users to the robot; obtaining single and group messages; reading group messages; obtaining and updating group information; obtaining all messages in a group; obtaining group information; obtaining and uploading images or file resources; and the like.
[0058] After the chatbot is created, it is published so that the chatbot can be found by the instant messaging application and the designated integration platform mentioned later. The designated integration platform is the platform that runs the data processing service.
[0059] Afterwards, the creator can establish an association relationship between the chatbot and the data processing service based on the designated integration platform, wherein the data processing service has been pre-downloaded to the server corresponding to the target entity, and the server has been pre-installed with the designated integration platform. Specifically, the creator can input the identification information of the chatbot through the connection management interface (as shown in FIG2A) provided by the client of the designated integration platform for the data processing service, wherein the identification information of the chatbot includes: the robot identifier (entered in the input position corresponding to the APP ID in FIG2A) and the robot key (entered in the input position corresponding to the APP Secret in FIG2A). The corresponding designated integration platform obtains the chatbot identifier and the robot key, which is equivalent to obtaining the chatbot, wherein the robot identifier and the robot key are generated during the process of creating the chatbot. As shown in FIG2A, it also includes the input position of the service to be connected, for example, "xx application authorization" can be entered to indicate the connection between the data processing service and the chatbot.
[0060] Then, the designated integration platform establishes an association relationship between the chat robot and the data processing service in response to a create and connect request generated by the creator triggering the create and connect control.
[0061] The creator then enters configuration information for the data processing service in the information configuration interface for the data processing service provided by the client of the designated integration platform (as shown in FIG2B ). The configuration information includes an access address link corresponding to the target information set, and may also include but is not limited to identification information of the target object (such as the robot identification and robot key of the chatbot), configuration of whether to automatically create a session menu (i.e., whether to automatically create a session menu after entering a session, where "Y" is selected for automatic creation), and configuration information related to the business capabilities corresponding to the specified information set that the data processing service needs to provide in the session scenario (such as the session menu configuration information and query configuration information mentioned later).
[0062] After the creator confirms that the data processing service is configured based on the service's configuration requirements, they trigger an installation request for the data processing service on the installation interface provided by the designated integration platform's client. The designated integration platform then installs the data processing service on the server corresponding to the target entity. At this point, the data processing service is associated with the target object and configured with the target information set.
[0063] Afterwards, in order to ensure that the data processing service can provide business functions corresponding to the information set related to the session in the session scenario of the instant messaging application, the callback address of the data processing service can also be obtained through the specified integration platform. The callback address is the address that can be used to call back the data processing service after the specified integration platform completes the installation of the data processing service.
[0064] Then, the creator subscribes to the specified event of the target object (such as a chat robot) for the data processing service based on the callback address. Specifically, the creator copies the callback address (as shown in Figure 2C) from the message processing page provided by the client of the designated integration platform for the data processing service. As shown in Figure 2C, the creator can find the callback address by triggering the "URL trigger" in the message processing page and entering the setting area of the "URL trigger". The callback address of the data processing service can be copied from the "callback address" as shown in Figure 2C.
[0065] The callback address is then pasted into the designated location (as shown in the "Request Address" section of FIG. 2D ) of the chatbot's request address configuration interface (the interface provided by the robot creation platform). The event addition operation is triggered in the request address configuration interface to add the chatbot's designated event, thereby configuring the callback address as the request URL for the chatbot's designated event. This completes the creation and storage of a correspondence between the chatbot's designated event's event identifier and the data processing service's callback address, allowing the data processing service to successfully subscribe to the chatbot's designated event. Subsequently, when any of the chatbot's designated events is triggered, it can be called back to the data processing service through the data processing service's callback address, allowing the data processing service to provide the business function corresponding to the corresponding information set for the conversation scenario.
[0066] In one implementation, as shown in Figure 2D, the designated event may include, for example, a robot entering a session, a robot being removed from a session, or a robot receiving a message. As shown in Figure 2D, each designated event also requires configuration of corresponding permissions.
[0067] In one implementation, the chat robot can also be configured to feedback messages in the instant messaging application session in the form of message cards. Accordingly, the callback address needs to be configured as the chat robot's message card request URL (configured in the message card information configuration interface provided by the robot creation platform) so that in the session, after the chat robot receives a trigger operation in the form of a message card sent by a session member to it (the chat robot), it can call back the request corresponding to the trigger operation to the data processing service through the callback address, and the data processing service provides corresponding business functions for the session.
[0068] After the above configuration, the target information set can be configured for the data processing service, the association relationship between the chat robot (target object) and the data processing service can be established, the association relationship between the target object and the target information set is established accordingly, and the data processing service is successfully subscribed to the specified event of the target object.
[0069] Then, in the robot security settings interface provided by the robot creation platform, you can configure the callback address as the chatbot's redirect URL (Uniform Resource Locator). Among them, add the redirect URL as the login-free authorization code jump address.
[0070] In a web browser, access the callback address to enter an authorization interface that instructs the chatbot to log into the instant messaging application without authorization. It is understood that the chatbot's redirect URL is configured as the callback address of the data processing service. Instructing the chatbot to log into the instant messaging application without authorization, in other words, instructing the data processing service to log into the instant messaging application without authorization. The authorization interface includes an authorization control. Subsequently, in response to the authorization instruction, the chatbot and the data processing service are authorized to log into the instant messaging application without authorization.
[0071] In one implementation, the target information set includes a first online form. Accordingly, in response to the authorization instruction, the data processing service further sends a form initialization request to the first online form. Accordingly, in response to the form initialization request, the first online form creates a first sub-table in the first online form. The first sub-table can be used to store information related to a business function corresponding to a corresponding session (a session in which the aforementioned preset control is configured or a session in which a chatbot is located) and a corresponding information set (including at least part of the content in the target information set) generated by the data processing service.
[0072] Through the above method, the service preparation phase is completed and then enters the service provision phase.
[0073] Specifically, in the service provision stage, after receiving a first instruction containing a session identifier of a first session, the data processing service determines a first information set and determines a first association relationship between the first session and the first information set, wherein the first association relationship between the first session and the first information set is stored in a first preset location, and the first instruction includes: an instruction generated when a session member user in the first session triggers a first preset operation in the user interface of the first session, and the first preset operation is an operation on a target object; in one implementation, the target object is a chatbot, and the first preset operation includes: an operation of adding the preset chatbot as a member of the first session; or, in another implementation, the target object is a preset control in the first session, and the first preset operation is an operation of triggering the preset control.
[0074] The data processing service then executes a first workflow based on the first association, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session. In one implementation, the business function may include, but is not limited to: providing a service for the first session to query a preset data set in the first information set, providing a session menu for the first session, thereby providing session members of the first session with an interface for inputting information into the preset data set and / or an interface for querying the preset data set.
[0075] In the above process, by creating and configuring the target object and configuring the data processing service, a relationship between the data processing service, the target object that can be configured in the instant messaging application, and the target information set is established, so that after the data processing service receives the first instruction containing the session identifier of the first session, determines the first information set and then determines the first association relationship between the first session and the first information set, it executes the first workflow for providing the business function corresponding to the first information set in the first session based on the first association relationship, so as to provide the first session with the business function corresponding to the first information set, thereby achieving the effect of providing users with more business functions in the session scenario.
[0076] The data processing method and device provided in this specification are described in detail below with reference to specific embodiments.
[0077] FIG3 is a flow chart showing a data processing method according to an embodiment of the present specification. The method can be implemented by a target program, which is used to provide the aforementioned data processing service. The target program can be installed in an electronic device, which can be implemented by any device, equipment, platform, device cluster, etc. having computing and processing capabilities. As shown in FIG3 , the method includes the following steps:
[0078] In step S310, the target program receives a first instruction including a session identifier of a first session and determines a first information set; wherein a first association between the first session and the first information set is stored in a first preset location. The first session may be any session in an instant messaging application that sends the first instruction to the target program, and the first session may be a group chat session or a single chat session.
[0079] In one implementation, the target program may establish a first association relationship between the first session and the first information set after receiving the first instruction and determining the first information set, and save the first association relationship in a first preset location. In another implementation, the target program may not be receiving the instruction containing the session identifier of the first session for the first time, and when the target program first receives the instruction containing the session identifier of the first session, it has already established the first association relationship between the first session and the first information set and saved the first association relationship in the first preset location. Accordingly, the target program may have saved the first association relationship between the first session and the first information set in the first preset location before receiving the first instruction. In this case, the target program may determine the first association relationship in the first preset location after receiving the first instruction and determining the first information set.
[0080] In one embodiment, the first instruction may include: an instruction generated when a session member user in the first session triggers a first preset operation in the user interface of the first session. In one implementation, the first preset operation is an operation on a target object; in one case, the target object is a chatbot, and accordingly, the first preset operation includes: an operation of adding the preset chatbot as a member of the first session, at which point any member of the first session can have a conversation with the chatbot. Alternatively, in another case, the target object is a preset control in the first session, and accordingly, the first preset operation is an operation of triggering the preset control. The preset control can be displayed at a preset position in the user interface of the first session, such as at the top or side of the user interface, where it does not affect the user's viewing and sending of messages. In addition, the preset control can also be displayed in a floating manner in the user interface of the first session.
[0081] Next, in step S320, the target program executes a first workflow based on the first association, where the first workflow is used to provide business functions corresponding to the first information set in the first session. In this step, after determining the first information set and the first association between the first session and the first information set, the target program executes the first workflow based on the first association to provide business functions corresponding to the first information set in the first session, thereby providing more business functions for the first session, improving the user experience of members of the first session, and enabling members of the first membership to better consume the first information set in the session context.
[0082] In one implementation, the first session is a session related to the target entity, wherein the session related to the target entity may include: a session of any entity member in the target entity, and a group chat session of any entity member team in the target entity. The first information set includes at least part of the content of the target information set, the target information set is an information set configured by the target program, and the target information set is an information set of the target entity, and the target information set includes information related to the target entity. Accordingly, the target program can provide business functions corresponding to the session-related information set (including at least part of the content of the target information set) for the session related to the target entity.
[0083] In one implementation, the target information set includes a first online table, and the first information set includes one or more sub-tables of the first online table. It should be noted that any sub-table of the first online table may use row storage or column storage. In one embodiment, in any sub-table of the first online table, a row corresponds to a record, a column corresponds to a field, and a record may include values of multiple fields. In one embodiment, the first online table may be a multidimensional table.
[0084] In one embodiment, the method may further include the following steps 11-12: in step 11, the target program receives a second instruction containing a session identifier of a second session, determines a second information set, wherein a second association relationship between the second session and the second information set is saved in a second preset location; then in step 12, executes a second workflow based on the second association relationship, wherein the second workflow is used to provide business functions corresponding to the second information set in the second session.
[0085] The business functions corresponding to the second information set and the business functions corresponding to the first information set are different types of business functions, or the business functions corresponding to the second information set and the business functions corresponding to the first information set are the same type of business functions but target different information content. The second information set may be a different information set from the first information set.
[0086] It is understood that the second instruction may include an instruction generated when a member user in the second session triggers a second preset operation in the user interface of the second session. In one implementation, the second preset operation is an operation directed at a target object. In one case, the target object is a chatbot. Accordingly, the second preset operation includes an operation that adds the preset chatbot as a member of the second session, allowing any member of the second session to converse with the chatbot. Alternatively, in another case, the target object is a preset control in the second session. Accordingly, the second preset operation is an operation that triggers the preset control.
[0087] In one implementation, the second association relationship may be stored in the second preset location before the target program receives the second instruction. In another implementation, the second association relationship may be established and stored in the second preset location after the target program receives the second instruction and determines the second information set.
[0088] In this embodiment, the target program can provide different service functions corresponding to the information sets corresponding to each session for different sessions. In other words, different sessions can consume their corresponding information sets through the target program, which can improve the breadth of services. Furthermore, considering the different needs of members in different sessions, the target program can provide different types of service functions for different sessions, that is, provide personalized service functions for different sessions, so as to provide service functions that meet the needs of different sessions.
[0089] In one embodiment, the first preset location may include: a first subtable of a first online form; the target program may store information about the first association relationship in the first subtable; in addition, the second preset location may also include: a first subtable of the first online form; and correspondingly, the first subtable may also store information about the second association relationship between the second session and the second information set.
[0090] In one case, the first online table may be a multidimensional table, the first subtable is a data table in the multidimensional table, the first subtable may adopt row storage or column storage, and relevant information of the first session and relevant information of the second session may be stored in different rows (or columns) of the first subtable, respectively.
[0091] The relevant information of the first session includes information about the first association relationship, and the relevant information of the second session includes information about the second association relationship. In one implementation, the relevant information of the first session may also include, but is not limited to, table permission information of the first session, i.e., table identifiers of one or more sub-tables of the first online table included in the first information set. For example, if the first session can use all sub-tables of the first online table, the table permission information of the first session may be "all." Similarly, the relevant information of the second session may also include, but is not limited to, table permission information of the second session, i.e., table identifiers of one or more sub-tables of the first online table included in the second information set. The one or more sub-tables of the first online table included in the first information set and the second information set may be the same or different.
[0092] In this embodiment, the first subtable can store associations between multiple sessions and their corresponding information sets. Based on any of these associations, the target program can provide business functions related to the corresponding information sets for the corresponding sessions, thereby increasing service breadth. Information about the first association and information about the second association are stored in different rows of the first subtable. If the first information set includes one or more subtables of a first online form, the information about the first association may include a session identifier for the first session stored in the first subtable of the first online form, thereby storing the first association between the first session and the first information set.
[0093] In one embodiment, if the first information set includes multiple sub-information sets corresponding to multiple business functions, the first workflow is used to provide multiple business functions corresponding to the multiple sub-information sets in the first session. In this embodiment, the target program can provide a variety of business functions for the first session to meet the various needs of the members of the first session. In one implementation, the business functions may include, but are not limited to, session menu functions (providing input and / or query for the corresponding information set) and query functions for the corresponding data set (such as the preset data set included in the first information set mentioned later).
[0094] Accordingly, in one embodiment, the first information set includes session menu configuration information and / or a preset data set. In one embodiment, when the first information set includes session menu configuration information, the first workflow is used to create a session menu indicated by the menu configuration information in the first session. The session menu is created in the first session to provide members of the first session with an information input interface and / or query interface corresponding to the first information set.
[0095] In one embodiment, the session menu configuration information may include configuration information for several menu items in the session menu, wherein the configuration information for any one of the menu items may include the name of the menu item and a corresponding form link for the menu item. The name of the menu item is displayed under the session menu of the user interface of the first session, and the corresponding form link of the menu item is used to provide an information input interface and / or a query interface to members of the first session. In one implementation, the target program may store the configuration information of the several menu items corresponding to the information of the first association relationship, for example, in a first subtable of a first online table, and further in the row of the first subtable containing the information of the first association relationship. The configuration information of the several menu items may be included in the aforementioned relevant information of the first session.
[0096] In one implementation, a session menu may include a first menu item. In response to a trigger instruction for the first menu item, the target program may determine the information input page corresponding to the first menu item based on the form link corresponding to the first menu item, and feed the information input page corresponding to the first menu item back to the first session side. The first session side may display the corresponding information input page based on the information input page information, and members of the first session (e.g., the member that triggered the trigger instruction) may enter the corresponding input information at a designated information input location on the information input page. Then, in response to an input request for the information input page corresponding to the first menu item, the target program stores the input information carried in the input request into a preset data set of the first information set. The form link corresponding to the first menu item is used to provide members of the first session with an information input interface for inputting information into the preset data set. In this implementation, an interface for inputting information into the preset data set may be provided to members of the first session through the session menu, thereby facilitating the members of the first session from inputting information into the preset data set.
[0097] In another embodiment, if the first information set includes session menu configuration information, the first workflow is further configured to: if a request to modify the menu configuration information is detected, update the session menu configuration information in the first information set based on the modified menu configuration information carried in the request, and accordingly update the session menu in the first session. In this embodiment, the target program also provides members of the first session with the function of modifying menu configuration information, so that members of the first session can configure the menu configuration information (e.g., the session menu name and / or the names of menu items under the session menu, etc.) to information that better suits their usage habits, thereby facilitating the use of the session menu by members of the first session. For example, the name of a menu item under the session menu can be modified to a name that is familiar to all members of the first session, so that members of the first session can identify the information input page corresponding to the menu item by simply seeing the name of the menu item.
[0098] In another embodiment, if a third instruction including a session identifier of a first session is received, the session menu in the first session is deleted, and the first association between the first session and the first information set stored in the first preset location is deleted. The third instruction may include an instruction generated when a session member user in the first session triggers a third preset operation in the user interface of the first session. The third preset operation may be an operation directed to a target object. In one embodiment, if the target object is a chatbot, the third preset operation includes removing the preset chatbot from the first session. In another embodiment, if the target object is a preset control, the third preset operation includes performing a first specific operation on the preset control. The first specific operation may include, for example, graying out the preset control (e.g., double-clicking the preset control, or turning off the control to trigger a function set for the preset control). Another embodiment may include clicking the preset control and selecting the option to delete the session menu displayed after clicking the preset control.
[0099] In another embodiment, if the first workflow receives a third instruction including a session identifier of the first session, it may also delete the session menu in the first session without performing the operation of deleting the first association relationship between the first session and the first information set stored in the first preset location. This is also possible.
[0100] In another embodiment, when the first information set includes a preset data set, the first workflow is used to provide a service for querying the preset data set in the first session through a data query interface in the first session. In one implementation, the preset data set may include data in one or more subtables of a first online form included in the first information set. In one scenario, when the target object is a chatbot, the data query interface may be a message sent by the chatbot in the first session or a message mentioning the chatbot in the first session. For example, a member of the first session may enter information in a message sent by the chatbot in the first session and trigger an information input instruction, or a member of the first session may mention the chatbot in the first session (e.g., by entering the "@" character and the chatbot's account ID). Accordingly, the target program may receive the information input instruction through the chatbot and provide a service for querying the preset data set in the first session. Specifically, the request URL for the chatbot's designated event is configured as the target program's callback address. Accordingly, when any of the chatbot's designated events is triggered, a callback to the target program may be made through the target program's callback address, so that the target program may receive the information input instruction through the chatbot and provide a service for querying the preset data set in the first session. The designated event may include, for example, the robot entering a session, the robot being removed from a session, or the robot receiving a message.
[0101] In this embodiment, the target program may execute the first workflow to provide members of the first session with a service for querying the preset data set, thereby improving the convenience for the members of the first session to consume the preset data set.
[0102] In yet another embodiment, if the first information set includes a preset data set, the first workflow is used to provide a service for querying the preset data set in the first session through a data query interface in the first session, and may specifically include steps 21-22:
[0103] The first workflow is used to receive a fourth instruction including a session identifier of the first session in step 21, obtain a query result matching the query keyword carried by the fourth instruction from a preset data set; and feed back the query result to the first session side in step 22.
[0104] The fourth instruction may include an instruction generated when a session member user in the first session triggers a fourth preset operation in the user interface of the first session. The fourth preset operation may be an operation directed to a target object. In one case, if the target object is a chatbot, the fourth preset operation may include: sending a message related to the chatbot in the user interface of the first session, or inputting information based on the message sent by the chatbot in the user interface of the first session. In another case, if the target object is a preset control, the fourth preset operation may include: performing a second specific operation on the preset control. The second specific operation may include, for example, triggering an information collection query control configured for the preset control. After the information collection query control is triggered, a fourth instruction including the session identifier of the first session may be sent to the target program.
[0105] After the first workflow (i.e., the target program) receives the fourth instruction containing the session identifier of the first session, it obtains the query results that match the query keywords carried by the fourth instruction from the preset data set, and feeds back the query results to the first session side to provide data query services to the members of the first session.
[0106] In one embodiment, the preset data set includes data in one or more subtables of a first online form included in the first information set. The first online form has a data query function. Accordingly, after receiving a fourth instruction including a session identifier of a first session, the first workflow (i.e., the target program) may send a data query request (also referred to as an information query request) carrying a query keyword and the session identifier of the first session to the first online form. Accordingly, the first online form may, in response to the data query request, obtain content matching the query keyword, i.e., a query result matching the query keyword carried in the fourth instruction, from the preset data set based on the session identifier of the first session, and feed the result back to the first workflow. Accordingly, the first workflow obtains the query result matching the query keyword carried in the fourth instruction.
[0107] In one implementation, when the first information set includes a preset data set, and the preset data set includes one or more sub-tables of the first online form, the first information set may further include query configuration information (which may be included in the relevant information of the first session mentioned above). The query configuration information may include but is not limited to query result configuration permissions.
[0108] The query result configuration permission may limit whether only the querying user can see the corresponding query results. In one scenario, if the query result configuration permission is set to allow only the querying user to see the corresponding query results, then, in step 22, feeding back the query results to the first session side may include sending the query results only to the client of the querying user in the first session. It is understood that the fourth instruction also carries the querying user identifier of the querying user. Sending the query results only to the client of the querying user can avoid disturbing other members of the first session and improve the user experience.
[0109] In another case, if the query result configuration permission is configured so that all users can see the corresponding query results, then, in step 22, feeding back the query results to the first session side may include: sending the query results to the clients of all members in the first session so that all members in the first session can understand the corresponding query results.
[0110] In one implementation, in order to better improve the user experience, the query results can be displayed in the form of message cards to improve the user experience.
[0111] In one implementation, the first information set includes one or more sub-tables in the first online form, and the preset data set includes data in the one or more sub-tables in the first online form. The aforementioned process of obtaining, from the preset data set, query results matching the query keyword carried in the fourth instruction in step 21 may specifically include steps 211-212:
[0112] In step 211, if it is determined that the fourth instruction also carries the first character, table identifiers of several queryable sub-tables are obtained based on the session identifier of the first session and / or the querying user identifier carried in the fourth instruction. The several queryable sub-tables are sub-tables in the first online form that the querying user corresponding to the first session and / or the querying user identifier has query permission to.
[0113] In step 212, based on the plurality of queryable sub-tables, a query result matching the query keyword is determined.
[0114] In this implementation, if the fourth instruction also carries the first character, it can be determined that the subtables for which the query permission is shared by the first session and / or the querying user, which triggered the fourth instruction, will be queried first. Specifically, the first workflow obtains table identifiers of several queryable subtables based on the session identifier of the first session and / or the querying user identifier carried in the fourth instruction. The several queryable subtables are subtables in the first online form for which the querying user corresponding to the first session and / or the querying user identifier has query permission.
[0115] In one implementation, to provide users with better service, the target program also sets advanced permission restrictions for sessions. Specifically, if the target program enables advanced permissions for the first session (configurable by the user), then, if the fourth instruction also carries the first character, the table identifiers of several queryable subtables can be obtained based on the session identifier of the first session and the querying user identifier carried by the fourth instruction. In this case, the several queryable subtables are subtables in the first online table that the querying user corresponding to the first session and the querying user identifier has query permissions for. This can filter out interference from other subtables (subtables that the querying user does not have query permissions for) on the query results required by the querying user, thereby improving the signal-to-noise ratio of the query results.
[0116] The process of obtaining table identifiers of the plurality of queryable sub-tables based on the session identifier of the first session and the query user identifier carried by the fourth instruction may be as follows: when the first workflow determines that the fourth instruction also carries the first character, the first workflow may send the session identifier of the first session, the query user identifier, and the query keyword to the first online form. The first online form may determine, based on the table identifiers of the sub-tables for which the querying user has query permission corresponding to the configured query user identifier, the sub-tables for which the querying user has query permission from one or more sub-tables included in the first information set, i.e., determine the sub-tables for which the first session and the querying user have query permission in common, determine the table identifiers of the sub-tables for which the first session and the querying user have query permission in common as the table identifiers of the plurality of queryable sub-tables, and then feed the table identifiers of the plurality of queryable sub-tables back to the first workflow (target program), so that the first workflow obtains the table identifiers of the plurality of queryable sub-tables.
[0117] If the target program does not enable advanced permissions for the first session (configurable by the user), accordingly, if the fourth instruction also carries the first character, the first workflow can obtain table identifiers of several queryable sub-tables based on the session identifier of the first session. In this case, the several queryable sub-tables are sub-tables in the first online table that the first session has query permissions for.
[0118] It can be understood that when the target object is a chat robot, the fourth instruction may carry not only the first character but also the account identifier of the chat robot. The account identifier may be the robot name configured when the chat robot is created.
[0119] After obtaining the table identifiers of the multiple queryable sub-tables, the query results can be determined based on the multiple queryable sub-tables. In one implementation, the aforementioned process of determining the query results matching the query keyword based on the multiple queryable sub-tables in step 212 can include the following step 2121:
[0120] In step 2121, if the number of queryable sub-tables is one, the first record matching the query keyword is retrieved from the queryable sub-table; and a query result is generated based on the first record. In this implementation, if the number of queryable sub-tables is one, the first workflow can directly retrieve the first record matching the query keyword from the one queryable sub-table. Correspondingly, if the number of queryable sub-tables is one, the first online form can retrieve the first record matching the query keyword from the one queryable sub-table and feed it back to the first workflow. Accordingly, the first workflow retrieves the first record matching the query keyword from the one queryable sub-table.
[0121] In another implementation, the aforementioned process of determining the query results matching the query keyword based on the plurality of queryable sub-tables in step 212 may further include the following steps 2122-2123:
[0122] In step 2122, if there are multiple queryable sub-tables, sub-table feedback information is generated based on the multiple queryable sub-tables, wherein the sub-table feedback information includes the table identifier of each queryable sub-table. In step 2123, a query result is generated based on the sub-table feedback information.
[0123] In this implementation, if there are multiple queryable sub-tables, in order to reduce data interference to members of the first session, the first workflow generates sub-table feedback information based on the multiple queryable sub-tables, wherein the sub-table feedback information includes the table identifier of each queryable sub-table; and based on the sub-table feedback information, determines the query results that match the query keyword.
[0124] Accordingly, in one implementation, the aforementioned process of determining the query result matching the query keyword based on the sub-table feedback information in step 2123 may include the following steps 31-34:
[0125] In step 31, the sub-table feedback information is fed back to the first session side.
[0126] In step 32, a sub-table query request triggered by sub-table feedback information is received, wherein the sub-table query request carries a table identifier of a target sub-table selected from table identifiers of several queryable sub-tables.
[0127] In step 33, in response to the sub-table query request, the first record matching the query keyword is obtained from the target sub-table.
[0128] In step 34 , a query result is generated based on the first record.
[0129] In this implementation, to reduce data interference for querying users, the first workflow generates sub-table feedback information and then feeds it back to the first session, allowing members of the first session (e.g., the querying user) to select the table they want to query. The first workflow then receives a sub-table query request triggered by the sub-table feedback information. In response to the sub-table query request, the first record matching the query keyword is retrieved from the target sub-table, and query results are generated based on the first record.
[0130] The aforementioned process of obtaining the first record matching the query keyword from the target sub-table may include: sending the table identifier of the target sub-table to the first online form; the first online form traversing the target sub-table and determining the first record matching the query keyword from the target sub-table; feeding the first record matching the query keyword back to the first workflow; and accordingly, the first workflow obtaining the first record matching the query keyword from the target sub-table.
[0131] For the sake of clarity, the process of generating a query result based on the first record can refer to the subsequent process of generating a query result based on the second record, and will not be repeated here.
[0132] In this implementation, when there are multiple queryable sub-tables, sub-table feedback information is fed back to the first session side so that the querying user selects the target sub-table that he needs to query, and then obtains the first record that matches the query keyword from the target sub-table, and generates a query result based on this type of first record. This can save data query consumption and reduce data interference caused to the querying user by data fed back from sub-tables that other querying users do not need to query, thereby improving the signal-to-noise ratio of the query result.
[0133] In another embodiment, the first information set includes one or more sub-tables in the first online table, and the preset data set includes data in the one or more sub-tables in the first online table. It should be noted that, in any sub-table of the first online table, a row corresponds to a record, a column corresponds to a field, and a record may include values for multiple fields. Accordingly, the aforementioned process of obtaining query results matching the query keyword carried in the fourth instruction from the preset data set in step 21 may further specifically include the following steps 213-214:
[0134] In step 213, several second records matching the query keyword carried in the fourth instruction are obtained from the first online form. The process of obtaining the several second records matching the query keyword carried in the fourth instruction from the first online form can be referred to as the process of obtaining the first records matching the query keyword carried in the fourth instruction, and will not be repeated here. It should be noted that the several second records may include several second records matching the query keyword carried in the fourth instruction, determined from several subtables of the first online form.
[0135] In step 214, a query result is generated based on the plurality of second records. The process of generating the query result may be different depending on the number of the plurality of second records. Specifically, in one implementation, step 214 may include the following step 2141:
[0136] In step 2141, if there is one second record, a query result is generated based on the values of all or part of the fields in the second record.
[0137] If there is only one second record, the first workflow can generate query results based on the values of all or some fields in the second record. Specifically, in one implementation, the query configuration information may also include multiple answer fields corresponding to each question field, where the question field and its corresponding answer fields are fields of a subtable in the first online form. The query keyword may be the value of any question field. The multiple second records matching the query keyword carried by the fourth instruction may be records that include the question field to which the query keyword belongs, and whose question field value is the query keyword.
[0138] In this case, the first workflow can include the values of at least several answer fields corresponding to the question field to which the query keyword belongs in the second record into the query results based on the question field to which the query keyword belongs and the several answer fields corresponding to each question field included in the query configuration information, so that the query user can clearly obtain the query results he needs.
[0139] In one case, the first workflow may also include the question field to which the query keyword in the second record belongs, the query keyword, the answer field corresponding to the question field to which the query keyword belongs, and its value into the query results, so that the query user can better determine whether the query results meet his query requirements.
[0140] For example: the field "Name" is the question field, its corresponding answer field includes the identity field, and the query keyword is "Zhang x". Accordingly, the second record determined is a record containing the field "Name" and the value of the field "Name" is "Zhang x". The query results generated based on the second record can include: the field "Name" and its value ("Zhang x"), as well as the identity field and its value.
[0141] In another implementation, the first workflow may directly determine all fields and their values of the second record as the query result.
[0142] In another implementation, step 214 may further include the following steps 2142-2145:
[0143] At step 2142, if there are multiple second records, record feedback information is generated, where the record feedback information includes the values of designated fields in each second record. In one embodiment, the designated fields may include fields corresponding to the query keyword, as well as other fields, to help the query user locate the desired results. The designated fields may be default fields or user-configured fields.
[0144] In step 2143, the recorded feedback information is fed back to the first session side.
[0145] In step 2144, a record query request triggered by record feedback information is received, wherein the record query request carries the value of a specified field in the selected target record from the values of specified fields in multiple second records, and the specified field includes the field corresponding to the query keyword.
[0146] In step 2145, in response to the record query request, a query result is generated based on the target record. The process of generating the query result based on the target record can refer to the process of generating the query result based on the second record, which will not be repeated here.
[0147] In this implementation, if there are multiple second records, to avoid a situation where an excessive number of second records would prevent all of them from being fed back to the first session, preventing the querying user from quickly locating the desired result, the first workflow can generate record feedback information, provided the number of second records does not exceed a preset number. The record feedback information includes the values of specified fields in each second record. The first workflow then feeds the record feedback information back to the first session, allowing the querying user to locate the desired result (record) based on the specified fields in each second record. In one embodiment, the record feedback information can also include the specified fields in each second record.
[0148] The first workflow then receives a record query request triggered by the record feedback information and parses the query request to extract the value of a specified field in the target record. The query request may be sent by a querying user to the target application via a target object. The first workflow then responds to the query request and generates query results based on the target record.
[0149] In this implementation, when there are multiple second records and the number of second records does not exceed a preset number, it can avoid feeding back too many second records to the querying user at one time, resulting in the user being unable to quickly locate the results they need, thereby better improving the user experience to a certain extent.
[0150] In another implementation, step 214 may further include the following steps 2146-21410:
[0151] At step 2146, if there are multiple second records, indication information for narrowing the query scope is determined based on the multiple second records, where the indication information includes at least one scope dimension for narrowing the query scope;
[0152] In step 2147, the indication information is fed back to the first session side;
[0153] At step 2148 , a scope reduction request triggered by the indication information is received, wherein the scope reduction request carries a feature value corresponding to at least one scope dimension;
[0154] At step 2149, a record having a characteristic value corresponding to at least one range dimension is determined from the plurality of second records;
[0155] In step 21410, query results are generated based on records that meet the feature values corresponding to at least one range dimension.
[0156] In this implementation, if there are multiple second records, to avoid a situation where an excessive number of second records would prevent all of them from being fed back to the first session, which would result in the querying user being unable to quickly locate the results they need, the first workflow can, if the number of second records exceeds a preset number, determine instruction information for narrowing the query scope based on the multiple second records, where the instruction information includes at least one scope dimension for narrowing the query scope. The first workflow then feeds the instruction information back to the first session, allowing the querying user to enter corresponding feature values for narrowing the query scope based on the at least one scope dimension. The first workflow then receives a scope narrowing request triggered by the instruction information, where the scope narrowing request carries a feature value corresponding to the at least one scope dimension, and determines, from the multiple second records, records that meet the feature value corresponding to the at least one scope dimension. Query results are generated based on the records that meet the feature value corresponding to the at least one scope dimension.
[0157] The process of generating query results based on records that meet the characteristic values corresponding to at least one range dimension can refer to the aforementioned process of generating query results based on a plurality of second records, which will not be repeated here.
[0158] In one implementation, the aforementioned range dimensions may include, but are not limited to, record creation time and record creator. In one embodiment, the indication information may also include feature value ranges corresponding to each range dimension. For example, if the range dimension includes record creation time, the query scope can be narrowed based on the record creation time. The feature value range corresponding to the record creation time included in the indication information may be calendar information, or a time range consisting of the earliest and latest times corresponding to multiple second records.
[0159] In this implementation, when the number of second records is too large (exceeding a preset number), a service of narrowing the query range is provided to the user so that the user can obtain the required results more quickly, thereby improving the user experience.
[0160] Corresponding to the above method embodiments, this embodiment further provides a data processing method, as shown in FIG4 , which is a flow chart of the data processing method. This method can be implemented by a first program, which can exist as the processing logic function portion of a first online form. For example, it can be a plug-in for the online form, adding the functions described in the steps of FIG4 below to the online form. The first program can be installed in an electronic device, which can be implemented by any device, equipment, platform, device cluster, etc. with computing and processing capabilities. As shown in FIG4 , the method includes the following steps:
[0161] In step S410, an information storage request is obtained from the target program, the information storage request carrying the session identifier of the first session. The target program is the target program implementing the aforementioned data processing method. The information storage request may be sent by the target program to the first program after receiving the aforementioned first instruction (including the session identifier of the first session) and determining the first information set. The first session may be any session in an instant messaging application that sends the first instruction to the target program, and the first session may be a group chat session or a single chat session.
[0162] Then, in step S420, in response to the information storage request, the session identifier of the first session and the identifier of the first information set are stored accordingly to establish a first association relationship between the first session and the first information set, so that the target program can provide the first session with business functions corresponding to the first information set based on the first association relationship. In this step, the first program can store the session identifier of the first session and the identifier of the first information set in a specified location in response to the information storage request to establish a first association relationship between the first session and the first information set. Then, based on the first association relationship, the target program can provide the first session with business functions corresponding to the first information set, thereby achieving the effect of consuming the first information set in the first session scenario and providing the members of the first session with more business functions corresponding to the first information set.
[0163] In one implementation, the information storage request may also carry an identifier of the first information set. Accordingly, the identifier of the first information set may be parsed by the first program from the information storage request. In another implementation, the identifier of the first information set may be obtained by the first program from a designated data storage space.
[0164] The first information set includes at least part of the contents of the target information set. In one implementation, the target information set may be the target information set configured for the target program before installation. The identifier of the first information set may be an identifier of at least part of the contents of the target information set. In one scenario, the target information set includes a first online table, and the first information set includes one or more sub-tables of the first online table. The one or more sub-tables of the first online table may be sub-tables that the first session has query permission for. The identifier of the first information set may be represented by the table identifiers of the one or more sub-tables of the first online table included therein.
[0165] In one embodiment, the first program may also receive a storage request containing a session identifier of the second session, and then, in response to the storage request, store the session identifier of the second session and the identifier of the second information set to establish a second association relationship between the second session and the second information set, so that the target program provides the second session with the business functions corresponding to the second information set based on the second association relationship. The business functions corresponding to the second information set and the business functions corresponding to the first information set are different types of business functions, or the business functions corresponding to the second information set and the business functions corresponding to the first information set are the same type of business functions, but the information content targeted by the business functions is different. In one case, the aforementioned storage request may also carry the identifier of the second information set.
[0166] In one embodiment, the target information set includes a first online form; accordingly, step S420 may include: storing the session identifier of the first session and the identifier of the first information set in the first subtable of the first online form. The first program stores the session identifier of the first session and the identifier of the first information set in the first subtable of the first online form to establish a first association relationship between the first session and the first information set. Then, the first subtable may also store the session identifiers of other sessions and the identifiers of their information sets (such as the session identifier of the second session and the identifier of the second information set mentioned above) to establish an association relationship between the session identifiers of other sessions and their information sets, so that the target program can provide the business functions corresponding to their information sets for other sessions based on the association relationship.
[0167] In one embodiment, before obtaining an information storage request from the target program in step S410, the method may further include step 31: In step 31, in response to a table initialization request received from the target program, creating a first subtable in the first online form. In this implementation, in response to the table initialization request received from the target program, the first program may first determine whether the first online form has already created the first subtable. If the first online form has not already created the first subtable, the first subtable may be created in the first online form. If the first online form has already created the first subtable, the first subtable may not be created again.
[0168] In one case, each field in the first subtable may be configured by default when the first subtable is created. In another case, if each field in the first subtable is not configured when the first subtable is created, the first program may configure each field in the first subtable after the first subtable is created. The fields include, but are not limited to, fields for storing session identifiers of sessions, fields for storing identifiers of information sets, and fields for menu configuration information mentioned later. The first program may configure the fields of the first subtable based on the obtained configuration instructions (including the fields in the first subtable that need to be configured).
[0169] In one embodiment, the first information set includes session menu configuration information; the method may further include the following steps 41-42:
[0170] In step 41, in response to the received timed update request, session menu configuration information is obtained from the first information set;
[0171] In step 42 , if it is determined that the session menu configuration information has been updated, the updated session menu configuration information is sent to the target program, so that the target program updates the session menu in the first session based on the updated session menu configuration information.
[0172] In this implementation, the first program may receive a scheduled update request from the target program and, in response to the scheduled update request, obtain session menu configuration information from the first information set, where the session menu configuration information in the first information set is the latest session menu configuration information. If it is determined that the session menu configuration information obtained from the first information set has been updated relative to the session menu configuration information stored in the preset data storage location (which may be referred to as historical session menu configuration information), the updated session menu configuration information, i.e., the session menu configuration information obtained from the first information set, is sent to the target program, so that the target program updates the session menu in the first session based on the updated session menu configuration information.
[0173] In one case, considering that the members of the first session have a high demand for the update time limit of the session menu configuration information, the target program sends the scheduled update request to the first program at a higher frequency, for example, sending the scheduled update request to the first program at a first frequency, and the first frequency may be, for example, once every minute.
[0174] In another implementation, the first information set includes one or more sub-tables of the first online form. If certain fields are added to the one or more sub-tables, after receiving the field update request, the first program obtains the added fields from the one or more sub-tables and sends the added fields to the target program, so that members of the first session can set the aforementioned question fields, answer fields and / or designated fields for the added fields.
[0175] Considering that the members of the first session do not have high requirements for the update time limit of the fields in the sub-table, the target program can send the field update request to the first program at a second frequency. The second frequency can be lower than the first frequency. For example, the second frequency can be sent every other day.
[0176] In one embodiment, the first information set includes a preset data set, and the method may further include the following steps 51-52:
[0177] In step 51, a first query request including a session identifier and query keywords for a first session is received. This first query request may be sent by the first workflow of the target program to the first program after receiving the aforementioned fourth instruction. After receiving the first query request, the first program parses the session identifier and query keywords from the first query request. Then, in step 52, in response to the first query request, content matching the query keywords is retrieved from a preset data set based on the session identifier of the first session.
[0178] In this implementation, the first information set may include one or more sub-tables of a first online form, the preset data set may be data in one or more sub-tables of the first online form, and the first program may determine the preset data set based on the session identifier of the first session, and then obtain content matching the query keyword from the preset data set.
[0179] Specifically, in one implementation, the first query request further carries a first character; the first information set includes one or more sub-tables of a first online form, and the preset data set is data in the one or more sub-tables of the first online form;
[0180] Step 52 may include the following steps: determining table identifiers of several queryable sub-tables that can be queried by the first session from one or more sub-tables of the first online form; and sending the table identifiers of the queryable sub-tables to the target program.
[0181] The one or more sub-tables of the first online table included in the first information set may all be sub-tables that can be queried by the first session, that is, the first session has permission to query the one or more sub-tables of the first online table included in the first information set. Accordingly, the first program may determine the table identifiers of the one or more sub-tables of the first online table as the table identifiers of the several queryable sub-tables that can be queried by the first session.
[0182] The table identifiers of the multiple queryable sub-tables are then sent to the target program, so that the target program determines the query results based on the table identifiers of the multiple queryable sub-tables. The process of determining the query results based on the table identifiers of the multiple queryable sub-tables by the target program can be found in the aforementioned embodiment of the target program side, which describes the process of determining the query results based on the table identifiers of the multiple queryable sub-tables and is not further described here.
[0183] In one scenario, the first query request may further carry a query user identifier of the querying user. Accordingly, the first program may first determine, from one or more subtables of the first online form, table identifiers of subtables for which the first session and the querying user have common query permissions, and use these identifiers as the table identifiers of the multiple queryable subtables. The first program may then send the table identifiers of the multiple queryable subtables to the target program. This improves the efficiency of the querying user in locating the required results based on the feedback from the target program, improves the signal-to-noise ratio, and ensures the security of the data in the first online form.
[0184] In one implementation, step 52 may further include the following steps: receiving a second query request including a table identifier of a target subtable; in response to the second query request, traversing the target subtable, determining a first record from the target subtable that matches the query keyword; and sending the first record to the target program. The target subtable may be a subtable selected by the querying user from the aforementioned plurality of queryable subtables.
[0185] In this implementation, the first query request may be sent by the target program to the first program after receiving an instruction from a query user to query a target subtable. The first program receives a second query request containing a table identifier of the target subtable, parses the target subtable identifier from the second query request, and, in response to the second query request, traverses the target subtable to determine a first record in the target subtable that matches the query keyword. The target program then sends the first record to the target program, which then provides query result feedback to the query user in the first session based on the first record, thereby providing the user in the first session with a service for querying a preset data set in the first information set.
[0186] In the above implementation, the first program can, after responding to the information storage request obtained from the target program, store the session identifier of the first session and the identifier of the first information set accordingly to establish a first association relationship between the first session and the first information set, so that the target program can provide the first session with business functions corresponding to the first information set based on the first association relationship, thereby providing a basis for consuming the first information set in the session scenario.
[0187] Corresponding to the above method embodiment, this embodiment also provides a data processing method, as shown in Figure 5, which is a flow chart of the data processing method. The method can be implemented by a second program, and the second program can be run on the aforementioned designated integrated platform. The second program can be installed in an electronic device, and the electronic device can be implemented by any device, equipment, platform, device cluster, etc. with computing and processing capabilities. As shown in Figure 5, the method includes the following steps:
[0188] In step S510, a target program is obtained, and the target program is associated with a first information set. The target program is the target program that can execute the first workflow. The first information set includes at least part of the content of the target information set. The target program is configured with an access address link of the target information set. Accordingly, the target program is associated with the first information set.
[0189] In step S520, the target object is obtained. In one implementation, the target object can be a chat robot or a preset control set in a session (such as the target session mentioned later). The second program can obtain the target object through the input of the corresponding creator. In the case where the target object is a chat robot, the creator can input the robot identification information of the chat robot in the connection management interface provided by the second program for the target program, wherein the robot identification information includes the robot identification and the robot key. Accordingly, the second program obtains the robot identification and the robot key of the chat robot, which is equivalent to obtaining the chat robot, wherein the robot identification and the robot key are generated in the process of creating the chat robot. In the case where the target object is a preset control set in a session, obtaining the target object can be obtaining the identification information of the preset control input by the creator in the connection management interface provided by the second program.
[0190] After obtaining the target program and the target object, in step S530, an association relationship between the target object and the target program is established;
[0191] When the target program learns, through the target object, that a preset event in a target session has been triggered, it executes a first workflow to provide a service function corresponding to the first information set in the target session. The target session may be the aforementioned first session, or a session corresponding to the aforementioned first session and having the first information set.
[0192] In this step, after the creator enters the identification information of the target object (such as the robot identification and robot key of the chat robot, or the control identification of the preset control) in the connection management interface provided by the second program for the target program, the creator can trigger the create and connect control provided in the connection management interface to generate a create and connect request. Accordingly, the second program establishes an association relationship between the target object and the target program in response to the create and connect request.
[0193] In one embodiment, the target object is pre-configured with the first permission required to implement the aforementioned business function; the first permission includes one or more of the following permissions: cloud document-related permissions, session message-related permissions, address book-related permissions, and permission to obtain application information of the application where the first session is located.
[0194] In one embodiment, the method further includes: configuring the request address of the designated event of the target object as the callback address of the target program, so that the target program subscribes to the designated event, where the designated event includes a preset event.
[0195] In this implementation, after the target program establishes an association with the target object, the creator enters configuration information for the target program in the information configuration interface for the target program provided by the second program, where the configuration information includes an access address link corresponding to the target information set, and may also include but is not limited to identification information of the target object (such as the robot identification and robot key of the chat robot), configuration information related to the business capabilities corresponding to the information set of the conversation scenario that the target program needs to provide in the conversation scenario (such as the aforementioned conversation menu configuration information, query configuration information, etc.), etc.
[0196] After the creator determines that the target program has been configured, the creator triggers an installation request for the target program in an installation interface for the target program provided by the second program. Accordingly, the second program installs the target program.
[0197] After the target program is installed, to ensure that it can provide data services for instant messaging conversations, the creator copies the callback address generated after the target program is installed from the message processing page provided by the second program for the target program. The creator then pastes the callback address into a designated location on the target object's request address configuration interface. Within the request address configuration interface, the creator triggers an event add operation to add a designated event for the target object. This configures the callback address as the target object's designated event's request network, creating and storing a corresponding relationship between the target object's designated event's event identifier and the target program's callback address, allowing the target program to successfully subscribe to the target object's designated event.
[0198] Afterwards, when any event in the designated event of the target object is triggered, the target program can be called back through the callback address of the target program, so that the target program can provide the business function corresponding to the corresponding information set for the conversation scenario.
[0199] The foregoing description describes specific embodiments of the present disclosure, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than that described in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily need to be performed in the specific order shown or in a sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0200] Corresponding to the above method embodiment, an embodiment of this specification provides a data processing device 600, a schematic block diagram of which is shown in FIG6 , including:
[0201] A first receiving and determining module 610 is configured to receive a first instruction including a session identifier of a first session and determine a first information set; wherein a first association relationship between the first session and the first information set is stored in a first preset location;
[0202] The first execution module 620 is configured to execute a first workflow based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session.
[0203] In an optional embodiment, the method further includes: a second receiving and determining module (not shown in the figure), configured to receive a second instruction including a session identifier of a second session, and determine a second information set; wherein the second association relationship between the second session and the second information set is stored in a second preset location;
[0204] a second execution module (not shown in the figure), configured to execute a second workflow based on the second association relationship, wherein the second workflow is used to provide a business function corresponding to the second information set in the second session;
[0205] Among them, the business function corresponding to the second information set and the business function corresponding to the first information set are different types of business functions, or the business function corresponding to the second information set and the business function corresponding to the first information set are the same type of business functions, but the information content targeted by the business functions is different.
[0206] In an optional implementation, the first instruction includes: an instruction generated when a session member user in the first session triggers a first preset operation in the user interface of the first session.
[0207] In an optional embodiment, the first preset operation is an operation on a target object; the target object is a chat robot, and the first preset operation includes: an operation of adding the preset chat robot as a member of the first conversation;
[0208] Alternatively, the target object is a preset control in the first session, and the first preset operation is an operation that triggers the preset control.
[0209] In an optional implementation manner, if the first information set includes multiple sub-information sets corresponding to multiple business functions,
[0210] The first workflow is used to provide multiple business functions corresponding to the multiple sub-information sets in the first session.
[0211] In an optional embodiment, the first preset location includes: a first sub-table of a first online table;
[0212] The first information set includes one or more sub-tables of the first online table;
[0213] The first subtable further stores information about a second association relationship between a second session and a second information set, where the second information set includes one or more subtables of the first online form.
[0214] In an optional implementation, the first information set includes session menu configuration information; the first workflow is used to create a session menu indicated by the menu configuration information in the first session; and / or
[0215] The first information set includes a preset data set; the first workflow is used to provide a service for querying the preset data set in the first session through a data query interface in the first session.
[0216] In an optional implementation, if the first information set includes session menu configuration information, the first workflow is further configured to: if a request to modify the menu configuration information is detected, update the session menu configuration information in the first information set based on the modified menu configuration information carried in the request, and correspondingly update the session menu in the first session;
[0217] Alternatively, if a third instruction including the session identifier of the first session is received, the session menu in the first session is deleted, and the first association relationship between the first session and the first information set stored in the first preset location is deleted.
[0218] In an optional implementation, if the first information set includes a preset data set, the first workflow, in providing a service for querying the preset data set in the first session through a data query interface in the first session, includes:
[0219] The first workflow is configured to receive a fourth instruction including a session identifier of the first session, and obtain a query result matching a query keyword carried in the fourth instruction from the preset data set;
[0220] Feedback the query result to the first session side.
[0221] In an optional embodiment, the first information set includes one or more sub-tables in a first online form, and the preset data set includes data in the one or more sub-tables in the first online form;
[0222] The process of obtaining a query result matching the query keyword carried by the fourth instruction from the preset data set includes:
[0223] If it is determined that the fourth instruction also carries the first character, obtaining, based on the session identifier of the first session and / or the querying user identifier carried in the fourth instruction, table identifiers of several queryable sub-tables, the several queryable sub-tables being sub-tables in the first online form that the querying user corresponding to the first session and / or the querying user identifier has query permission to perform;
[0224] Based on the plurality of queryable sub-tables, the query result matching the query keyword is determined.
[0225] In an optional embodiment, the process of determining the query result matching the query keyword based on the plurality of queryable sub-tables includes: if there is one of the plurality of queryable sub-tables, obtaining a first record matching the query keyword from the queryable sub-table; and generating the query result based on the first record;
[0226] Alternatively, if there are multiple queryable sub-tables, sub-table feedback information is generated based on the multiple queryable sub-tables, wherein the sub-table feedback information includes a table identifier of each queryable sub-table;
[0227] Based on the sub-table feedback information, the query result matching the query keyword is determined.
[0228] In an optional implementation manner, the process of determining the query result matching the query keyword based on the sub-table feedback information includes: feeding back the sub-table feedback information to the first session side;
[0229] receiving a sub-table query request triggered by the sub-table feedback information, wherein the sub-table query request carries a table identifier of a target sub-table selected from the table identifiers of the plurality of queryable sub-tables;
[0230] In response to the sub-table query request, obtaining a first record matching the query keyword from the target sub-table;
[0231] The query result is generated based on the first record.
[0232] In an optional embodiment, the first information set includes one or more sub-tables in a first online form, and the preset data set includes data in the one or more sub-tables in the first online form;
[0233] The process of obtaining a query result matching the query keyword carried by the fourth instruction from the preset data set includes: obtaining a plurality of second records matching the query keyword carried by the fourth instruction from one or more sub-tables in the first online form; if there is only one second record, generating the query result based on values of all or part of the fields in the second record;
[0234] Alternatively, if there are multiple second records, record feedback information is generated, wherein the record feedback information includes the value of a specified field in each second record; the record feedback information is fed back to the first session side; a record query request triggered by the record feedback information is received, wherein the record query request carries the value of a specified field in a target record selected from the values of the specified fields in the multiple second records; and in response to the record query request, the query result is generated based on the target record.
[0235] In an optional implementation manner, the process of obtaining a query result matching the query keyword carried by the fourth instruction from the preset data set further includes:
[0236] If there are multiple second records, determining indication information for narrowing the query scope based on the multiple second records, the indication information including at least one scope dimension for narrowing the query scope;
[0237] Feedback the indication information to the first session side;
[0238] Receive a scope reduction request triggered by the indication information, wherein the scope reduction request carries a characteristic value corresponding to at least one scope dimension:
[0239] Determining, from the plurality of second records, records that meet the characteristic value corresponding to the at least one range dimension;
[0240] The query result is generated based on the records that meet the feature value corresponding to the at least one range dimension.
[0241] Corresponding to the above method embodiment, an embodiment of this specification provides a data processing device 700, a schematic block diagram of which is shown in FIG7 , including:
[0242] A first acquisition module 710 is configured to acquire an information storage request from a target program, wherein the information storage request carries a session identifier of a first session;
[0243] a first storage module 720 configured to, in response to the information storage request, correspondingly store the session identifier of the first session and the identifier of the first information set to establish a first association between the first session and the first information set, so that the target program provides a service function corresponding to the first information set for the first session based on the first association;
[0244] The first information set includes at least part of the content of the target information set.
[0245] In an optional implementation, the information storage request further carries an identifier of the first information set.
[0246] In an optional embodiment, the target information set includes a first online form;
[0247] The first storage module 720 is specifically configured to store the session identifier of the first session and the identifier of the first information set in the first sub-table of the first online form in correspondence.
[0248] In an optional embodiment, the invention further comprises:
[0249] A creation module (not shown in the figure) is configured to create the first sub-table in the first online table in response to a table initialization request received from the target program before obtaining the information storage request from the target program.
[0250] In an optional implementation, the first information set includes session menu configuration information; and the apparatus further includes:
[0251] a fourth acquisition module (not shown in the figure), configured to acquire session menu configuration information from the first information set in response to the received scheduled update request;
[0252] A sending module (not shown in the figure) is configured to send the updated session menu configuration information to the target program if it is determined that the session menu configuration information has been updated, so that the target program updates the session menu in the first session based on the updated session menu configuration information.
[0253] In an optional implementation manner, the first information set includes a preset data set, and the apparatus further includes:
[0254] A first receiving module (not shown in the figure) is configured to receive a first query request including a session identifier of a first session and a query keyword;
[0255] A fifth acquisition module (not shown in the figure) is configured to, in response to the first query request, acquire content matching the query keyword from the preset data set based on the session identifier of the first session.
[0256] In an optional implementation, the first query request further carries a first character; the first information set includes one or more sub-tables of a first online form, and the preset data set includes data in the one or more sub-tables of the first online form;
[0257] The fifth acquisition module is specifically configured to determine, from one or more sub-tables of the first online form, table identifiers of several queryable sub-tables that can be queried by the first session;
[0258] Sending table identifiers of the plurality of queryable sub-tables to the target program;
[0259] or,
[0260] receiving a second query request including a table identifier of a target sub-table, and in response to the second query request, traversing the target sub-table to determine a first record matching the query keyword from the target sub-table;
[0261] The first record is sent to the target program.
[0262] In an optional implementation, the first information set includes one or more sub-tables of the first online form.
[0263] Corresponding to the above method embodiment, an embodiment of this specification provides a data processing device 800, a schematic block diagram of which is shown in FIG8 , including:
[0264] A second acquisition module 810 is configured to acquire a target program, wherein the target program is associated with a first information set;
[0265] A third acquisition module 820 is configured to acquire a target object;
[0266] An establishing module 830 is configured to establish an association relationship between the target object and the target program;
[0267] When the target program learns through the target object that a preset event in the target session is triggered, the target program executes a first workflow to provide a business function corresponding to the first information set in the target session.
[0268] In an optional implementation, the target object is configured with a first permission required to implement the business function;
[0269] The first permission includes one or more of the following permissions: cloud document-related permissions, session message-related permissions, address book-related permissions, and permission to obtain application information of the application where the first session is located.
[0270] In an optional implementation, the target object is a chat robot or a preset control in the first conversation.
[0271] In an optional implementation, the method further includes: configuring the request address of the designated event of the target object as the callback address of the target program, so that the target program subscribes to the designated event, wherein the designated event includes the preset event.
[0272] The above-mentioned device embodiments correspond to the method embodiments. For detailed descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For detailed descriptions, please refer to the corresponding method embodiments.
[0273] 9, which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiments of this specification. The electronic device shown in FIG9 is only an example and should not limit the functions and scope of use of the embodiments of this specification.
[0274] As shown in Figure 9, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0275] Typically, the following devices can be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 can allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 9 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively. Each box shown in Figure 9 may represent one device, or may represent multiple devices as needed.
[0276] In particular, according to an embodiment of the present specification, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present specification includes a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication device 909, or installed from the storage device 508, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present specification are performed.
[0277] The embodiments of this specification also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute the data processing method provided in this specification.
[0278] It should be noted that the computer-readable medium described in the embodiments of this specification may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the embodiments of this specification, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the embodiments of this specification, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or convey a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be conveyed using any suitable medium, including but not limited to wire, optical cable, RF (Radio Frequency), or any suitable combination thereof.
[0279] The computer-readable medium may be included in the electronic device, or may exist independently and not incorporated into the electronic device. The computer-readable medium carries one or more programs. When executed by the electronic device, the one or more programs cause the electronic device to: receive a first instruction containing a session identifier for a first session, determine a first information set; store a first association between the first session and the first information set in a first preset location; and execute a first workflow based on the first association, wherein the first workflow is used to provide a service function corresponding to the first information set in the first session.
[0280] Alternatively, the electronic device may: obtain an information storage request from a target program, the information storage request carrying a session identifier of a first session; and in response to the information storage request, correspondingly store the session identifier of the first session and the identifier of the first information set to establish a first association relationship between the first session and the first information set, thereby enabling the target program to provide the first session with a business function corresponding to the first information set based on the first association relationship, wherein the first information set includes at least part of the content of the target information set.
[0281] Or the electronic device is enabled to: obtain a target program, which is associated with a first information set; obtain a target object; and establish an association relationship between the target object and the target program; wherein, when the target program learns through the target object that a preset event in a target session is triggered, executes a first workflow to provide a business function corresponding to the first information set in the target session.
[0282] Computer program code for performing the operations of the embodiments of the present specification can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0283] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other, and each embodiment focuses on the differences between the other embodiments. In particular, the storage medium and computing device embodiments are described briefly because they are generally similar to the method embodiments. For relevant portions, refer to the description of the method embodiments.
[0284] Those skilled in the art will appreciate that, in one or more of the above examples, the functions described in the embodiments of the present disclosure may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0285] The specific implementation methods described above further illustrate the purpose, technical solutions, and beneficial effects of the embodiments of the present disclosure. It should be understood that the above description is only a specific implementation method of the embodiments of the present disclosure and is not intended to limit the scope of protection of the present disclosure. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A data processing method, comprising: Receiving a first instruction including a session identifier of a first session, and determining a first information set; wherein a first association relationship between the first session and the first information set is stored in a first preset location; A first workflow is executed based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session.
2. The method of claim 1, further comprising: receiving a second instruction including a session identifier of a second session, and determining a second information set; wherein a second association relationship between the second session and the second information set is stored in a second preset location; executing a second workflow based on the second association relationship, wherein the second workflow is used to provide a business function corresponding to the second information set in the second session; Among them, the business functions corresponding to the second information set and the business functions corresponding to the first information set are of different types of business functions, or the business functions corresponding to the second information set and the business functions corresponding to the first information set are of the same type of business functions, but the information content targeted by the business functions is different.
3. The method according to claim 1, wherein: The first instruction includes: The instruction is generated when a session member user in the first session triggers a first preset operation in the user interface of the first session.
4. The method according to claim 3, wherein the first preset operation is an operation on a target object; The target object is a chat robot, and the first preset operation includes: An operation of adding a preset chat robot as a member of the first conversation; or, The target object is a preset control in the first session, and the first preset operation is an operation that triggers the preset control.
5. The method of claim 1, wherein: If the first information set includes multiple sub-information sets corresponding to multiple business functions, The first workflow is used to provide multiple business functions corresponding to the multiple sub-information sets in the first session.
6. The method of claim 1, wherein: The first preset position includes: a first sub-table of a first online table; The first information set includes one or more sub-tables of the first online table; The first subtable also stores information about a second association relationship between a second session and a second information set, where the second information set includes one or more subtables of the first online form.
7. The method according to any one of claims 1 to 6, wherein: The first information set includes session menu configuration information; the first workflow is used to create a session menu indicated by the menu configuration information in the first session; and / or The first information set includes a preset data set; The first workflow is used to provide a service for querying the preset data set in the first session through a data query interface in the first session.
8. The method according to claim 7, wherein: If the first information set includes session menu configuration information, the first workflow is further used to: If a request to modify the menu configuration information is detected, based on the modified menu configuration information carried in the request, the session menu configuration information in the first information set is updated, and the session menu in the first session is updated accordingly; or, If a third instruction including the session identifier of the first session is received, the session menu in the first session is deleted, and the first association relationship between the first session and the first information set stored in the first preset location is deleted.
9. The method of claim 7, if the first information set includes a preset data set; The first workflow is used to provide a service for querying the preset data set in the first session through a data query interface in the first session, including: The first workflow is used to receive a fourth instruction including a session identifier of the first session, and obtain a query result matching a query keyword carried by the fourth instruction from the preset data set; Feedback the query result to the first session side.
10. The method of claim 9, wherein: The first information set includes one or more sub-tables in a first online table, and the preset data set includes data in one or more sub-tables in the first online table; The acquiring, from the preset data set, a query result matching the query keyword carried by the fourth instruction comprises: If it is determined that the fourth instruction also carries the first character, based on the session identifier of the first session and / or the fourth instruction The query user identifier carried by the query user is used to obtain table identifiers of several queryable sub-tables, where the several queryable sub-tables are sub-tables in the first online form that the query user corresponding to the first session and / or the query user identifier has query permission. Based on the plurality of queryable sub-tables, the query result matching the query keyword is determined.
11. The method according to claim 10, wherein determining the query result matching the query keyword based on the plurality of queryable sub-tables comprises: If the number of queryable sub-tables is one, obtaining a first record matching the query keyword from the queryable sub-table; Based on the first record, generating the query result; or, If there are multiple queryable sub-tables, generating sub-table feedback information based on the multiple queryable sub-tables, wherein the sub-table feedback information includes a table identifier of each queryable sub-table; Based on the sub-table feedback information, the query result matching the query keyword is determined.
12. The method of claim 11, wherein: The determining the query result matching the query keyword based on the sub-table feedback information includes: Feedback the sub-table feedback information to the first session side; receiving a sub-table query request triggered by the sub-table feedback information, wherein the sub-table query request carries a table identifier of a target sub-table selected from the table identifiers of the plurality of queryable sub-tables; In response to the sub-table query request, obtaining a first record matching the query keyword from the target sub-table; Based on the first record, the query result is generated.
13. The method of claim 9, wherein: The first information set includes one or more sub-tables in a first online table, and the preset data set includes data in one or more sub-tables in the first online table; The acquiring, from the preset data set, a query result matching the query keyword carried by the fourth instruction comprises: Acquire, from one or more sub-tables in the first online table, a plurality of second records matching the query keyword carried by the fourth instruction; If the second record is one, generating the query result based on values of all or part of the fields in the second record; or If there are multiple second records, generate record feedback information, wherein the record feedback information includes the value of a specified field in each second record; Feedback the recorded feedback information to the first session side; receiving a record query request triggered by the record feedback information, wherein the record query request carries a value of a specified field in a target record selected from values of specified fields in the plurality of second records; In response to the record query request, the query result is generated based on the target record.
14. The method of claim 13, further comprising: If there are multiple second records, determining indication information for narrowing the query scope based on the multiple second records, the indication information including at least one scope dimension for narrowing the query scope; Feedback the indication information to the first session side; receiving a scope reduction request triggered by the indication information, wherein the scope reduction request carries a feature value corresponding to at least one scope dimension; Determining, from the plurality of second records, records that match the characteristic value corresponding to the at least one range dimension; The query result is generated based on the records that meet the feature value corresponding to the at least one range dimension.
15. A data processing method, comprising: Acquire an information storage request from the target program, where the information storage request carries a session identifier of the first session; In response to the information storage request, the session identifier of the first session and the identifier of the first information set are correspondingly stored to establish a first association relationship between the first session and the first information set, so that the target program provides a service function corresponding to the first information set for the first session based on the first association relationship; The first information set includes at least part of the content of the target information set.
16. The method of claim 15, wherein: The information storage request also carries an identifier of the first information set.
17. The method of claim 15, wherein the target information set comprises a first online form; The corresponding storage of the session identifier of the first session and the identifier of the first information set includes: The session identifier of the first session and the identifier of the first information set are stored in a first sub-table of the first online form in correspondence.
18. The method according to claim 17, before obtaining the information storage request from the target program, further comprising: In response to a form initialization request received from the target program, the first sub-form is created in the first online form.
19. The method of claim 17, wherein the first information set includes session menu configuration information; the method further comprising: In response to the received timed update request, acquiring session menu configuration information from the first information set; If it is determined that the session menu configuration information has been updated, the updated session menu configuration information is sent to the target program, so that the target program updates the session menu in the first session based on the updated session menu configuration information.
20. The method according to claim 17, wherein the first information set comprises a preset data set, and the method further comprises: receiving a first query request including a session identifier of a first session and a query keyword; In response to the first query request, content matching the query keyword is acquired from the preset data set based on the session identifier of the first session.
21. The method according to claim 20, wherein the first query request further carries a first character; the first information set includes one or more sub-tables of a first online form, and the preset data set includes data in one or more sub-tables of the first online form; The acquiring content matching the query keyword from the preset data set includes: Determining, from one or more sub-tables of the first online table, table identifiers of a plurality of queryable sub-tables that can be queried by the first session; Sending table identifiers of the plurality of queryable sub-tables to the target program; or, receiving a second query request including a table identifier of a target subtable, and in response to the second query request, traversing the target subtable to determine a first record matching the query keyword from the target subtable; The first record is sent to the target program.
22. The method according to any one of claims 16 to 21, wherein: The first information set includes one or more sub-tables of the first online form.
23. A data processing method, comprising: Acquire a target program, wherein the target program is associated with a first information set; Get the target object; Establishing an association relationship between the target object and the target program; When the target program learns through the target object that a preset event in the target session is triggered, the target program executes a first workflow to provide a business function corresponding to the first information set in the target session.
24. The method of claim 23, wherein the target object is configured with a first permission required to implement the business function; The first permission includes one or more of the following permissions: cloud document related permissions, session message related permissions, address book related permissions, and permission to obtain application information of the application where the first session is located.
25. The method of claim 23, wherein the target object is a chat robot or a preset control in the first conversation.
26. The method of claim 23, further comprising: The request address of the designated event of the target object is configured as the callback address of the target program, so that the target program subscribes to the designated event, and the designated event includes the preset event.
27. A data processing device, comprising: A first receiving and determining module is configured to receive a first instruction including a session identifier of a first session, and determine a first information set; wherein a first association relationship between the first session and the first information set is stored in a first preset location; The first execution module is configured to execute a first workflow based on the first association relationship, wherein the first workflow is used to provide a business function corresponding to the first information set in the first session.
28. A data processing device, comprising: A first acquisition module is configured to acquire an information storage request from a target program, wherein the information storage request carries a session identifier of a first session; a first storage module configured to, in response to the information storage request, correspondingly store a session identifier of the first session and an identifier of the first information set to establish a first association relationship between the first session and the first information set, so that the target program provides a service function corresponding to the first information set for the first session based on the first association relationship; The first information set includes at least part of the content of the target information set.
29. A data processing device, comprising: A second acquisition module is configured to acquire a target program, wherein the target program is associated with a first information set; A third acquisition module is configured to acquire a target object; An establishing module configured to establish an association relationship between the target object and the target program; When the target program learns through the target object that a preset event in the target session is triggered, the target program executes a first workflow to provide a business function corresponding to the first information set in the target session.
30. An electronic device comprising a memory and a processor, wherein: The memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 26 is implemented.
31. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 26.
Citation Information
Patent Citations
Method and device for searching online documents
CN109299354A
Service control method, device and system
CN115242742A
Data processing method and device
CN116233077A
Combining modalities for collaborating while editing and annotating files
US20190034395A1
Information processing method and apparatus and electronic device
WO2022022473A1
Cited By
Information processing method and device, electronic equipment, storage medium and program product
CN120851798A
