Intelligent dialogue interaction method and device, storage medium and terminal

By using a mapping mechanism and component logic modules that predefine the interaction behavior types and processing methods, the problem of low flexibility in AI chat assistant interaction methods is solved, enabling diversified display and simplified development, and improving user experience and interaction efficiency.

CN122044338APending Publication Date: 2026-05-15BEIJING QIHOOD TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING QIHOOD TECHNOLOGY CO LTD
Filing Date
2024-11-13
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing AI chat assistants have low interaction flexibility, cumbersome model integration, and complex and difficult-to-reuse front-end implementations, resulting in a large workload for developers and high maintenance costs.

Method used

By using a predefined mapping mechanism between interaction behavior types and processing methods, the interaction behavior type is determined in response to user operations, and the processing results are displayed in a variety of ways based on the target processing method. Pre-defined components and response display templates are used to simplify the interaction logic and enhance scalability and flexibility.

Benefits of technology

It achieves efficient and diverse interactive displays, simplifies front-end development, reduces developer workload and maintenance costs, and improves user experience and interaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122044338A_ABST
    Figure CN122044338A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent dialogue interaction method and device, a storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: in response to an interactive operation of a user, determining an interactive behavior type of the interactive operation according to operation data of the interactive operation; determining a target processing method corresponding to the operation data according to the interactive behavior type; and processing the operation data based on the target processing method to obtain a processing result corresponding to the operation data, and displaying in a display interface of the terminal according to the processing result. By presetting the mapping relationship between the interaction behavior type and the processing method, the corresponding processing method is called according to the mapping relationship to process the operation data after the interaction behavior type of the interaction operation is determined, so that the terminal can perform diversified display on dialogue interaction in the display interface according to the processing result; according to the universal interaction method, the terminal can access various types of large models, and diversified content display and management are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an intelligent dialogue interaction method, device, storage medium, and terminal. Background Technology

[0002] With the rapid development of artificial intelligence technology, Large Language Models (LLMs), as one of its core driving forces, are gradually permeating all aspects of our daily lives. In particular, AI chat assistants, with their powerful natural language processing capabilities and multi-turn dialogue interaction capabilities, have become one of the most popular and widely used technologies today. These chat assistants can not only answer various user questions and provide real-time interactive information, but also generate code based on user needs and visualize data through charts, greatly enriching the methods and depth of human-computer interaction. Therefore, in the process of interacting with AI chat assistants, in addition to using simple text to display content, it is also necessary to support diverse content display methods and management mechanisms to improve the readability and attractiveness of information and meet the increasingly diverse human-computer interaction needs of users. Summary of the Invention

[0003] This application provides an intelligent dialogue interaction method, device, storage medium, and terminal, which can support AI chat assistants to achieve diversified content display and management, and meet users' dialogue interaction needs.

[0004] In a first aspect, embodiments of this application provide an intelligent dialogue interaction method, the method comprising:

[0005] In response to user interaction, determine the interaction behavior type based on the interaction data;

[0006] Determine the target processing method for the operation data based on the type of interaction behavior;

[0007] The operation data is processed based on the target processing method to obtain the corresponding processing results, and the processing results are displayed on the terminal display interface.

[0008] Secondly, embodiments of this application provide an intelligent dialogue interaction device, the device comprising:

[0009] The type determination module is used to determine the type of interactive behavior of an interactive operation based on the operation data of the interactive operation;

[0010] The method determination module is used to determine the target processing method corresponding to the operation data based on the type of interaction behavior.

[0011] The results display module is used to process the operation data based on the target processing method to obtain the corresponding processing results, and then display the processing results on the terminal's display interface.

[0012] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the steps of the method described above.

[0013] Fourthly, embodiments of this application provide a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being adapted to be loaded by the processor and to execute the steps of the above-described method.

[0014] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:

[0015] This application provides an intelligent dialogue interaction method that responds to user interaction operations by determining the interaction behavior type based on the operation data of the interaction operation; determining the target processing method corresponding to the operation data based on the interaction behavior type; processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data; and displaying the processing result on the terminal's display interface. Because a clear mapping mechanism between interaction behavior types and processing methods is predefined, when the operation data corresponding to the user's interaction operation is received, the interaction behavior type can be quickly identified, and the corresponding processing method can be directly called according to the preset mapping relationship. This allows the terminal to display the dialogue interaction in a diversified manner based on the processing result. This universal mapping mechanism allows user interaction operations to obtain a template-based processing flow based on the interaction behavior type, thereby obtaining corresponding processing and diversified display on the terminal. This template-based processing flow also facilitates the integration of various types of backend algorithms and models, enhancing the scalability and flexibility of intelligent dialogue interaction. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 An exemplary system architecture diagram of an intelligent dialogue interaction method provided in this application embodiment;

[0018] Figure 2 A flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application;

[0019] Figure 3 A flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application;

[0020] Figure 4 A schematic diagram of an interface for an intelligent dialogue interaction method provided in an embodiment of this application;

[0021] Figure 5 A flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application;

[0022] Figure 6 A schematic diagram of an interface for an intelligent dialogue interaction method provided in an embodiment of this application;

[0023] Figure 7 A flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application;

[0024] Figure 8 A structural block diagram of an intelligent dialogue interaction device provided in an embodiment of this application;

[0025] Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation

