Instant message processing method and related equipment

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.

CN119652855AActive Publication Date: 2025-03-18SHENZHEN LANLING SOFTWARE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510170233.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-03-18
Estimated Expiration
2045-02-17

AI Technical Summary

Technical Problem

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.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652855A_ABST
    Figure CN119652855A_ABST
Patent Text Reader

Abstract

The invention relates to an instant message processing method and related equipment. The method comprises the steps of determining business data acquisition information and target push configuration information of a to-be-pushed target card message under the condition that a card message push event is detected, and pushing the target card message to a target session; the target push configuration information is generated by the target business system for the target task type and is used for constructing a target card message; in response to a message viewing operation in the target session, obtaining target business data according to the business data obtaining information, and displaying the content of the target card message based on the target business data and the target push configuration information; and in response to an interaction operation on the content of the target card message, updating the content of the target card message by adopting a service processing result corresponding to the interaction operation. By adopting the method, the enterprise IM message can be flexibly expanded based on the characteristics and service requirements of different service systems, and the instant message processing flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an instant message processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of computer technology and communication technology, IM (Instant Messaging) is frequently used and indispensable in the daily office work of enterprises. For multiple business systems in enterprises, such as financial system, HR system, OA system, etc., by sending IM messages, different business systems can interact with users through the IM system. For example, a process to be approved in the OA system is sent to the user in the form of an IM message, and the user can directly approve it on the IM message without opening the OA system.

[0003] However, traditional IM systems can provide a variety of message types, but the format of each message type is basically fixed, and the user operations in the message are also basically fixed, which makes it difficult to meet the characteristics and business needs of different business systems. Customized development for the different demands of each business system is costly.

[0004] Therefore, there is a problem in the related art that the flexibility of enterprise IM messages is relatively poor. Summary of the invention

[0005] Based on this, it is necessary to provide an instant messaging processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can enhance the flexibility of enterprise instant messaging in response to the above technical problems.

[0006] In a first aspect, the present application provides an instant message processing method, the method comprising:

[0007] 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;

[0008] 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;

[0009] In response to an interactive operation on the content of the target card message, the content of the target card message is updated using a business processing result corresponding to the interactive operation.

[0010] In one embodiment, the method further comprises:

[0011] Sending 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] 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;

[0013] 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.

[0014] In one of the embodiments, when a card message push event is detected, 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, it is confirmed that the card message push event is triggered, and any business system is used as the target business system;

[0016] Receiving interface request information sent by the target business system; the interface request information includes a target configuration code;

[0017] The push configuration information corresponding to the target configuration code is used as the target push configuration information, and the target session and the service data acquisition information are determined according to the interface request information.

[0018] In one embodiment, obtaining target business data according to the business data acquisition information includes:

[0019] 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;

[0020] 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.

[0021] In one embodiment, the target push configuration information is represented in the form of a template, and the display of the content of the target card message based on the target service data and the target push configuration information includes:

[0022] 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;

[0023] 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.

[0024] In one embodiment, the updating the content of the target card message using the business processing result corresponding to the interactive operation includes:

[0025] Obtaining the business processing result fed back by the target business system by calling the business logic interface corresponding to the interactive operation;

[0026] A card message update operation is performed according to the business processing result, and the updated content of the target card message is displayed.

[0027] In a second aspect, the present application further provides an instant message processing device, the device comprising:

[0028] 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;

[0029] 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;

[0030] The card update module is used to respond to the interactive operation on the content of the target card message and update the content of the target card message using the business processing result corresponding to the interactive operation.

[0031] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein 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 having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0033] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above method when executed by a processor.

[0034] The instant message processing method, apparatus, computer equipment, computer-readable storage medium and computer program product described above push the target card message to the target session by determining 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. 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. 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 the target push configuration information, the content of the target card message is displayed. Then, in response to the interactive operation on the content of the target card message, the content of the target card message is updated using the business processing result corresponding to the interactive operation, thereby realizing the optimization of the processing of enterprise IM messages. The push configuration information can be customized based on the characteristics of different business systems and business needs to push card messages, thereby 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 drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 An application environment diagram of an instant message processing method in one embodiment;

