Instant Messaging Processing Method and Related Devices
By introducing a business system card message mechanism into the IM system, allowing the business system to customize the display style and user operations of IM messages, the problem of insufficient flexibility in the traditional IM system is solved, and the effect of flexible expansion of enterprise IM messages is achieved.
Patent Information
- Application Number
- CN202510170233.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2045-02-17
AI Technical Summary
Traditional IM systems have poor message flexibility in enterprises, which is difficult to meet the characteristics and business needs of different business systems, resulting in high custom development costs for each business system.
When a card message push event is detected, it is determined that the service data acquisition information and target push configuration information of the target card message to be pushed, and the target card message is pushed to the target session, and the card message content is updated in response to the message viewing and interaction operation. The target push configuration information is generated by the target service system for the target task type and is used to construct card messages.
It realizes optimization of enterprise IM messages processing, and can customize push configuration information to push card messages based on the characteristics of different business systems and business needs, improving the flexibility of instant message processing.
Smart Images

Figure CN119652855B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technologies, and particularly to an instant message processing method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technologies and communication technologies, IM (Instant Messaging) instant messaging is frequently used and essential in the daily office work of enterprises. For multiple business systems existing in enterprises, such as financial systems, HR systems, OA systems, etc., by sending IM messages, different business systems can interact with users through the IM system. For example, a pending approval process in the OA system can be sent to a user in the form of an IM message, and the user can directly perform approval processing on the IM message without opening the OA system.
[0003] However, traditional IM systems can provide various message types, but the format of each message type is basically fixed, and the user operations in the messages are also basically fixed, making it difficult to meet the characteristics and business requirements of different business systems. Customized development for the different demands of each business system is costly.
[0004] Therefore, there is a problem of poor flexibility of enterprise IM messages in related technologies. Summary of the Invention
[0005] Based on this, it is necessary to provide an instant message processing method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the flexibility of enterprise instant messages for the above technical problems.
[0006] In a first aspect, the present application provides an instant message processing method, and the method includes:
[0007] When detecting a card message push event, determining the service data acquisition information and target push configuration information of the target card message to be pushed, and pushing the target card message to a target session; the target push configuration information is generated by a target business system for a target task type and is used to construct the target card message;
[0008] In response to a message viewing operation in the target session, obtaining target service data according to the service data acquisition information, and displaying the content of the target card message based on the target service data and the target push configuration information;
[0009] In response to an interaction operation on the content of the target card message, updating the content of the target card message with the service processing result corresponding to the interaction operation.
[0010] In one embodiment, the method further includes:
[0011] Issuing a card message configuration specification file to multiple business systems; the card message configuration specification file is used for each of the business systems to generate push configuration information for different task types;
[0012] Obtaining the push configuration information corresponding to the card messages of different task types; the push configuration information includes the control layout information, control association operation information, and business data embedding rules of the corresponding card messages; the card messages are used to provide message interaction operations for different business systems through instant messaging sessions;
[0013] Generating configuration codes corresponding to the push configuration information, and feeding back the configuration codes to the corresponding business systems.
[0014] In one embodiment, when detecting a card message push event, determining the business data acquisition information and target push configuration information of the target card message to be pushed includes:
[0015] If it is detected that any business system calls the push card message interface and it is confirmed that the card message push event is triggered, taking the any business system as the target business system;
[0016] Receiving the interface request information sent by the target business system; the interface request information includes the target configuration code;
[0017] Taking the push configuration information corresponding to the target configuration code as the target push configuration information, and determining the target session and the business data acquisition information according to the interface request information.
[0018] In one embodiment, obtaining the target business data according to the business data acquisition information includes:
[0019] According to the business data acquisition information, determining the target business associated with the target card message and the data acquisition interface address for the target business;
[0020] Based on the data acquisition interface address, pulling the business data of the target business from the target business system as the target business data.
[0021] In one embodiment, the target push configuration information is represented in the form of a template, and presenting the content of the target card message based on the target business data and the target push configuration information includes:
[0022] Perform template parsing using the target service data and the target push configuration information, and obtain a card message description file by embedding the target service data into the template;
[0023] According to the card message description file, draw the controls included in the target card message, and inject the interaction operations associated with each control to display the content of the target card message.
[0024] In one embodiment, the updating the content of the target card message using the service processing result corresponding to the interaction operation includes:
[0025] Obtain the service processing result fed back by the target service system by calling the service logic interface corresponding to the interaction operation;
[0026] Execute a card message update operation according to the service processing result, and display the content of the updated target card message.
[0027] In a second aspect, the present application further provides an instant message processing device, and the device includes:
[0028] A card push module, configured to determine the service data acquisition information and the target push configuration information of the target card message to be pushed when detecting a card message push event, and push the target card message to a target session; the target push configuration information is generated by a target service system for a target task type and is used to construct the target card message;
[0029] A card display module, configured to obtain target service data according to the service data acquisition information in response to a message viewing operation in the target session, and display the content of the target card message based on the target service data and the target push configuration information;
[0030] A card update module, configured to update the content of the target card message using the service processing result corresponding to the interaction operation in response to an interaction operation on the content of the target card message.
[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0032] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the steps of the above method when being executed by a processor.
[0033] Fifth aspect, the present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the above method.
[0034] The above instant message processing method, device, computer device, computer-readable storage medium and computer program product, in the case of detecting a card message push event, determine the service data acquisition information and target push configuration information of the target card message to be pushed, and push the target card message to the target session. The target push configuration information is generated by the target service system for the target task type and is used to construct the target card message. Then, in response to a message viewing operation in the target session, obtain the target service data according to the service data acquisition information, and based on the target service data and the target push configuration information, display the content of the target card message. Furthermore, in response to an interaction operation on the content of the target card message, update the content of the target card message with the service processing result corresponding to the interaction operation, realizing the optimization of enterprise IM message processing. It can customize the push configuration information based on the characteristics and business requirements of different service systems to push card messages, achieving the effect of flexibly expanding enterprise IM messages and improving the flexibility of instant message processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0036] Figure 1 It is an application environment diagram of an instant message processing method in an embodiment;
[0037] Figure 2 It is a flowchart of an instant message processing method in an embodiment;
[0038] Figure 3 It is a schematic diagram of the interaction process of the business system card message mechanism in an embodiment;
[0039] Figure 4 It is a flowchart of an instant message processing method in another embodiment;
[0040] Figure 5 It is a structural block diagram of an instant message processing device in an embodiment;
[0041] Figure 6 It is an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The instant message processing method provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 (installed with an enterprise IM application) communicates with the server 104 (such as an enterprise IM server) through a network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or other network servers. When the server 104 detects a card message push event, it determines the service data acquisition information and the target push configuration information of the target card message to be pushed, pushes the target card message to the target session, and then in response to the message viewing operation in the target session of the terminal 102, obtains the target service data according to the service data acquisition information, and based on the target service data and the target push configuration information, displays the content of the target card message. Furthermore, in response to the interaction operation of the terminal 102 on the content of the target card message, the content of the target card message is updated with the service processing result corresponding to the interaction operation. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, and tablet computers. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0044] In an exemplary embodiment, as Figure 2 shown, an instant message processing method is provided. Taking the method applied to the Figure 1 server 104 in it as an example for description, it includes the following steps 201 to step 203. Among them:
[0045] Step 201, when detecting a card message push event, determine the service data acquisition information and the target push configuration information of the target card message to be pushed, and push the target card message to the target session.
[0046] Among them, the target push configuration information can be generated by the target service system for the target task type and is used to construct the target card message; for example, through the OA service system, the corresponding push configuration information for the card message of the to-do notice task type can be defined in advance, and then the card message for displaying the to-do notice can be constructed based on this push configuration information.
[0047] As an example, the push configuration information can be represented in the form of a template; different business systems can customize templates related to card messages of different task types based on their characteristics and business requirements. For example, the OA business system can define a card message template for displaying to-do notifications.
[0048] As an example, the business data acquisition information can include the message data acquisition interface address and the business ID associated with the target card message.
[0049] In practical applications, such as Figure 3 shown, the enterprise IM system can include an enterprise IM server and an enterprise IM client. A business system card message mechanism can be introduced into the enterprise IM system. The business system card message is another type of IM message in the enterprise IM other than message types such as text messages, voice messages, video messages, file messages, and url link messages. Each business system in the enterprise can pre-customize templates and interaction behaviors of different card messages according to its characteristics and business requirements, and upload them to the enterprise IM system. Then, any business system can trigger a corresponding card message push event by pushing an IM card message to the enterprise IM system, and can specify the card message template used (i.e., the target push configuration information) and the business data acquisition information of the card message. Furthermore, the enterprise IM server can push a new message (i.e., the target card message) to a specified IM chat session (i.e., the target session).
[0050] Step 202, in response to a message viewing operation in the target session, obtain target business data according to the business data acquisition information, and based on the target business data and the target push configuration information, display the content of the target card message.
[0051] Exemplarily, such as Figure 3 shown, when a user views the pushed IM card message, the enterprise IM system can, in response to a message viewing operation in the target session, pull the target business data according to the business data acquisition information, and can perform template parsing based on the target push configuration information to embed relevant business data items, and then can display the IM card message, that is, the content of the target card message.
[0052] Step 203, in response to an interaction operation on the content of the target card message, update the content of the target card message with the business processing result corresponding to the interaction operation.
[0053] In a specific implementation, such as Figure 3As shown, the user can perform business operations based on the IM card message. By responding to the interaction operation on the content of the target card message, the business logic preset by the target business system can be triggered. Then, the target business system can perform business logic processing and feedback the business processing result to the enterprise IM system to update the IM card message, that is, update the content of the target card message.
[0054] Compared with the traditional method, the technical solution of this embodiment, by introducing the business system card message mechanism in the enterprise IM system, allows the business system to customize the display style of the IM message and the interactive operations that can be performed with the user through programmable templates; obtain business data through the data interface and embed it into the templates customized by the business system, and call the operations performed by the user on the IM card message to the business system through the operation interface, enabling the business system to flexibly expand the enterprise IM message, and realizing the customization of the enterprise IM message display style and user operations in the message according to the characteristics and business requirements of the business system.
[0055] In the above instant message processing method, when detecting a card message push event, the business data acquisition information and target push configuration information of the target card message to be pushed are determined, the target card message is pushed to the target session, and then in response to the message viewing operation in the target session, the target business data is obtained according to the business data acquisition information. Based on the target business data and target push configuration information, the content of the target card message is displayed. Furthermore, in response to the interaction operation on the content of the target card message, the content of the target card message is updated with the business processing result corresponding to the interaction operation, realizing the optimization of the enterprise IM message processing. It is possible to customize the push configuration information based on the characteristics and business requirements of different business systems to push card messages, achieving the effect of flexibly expanding the enterprise IM message and improving the flexibility of instant message processing.
[0056] In an exemplary embodiment, the following steps may further be included:
[0057] Send a card message configuration specification file to multiple business systems; the card message configuration specification file is used for each of the business systems to generate push configuration information for different task types; obtain the push configuration information corresponding to each card message of different task types; the push configuration information includes the control layout information, control association operation information, and business data embedding rules of the corresponding card message; the card message is used to provide message interaction operations for different business systems through an instant message session; generate a configuration code corresponding to each push configuration information and feedback each configuration code to the corresponding business system.
[0058] In one example, an enterprise IM system can provide a layout definition specification (i.e., a card message configuration specification file), which specifies the specific controls that the business system can set in the business system card message, the properties corresponding to different types of controls, and the supported user operations. By issuing the layout definition specification to multiple business systems, each business system can use the xml file to define the layout of the business system card message according to the layout definition specification. For example, the generated xml file can be used as a business system card message template, that is, push configuration information.
[0059] Optionally, the card message configuration specification file may include but is not limited to the following:
[0060] 1. Multiple concepts involved in card messages, such as cards, container controls, value controls, button controls, button-related actions, and control measurement units;
[0061] 2. Control common properties, such as id, length, width, font size, font color, top spacing, bottom spacing, left spacing, right spacing, and layout weight;
[0062] 3. Control tag definition, such as card for card, text for text control, progress for progress bar control, radio Group for selection group control, radio for radio Group options, button for button, divider for divider, img for image control, row for container control (child controls in the container are laid out linearly in the horizontal direction), column for container control (child controls in the container are laid out linearly in the vertical direction), app Item for application control, and freqAppArea for common application control;
[0063] 4. Behavior tag definition, such as action for action definition, url for link address, params for parameter list, and param for related parameters.
[0064] For example, the OA business system can define a business system card message template, such as an XML template, for displaying to-do notifications to specify that the card message can have three text controls and display two buttons in a row. Clicking the two buttons can send requests to two URL addresses in the OA business system.
[0065] For example, three text controls, one dividing line control, and one row container can be defined in the XML template, which contains two button controls. Both button controls define action operations. After clicking, the defined params parameters need to be carried to access the interface URL of the OA business system.
[0066] For another example, since specific business data needs to be embedded in addition to the layout definition in the template, the XML template can also include variable data items. Thus, when using the XML template to display a specific to-do notice, specific content such as the title and creator of the to-do can be shown. The text controls, divider controls, row container controls, button controls, etc. defined in the XML template can use the UI controls provided by the operating system or can be combined based on the provided UI controls. Since the ways of listening for UI control operation events are different for different operating systems, configurations can be made according to the mechanisms of different operating systems, and the differences are imperceptible to the business system.
[0067] In an alternative embodiment, by adopting the scripting language of a preset template engine (such as the VM syntax of a Java-based template engine), the business system can declare and reference the business data items to be embedded in the business system card message template. The template can also support syntax such as conditional branches (if else) and loops (for while). For example, when the priority of a certain to-do notice is high, the title is displayed in red.
[0068] In another example, after developing the card message template, the business system can upload it to the enterprise IM server and obtain the template encoding (i.e., the configuration encoding) uniquely corresponding to the card message template. Thus, when pushing the card message, the business system can use this template encoding to send the business system card message.
[0069] In this embodiment, by sending the card message configuration specification file to multiple business systems, obtaining the respective push configuration information corresponding to the card messages of different task types, then generating the configuration encoding corresponding to each push configuration information, and feeding back each configuration encoding to the corresponding business system, it is possible to customize the enterprise IM message display style and user operations in the message based on the characteristics and business requirements of the business system.
[0070] In an exemplary embodiment, in the case of detecting a card message push event, determining the business data acquisition information and the target push configuration information of the target card message to be pushed may include the following steps:
[0071] If it is detected that any business system calls the push card message interface and it is confirmed that the card message push event is triggered, take the any business system as the target business system; receive the interface request information sent by the target business system; the interface request information includes the target configuration encoding; take the push configuration information corresponding to the target configuration encoding as the target push configuration information, and determine the target session and the business data acquisition information according to the interface request information.
[0072] In practical applications, the enterprise IM server can provide an interface for pushing card messages to the business system. Each business system can call this interface (i.e., the push card message interface) at the required business opportunity to push card messages to a specified IM chat session. When calling this interface, the card message template to be used and the interface address for obtaining message data can be specified.
[0073] Specifically, the interface request content for the push card message interface can be:
[0074] {sessionID: int, / / Push to a specified chat session, which can be a group chat or a one-on-one chat;
[0075] tmplCode: String, / / The encoding of the card message template to be used (i.e., the target configuration encoding);
[0076] bizID: String, / / Business ID, used to represent the association between the card message and a certain business in the business system;
[0077] dataUrl: String, / / The interface address for obtaining the message data of the card message}
[0078] The interface response content for the push card message interface can be:
[0079] {retCode: int, / / Result code, 0 indicates success, and others indicate failure;
[0080] errorMsg: String, / / Error description, available when non-zero;
[0081] msgID: String, / / The message ID of the card message, returned when the push is successful, used for subsequent message updates}
[0082] In this embodiment, if it is detected that any business system calls the push card message interface, confirming the trigger of the card message push event, taking any business system as the target business system, receiving the interface request information sent by the target business system, using the push configuration information corresponding to the target configuration encoding as the target push configuration information, and determining the target session and business data acquisition information according to the interface request information, which provides data support for further template parsing and embedding business data items.
[0083] In an exemplary embodiment, the obtaining of the target business data according to the business data acquisition information may include the following steps:
[0084] Obtain information according to the service data, determine the target service associated with the target card message, and the data acquisition interface address for the target service; based on the data acquisition interface address, pull the service data of the target service from the target service system as the target service data.
[0085] In one example, when a user views a pushed card message through an enterprise IM application, the rendering and drawing process for the IM card message can be triggered. Exemplarily, the service ID and the message data acquisition interface address of the card message can be obtained based on the interface request content, or the corresponding card message template can be obtained according to the card message template encoding, and the data acquisition interface address (such as dataUrl) can be obtained from the template content. Furthermore, the enterprise IM server can obtain the data of the IM card message by requesting dataUrl, that is, pull the service data of the target service from the target service system as the target service data.
[0086] In this embodiment, by obtaining information according to the service data, determining the target service associated with the target card message, and the data acquisition interface address for the target service, and then based on the data acquisition interface address, pulling the service data of the target service from the target service system as the target service data, the relevant service data of the card message can be effectively obtained.
[0087] In an exemplary embodiment, the target push configuration information is represented in the form of a template. The step of presenting the content of the target card message based on the target service data and the target push configuration information may include the following steps:
[0088] Perform template parsing using the target service data and the target push configuration information. By embedding the target service data into the template, a card message description file is obtained; according to the card message description file, draw the controls included in the target card message, and inject the interaction operations associated with each control to present the content of the target card message.
[0089] In practical applications, based on the corresponding card message template obtained according to the template encoding (i.e., the target push configuration information) and the pulled target service data, the enterprise IM client can request the enterprise IM server to perform template parsing. By parsing the VM syntax in the template and combining syntax such as conditional branches (if else) and loops (for while), the target service data is embedded into the template, and a static layout description xml (i.e., the card message description file) can be obtained.
[0090] In one example, according to the layout definition in the static layout description xml, UI controls in the operating system can be used to draw the target card message, and according to the operation definition in the static layout description xml, operation events can be injected into the corresponding UI controls, so that the content of the target card message can be displayed on the enterprise IM client side.
[0091] In an alternative embodiment, as Figure 3 shown, since multiple inter-system communication interactions need to occur among the enterprise IM application, the enterprise IM server, and the business system, the enterprise IM client can cache the obtained static layout description xml after parsing the template. Then, when subsequently drawing card messages of the same task type in the same business system, the locally cached static layout description xml can be directly used for drawing, thereby saving processing time and effectively improving the instant message processing efficiency.
[0092] In this embodiment, by parsing the template using the target business data and the target push configuration information, embedding the target business data into the template to obtain the card message description file, and then drawing the controls included in the target card message and injecting the interaction operations associated with each control according to the card message description file to display the content of the target card message, the enterprise IM message can be flexibly extended based on the custom templates of each business system.
[0093] In an exemplary embodiment, updating the content of the target card message using the business processing result corresponding to the interaction operation may include the following steps:
[0094] Obtain the business processing result fed back by the target business system by calling the business logic interface corresponding to the interaction operation; perform a card message update operation according to the business processing result and display the content of the updated target card message.
[0095] Specifically, when the user clicks (i.e., the interaction operation) on the UI control in the target card message, a corresponding operation event can be triggered. By calling the business logic interface corresponding to the interaction operation, the business processing result after the business logic processing of the target business system can be obtained. For example, taking the to-do notice of the OA business system as an example, when the user clicks the "Approve" button, the enterprise IM client can call the business logic interface of the OA business system, such as the flow / oper / pass interface, carrying relevant business parameters (such as the business process number).
[0096] In one example, taking the to-do notice of the OA business system as an example, after the OA business system completes the to-do approval business logic, by calling the update card message interface of the enterprise IM server, the enterprise IM application can be notified to re-execute the step of drawing the card message for refreshing, that is, display the content of the updated target card message.
[0097] Optionally, the interface request content for updating the card message interface may be:
[0098] {msgID: String, / / Message ID of the card message to be updated}
[0099] The interface response content for updating the card message interface may be:
[0100] {retCode: int, / / Result code, 0 indicates success, others indicate failure;
[0101] errorMsg: String, / / Error description, available when non - 0}
[0102] In this embodiment, by calling the business logic interface corresponding to the interaction operation, obtaining the business processing result feedback by the target business system, and then performing the card message update operation according to the business processing result to display the content of the updated target card message, it is possible to achieve dynamic interaction and information update with the business system.
[0103] In an exemplary embodiment, as Figure 4 shown, a flowchart of another instant message processing method is provided. In this embodiment, the method includes the following steps:
[0104] In step 401, a card message configuration specification file is sent to multiple business systems; the card message configuration specification file is used for each business system to generate push configuration information for different task types. In step 402, the push configuration information corresponding to the card messages of different task types is obtained, configuration codes corresponding to the respective push configuration information are generated, and the respective configuration codes are fed back to the corresponding business systems. In step 403, if it is detected that any business system calls the push card message interface, it is confirmed that a card message push event is triggered, and any business system is used as the target business system to receive the interface request information sent by the target business system; the interface request information includes the target configuration code. In step 404, the push configuration information corresponding to the target configuration code is used as the target push configuration information, and based on the interface request information, the target session and the business data acquisition information are determined, and the target card message is pushed to the target session. In step 405, in response to a message viewing operation in the target session, based on the data acquisition interface address determined by the business data acquisition information, the business data of the target business is pulled from the target business system as the target business data. In step 406, template parsing is performed using the target business data and the target push configuration information. By embedding the target business data into the template, a card message description file is obtained. Based on the card message description file, the controls included in the target card message are drawn, and the interaction operations associated with each control are injected to display the content of the target card message. In step 407, in response to an interaction operation on the content of the target card message, by calling the business logic interface corresponding to the interaction operation, a business processing result fed back by the target business system is obtained, and a card message update operation is performed according to the business processing result to display the updated content of the target card message.
[0105] It should be noted that the specific limitations of the above steps can be referred to the specific limitations of an instant message processing method described above, and will not be elaborated here.
[0106] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0107] Based on the same inventive concept, an embodiment of the present application further provides an instant message processing device for implementing the instant message processing method involved above. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the instant message processing device provided below can refer to the limitations on the instant message processing method in the above text, and will not be repeated here.
[0108] In an exemplary embodiment, as Figure 5 shown, an instant message processing device is provided, including:
[0109] A card push module 501, configured to determine the service data acquisition information and the target push configuration information of the target card message to be pushed when detecting a card message push event, and push the target card message to the target session; the target push configuration information is generated by the target service system for the target task type and is used to construct the target card message;
[0110] A card display module 502, configured to, in response to a message viewing operation in the target session, obtain target service data according to the service data acquisition information, and display the content of the target card message based on the target service data and the target push configuration information;
[0111] A card update module 503, configured to, in response to an interaction operation on the content of the target card message, update the content of the target card message with the service processing result corresponding to the interaction operation.
[0112] In one of the embodiments, the device further includes:
[0113] A specification file distribution module, configured to distribute a card message configuration specification file to multiple service systems; the card message configuration specification file is used for each of the service systems to generate push configuration information for different task types;
[0114] A push configuration information receiving module, configured to obtain the push configuration information corresponding to the card messages of different task types; the push configuration information includes the control layout information, the control association operation information, and the service data embedding rule of the corresponding card message; the card message is used to provide message interaction operations for different service systems through an instant message session;
[0115] A configuration code generation module, configured to generate a configuration code corresponding to each push configuration information and feedback each configuration code to the corresponding service system.
[0116] In one embodiment, the card pushing module 501 is specifically configured to, if it detects that any business system calls the push card message interface, confirm the triggering of the card message push event, and use the any business system as the target business system; receive the interface request information sent by the target business system; the interface request information includes a target configuration code; use the push configuration information corresponding to the target configuration code as the target push configuration information, and determine the target session and the service data acquisition information according to the interface request information.
[0117] In one embodiment, the card display module 502 is specifically configured to determine the target service associated with the target card message and the data acquisition interface address for the target service according to the service data acquisition information; based on the data acquisition interface address, pull the service data of the target service from the target business system as the target service data.
[0118] In one embodiment, the target push configuration information is represented in the form of a template. The card display module 502 is specifically configured to perform template parsing using the target service data and the target push configuration information. By embedding the target service data into the template, a card message description file is obtained; according to the card message description file, the controls included in the target card message are drawn, and the interaction operations associated with each control are injected to display the content of the target card message.
[0119] In one embodiment, the card update module 503 is specifically configured to obtain the service processing result fed back by the target business system by calling the service logic interface corresponding to the interaction operation; perform a card message update operation according to the service processing result, and display the content of the updated target card message.
[0120] Each module in the above instant message processing device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form so that the processor can call and execute the operations corresponding to the above modules.
[0121] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 6As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store instant message processing data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements an instant message processing method.
[0122] Those skilled in the art can understand that Figure 6 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0123] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:
[0124] In the case of detecting a card message push event, determine the service data acquisition information and the target push configuration information of the target card message to be pushed, and push the target card message to the target session; the target push configuration information is generated by the target service system for the target task type and is used to construct the target card message;
[0125] In response to a message viewing operation in the target session, obtain target service data according to the service data acquisition information, and display the content of the target card message based on the target service data and the target push configuration information;
[0126] In response to an interaction operation on the content of the target card message, update the content of the target card message with the service processing result corresponding to the interaction operation.
[0127] In one embodiment, when the processor executes the computer program, it also implements the steps of the instant message processing method in the above-mentioned other embodiments.
[0128] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0129] In the case of detecting a card message push event, determine the service data acquisition information and the target push configuration information of the target card message to be pushed, and push the target card message to the target session; the target push configuration information is generated by the target service system for the target task type and is used to construct the target card message;
[0130] In response to a message viewing operation in the target session, obtain target service data according to the service data acquisition information, and display the content of the target card message based on the target service data and the target push configuration information;
[0131] In response to an interaction operation on the content of the target card message, update the content of the target card message with the service processing result corresponding to the interaction operation.
[0132] In one embodiment, when the computer program is executed by a processor, the steps of the instant message processing method in the above other embodiments are also implemented.
[0133] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the following steps are implemented:
[0134] In the case of detecting a card message push event, determine the service data acquisition information and the target push configuration information of the target card message to be pushed, and push the target card message to the target session; the target push configuration information is generated by the target service system for the target task type and is used to construct the target card message;
[0135] In response to a message viewing operation in the target session, obtain target service data according to the service data acquisition information, and display the content of the target card message based on the target service data and the target push configuration information;
[0136] In response to an interaction operation on the content of the target card message, update the content of the target card message with the service processing result corresponding to the interaction operation.
[0137] In one embodiment, when the computer program is executed by a processor, the steps of the instant message processing method in the above other embodiments are also implemented.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0139] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0140] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this application.
[0141] The above-described embodiments merely represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application should be subject to the appended claims.
Claims
1. An instant message processing method, characterized in that: The method comprises: In the case of detecting a card message push event, determining the business data acquisition information and target push configuration information of the target card message to be pushed, and pushing the target card message to the target session; the target push configuration information is generated by the target business system for the target task type and is used to construct the target card message; including: if it is detected that any business system calls the push card message interface, confirming that the card message push event is triggered, and taking any business system as the target business system; receiving the interface request information sent by the target business system; the interface request information includes the target configuration code; taking the push configuration information corresponding to the target configuration code as the target push configuration information, and determining the target session and the business data acquisition information according to the interface request information; In response to a message viewing operation in the target session, obtaining target business data according to the business data acquisition information, and displaying the content of the target card message based on the target business data and the target push configuration information; In response to an interactive operation on the content of the target card message, updating the content of the target card message using a business processing result corresponding to the interactive operation; Wherein, the method further comprises: A card message configuration specification file is issued to multiple business systems; the card message configuration specification file is used for each business system to generate corresponding push configuration information for different task types; different business systems have different push configuration information for the same task type.
2. The method according to claim 1, characterized in that: The method further comprises: Acquire push configuration information corresponding to the card messages of different task types; the push configuration information includes control layout information, control associated operation information, and business data embedding rules of the corresponding card messages; the card messages are used to provide message interaction operations for different business systems through instant messaging sessions; Generate a configuration code corresponding to each of the push configuration information, and feed back each of the configuration codes to the corresponding business system.
3. The method according to claim 1, characterized in that The obtaining of target business data according to the business data acquisition information includes: Determine the target business associated with the target card message and the data acquisition interface address for the target business according to the business data acquisition information; Based on the data acquisition interface address, the business data of the target business is pulled from the target business system as the target business data.
4. The method according to claim 1, characterized in that The target push configuration information is represented in the form of a template, and the content of the target card message is displayed based on the target business data and the target push configuration information, including: The target service data and the target push configuration information are used to perform template parsing, and a card message description file is obtained by embedding the target service data into the template; According to the card message description file, the controls included in the target card message are drawn, and the interactive operations associated with each of the controls are injected to display the content of the target card message.
5. The method according to any one of claims 1 to 4, characterized in that: The updating of the content of the target card message by using the business processing result corresponding to the interactive operation includes: Obtaining the business processing result fed back by the target business system by calling the business logic interface corresponding to the interactive operation; A card message update operation is performed according to the business processing result, and the updated content of the target card message is displayed.
6. An instant message processing device, characterized in that: The device comprises: A card push module is used to determine the business data acquisition information and target push configuration information of the target card message to be pushed when a card message push event is detected, and push the target card message to the target session; the target push configuration information is generated by the target business system for the target task type and is used to construct the target card message; A card display module, configured to respond to a message viewing operation in the target session, obtain target business data according to the business data acquisition information, and display the content of the target card message based on the target business data and the target push configuration information; A card update module, configured to respond to an interactive operation on the content of the target card message and update the content of the target card message using a business processing result corresponding to the interactive operation; Wherein, the device further comprises: A specification file issuing module is used to issue card message configuration specification files to multiple business systems; the card message configuration specification files are used for each business system to generate corresponding push configuration information for different task types; different business systems have different push configuration information for the same task type; The card push module is specifically used to detect that any business system calls the push card message interface, confirm the triggering of the card message push event, and use any business system as the target business system; receive the interface request information sent by the target business system; the interface request information includes the target configuration code; use the push configuration information corresponding to the target configuration code as the target push configuration information, and determine the target session and the business data acquisition information based on the interface request information.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Notification message processing method and device, computer equipment and storage medium
CN116627666A