[0026] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0027] In the following description, when referring to the accompanying drawings, the same numbers in different drawings denote the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0028] Driven by Large Language Model (LLM) technology, AI chat assistants have deeply penetrated people's daily lives, providing users with convenient conversational services. Through front-end interaction and natural language processing technologies, these chat assistants can handle complex language understanding and generation tasks. Users can interact with the chat assistant in real-time through text input, voice, or other operations. Furthermore, the application scope of existing AI chat assistants has expanded beyond traditional dialogue interfaces, meeting users' diverse needs at a deeper level. For example, chat assistants can automatically generate code snippets based on user descriptions, improving development efficiency and accuracy; they also possess powerful data visualization capabilities, transforming complex data into intuitive charts, graphs, and reports, helping users better understand the patterns and trends behind the data, greatly enriching the methods and depth of human-computer interaction.

[0029] Because AI chat assistants can process data in various formats, including text, charts, and code, the front-end interface needs to be customized to display different data formats to enhance readability and appeal. Furthermore, these diverse dialogue functions often require customized development based on different chat assistants and large language models, making the front-end implementation complex and difficult to reuse. Each chat assistant's integration with the large language model may involve unique interfaces, data formats, and interaction logic, increasing the workload and maintenance costs for front-end developers. Therefore, achieving a universal and user-friendly interface on the front-end while maintaining efficient interaction has become a crucial direction in the development of human-computer interaction technology.

[0030] Therefore, this application provides an intelligent dialogue interaction method to solve the problems of low flexibility and cumbersome access model of existing interaction methods.

[0031] Please see Figure 1 , Figure 1 An exemplary system architecture diagram of an intelligent dialogue interaction method provided in this application embodiment.

[0032] like Figure 1 As shown, the system architecture may include a terminal 101, a network 102, and a server 103. The network 102 serves as the medium for providing a communication link between the terminal 101 and the server 103. The network 102 may include various types of wired or wireless communication links, such as wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables, and wireless communication links including Bluetooth communication links, Wireless-Fidelity (Wi-Fi) communication links, or microwave communication links, etc.

[0033] Terminal 101 can interact with server 103 via network 102 to receive messages from or send messages to server 103. Alternatively, terminal 101 can interact with server 103 via network 102 to receive messages or data sent to server 103 by other users. Terminal 101 can be hardware or software. When terminal 101 is hardware, it can be various electronic devices, including but not limited to smartphones, tablets, laptops, and desktop computers. When terminal 101 is software, it can be installed in the aforementioned electronic devices and can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module; no specific limitation is made here.

[0034] In this embodiment, the terminal 101 responds to the user's interactive operation and determines the interactive behavior type of the interactive operation based on the operation data of the interactive operation; then, the terminal 101 determines the target processing method corresponding to the operation data based on the interactive behavior type; finally, the terminal 101 processes the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and displays the processing result on the terminal's display interface.

[0035] Server 103 can be a business server providing various services. It should be noted that server 103 can be either hardware or software. When server 103 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When server 103 is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.

[0036] Alternatively, the system architecture may not include server 103. In other words, server 103 may be an optional device in the embodiments of this specification. That is, the method provided in the embodiments of this specification can be applied to a system structure that only includes terminal 101. The embodiments of this application do not limit this.

[0037] It should be understood that Figure 1 The number of terminals, networks, and servers shown is only illustrative; the number can be any number of terminals, networks, and servers depending on the implementation requirements.

[0038] Please see Figure 2 , Figure 2This is a flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application. The execution subject of this embodiment can be a terminal executing the intelligent dialogue interaction, a processor within the terminal executing the intelligent dialogue interaction method, or an intelligent dialogue interaction service within the terminal executing the intelligent dialogue interaction method. For ease of description, the following uses the processor within the terminal as an example to describe the specific execution process of the intelligent dialogue interaction method.

[0039] like Figure 2 As shown, intelligent dialogue interaction methods can include at least:

[0040] S202. In response to the user's interactive operation, determine the interactive behavior type of the interactive operation based on the operation data of the interactive operation.

[0041] Optionally, the goal of an intelligent dialogue interaction system is to understand and respond to user intentions, thereby providing corresponding services or information. Since user interactions, whether through mouse clicks, keyboard input, or voice commands and other input methods, directly reflect user intentions, capturing these interactions is the first step in understanding and analyzing user intents and is the foundation for intelligent dialogue interaction. The intelligent dialogue interaction process requires updating the contextual information of the dialogue based on each user interaction to better understand the user's subsequent intentions. After capturing user interactions, analyzing the corresponding operation data can identify the user's specific operation method and content, thereby determining the type of interaction behavior. This allows for a more accurate construction of the dialogue's context, inference of the user's intent, and processing of the user's interactions to achieve a more natural and fluent continuous dialogue.

[0042] Optionally, users can perform user operations for intelligent dialogue interaction through various input devices (touchscreen, keyboard, mouse, microphone, camera, etc.) on a terminal (such as a smartphone, tablet, etc.). These operations can take various forms, such as keyboard input, mouse clicks, voice input, and image capture. To capture these interactions, integration technology of multiple sensors and input devices can be employed, enabling the intelligent dialogue assistant to simultaneously receive and process data from different sensors and input devices. This ensures comprehensive and accurate collection of user interaction data and a more comprehensive understanding of the user's intent and context by integrating multimodal information. For example, a user might take a picture of a plant with a camera, hoping the intelligent dialogue assistant can identify the specific category of the plant and provide relevant information; or they might input the desired function on the keyboard, allowing the intelligent dialogue assistant to generate code to implement that function, and so on.