[0037] Figure 2 A schematic diagram of a flow chart of an instant message processing method in an embodiment;

[0038] Figure 3 A schematic diagram of the interaction process of a business system card message mechanism in one embodiment;

[0039] Figure 4 is a flow chart of an instant message processing method in another embodiment;

[0040] Figure 5 is a structural block diagram of an instant message processing device in one embodiment;

[0041] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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 in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 (installed with the enterprise IM application) communicates with the server 104 (such as the enterprise IM server) through the 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 it can be placed on the cloud or other network servers. The server 104 determines the business data acquisition information and target push configuration information of the target card message to be pushed when the card message push event is detected, pushes the target card message to the target session, and then responds to the message viewing operation in the target session of the terminal 102, obtains the target business data according to the business data acquisition information, and displays the content of the target card message based on the target business data and the target push configuration information, and then responds to the interactive operation of the terminal 102 on the content of the target card message, and uses the business processing result corresponding to the interactive operation to update the content of the target card message. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, 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 that provides cloud computing services.

[0044] In an exemplary embodiment, Figure 2 As shown, a method for processing instant messages is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, including the following steps 201 to 203. Among them:

[0045] Step 201, when a card message push event is detected, business data acquisition information and target push configuration information of a target card message to be pushed are determined, and the target card message is pushed to a target session.

[0046] Among them, the target push configuration information can be generated by the target business system for the target task type and used to construct the target card message; for example, the OA business system can pre-define the corresponding push configuration information for the card message of the task type of to-do notification, and then construct a card message for displaying to-do notifications based on the push configuration information.

[0047] As an example, push configuration information can be represented in the form of a template; different business systems can customize card message-related templates for different task types based on their characteristics and business needs. For example, an OA business system can define a card message template for displaying to-do notifications.

[0048] As an example, the business data acquisition information may include a message data acquisition interface address and a business ID associated with the target card message.

[0049] In practical applications, such as Figure 3 As shown, the enterprise IM system may include an enterprise IM server and an enterprise IM client, and a business system card message mechanism may be introduced into the enterprise IM system. The business system card message is another type of IM message in the enterprise IM in addition to text messages, voice messages, video messages, file messages, url link messages and other types of messages. Each business system in the enterprise can pre-customize the templates and interactive behaviors of different card messages according to its characteristics and business needs, and upload them to the enterprise IM system. Then, any business system can trigger the corresponding card message push event by pushing the 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, and then the enterprise IM server can push the new message (i.e., the target card message) to the specified IM chat session (i.e., the target session).

[0050] Step 202, in response to the 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.

[0051] For example, Figure 3 As shown, when a user views a pushed IM card message, the enterprise IM system can respond to the message viewing operation in the target session, pull the target business data according to the business data acquisition information, and perform template parsing based on the target push configuration information to embed relevant business data items, and then display the IM card message, that is, the content of the target card message.

[0052] Step 203: In response to the interactive operation on the content of the target card message, the content of the target card message is updated using the business processing result corresponding to the interactive operation.

[0053] In the specific implementation, Figure 3As shown, users can perform business operations based on IM card messages. By responding to interactive operations on the content of the target card message, the business logic preset by the target business system can be triggered. The target business system can then perform business logic processing and feed back the business processing results 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 into the enterprise IM system, can allow the business system to customize the display style of IM messages and the interactive operations that can be performed with users through programmable templates; obtain business data through the data interface and embed it into the customized template of the business system, and call the user's operations on the IM card message to the business system through the operation interface, so that the business system can flexibly expand the enterprise IM messages, and realize the customization of the enterprise IM message display style and user operations in the message according to the characteristics and business needs of the business system.

[0055] In the above instant messaging processing method, when a card message push event is detected, 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, and the content of the target card message is displayed based on the target business data and the target push configuration information, and then in response to the interactive operation on the content of the target card message, the content of the target card message is updated using the business processing result corresponding to the interactive operation, thereby realizing the optimization of the processing of enterprise IM messages, and being able to customize the push configuration information to push card messages based on the characteristics of different business systems and business needs, thereby achieving the effect of flexibly expanding enterprise IM messages and improving the flexibility of instant messaging processing.

