Interaction method, device, equipment, medium and program product
By responding to interactive instructions in the interactive method and determining the target message card from the cache, the problem of high consumption of rendering computing resources when message card is loaded is solved, and faster response speed and better user experience are achieved.
Patent Information
- Application Number
- CN202411775025.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-18
AI Technical Summary
Each loading of an existing message card requires a complete rendering calculation, resulting in high consumption of computing resources and prone to lag in interactive interfaces, affecting the user experience.
By responding to the received interaction instruction, the object identification of the object to be interacted is determined, and the target message card matching the object to be interacted is determined from the cache based on the identification, thereby reducing the number of rendering calculations.
Reduces the computing memory usage, speeds up the response to interactive instructions, and improves the user experience.
Smart Images

Figure CN119645553A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology and intelligent customer service technology, and more specifically, to an interaction method, device, equipment, medium and program product. Background Art
[0002] With the rapid development of computer technology, more and more applications are connected to instant messaging functions, allowing users to interact with online interactive systems instantly through the interface. In the interactive scenario, it is necessary to display message cards of various businesses.
[0003] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: each loading of the existing message card requires a complete rendering calculation, which consumes a lot of computing resources and is prone to freezes in the interactive interface, resulting in a poor user experience. Summary of the invention
[0004] In view of this, the present disclosure provides an interaction method, apparatus, device, medium and program product.
[0005] One aspect of the present disclosure provides an interaction method, including: in response to receiving an interaction instruction, determining an object identifier of an object to be interacted with; based on the object identifier, determining a target message card matching the object to be interacted with from a cache, wherein the cache stores historical message cards, which are generated within a historical period using historical object data; and displaying the target message card on an interaction interface.
[0006] According to an embodiment of the present disclosure, the interaction method also includes: obtaining a current message card matching the object to be interacted with based on the current object data of the object to be interacted with at the current moment and the business code for generating the message card; when it is determined that the current message card and the target message card are inconsistent, using the current message card to update the target message card in the interaction interface.
[0007] According to an embodiment of the present disclosure, the interaction method also includes: extracting current view level data from the current message card; extracting target view level data from the target message card; and when it is determined that the current view level data and the target view level data are inconsistent, determining that the current message card and the target message card are inconsistent.
[0008] According to an embodiment of the present disclosure, the interaction method further includes: using the current message card to update the target message card in the cache.
[0009] According to an embodiment of the present disclosure, in response to receiving an interaction instruction, determining the object identification of an object to be interacted with includes: in response to receiving an interaction instruction triggered by a user, receiving multiple object data packets associated with the user, wherein each object data packet includes object data of a historical interaction object at a current moment; based on the interaction instruction, determining a target object data packet from the multiple object data packets; determining the historical interaction object corresponding to the target object data packet as the object to be interacted with; and determining the object identification of the object to be interacted with based on the object data of the historical interaction object corresponding to the target object data packet at the current moment.
[0010] According to an embodiment of the present disclosure, an interaction instruction includes an open instruction triggered by an interaction interface being opened or an input instruction triggered by user input content; based on the interaction instruction, a target object data packet is determined from multiple object data packets, including: when the interaction instruction is determined to be an open instruction, obtaining a historical behavior record associated with the user; based on the historical behavior record, determining the target object data packet from multiple object data packets; and when the interaction instruction is determined to be an input instruction, determining the target object data packet associated with the input content from multiple object data packets based on the received input content.
[0011] According to an embodiment of the present disclosure, the interaction method also includes: in response to receiving a card reuse instruction, determining the current interface position of the interaction interface based on the card reuse instruction; based on the current interface position, determining the target object identifier from an interface list, wherein the interface list includes a mapping relationship between the interface position and the object identifier; based on the target object identifier, determining a reused message card from a cache; and displaying the reused message card in the interaction interface.
[0012] Another aspect of the present disclosure provides an interaction device, including: a determination module, for determining an object identifier of an object to be interacted with in response to receiving an interaction instruction; a matching module, for determining a target message card that matches the object to be interacted with from a cache based on the object identifier, wherein the cache stores historical message cards, which are generated within a historical period using historical object data; and a display module, for displaying the target message card on an interaction interface.
[0013] Another aspect of the present disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the above method.
[0014] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.
[0015] Another aspect of the present disclosure provides a computer program product, which includes computer executable instructions, and the instructions are used to implement the above method when executed.
[0016] According to an embodiment of the present disclosure, when an interaction instruction is received, a target message card matching the object to be interacted with is determined from the cache according to the object identifier of the object to be interacted with. This can reduce the number of rendering calculations, reduce the occupancy rate of computing memory, speed up the response to interaction instructions, and improve user experience. Therefore, it at least partially overcomes the technical problem that each time the existing message card is loaded, a complete rendering calculation needs to be completed, the computing resources are consumed a lot, and the interaction interface is prone to freeze, resulting in a poor user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 A schematic diagram of an interaction method of a related example is schematically shown;
[0019] Figure 2 The application scenario diagram of the interactive method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;
[0020] Figure 3 A flowchart of an interaction method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 4 The interactive diagram according to the embodiment of the present disclosure is schematically shown;
[0022] Figure 5 Schematically shows an interaction diagram according to another embodiment of the present disclosure;
[0023] Figure 6 Schematically shows an interaction diagram according to yet another embodiment of the present disclosure;
[0024] Figure 7 A block diagram schematically shows an interaction device according to an embodiment of the present disclosure; and
[0025] Figure 8 A block diagram of an electronic device suitable for implementing an interaction method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] In the embodiments of the present disclosure, the collection, updating, analysis, processing, use, transmission, provision, disclosure, storage, etc. of the data involved (for example, including but not limited to user personal information) are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. In particular, necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information and network security.
[0031] In the embodiments of the present disclosure, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0032] Figure 1 A schematic diagram of an interaction method of a related example is shown schematically.
[0033] In the process of implementing the present disclosure, it is found that online interactive systems such as online customer service systems are used to varying degrees in all walks of life, such as in education, medical care, catering, the Internet and other industries, especially in the Internet industry. In view of the consultation interaction scenarios between users and online customer service systems, in order to quickly affect the business, a message card loading and rendering technology of an application framework (such as React Native) has been developed. Without releasing a version, message cards for displaying different businesses can be developed, some of which are non-interactive businesses. Although the current message card loading and rendering technology solves the problem of being able to quickly develop business message cards without releasing a version to meet business needs, each time a message card is loaded, the React Native javascript engine will be called to complete a complete calculation.
[0034] like Figure 1 As shown, in the relevant example, the user enters the interactive interface 101, and the interactive interface 101 is opened and triggered to load the message card to the application framework container 102. When the interactive interface is opened, the application framework container 102 will receive the object data of the historical interactive object at the current moment sent by the server, and pass the object data to the application framework engine 103. The application framework engine 103 executes the business code and the object data to perform rendering calculations, obtains the rendering calculation results, and returns the calculation results to the application framework container 102. The application framework container 102 renders the message card and refreshes the interface list in the interactive interface 101. When the user reuses the message card, the application framework container 102 still needs to pass the object data to the application framework engine 103 to complete the calculation and refresh the interface list again. The application framework container 102 may include React Native. The application framework engine 103 may include a javascript engine.
[0035] For example, the following defects may exist: each time a user enters the interactive interface 101, the application framework container 102 will call the application framework engine 103 to perform calculations, which will consume more computing resources and occupy memory; when loading a message card, the interactive interface can only display a loading prompt animation, and can only be refreshed when the application framework container 102 sends the loading result to the interactive interface 101; after the loading is completed, the interface list will be refreshed, resulting in changes in the layout of the list content, affecting the user experience; even if the same message card reuses the same business data, a complete calculation will still be performed.
[0036] Based on this, the embodiments of the present disclosure provide an interaction method, device, equipment, medium and program product. The method includes: in response to receiving an interaction instruction, determining an object identifier of an object to be interacted with; based on the object identifier, determining a target message card matching the object to be interacted with from a cache, wherein the cache stores historical message cards, which are generated within a historical period using historical object data; and displaying the target message card on an interaction interface.
[0037] Figure 2 The application scenario diagram of the interactive method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0038] like Figure 2 As shown, the application scenario 200 according to this embodiment may include a terminal device 201, a terminal device 202, a terminal device 203, a network 204, and a server 205. The network 204 is used to provide a medium for a communication link between the terminal device 201, the terminal device 202, the terminal device 203, and the server 205. The network 204 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0039] The user can use the terminal device 201, the terminal device 202, and the terminal device 203 to interact with the server 205 through the network 204 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 201, the terminal device 202, and the terminal device 203, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples). The interactive interface for various communication client applications can display message cards to the user. The generation of message cards can be completed through the interaction between the application framework container and the cache. The generation of message cards can also be completed through the interaction between the application framework container and the application framework engine.
[0040] Terminal device 201, terminal device 202, and terminal device 203 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0041] Server 205 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using terminal devices 201, 202, and 203. The background management server may analyze and process the received data, and feed back the processing results to the terminal device.
[0042] It should be noted that the interaction method provided in the embodiment of the present disclosure can generally be executed by the terminal device 201, the terminal device 202, and the terminal device 203. Accordingly, the interaction device provided in the embodiment of the present disclosure can generally be set in the terminal device 201, the terminal device 202, and the terminal device 203.
[0043] It should be understood that Figure 2 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0044] The following will be based on Figure 2 The scene described by Figure 3~Figure 5 The interactive method of the disclosed embodiment is described in detail.
[0045] Figure 3 The flowchart of the interaction method according to the embodiment of the present disclosure is schematically shown.
[0046] like Figure 3 As shown, the method may include operations S310 to S330.
[0047] In operation S310, in response to receiving an interaction instruction, an object identifier of an object to be interacted with is determined.
[0048] In operation S320, based on the object identifier, a target message card matching the object to be interacted with is determined from the cache.
[0049] In operation S330, the target message card is displayed on the interactive interface.
[0050] According to an embodiment of the present disclosure, the interaction instruction may be triggered by the opening of the interaction interface, or may be triggered by the user inputting content.
[0051] According to an embodiment of the present disclosure, the objects to be interacted with may include, for example, objects that the user is interested in. For example, in a consultation interaction interface between a user and a customer service representative of a shopping application, the objects to be interacted with may include products involved in the shopping application, such as clothes, shoes, etc. In an interaction interface between a user and a search application, the objects to be interacted with may include search objects that the search application can display, etc.
[0052] According to an embodiment of the present disclosure, the interactive interface may include a consultation interactive interface between a user and a customer service or an interactive interface between a user and an application, which is not specifically limited in the present disclosure. The customer service may include intelligent customer service in various applications.
[0053] According to an embodiment of the present disclosure, the object identifier may include a unique identifier for characterizing the object to be interacted with. For example, the object identifier may include a coding identifier and the like.
[0054] According to an embodiment of the present disclosure, historical message cards are stored in the cache, and the historical message cards are generated within a historical period using historical object data.
[0055] According to an embodiment of the present disclosure, a historical message card is used to represent a message card that has been displayed on an interactive interface. Historical object data can be used to represent object data of a historical interactive object at a historical moment. Object data may include information related to the historical interactive object. For example, when the historical interactive object is product A, the attribute information of product A has been displayed in the interactive interface in the form of a message card at a certain moment before the current moment t.
[0056] According to an embodiment of the present disclosure, the target message card is used to represent the message card that needs to be displayed on the interactive interface at the current moment.
[0057] According to an embodiment of the present disclosure, a message card may include a card for indicating multiple view levels. For example, a message card may include a card capable of displaying pictures, text, and links. There is a view hierarchy relationship between pictures, text, and links, but it is not limited to this and is not specifically limited in the present disclosure.
[0058] According to the embodiments of the present disclosure, by means of rendering calculation, the business code for generating message cards can be executed using historical object data to generate rendering results for rendering historical message cards. The rendered historical message cards are stored in a cache.
[0059] According to an embodiment of the present disclosure, the card identifier of the historical message card stored in the cache can be determined according to the attributes of the historical object data, the object identifier is matched with the card identifier, and the historical message card corresponding to the card identifier matching the object identifier is determined as the target message card. When storing the historical message card in the cache, the object identifier of the historical interaction object and the historical message card are formed into a mapping relationship for storage. The historical message card consistent with the object identifier is determined from the cache as the target message card.
[0060] According to an embodiment of the present disclosure, when an interaction instruction is received, a target message card matching the object to be interacted with is determined from the cache according to the object identifier of the object to be interacted with. This can reduce the number of rendering calculations, reduce the occupancy rate of computing memory, speed up the response to interaction instructions, and improve user experience. Therefore, it at least partially overcomes the technical problem that each time the existing message card is loaded, a complete rendering calculation needs to be completed, the computing resources are consumed a lot, and the interaction interface is prone to freeze, resulting in a poor user experience.
[0061] Reference below Figure 4~Figure 6 , combined with specific embodiments Figure 3 The interaction method shown is further explained.
[0062] Figure 4 The interactive diagram according to an embodiment of the present disclosure is schematically shown.
[0063] like Figure 4 As shown, the interactive interface of the consultation scenario, that is, the consultation interface, is taken as an example to further explain the interactive method of the embodiment of the present disclosure. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present disclosure.
[0064] like Figure 4 As shown, when the consultation interface 401 is opened or the user inputs content in the consultation interface 401, it can trigger the sending of an interaction instruction 401-1 to the target application framework container 402 of the application associated with the consultation interface 401. The target application framework container 402 responds to the received interaction instruction 401-1 and determines the object identifier 402-1 of the object to be interacted with. Based on the object identifier 402-1, the target application framework container 402 determines the target message card 403-1 that matches the object to be interacted with from the cache 403, and displays the target message card 403-1 on the consultation interface 401.
[0065] According to the embodiments of the present disclosure, compared with Figure 1 As shown in the related examples, when receiving an interaction instruction, the embodiment of the present disclosure does not need to call the application framework engine to perform rendering calculations, which can reduce the number of rendering calculations, reduce the occupancy rate of computing memory, speed up the response to interaction instructions, and improve user experience.
[0066] According to an embodiment of the present disclosure, for example Figure 3 The operation S310, in response to receiving an interaction instruction, determining the object identification of the object to be interacted with, may include the following operations: in response to receiving an interaction instruction triggered by a user, receiving multiple object data packets associated with the user. Based on the interaction instruction, determining a target object data packet from the multiple object data packets. Determining the historical interaction object corresponding to the target object data packet as the object to be interacted with. Determining the object identification of the object to be interacted with based on the object data of the historical interaction object corresponding to the target object data packet at the current moment.
[0067] According to an embodiment of the present disclosure, each object data packet may include object data of a historical interactive object at the current moment. The object data of each object data packet may be updated in real time. The historical interactive object may include an interactive object that can be displayed on an interactive interface. Being able to be displayed on an interactive interface may be understood as having the authority to display the interactive object in the application corresponding to the interactive interface.
[0068] According to an embodiment of the present disclosure, determining the object identifier of the object to be interacted with based on the object data of the historical interaction object corresponding to the target object data packet at the current moment may include the following operations: determining a unique identifier for characterizing the historical interaction object based on the attributes of the object data, and determining the unique identifier for characterizing the historical interaction object as the object identifier of the object to be interacted with.
[0069] According to the embodiments of the present disclosure, by determining the identifier of the object to be interacted with, it is possible to quickly determine the target message card from the historical message cards pre-stored in the cache, reduce the loss of computing resources, and improve the user experience.
[0070] According to an embodiment of the present disclosure, each object data packet may include not only the object data of the historical interaction object at the current moment, but also a service code for generating a message card. The service code may also be updated in real time.
[0071] According to an embodiment of the present disclosure, for example Figure 3 The operation S320, based on the object identifier, determines the target message card that matches the object to be interacted with from the cache, and may include the operation of: when it is determined that the interaction interface at the previous time t-1 of the current time t has displayed a historical message card, a mapping relationship is formed between the historical message card and the historical object identifier of the historical interaction object targeted by the historical message card and stored in the cache. The object identifier may be matched with the historical object identifier stored in the cache, and when the match is successful, the historical message card is determined as the target message card that matches the object to be interacted with.
[0072] According to an embodiment of the present disclosure, by pre-storing the historical message cards displayed on the interactive interface at the last moment in the cache, the real-time calculation of rendering the message cards can be reduced, thereby reducing the memory usage.
[0073] According to an embodiment of the present disclosure, the interaction instruction may include an opening instruction triggered by opening the interaction interface or an input instruction triggered by a user inputting content.
[0074] For example, when a user enters a page of an application for the first time or when a user exits a page and then enters a page again, the interactive interface is opened and an open instruction can be triggered. After a user enters a page of an application, when the user enters content in an input box of the page, an input instruction can be triggered.
[0075] According to an embodiment of the present disclosure, determining a target object data packet from multiple object data packets based on an interaction instruction may include the following operations: obtaining a historical behavior record associated with a user when determining that the interaction instruction is an open instruction. Determining a target object data packet from multiple object data packets based on the historical behavior record.
[0076] According to an embodiment of the present disclosure, the historical behavior record may include the record when the user logs in to the application, and may also include the record of the user browsing or clicking in the application before the current moment after logging in to the application. For example, after the user enters a certain page of the application for the first time and triggers the open instruction, the attribute information recorded by the user when logging in to the application can be obtained, and according to the attribute information, the object data associated with the attribute information is determined from multiple object data of multiple object data packets, and the object data packet of the object data is determined as the target object data packet. For example, when the attribute information is age, object data similar to the age can be obtained. After the user exits a certain page that he entered last time and then enters a certain page again and triggers the open instruction, the record of the user browsing or clicking can be obtained, and according to the obtained browsing or clicking record, the object data of interest to the user can be determined. According to the object data of interest to the user, the object data associated with the object data of interest to the user is determined from multiple object data of multiple object data packets, and the object data packet of the object data is determined as the target object data packet.
[0077] According to an embodiment of the present disclosure, determining a target object data packet from multiple object data packets based on an interaction instruction may also include an operation: when the interaction instruction is determined to be an input instruction, determining a target object data packet associated with the input content from multiple object data packets based on the received input content.
[0078] According to an embodiment of the present disclosure, a keyword can be extracted from input content, object data associated with the keyword can be determined from a plurality of object data in a plurality of object data packets, and the object data packet of the object data can be determined as a target object data packet associated with the input content.
[0079] According to the embodiments of the present disclosure, by determining the type of interaction instruction, a target object data packet that better meets user needs can be determined from multiple object data packets, thereby meeting the user's personalized needs and improving the user experience.
[0080] According to the embodiments of the present disclosure, considering that object data may be changing in real time, for example, for shopping applications, when there are special activities, such as limited-time flash sales or promotional activities, product attribute data such as product sales and product prices will change in a short period of time. If the object data of the object to be interacted with at the current moment has changed, and the currently displayed message card is still a message card that has been displayed in the past and determined from the cache, a message card with wrong information will be loaded to the user, misleading the user and affecting the user experience.
[0081] Based on this, the interaction method in this embodiment may include the following: Figure 3In addition to the operations S310 to S330 shown, the operation may also include: obtaining a current message card that matches the object to be interacted with based on the current object data of the object to be interacted with at the current moment and the business code for generating the message card. When it is determined that the current message card and the target message card are inconsistent, the target message card is updated in the interaction interface using the current message card.
[0082] According to an embodiment of the present disclosure, the current object data is real-time data for the object to be interacted with.
[0083] According to an embodiment of the present disclosure, the current moment may be understood as a moment in response to receiving an interaction instruction.
[0084] According to an embodiment of the present disclosure, the current object data may include basic attribute data and business attribute data of the object to be interacted with. Basic attribute data include object name, object type, etc. Business attribute data include click volume, purchase volume, etc. of the object to be interacted with.
[0085] According to the embodiments of the present disclosure, the business code for generating a message card can be executed by using the current object data to generate a current message card matching the object to be interacted with. For example, a computing engine can be called to execute.
[0086] According to an embodiment of the present disclosure, by comparing the current message card with the target message card, if it is determined that the current message card and the target message card are consistent, there is no need to update the target message card in the interactive interface. If it is determined that the current message card and the target message card are inconsistent, the target message card is updated in the interactive interface.
[0087] Figure 5 An interaction diagram according to another embodiment of the present disclosure is schematically shown.
[0088] like Figure 5 As shown, continue to use Figure 4 The example of the consultation interface in the embodiment of the present disclosure is further explained to illustrate the interactive method of the embodiment of the present disclosure. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present disclosure.
[0089] like Figure 5As shown, after the target message card 403-1 is displayed on the consultation interface 401, the target application framework container 402 can call the application framework engine 501 of the application associated with the consultation interface 401. The application framework engine 501 uses the current object data of the object to be interacted with at the current moment transmitted by the target application framework container 402 to execute the business code for generating the message card, and obtains the current message card 501-1 that matches the object to be interacted with, and returns the current message card 501-1 to the target application framework container 402. When the target application framework container 402 determines that the current message card 501-1 and the target message card 403-1 are inconsistent, the target application framework container 402 uses the current message card 501-1 to update the target message card 403-1 on the consultation interface 401.
[0090] According to an embodiment of the present disclosure, the attribute information of the object to be interacted with can be displayed to the user through the target message card, such as the name, picture, sales volume, etc. of product A.
[0091] According to the embodiments of the present disclosure, since the current object data is real-time data for the object to be interacted with, the current message card is obtained by executing code rendering calculation based on the real-time data. Therefore, by comparing the current message card with the target message card, it is possible to update the target message card displayed on the interactive interface in real time when the object data changes, thereby improving the user experience.
[0092] According to the embodiments of the present disclosure, by determining the consistency between the current message card and the target message card, the refresh frequency of the message card and the interface list can be reduced, the effect of cold loading can be enhanced, the interface fluency can be increased, and the user experience and satisfaction can be improved. This has a great impact on customer service systems with a large number of customer service consultations and a large customer service team.
[0093] According to an embodiment of the present disclosure, in addition to including Figure 3 In addition to the operations S310 to S330 shown, the operations may also include: extracting current view level data from the current message card. Extracting target view level data from the target message card. When it is determined that the current view level data and the target view level data are inconsistent, determining that the current message card and the target message card are inconsistent.
[0094] According to an embodiment of the present disclosure, the current view level data may include the current view level relationship and the object data for display in the current view level. The target view level data may include the target view level relationship and the object data for display in the target view level. The current view level relationship may be compared with the target view level relationship, and the object data for display in the current view level may be compared with the object data for display in the target view level. When it is determined that both comparisons are consistent, it is determined that the current view level data and the target view level data are consistent. When it is determined that there is an inconsistency in the comparison, it is determined that the current view level data and the target view level data are inconsistent.
[0095] For example, the current view hierarchy relationship is consistent with the target view hierarchy relationship, but the object data used for display in the current view hierarchy is inconsistent with the object data used for display in the target view hierarchy, and it is determined that there is an inconsistency in the comparison. Or the current view hierarchy relationship is inconsistent with the target view hierarchy relationship, but the object data used for display in the current view hierarchy is consistent with the object data used for display in the target view hierarchy, and it is determined that there is an inconsistency in the comparison. Or the current view hierarchy relationship is inconsistent with the target view hierarchy relationship, but the object data used for display in the current view hierarchy is inconsistent with the object data used for display in the target view hierarchy, and it is determined that there is an inconsistency in the comparison.
[0096] According to an embodiment of the present disclosure, by extracting the view hierarchy data of the current message card and the target message card and then comparing them, it is possible to accurately determine whether the current message card and the target message card are consistent.
[0097] According to an embodiment of the present disclosure, the interaction method may include: Figure 3 In addition to the operations S310 to S330 shown, an operation may also be included: using the current message card to update the target message card in the cache.
[0098] According to an embodiment of the present disclosure, when it is determined that the current message card and the target message card are inconsistent, the target message card stored in the current cache can be replaced with the current message card. The target message card in the cache can also be updated regularly using the current message card according to a preset update cycle.
[0099] According to the embodiments of the present disclosure, by updating the target message card in the cache in real time, it is beneficial to not have to complete a complete rendering calculation when loading the target message card, and the real-time message card can be quickly displayed on the interactive interface, which is beneficial to improving the user experience.
[0100] According to an embodiment of the present disclosure, the interaction method may include: Figure 3In addition to the operations S310 to S330 shown, the operation may also include: in response to receiving a card reuse instruction, based on the card reuse instruction, determining the current interface position of the interactive interface. Based on the current interface position, determining the target object identifier from the interface list. Based on the target object identifier, determining a reused message card from the cache. Displaying the reused message card in the interactive interface.
[0101] According to an embodiment of the present disclosure, the interface list may include a mapping relationship between the interface position and the object identifier.
[0102] According to an embodiment of the present disclosure, a card reuse instruction may be used to indicate an instruction that an interactive interface is triggered when a user pulls down or pulls up the interactive interface.
[0103] According to an embodiment of the present disclosure, the current interface interaction position is used to represent the interface position when the user completes a downward or upward sliding operation on the interactive interface.
[0104] According to an embodiment of the present disclosure, a match may be performed between the current interface position and the interface position in the interface list, and an object identifier having a mapping relationship with the successfully matched interface position may be determined as a target object identifier.
[0105] According to an embodiment of the present disclosure, a historical message card matching the target object identifier may be matched from a cache according to the target object identifier, and the historical message card may be determined as a reused message card.
[0106] Figure 6 An interaction diagram according to yet another embodiment of the present disclosure is schematically shown.
[0107] like Figure 6 As shown, continue to use Figure 4 An example of a consulting interface or Figure 5 The example of the consultation interface in the embodiment of the present disclosure is further explained to illustrate the interactive method of the embodiment of the present disclosure. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present disclosure.
[0108] like Figure 6 As shown, when the user pulls down or pulls up on the consultation interface 401, the consultation interface 401 is triggered to send a card reuse instruction 601-1 to the target application framework container 402. In response to receiving the card reuse instruction 601-1, the target application framework container 402 determines the current interface position 602-1 of the consultation interface 401 based on the card reuse instruction 601-1. Based on the current interface position 602-1, the target application framework container 402 determines the target object identifier 602-2 from the interface list. Based on the target object identifier 602-2, a reused message card 603-3 is determined from the cache 403. The reused message card 603-3 is displayed in the consultation interface 401.
[0109] According to the embodiments of the present disclosure, when a user reuses a message card, the reused message card can be quickly obtained from the cache without calling the engine calculation or re-rendering, thereby completing the rendering closed loop of the entire message card.
[0110] Figure 7 A block diagram of an interaction device according to an embodiment of the present disclosure is schematically shown.
[0111] like Figure 7 As shown, the interaction device 700 includes: a determination module 710 , a matching module 720 and a display module 730 .
[0112] The determination module 710 is used to determine the object identifier of the object to be interacted with in response to receiving the interaction instruction.
[0113] The matching module 720 is used to determine a target message card that matches the object to be interacted with from the cache based on the object identifier.
[0114] The display module 730 is used to display the target message card on the interactive interface.
[0115] According to an embodiment of the present disclosure, historical message cards are stored in the cache, and the historical message cards are generated within a historical period using historical object data.
[0116] According to an embodiment of the present disclosure, the interaction device 700 may further include: a current message card determination module and a first update module.
[0117] The current message card determination module is used to obtain a current message card matching the object to be interacted with based on the current object data of the object to be interacted with at the current moment and the service code for generating the message card.
[0118] The first updating module is used to update the target message card in the interactive interface using the current message card when it is determined that the current message card and the target message card are inconsistent.
[0119] According to an embodiment of the present disclosure, the interaction device 700 may further include a first extraction module, a second extraction module and an inconsistency determination module.
[0120] The first extraction module is used to extract current view level data from the current message card.
[0121] The second extraction module is used to extract target view level data from the target message card.
[0122] The inconsistency determination module is used to determine that the current message card and the target message card are inconsistent when it is determined that the current view hierarchy data and the target view hierarchy data are inconsistent.
[0123] According to an embodiment of the present disclosure, the interaction device 700 may further include a second updating module.
[0124] The second updating module uses the current message card to update the target message card in the cache.
[0125] According to an embodiment of the present disclosure, the determination module 710 may include a receiving unit, a target object data packet determination unit, an object determination unit, and an object identification determination unit.
[0126] The receiving unit is used for receiving a plurality of object data packets associated with the user in response to receiving an interaction instruction triggered by the user.
[0127] The target object data packet determining unit is used to determine the target object data packet from a plurality of object data packets based on the interaction instruction.
[0128] The object determination unit is used to determine the historical interaction object corresponding to the target object data packet as the object to be interacted with.
[0129] The object identification determination unit is used to determine the object identification of the object to be interacted with based on the object data of the historical interaction object corresponding to the target object data packet at the current moment.
[0130] According to an embodiment of the present disclosure, each object data packet may include object data of the historical interactive object at the current moment.
[0131] According to an embodiment of the present disclosure, the interaction instruction may include an opening instruction triggered by the opening of the interaction interface or an input instruction triggered by the user inputting content. Based on the interaction instruction, determining the target object data packet from multiple object data packets may include the following operations: when the interaction instruction is determined to be an opening instruction, obtaining a historical behavior record associated with the user; based on the historical behavior record, determining the target object data packet from multiple object data packets; and when the interaction instruction is determined to be an input instruction, determining the target object data packet associated with the input content from multiple object data packets based on the received input content.
[0132] According to an embodiment of the present disclosure, the interactive device 700 may further include: a position determination module, an identification determination module, a multiplexed message card determination module, and a multiplexed message card display module.
[0133] The position determination module is used to determine the current interface position of the interactive interface based on the card reuse instruction in response to receiving the card reuse instruction.
[0134] The identification determination module is used to determine the target object identification from the interface list based on the current interface position.
[0135] The reused message card determination module is used to determine the reused message card from the cache based on the target object identifier.
[0136] The multiplexed message card display module is used to display multiplexed message cards in the interactive interface.
[0137] According to an embodiment of the present disclosure, the interface list may include a mapping relationship between the interface position and the object identifier.
[0138] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging circuits, or can be implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0139] For example, any multiple of the determination module 710, the matching module 720, and the display module 730 can be combined in one module / unit / sub-unit for implementation, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more of these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the determination module 710, the matching module 720, and the display module 730 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the determination module 710, the matching module 720 and the presentation module 730 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be performed.
[0140] It should be noted that the interactive device part in the embodiments of the present disclosure corresponds to the interactive method part in the embodiments of the present disclosure. The description of the interactive device part specifically refers to the interactive method part, which will not be repeated here.
[0141] Figure 8 A block diagram of an electronic device suitable for implementing an interaction method according to an embodiment of the present disclosure is schematically shown. Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0142] like Figure 8 As shown, the electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0143] In RAM 803, various programs and data required for the operation of electronic device 800 are stored. Processor 801, ROM 802 and RAM 803 are connected to each other via bus 804. Processor 801 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0144] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that the computer program read therefrom is installed into the storage portion 808 as needed.
[0145] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0146] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0147] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device.
[0148] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 802 and / or the RAM 803 described above and / or one or more memories other than the ROM 802 and the RAM 803 .
[0149] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains a program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the interactive method provided by the embodiment of the present disclosure.
[0150] When the computer program is executed by the processor 801, the above functions defined in the system / device of the embodiment of the present disclosure are executed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0151] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0152] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0153] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box may also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions. It can be understood by those skilled in the art that the features recorded in the various embodiments of the present disclosure can be combined and / or combined in a variety of ways, even if such a combination or combination is not explicitly recorded in the present disclosure. In particular, without departing from the spirit and teaching of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0154] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An interactive method, comprising: In response to receiving the interaction instruction, determining the object identification of the object to be interacted with; Based on the object identifier, determining a target message card matching the object to be interacted with from a cache, wherein the cache stores historical message cards generated within a historical period using historical object data; as well as The target message card is displayed on the interactive interface.
2. The method according to claim 1, further comprising: Based on the current object data of the object to be interacted with at the current moment and the service code for generating the message card, obtaining a current message card matching the object to be interacted with; as well as When it is determined that the current message card and the target message card are inconsistent, the target message card is updated on the interactive interface using the current message card.
3. The method according to claim 2, further comprising: Extract current view level data from the current message card; Extracting target view level data from the target message card; as well as When it is determined that the current view level data and the target view level data are inconsistent, it is determined that the current message card and the target message card are inconsistent.
4. The method according to claim 2, further comprising: The target message card in the cache is updated using the current message card.
5. The method according to claim 1, wherein in response to receiving the interaction instruction, determining the object identification of the object to be interacted with comprises: In response to receiving the interaction instruction triggered by the user, receiving a plurality of object data packets associated with the user, wherein each of the object data packets includes object data of a historical interaction object at a current moment; Based on the interaction instruction, determining a target object data packet from a plurality of the object data packets; Determining the historical interaction object corresponding to the target object data packet as the to-be-interacted object; and The object identifier of the object to be interacted with is determined based on the object data of the historical interaction object corresponding to the target object data packet at the current moment.
6. The method according to claim 5, wherein the interaction instruction comprises an opening instruction triggered by opening an interaction interface or an input instruction triggered by the user inputting content; The step of determining a target object data packet from a plurality of object data packets based on the interaction instruction comprises: In the case where it is determined that the interaction instruction is the opening instruction, obtaining a historical behavior record associated with the user; Based on the historical behavior record, determining the target object data packet from the plurality of object data packets; and In the case where the interactive instruction is determined to be the input instruction, the target object data packet associated with the input content is determined from a plurality of the object data packets based on the received input content.
7. The method according to any one of claims 1 to 6, further comprising: In response to receiving a card reuse instruction, determining a current interface position of the interaction interface based on the card reuse instruction; Based on the current interface position, determining the target object identifier from an interface list, wherein the interface list includes a mapping relationship between interface positions and object identifiers; Based on the target object identifier, determining a reused message card from the cache; and The multiplexed message card is displayed in the interactive interface.
8. An interactive device, comprising: A determination module, configured to determine an object identifier of an object to be interacted with in response to receiving an interaction instruction; A matching module, configured to determine, based on the object identifier, a target message card that matches the object to be interacted with from a cache, wherein the cache stores historical message cards that are generated within a historical period using historical object data; as well as A display module is used to display the target message card on the interactive interface.
9. An electronic device, comprising: one or more processors; a memory for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.