[0043] Optionally, users can engage in multi-round interactions with the intelligent dialogue assistant on the terminal. A session is defined as all conversations within a certain time period surrounding a fixed topic, and within a session, the user can engage in at least one dialogue. User interactions within a session can include at least one of the following: statement input, dialogue sending, session closing, session opening, and session list management. Specifically, when a user triggers the terminal's input device, for example, by typing "What's the weather like today?" into the input box, the terminal acquires and analyzes the user's interaction data. Based on this data, it determines that the user's interaction is a statement input. It can also simultaneously analyze the semantic structure and keywords of the input statement to help understand the user's intent more quickly and accurately, improving dialogue processing efficiency. When a user triggers the message sending button to send the entered content from the input box to the dialogue area, the terminal can recognize this interaction as a dialogue sending operation and determine the subsequent processing method accordingly. During a conversation, if a user opens another conversation or closes the current conversation, it signifies a conversation closure operation, providing the user with flexible control and allowing them to end the conversation at any time according to their needs. Similarly, creating a new conversation or opening a historical conversation triggers a conversation opening operation and enters conversation mode to await user input. Opening historical conversations allows users to easily re-enter previous conversation states without starting from the beginning, which is particularly useful in scenarios requiring continuous communication or frequent topic switching, improving user interaction efficiency and user experience. In addition, a conversation list interface can be provided to display all historical conversation records between the user and the intelligent dialogue assistant, supporting operations such as sorting, filtering, deleting, and pinning conversation records to meet different user needs.

[0044] S204. Determine the target processing method corresponding to the operation data based on the interaction behavior type.

[0045] Optionally, after determining the type of interaction behavior, it is necessary to select and execute the corresponding processing method. Therefore, a pre-defined database of correspondences between interaction behavior types and processing methods is established. This database records the interaction behavior types and their corresponding one or more processing methods. These processing methods are a set of predefined functions or algorithms, each with different processing logic designed for different types of interaction operations. When a user performs a specific interaction operation, the corresponding target processing method is triggered, and the user's interaction operation is processed according to its internal processing logic. By establishing a clear correspondence between interaction behavior types and processing methods, the terminal can more accurately understand the user's intent and take appropriate processing measures, thereby improving the accuracy and effectiveness of the response.

[0046] S206. Process the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and display the processing result on the terminal display interface.

[0047] Optionally, based on the determined interaction behavior type and its corresponding target processing method, the parsed operation data is processed. The processing may include various operations such as natural language understanding, database querying, information filtering and integration, and response content generation, depending on the internal definition of the processing method. This embodiment does not limit the specific processing process. After the above processing, a processing result is generated. The terminal designs a suitable display layout based on the content and type of the processing result and renders the processing result onto the interface using the terminal's display interface technology.

[0048] For example, when the terminal identifies the user's interaction as text sending within a dialogue based on the operation data, it first parses the content sent by the user, identifying keywords, phrases, and possible grammatical structures, converting the raw text into structured data for subsequent processing. Then, based on the parsed text content, natural language processing technology is used to identify the user's intent, including determining whether the user is asking a question, issuing a command, expressing emotion, or engaging in other types of interaction. For query-type statements, a search engine or database may be invoked to retrieve relevant information and match it with the user's query, thereby providing the user with accurate and comprehensive answers or suggestions. After determining the user's intent and needs, corresponding processing results are generated according to predefined templates or logic. This may include various forms such as text, voice, and graphics, aiming to convey information or execute operation results in a way that is easy for the user to understand.

[0049] Optionally, streaming output can be used to ensure the instant delivery and display of information, reducing data latency. Streaming output is a technology that processes and continuously outputs data in real time, responding instantly to data changes and providing immediate feedback and results. Applying streaming output technology in intelligent dialogue interaction allows for real-time processing of user input and output, enabling results to be presented immediately after generation, without waiting for all data to be fully processed before output, thus providing users with a superior dialogue experience and service. For example, the fetch-event-source open-source library can be used to implement real-time communication between the terminal and server. After encapsulation, an "event" field can be added to differentiate and control each communication segment. When data is received from the server, the terminal can differentiate and process different operations based on different "event" fields. Streaming output technology makes content generation and display more seamless, enhancing the user experience.

[0050] This application provides an intelligent dialogue interaction method that, in response to a user's interaction operation, determines the interaction behavior type based on the operation data of the interaction operation; determines the target processing method corresponding to the operation data based on the interaction behavior type; processes the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and displays the processing result on the terminal's display interface. Because a clear mapping mechanism between interaction behavior types and processing methods is predefined, when the operation data corresponding to a user's interaction operation is received, the interaction behavior type can be quickly identified, and the corresponding processing method can be directly called according to the preset mapping relationship for processing. This allows the terminal to display the dialogue interaction in a diversified manner based on the processing result. This universal mapping mechanism allows user interaction operations to obtain a template-based processing flow based on the interaction behavior type, thereby obtaining corresponding processing and diversified display on the terminal. This template-based processing flow also facilitates the integration of various types of backend algorithms and models, enhancing the scalability and flexibility of intelligent dialogue interaction.

[0051] Please see Figure 3 , Figure 3 This is a flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application.

[0052] like Figure 3 As shown, intelligent dialogue interaction methods can include at least:

[0053] S302. Determine at least one feasible interactive operation and define a corresponding preset component for each interactive operation.