[0056] In an exemplary embodiment, the following steps may also be included:

[0057] 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 push configuration information for different task types; the push configuration information corresponding to each card message of different task types is obtained; 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 instant messaging sessions; a configuration code corresponding to each push configuration information is generated, and each configuration code is fed back 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 the template needs to embed specific business data in addition to the layout definition, the XML template can also include variable data items, so that when the XML template is used to display a specific to-do notification, the title, creator, and other content of the specific to-do can be displayed. The text controls, separator 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 UI control operation event monitoring methods of different operating systems are different, they can be configured according to the mechanisms of different operating systems, and the differences are imperceptible to the business system.

[0067] In an optional embodiment, by using a scripting language of a preset template engine (such as a VM syntax of a Java-based template engine), the business system can declare and reference the business data items that need to be embedded in the business system card message template. The template can also have syntax support such as conditional branches (if else) and loops (for while). For example, when the priority of a to-do notification is high, the title is displayed in red.

[0068] In another example, after the business system develops a card message template, it can upload it to the enterprise IM server and obtain the template code (i.e., configuration code) uniquely corresponding to the card message template. Then, when pushing the card message, the business system can use the template code to send the business system card message.

[0069] In this embodiment, by issuing card message configuration specification files to multiple business systems, the push configuration information corresponding to the card messages of different task types is obtained, and then the configuration code corresponding to each push configuration information is generated, and each configuration code is fed back to the corresponding business system. This enables customization of the enterprise IM message display style and user operations in the message based on the characteristics of the business system and business needs.

[0070] In an exemplary embodiment, when a card message push event is detected, determining the business data acquisition information and 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 confirms that the card message push event is triggered, any business system is used as the target business system; the interface request information sent by the target business system is received; the interface request information includes the target configuration code; the push configuration information corresponding to the target configuration code is used as the target push configuration information, and the target session and the business data acquisition information are determined based on the interface request information.

[0072] In actual applications, the enterprise IM server can provide an interface for pushing card messages for the business system. Each business system can call this interface (i.e., the push card message interface) at the required business opportunity to push the card message to the specified IM chat session; when calling this interface, the card message template to be used and the message data acquisition interface address can be specified.

[0073] Specifically, the interface request content for the push card message interface can be:

[0074] {sessionID:int, / / Push to the specified chat session, which can be a group chat or a single chat;

[0075] tmplCode:String, / / The code of the card message template to be used (i.e. the target configuration code);

[0076] bizID:String, / / Business ID, used to represent the association between the card message and a business in the business system;

[0077] dataUrl:String, / / Card message data acquisition interface address}

[0078] The interface response content for the push card message interface can be:

[0079] {retCode:int, / / result code, 0 means success, others mean failure;

[0080] errorMsg:String, / / Error description, available when it is not 0;

[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 and confirms the triggering of the card message push event, any business system is taken as the target business system, the interface request information sent by the target business system is received, and the push configuration information corresponding to the target configuration code is used as the target push configuration information. Based on the interface request information, the target session and business data acquisition information are determined, which provides data support for further template parsing and embedding business data items.

[0083] In an exemplary embodiment, the step of obtaining target business data according to the business data acquisition information may include the following steps:

[0084] According to the business data acquisition information, the target business associated with the target card message and the data acquisition interface address for the target business are determined; 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.

[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 code, and the data acquisition interface address (such as dataUrl) can be obtained from the template content. Then, the enterprise IM server can obtain the data of the IM card message by requesting dataUrl, that is, pull the business data of the target business from the target business system as the target business data.

[0086] In this embodiment, by acquiring information based on business data, determining the target business associated with the target card message and the data acquisition interface address for the target business, and then pulling the business data of the target business from the target business system based on the data acquisition interface address as the target business data, the relevant business data of the card message can be effectively acquired.

[0087] In an exemplary embodiment, the target push configuration information is represented in the form of a template, and the display of 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] The target business 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 business data into a 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.

[0089] In actual applications, based on the corresponding card message template (i.e., target push configuration information) obtained according to the template code and the pulled target business data, the enterprise IM user terminal can request the enterprise IM server to parse the template. By parsing the VM syntax in the template and combining it with conditional branches (if else), loops (for while) and other syntaxes, the target business data can be embedded in the template to obtain a static layout description xml (i.e., card message description file).

[0090] In one example, the target card message can be drawn using UI controls in the operating system according to the layout definition in the static layout description xml, and operation events can be injected into the corresponding UI controls according to the operation definition in the static layout description xml, so that the content of the target card message can be displayed on the enterprise IM user terminal.

[0091] In an alternative embodiment, if Figure 3 As shown, since multiple inter-system communication interactions need to occur between the enterprise IM application, the enterprise IM server, and the business system, the enterprise IM user terminal can cache the static layout description xml obtained this time after parsing the template, and then when drawing the card message of the same task type in the same business system subsequently, it can directly use the locally cached static layout description xml for drawing, thereby saving processing time and effectively improving the efficiency of instant message processing.

[0092] In this embodiment, the target business data and target push configuration information are used to perform template parsing, and the target business data is embedded in the template to obtain a card message description file. Then, according to the card message description file, the controls contained in the target card message are drawn, and the interactive operations associated with each control are injected to display the content of the target card message. This enables flexible expansion of enterprise IM messages based on customized templates of various business systems.

[0093] In an exemplary embodiment, the updating of the content of the target card message using the business processing result corresponding to the interactive operation may include the following steps:

[0094] By calling the business logic interface corresponding to the interactive operation, the business processing result fed back by the target business system is obtained; the card message update operation is performed according to the business processing result, and the updated content of the target card message is displayed.

[0095] Specifically, when the user clicks (i.e., interacts with) the UI control in the target card message, the corresponding operation event can be triggered. By calling the business logic interface corresponding to the interactive operation, the business processing result after the business logic processing of the target business system can be obtained; for example, taking the to-do notification of the OA business system as an example, when the user clicks the "Approve" button, the enterprise IM user end can carry relevant business parameters (such as the business process number) to call the business logic interface of the OA business system, such as the flow / oper / pass interface.

[0096] In one example, taking the to-do notification of the OA business system as an example, after the OA business system completes the execution of 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 steps of drawing the card message for refresh, that is, to 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, / / The message ID of the card message that needs to be updated}

[0099] The interface response content for the update card message interface can be:

[0100] {retCode:int, / / result code, 0 means success, others mean failure;

[0101] errorMsg:String, / / Error description, if it is not 0, it has}

[0102] In this embodiment, by calling the business logic interface corresponding to the interactive operation, the business processing results fed back by the target business system are obtained, and then the card message update operation is performed according to the business processing results, and the content of the updated target card message is displayed, thereby realizing dynamic interaction and information update with the business system.

[0103] In an exemplary embodiment, Figure 4 As shown, a flow chart 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 issued 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 each card message of different task types is obtained, the configuration code corresponding to each push configuration information is generated, and each configuration code is fed back to the corresponding business system. In step 403, if it is detected that any business system calls the push card message interface, it is confirmed that the 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 the target session and business data acquisition information are determined according to the interface request information, and the target card message is pushed to the target session. In step 405, in response to the message viewing operation in the target session, the business data of the target business is pulled from the target business system based on the data acquisition interface address determined by the business data acquisition information as the target business data. In step 406, the target business data and the target push configuration information are used to perform template parsing, and the target business data is embedded in the template to obtain a card message description file. According to the card message description file, the controls contained in the target card message are drawn, and the interactive operations associated with each control are injected to display the content of the target card message. In step 407, in response to the interactive operation on the content of the target card message, the business processing result fed back by the target business system is obtained by calling the business logic interface corresponding to the interactive operation, and the card message update operation is performed according to the business processing result, and the updated content of the target card message is displayed.

[0105] It should be noted that the specific definition of the above steps can refer to the specific definition of an instant message processing method mentioned above, which will not be repeated here.

[0106] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0107] Based on the same inventive concept, the embodiment of the present application also provides an instant message processing device for implementing the instant message processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more instant message processing device embodiments provided below can refer to the limitations on the instant message processing method above, and will not be repeated here.