[0054] Optionally, during intelligent dialogue interaction, various user interactions need to be triggered and responded to in a timely manner on the terminal interface. Therefore, corresponding components can be defined for each interaction to display elements on the terminal interface to the user in specific interaction scenarios. For example... Figure 4 The diagram shown illustrates an interface illustration of an intelligent dialogue interaction method provided in this application embodiment. These components are predefined, reusable interface elements, including buttons, input boxes, dialog boxes, and prompts. They dynamically appear on the interface based on user actions or system prompts. Each predefined component is associated with a specific interactive operation, providing the user with the necessary interactive interface and encapsulating corresponding processing logic within it. Thus, when a user performs an operation on the interface (such as clicking a button or entering text), the terminal can more accurately identify the user's intent through the triggered components and call the corresponding components to process these operations, thereby providing a smooth and natural interface display effect and simplifying the overall interaction logic.

[0055] For example, when a user clicks the "Send" button, the corresponding sending logic is triggered to send the content in the input box and promptly clear the input box. Simultaneously, a dialog box or progress bar displaying the sending status may appear on the terminal's screen, informing the user that the message is being sent. After successful message sending, a pre-defined dialog box component may be triggered on the terminal to display the intelligent dialogue assistant's response. This dialog box component clearly displays the intelligent dialogue assistant's answer and may include relevant images, chained code, and other information to enhance the message's delivery. During the conversation, when the intelligent dialogue assistant requires the user to input more information to complete a task, it may display prompts next to the dialog box, guiding the user to input the required content.

[0056] S304. In the component logic module of each preset component, set the corresponding processing method for the interaction behavior type of each interactive operation, and in the component rendering module of each preset component, define its rendering method and display method in a specific display area of ​​the display interface.

[0057] Optionally, the processing modules defined within the preset component may include a component logic module and a component rendering module. The component logic is the core of the component's behavior, defining how the component responds to user operations, how it interacts with other components or backend services, and how it handles changes in its internal state. The component rendering module is responsible for presenting the component's processing results and data in a visual form on the terminal's display interface.

[0058] Optionally, keyboard events can be listened to in the component logic module to enable interaction between keyboard operations and interface display in the terminal. For example, a useRef hook can be used to track whether the user is using an input method, allowing for different handling of the Enter key in different states. When the user presses the Enter key in the input box, the terminal can determine whether it is currently in input method mode, and decide whether to submit the message (if not in input method mode) or perform the input method's default line break or word selection operation (if in input method mode). This state-based control logic reduces the possibility of accidental operations and improves the user's input experience. In addition, message sending and input box content clearing logic can be associated in the sending component. When the user clicks the "send" button or triggers a specific send shortcut key, the component's internal message sending function, such as handleSend, is called to send the content in the input box to the server for processing, and the corresponding input box content clearing function is called to ensure a clean user interface. Furthermore, corresponding event handling functions, such as handleContentChange, handleKeyUp, and handleKeyDown, can be associated with the input box component. These functions handle changes in the input box content, key release, and key press events, respectively. By listening to these events, the terminal can respond to user input actions in real time, such as using the @ key for quick selection, further improving the smoothness of the conversation. Different processing logic can be associated in the component logic module according to the specific functions of each component. This application embodiment does not limit the components and their internal processing logic.

[0059] Optionally, in the component rendering module, the overall layout of the component can be designed as two parts: a conversation list and a sending input area. The conversation list area handles and displays various conversation information during the user's intelligent dialogue interaction. The sending input area includes an input area and a dialogue area. The input area can be configured with different components such as text input boxes, image upload components, send buttons, and character counters to receive text, images, or sent data from the user. The dialogue area can be configured with dialog boxes to display the corresponding information after receiving the server's processing results. Different display components can be rendered based on the message type (whether it's an assistant's response or a user's question), allowing users to quickly distinguish between their own messages and the assistant's replies, making the dialogue content clearer and easier to understand. Furthermore, considering that the dialogue content may include different formats such as tables and images, which need to be distinguished and displayed using different classes, database dynamic binding of class names, such as `classnames`, can be used to differentiate and display different data formats within the dialog box content. In addition, a Tooltip component can be introduced to display a sending tooltip when the user hovers the mouse over the send button, helping the user understand the current operation status. The component rendering module can set different display methods according to the specific functions of each component. This application embodiment does not limit each component and its specific display method.

[0060] S306. Pre-configure at least one response display template corresponding to a data format. The response display template is used to standardize the display effect of response content of each data format in the response box of the display interface. The data format includes at least one of mathematical formulas, code, text, images, and tables.

[0061] Optionally, when the user's interaction is a dialogue sending operation, the terminal not only needs to process and understand the content sent by the user, but also needs to display the processing result on the terminal's display interface in an appropriate manner according to different formats. Therefore, response display templates can be pre-configured. These templates correspond to different data formats, including but not limited to mathematical formulas, codes, text, images, tables, and line breaks. Each data format has a dedicated template to standardize its personalized display effect in the response box of the display interface.

[0062] For example, Markdown, a lightweight markup language, can be combined with an intelligent dialogue assistant. By integrating multiple libraries or plugins to encapsulate Markdown components, rich Markdown rendering capabilities can be provided, enabling accurate recognition and aesthetically pleasing display of specific content. Markdown is a plain text document that uses simple markup symbols to specify text format and structure. By processing and parsing the markup syntax in a Markdown document, it can be converted into corresponding structured HTML code. This allows the originally plain text Markdown document to present rich styles and layouts on different platforms, thereby improving readability. For instance, the rendering logic of code elements can be customized so that code blocks are highlighted in response boxes or displayed specially according to different code languages; mathematical formulas are beautified using a professional rendering engine to enhance readability, enabling users to understand and absorb the processing results more quickly.

[0063] S308. In response to the user's dialogue sending operation, determine the interaction behavior type of the dialogue sending operation based on the operation data of the dialogue sending operation, and determine the target processing method corresponding to the operation data based on the interaction behavior type.

[0064] Optionally, after a user sends a dialogue, the system first captures the user's interaction and analyzes the data to identify that the user's action is a dialogue sending action. Then, based on the pre-set correspondence between interaction behavior types and processing methods, the system finds the appropriate processing method.

[0065] S310. Process the operation data based on the target processing method to obtain the processing result corresponding to the operation data, determine the target data format of the processing result, render the target response content in the processing result according to the target response display template corresponding to the target data format, and display it in the response box.

[0066] Optionally, in the processing method corresponding to the dialogue sending operation, the system first generates a response based on the user's sent content. Next, it needs to identify the data format of this response to select a suitable response display template for rendering. This can be achieved by analyzing the structure, tags, or specific markers of the response content. For example, if the response contains LaTeX mathematical formula markers, the system can recognize it as a mathematical formula format; if the response is wrapped in specific code block tags, it is recognized as a code format. After determining the data format of the response content, the terminal selects the corresponding template from a pre-configured response display template library, fills the selected template with the response content, renders it using the appropriate rendering engine, and finally inserts the rendered response content into the response box on the display interface for the user to view.

[0067] This application provides an intelligent dialogue interaction method. By identifying multiple feasible interactive operations and defining corresponding preset components for them, when a user initiates an interactive operation on the interface, these components can provide the user with the necessary interactive interface, thereby more accurately identifying the user's intent and calling the corresponding components to process these operations. This simplifies the overall interaction logic and provides the user with a smooth and natural interactive experience. Simultaneously, by pre-configuring response display templates corresponding to various data formats, the terminal can automatically select an appropriate display method based on the data format of the processed result. This ensures that response content in various formats can be displayed to the user in an appropriate and readable form in the response box of the display interface, thereby improving the user experience and enabling the user to understand the responses of the intelligent dialogue interaction assistant more quickly and accurately.

[0068] Please see Figure 5 , Figure 5 This is a flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application.

[0069] like Figure 5 As shown, intelligent dialogue interaction methods can include at least:

[0070] S502. In response to the user's session closing operation, determine the interaction behavior type of the session closing operation based on the operation data of the session closing operation, and determine the target processing method corresponding to the operation data based on the interaction behavior type.

[0071] Optionally, when a user closes the current session (by opening another session interface or directly closing the current session interface), the user's interaction is first captured and the operation data is analyzed to identify that the user's operation is a session closing operation. Then, based on the pre-set correspondence between interaction behavior types and processing methods, the corresponding processing method is found. It should be noted that the session closing operation in this embodiment is a temporary cancellation of the display of the current session interface. This can be opening another session interface to conduct another session, or temporarily closing all session interfaces to conduct other non-dialogue interaction operations. It is not an operation that directly clears all data of the current session.

[0072] S504. Determine the session to be closed corresponding to the session closing operation, and check whether there is any content entered in the input box of the session to be closed.

[0073] Optionally, when processing a user's session closing operation, the user might enter some content in the currently closed session and then switch to another session or interface for further browsing or other operations due to their own needs. In this case, the previously entered content in the current session might represent the user's next query request. If the session and the entered content are directly canceled or reset based on the session closing operation, the user will not be able to directly return to the state before the session was closed, thus interrupting the user's interaction and affecting the user's interactive experience in the closed session. Therefore, for sessions that already contain entered content to be closed, the user's entered content can be retained for subsequent user operations, allowing the user to have a more flexible interactive experience within the session context.

[0074] Specifically, when a user performs a session closing operation, the system first identifies the operation as a session closing type and locates the session to be closed using unique identifiers such as the session ID. Then, it checks the input box area of ​​the session to be closed and uses algorithms such as text detection to determine whether there is content that the user has entered but has not yet sent in the input box.

[0075] S506. If it exists, save the entered content to the cache area corresponding to the session to be closed, and when a session open operation is received for the session to be closed, display the entered content again in the input box and delete the entered content from the cache area.

[0076] Optionally, if input fields in a session to be closed contain entered but unsent content, the entered content is saved to the corresponding cache area before closing the session. The unique identifier of the session (e.g., session ID) and the cached content are recorded for later retrieval. When the user reopens the session, the corresponding cached content can be retrieved based on the unique identifier of the session and automatically filled back into the input field, allowing the user to continue editing or sending the content. The record can also be deleted from the cache area to avoid duplicate display or storage space consumption. The cache area for a session to be closed can be allocated by the terminal when caching is needed. During allocation, the terminal binds the unique identifier of the session to be closed to the cache area, ensuring that the entered content needs to be cached in the corresponding area. After the entered content is retrieved from the cache area of ​​the session to be closed, the terminal unbinds this cache area from the unique identifier of the session to be closed and reassigns it to the corresponding session when allocation is needed again. This facilitates cache area reuse and reduces storage resource waste.

[0077] For example, Figure 6A schematic diagram of an interface for an intelligent dialogue interaction method provided in an embodiment of this application is shown below. Figure 6 As shown in (a) of the diagram, the input box in the current session contains content that the user has entered but not yet sent: "I want to get a cat, do you have any good suggestions?". Figure 6 As shown in (b), when a user opens a new session, since there is already entered content in the previous session, the session list area in the newly opened session will retain the entered content from the previous session. When the user reopens the previous session, the entered content will be displayed again in the input box so that the user can continue the previous conversation.

[0078] S508. If it does not exist, close the session to be closed.

[0079] Optionally, if it is detected that there is no entered content in the input box of the session to be closed, the session closure operation is performed directly, the display interface of the session is closed, and the related resources are released.

[0080] In this application embodiment, an intelligent dialogue interaction method is provided. By saving the unsent content in the input box in the cache area corresponding to the session, when the user enters content in the session but attempts to close the session before sending it, this part of the content can be cached in time. When the user reopens the session, the entered content will be automatically restored, avoiding the problem of input content loss due to accidental operation or temporary interruption of the session.

[0081] Please see Figure 7 , Figure 7 This is a flowchart illustrating an intelligent dialogue interaction method provided in an embodiment of this application.

[0082] like Figure 7 As shown, intelligent dialogue interaction methods can include at least:

[0083] S702. In response to the user's session opening operation, determine the interaction behavior type of the session opening operation based on the operation data of the session opening operation, and determine the target processing method corresponding to the operation data based on the interaction behavior type.

[0084] Optionally, after a user performs an interactive operation to open or create a new session, the user's interactive operation is first captured and the operation data is analyzed to identify that the user's operation is a session opening operation, and then the corresponding processing method is found according to the pre-set correspondence between interactive behavior types and processing methods.

[0085] S704. Determine the session to be opened corresponding to the session open operation, and determine the session status of the session to be opened.

[0086] Optionally, considering that a new session can be created or a historical session can be opened when opening a session, the session to be opened can be divided into two states: a newly opened session and a historical session. The session state directly affects the subsequent processing logic when a user opens a session. When a user opens a historical session, they may want to continue the conversation from the previous session, which requires retrieving historical session information from the database and restoring the previous session content and context information, allowing the user to seamlessly continue the previous conversation and enhancing the continuity and interactivity of the session. For a newly opened session, since there are no historical session records, the terminal only needs to create new session information and initialize the session environment, without needing to retrieve historical data from the database. Based on this, when a user performs a session opening operation, the session state of the session to be opened is first determined, and the subsequent processing flow is determined according to the different states.

[0087] S706. If the session status is a new session status, then create new session information corresponding to the session to be opened, and display the session to be opened in the display interface according to the new session information.

[0088] Optionally, when a user's interaction is a session opening operation, and the session state is determined to be a newly added session, a session creation process is first triggered. This process includes assigning a unique identifier (such as a session ID) to the new session and setting basic session attributes (such as session topic and creation time). Then, based on a preset session interface template or a user-defined interface style, a session interface for the newly added session is generated and displayed on the terminal's display screen. This typically includes basic session information (such as session name) and interactive components (such as input boxes and send buttons) to facilitate subsequent user interaction.

[0089] S708. Determine that the session to be opened is the current session. When the current session meets the preset state management conditions, determine whether there is a dialogue record in the current session. If there is, determine the session state of the current session as the historical session state, and save the historical session information corresponding to the dialogue record to the historical session database.

[0090] Optionally, a trigger condition needs to be set for the transition from a new session state to a historical session state, so that when this condition is met, the currently ongoing new session is converted to a historical session. In one feasible embodiment, the preset state management condition for state transition is set to updating the dialogue record in a new session. That is, after a new session is created, once the user sends a message or receives a reply in the new session, it is determined that the current session is no longer a new session, its session state is converted to a historical session, and the dialogue record and related information (such as sender, receiver, sending time, etc.) in that session are saved. This method triggers the state transition by the user sending or receiving messages in the new session, making the update of the session state highly real-time. As soon as the user begins to interact, the new session is immediately regarded as a historical session, which helps to record and manage the user's dialogue record in a timely manner. In another feasible embodiment, a preset state management condition for state transition is set so that the user triggers a session closing operation to close the current new session. That is, after the new session is created, the session state will not be updated in real time when the user sends or receives messages in the new session. However, when the user wants to close the current session, the new session state of the current session is converted to the historical session state, and the dialogue records in the current session are saved. This helps to reduce database write operations, thereby optimizing the use of system resources.

[0091] S710. If the session status is a historical session status, retrieve the historical session information of the session to be opened from the historical session database, and display the session to be opened on the display interface according to the historical session information.

[0092] Optionally, if the unique identifier of the session confirms that the session to be opened is a historical session, it is necessary to retrieve detailed information about the historical session from the historical session database. This information may include: the session creation time, the last conversation time, the conversation log (text, images, voice, etc.), and the current status of the session (such as whether it is marked as important). Then, based on the retrieved historical session information, the content to be displayed on the terminal's display interface is prepared and rendered onto the terminal's display interface for the user to view and interact with.

[0093] This application provides an intelligent dialogue interaction method that utilizes two session states to manage new sessions and historical sessions respectively. It can invoke different processing logics and display different session content based on the current session state, making session management more efficient and orderly. Simultaneously, by saving qualified sessions and their dialogue records to a historical session database, persistent storage of dialogue records is achieved. Users can view historical session content at any time and continue previous sessions, improving the continuity of user experience when using the intelligent dialogue interaction system.

[0094] Please see Figure 8 , Figure 8 This is a structural block diagram of an intelligent dialogue interaction device provided in an embodiment of this application.

[0095] like Figure 8 As shown, the intelligent dialogue interaction device 800 includes:

[0096] The type determination module 810 is used to determine the interaction behavior type of the interaction operation based on the operation data of the interaction operation;

[0097] The method determination module 820 is used to determine the target processing method corresponding to the operation data based on the interaction behavior type;

[0098] The result display module 830 is used to process the operation data based on the target processing method to obtain the corresponding processing result, and then display the processing result on the terminal display interface.

[0099] Optionally, the intelligent dialogue interaction device 800 further includes: a component preset module, used to determine at least one feasible interactive operation, define corresponding preset components for each interactive operation; set corresponding processing methods for the interactive behavior type of each interactive operation in the component logic module of each preset component, and define its rendering method and display method in a specific display area of ​​the display interface in the component rendering module of each preset component.

[0100] Optionally, the interactive operation includes at least one of the following: dialogue sending operation, statement input operation, session closing operation, session opening operation, and session list management operation.

[0101] Optionally, when the interactive operation is a dialogue sending operation, the intelligent dialogue interaction device 800 further includes: a preset reply display template module, used to pre-configure reply display templates corresponding to at least one data format, the reply display templates being used to standardize the display effect of reply content of each data format in the reply box of the display interface, the data format including at least one of mathematical formulas, code, text, images, and tables; and a result display module 830, which is further used to determine the target data format of the processing result, render the target reply content in the processing result according to the target reply display template corresponding to the target data format, and display it in the reply box.

[0102] Optionally, when the interactive operation is a session closing operation, the result display module 830 is also used to determine the session to be closed corresponding to the session closing operation, and to determine whether there is any entered content in the input box of the session to be closed; if there is, the entered content is saved to the cache area corresponding to the session to be closed, and when a session opening operation is received for the session to be closed, the entered content is displayed again in the input box, and the entered content is deleted from the cache area; if there is no, the session to be closed is closed.

[0103] Optionally, when the interactive operation is a session opening operation, the result display module 830 is also used to determine the session to be opened corresponding to the session opening operation and to determine the session status of the session to be opened; if the session status is a new session status, then new session information corresponding to the session to be opened is created, and the session to be opened is displayed on the display interface according to the new session information; if the session status is a historical session status, then historical session information of the session to be opened is obtained from the historical session database, and the session to be opened is displayed on the display interface according to the historical session information.

[0104] Optionally, the intelligent dialogue interaction device 800 is further configured to, after displaying the session to be opened on the display interface based on the newly added session information, determine that the session to be opened is the current session, and when the current session meets the preset state management conditions, determine whether there is a dialogue record in the current session; if there is, determine the session state of the current session as the historical session state, and save the historical session information corresponding to the dialogue record to the historical session database.

[0105] In this embodiment, an intelligent dialogue interaction device is provided, comprising: a type determination module for determining the interaction behavior type of the interaction operation based on the operation data; a method determination module for determining the target processing method corresponding to the operation data based on the interaction behavior type; and a result display module for processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and displaying the processing result on the terminal's display interface. When a user engages in intelligent dialogue interaction, this device can accurately respond to the user's interaction operation through the type determination module and quickly determine the type of interaction behavior based on the operation data, ensuring the accuracy and relevance of subsequent processing steps. The method determination module can match and determine the corresponding target processing method based on the interaction behavior type identified by the type determination module, enabling the device to adopt the most suitable processing strategy for different types of interaction behaviors, improving processing efficiency and diversified display effects. After processing the operation data based on the target processing method, the result display module can instantly display the processing result on the terminal's display interface in various forms such as images, text, and tables. This not only makes the information more intuitive and easier to understand, but also allows users to quickly understand the operation results and response status, enhancing the interactivity between the user and the intelligent dialogue interaction device.

[0106] This application also provides a computer storage medium that can store multiple instructions adapted for loading by a processor and executing the steps of any of the methods described in the above embodiments.

[0107] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Figure 9 As shown, terminal 900 may include: at least one terminal processor 901, at least one network interface 904, user interface 903, memory 905, and at least one communication bus 902.

[0108] The communication bus 902 is used to enable communication between these components.

[0109] The user interface 903 may include a display screen and a camera. Optionally, the user interface 903 may also include a standard wired interface and a wireless interface.

[0110] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0111] The terminal processor 901 may include one or more processing cores. The terminal processor 901 connects to various parts within the terminal 900 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 905, and by calling data stored in the memory 905. Optionally, the terminal processor 901 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The terminal processor 901 may integrate one or more of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the terminal processor 901.