[0108] In an exemplary embodiment, Figure 5 As shown, an instant message processing device is provided, comprising:

[0109] The card push module 501 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;

[0110] A card display module 502, 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;

[0111] The card updating module 503 is used to respond to the interactive operation on the content of the target card message and update the content of the target card message using the business processing result corresponding to the interactive operation.

[0112] In one embodiment, the device further comprises:

[0113] 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 of the business systems to generate push configuration information for different task types;

[0114] A push configuration information receiving module is used to obtain push configuration information corresponding to the card messages of different task types; the push configuration information includes the control layout information, control associated 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 instant messaging sessions;

[0115] The configuration code generation module is used to 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.

[0116] In one of the embodiments, the card push module 501 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 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 business data acquisition information based on the interface request information.

[0117] In one of the embodiments, the card display module 502 is specifically used to determine the target business associated with the target card message and the data acquisition interface address for the target business based on the business data acquisition information; based on the data acquisition interface address, pull the business data of the target business from the target business system as the target business data.

[0118] In one of the embodiments, the target push configuration information is represented in the form of a template, and the card display module 502 is specifically used to use the target business data and the target push configuration information to perform template parsing, and obtain a card message description file by embedding the target business data into the template; according to the card message description file, the controls contained 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.

[0119] In one embodiment, the card update module 503 is specifically used to obtain the business processing result fed back by the target business system by calling the business logic interface corresponding to the interactive operation; execute the card message update operation according to the business processing result, and display the updated content of the target card message.

[0120] Each module in the instant message processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0121] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. 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. 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 an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an instant message processing method is implemented.

[0122] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure 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 certain components, or have a different arrangement of components.

[0123] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0124] 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;

[0125] 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;

[0126] In response to an interactive operation on the content of the target card message, the content of the target card message is updated using a business processing result corresponding to the interactive operation.

[0127] In one embodiment, when the processor executes the computer program, it also implements the steps of the instant message processing method in other embodiments described above.

[0128] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and 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, 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;

[0130] 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;

[0131] In response to an interactive operation on the content of the target card message, the content of the target card message is updated using a business processing result corresponding to the interactive operation.

[0132] In one embodiment, when the computer program is executed by a processor, the steps of the instant message processing method in other embodiments described above are also implemented.

[0133] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0134] 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;

[0135] 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;

[0136] In response to an interactive operation on the content of the target card message, the content of the target card message is updated using a business processing result corresponding to the interactive operation.

[0137] In one embodiment, when the computer program is executed by a processor, the steps of the instant message processing method in other embodiments described above 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 used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached 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; 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, the content of the target card message is updated using a business processing result corresponding to the interactive operation.

2. The method according to claim 1, characterized in that: The method further comprises: Sending 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; 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 step of determining 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 includes: If it is detected that any business system calls the push card message interface, it is confirmed that the card message push event is triggered, and any business system is used as the target business system; Receiving interface request information sent by the target business system; the interface request information includes a target configuration code; The push configuration information corresponding to the target configuration code is used as the target push configuration information, and the target session and the service data acquisition information are determined according to the interface request information.

4. 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.

5. 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.

6. The method according to any one of claims 1 to 5, 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.

7. 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; The card update module is used to respond to the interactive operation on the content of the target card message and update the content of the target card message using the business processing result corresponding to the interactive operation.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. 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 6 are implemented.

10. 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 6 are implemented.

Citation Information

Patent Citations

  • Card rendering method and device

    CN113076163A

  • Notification message processing method and device, computer equipment and storage medium

    CN116627666A

  • Message card generation method and device, computer equipment and storage medium

    CN117010358A

  • Message push method, apparatus, device and medium

    US20220303347A1

  • Method, apparatus, device and medium for message processing

    US20240356876A1