[0112] The memory 905 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 905 may include a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 905 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 905 may also be at least one storage device located remotely from the aforementioned terminal processor 901. Figure 9 As shown, the memory 905, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an intelligent dialogue interaction program.

[0113] exist Figure 9 In the terminal 900 shown, the user interface 903 is mainly used to provide an input interface for the user and to obtain the user's input data; while the terminal processor 901 can be used to call the intelligent dialogue interaction program stored in the memory 905 and specifically perform the following operations:

[0114] In response to user interaction, determine the interaction behavior type based on the interaction data;

[0115] Determine the target processing method for the operation data based on the type of interaction behavior;

[0116] The operation data is processed based on the target processing method to obtain the corresponding processing results, and the processing results are displayed on the terminal display interface.

[0117] In some embodiments, the terminal processor 901 further performs the following steps: determining at least one feasible interactive operation, defining a corresponding preset component for each interactive operation; setting a corresponding processing method for the interactive behavior type of each interactive operation in the component logic module of each preset component, and defining the rendering method and display method of each preset component in a specific display area of ​​the display interface in the component rendering module of each preset component.

[0118] In some embodiments, the interactive operation includes at least one of the following: dialogue sending operation, statement input operation, session closing operation, session opening operation, and session list management operation.

[0119] In some embodiments, when the interactive operation is a dialogue sending operation, the terminal processor 901 further performs the following steps: pre-configures a response display template corresponding to at least one data format. The response display template is used to standardize the display effect of the response content of each data format in the response box of the display interface. The data format includes at least one of mathematical formulas, code, text, images, and tables. When the terminal processor 901 performs the display of the processing result on the terminal's display interface, it further performs the following steps: determines the target data format of the processing result, renders the target response content in the processing result according to the target response display template corresponding to the target data format, and displays it in the response box.

[0120] In some embodiments, when the interactive operation is a session closing operation, the terminal processor 901, while processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data and displaying the processing result on the terminal's display interface, also specifically performs the following steps: determining the session to be closed corresponding to the session closing operation, and determining whether there is any entered content in the input box of the session to be closed; if there is, saving the entered content to the cache area corresponding to the session to be closed, and re-displaying the entered content in the input box and deleting the entered content from the cache area when receiving a session opening operation for the session to be closed; if there is no entered content, closing the session to be closed.

[0121] In some embodiments, when the interactive operation is a session opening operation, the terminal processor 901, while processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data and displaying it on the terminal's display interface according to the processing result, also specifically performs the following steps: determining the session to be opened corresponding to the session opening operation, and judging the session status of the session to be opened; if the session status is a new session status, then creating new session information corresponding to the session to be opened, and displaying the session to be opened on the display interface according to the new session information; if the session status is a historical session status, then obtaining the historical session information of the session to be opened from the historical session database, and displaying the session to be opened on the display interface according to the historical session information.

[0122] In some embodiments, after the terminal processor 901 displays the session to be opened on the display interface based on the newly added session information, it further performs the following steps: determining that the session to be opened is the current session; when the current session meets the preset state management conditions, determining whether there is a dialogue record in the current session; if there is, determining the session state of the current session as the historical session state, and saving the historical session information corresponding to the dialogue record to the historical session database.

[0123] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0124] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0125] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).

[0126] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0127] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0128] The above is a description of an intelligent dialogue interaction method, device, storage medium, and terminal provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An intelligent dialogue interaction method, characterized in that, Applied to a terminal, the method includes: In response to a user's interactive operation, the interaction behavior type of the interactive operation is determined based on the operation data of the interactive operation; Determine the target processing method corresponding to the operation data based on the type of interaction behavior; The operation data is processed according to the target processing method to obtain the processing result corresponding to the operation data, and the processing result is displayed on the terminal display interface.

2. The method according to claim 1, characterized in that, The method further includes: Identify at least one feasible interactive operation, and define corresponding preset components for each interactive operation; In the component logic module of each preset component, a corresponding processing method is set for the interaction behavior type of each interactive operation, and in the component rendering module of each preset component, the rendering method and display method of the component in the specific display area of ​​the display interface are defined.

3. The method according to claim 1, characterized in that, The interactive operations include at least one of the following: dialogue sending operation, statement input operation, session closing operation, session opening operation, and session list management operation.

4. The method according to claim 3, characterized in that, When the interactive operation is the dialogue sending operation, the method further includes: A pre-configured response display template corresponding to at least one data format is provided. The response display template is used to standardize the display effect of the response content of each data format in the response box of the display interface. The data format includes at least one of mathematical formulas, code, text, images, and tables. The step of displaying the processing result on the terminal's display interface includes: Determine the target data format of the processing result, render the target response content in the processing result according to the target response display template corresponding to the target data format, and display it in the response box.

5. The method according to claim 3, characterized in that, When the interactive operation is a session closing operation, the step of processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and displaying the processing result on the terminal's display interface, includes: Determine the session to be closed corresponding to the session closing operation, and determine whether there is any content entered in the input box of the session to be closed; If it exists, the entered content is saved to the cache area corresponding to the session to be closed, and when a session open operation is received for the session to be closed, the entered content is displayed again in the input box, and the entered content is deleted from the cache area; If it does not exist, then close the session to be closed.

6. The method according to claim 3, characterized in that, When the interactive operation is a session opening operation, the step of processing the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and displaying the processing result on the terminal's display interface, includes: Determine the session to be opened corresponding to the session open operation, and determine the session status of the session to be opened; If the session status is a new session status, then new session information corresponding to the session to be opened is created, and the session to be opened is displayed on the display interface according to the new session information; If the session status is a historical session status, then the historical session information of the session to be opened is obtained from the historical session database, and the session to be opened is displayed on the display interface according to the historical session information.

7. The method according to claim 6, characterized in that, After displaying the session to be opened on the display interface based on the newly added session information, the method further includes: The session to be opened is determined to be the current session. When the current session meets the preset state management conditions, it is determined whether there is a conversation record in the current session. If it exists, the current session state is determined as the historical session state, and the historical session information corresponding to the dialogue record is saved to the historical session database.

8. An intelligent dialogue interaction device, characterized in that, Applied to a terminal, the device includes: The type determination module is used to respond to the user's interactive operation and determine the interactive behavior type of the interactive operation based on the operation data of the interactive operation; The method determination module is used to determine the target processing method corresponding to the operation data based on the interaction behavior type; The result display module is used to process the operation data based on the target processing method to obtain the processing result corresponding to the operation data, and to display the processing result on the display interface of the terminal.

9. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions adapted for loading by a processor and executing the method steps as claimed in any one of claims 1-7.

10. A terminal, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1-7.