Interactive interface data transmission method and device

By defining business state chains and interaction templates in the session state machine model, and combining initial and real-time interaction information, the problem of intelligent agents being unable to remember historical inputs is solved, achieving a more accurate and coherent interactive experience.

CN121284082APending Publication Date: 2026-01-06永赢金融租赁有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511400547.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-28
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

The existing human-computer interaction method of intelligent agents is a single-turn dialogue mechanism, which cannot remember the user's historical input, resulting in reduced accuracy of service completion and poor user experience, thus limiting its value in complex business scenarios.

Method used

Define a complete business state chain in the session state machine model, and bind an interaction template and migration rule to each state. Use the initial interaction information and real-time interaction information as the verification basis to ensure that the business state migration conforms to the consistency of user intent and the standardization of business logic.

Benefits of technology

It effectively avoids the service interruption problem caused by only responding to the current interaction information and ignoring the historical interaction information, improves the accuracy of service completion, and provides users with a consistent guided interactive experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284082A_ABST
    Figure CN121284082A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an interactive interface data transmission method and device, and relates to the technical field of man-machine interaction. According to the method, a complete service state link required for achieving a user intention is defined in a session state machine model in advance, a corresponding interaction template and a migration rule are bound for each service state, and a structured service process skeleton is constructed; meanwhile, the first-time interaction information (including the first-time user intention and the first-time entity information) and the real-time interaction information (reflecting the subsequent operation or the supplementary demand of the user) are used as the verification basis of the business state transition, so that the business state transition is ensured to conform to the continuity of the user intention and the normalization of the business logic. Therefore, the problem of service breakage caused by'only responding to the current interaction information but neglecting the historical interaction information 'is effectively avoided, the accuracy of service completion is improved, and coherent guide type interaction experience is provided for the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of human-computer interaction technology, and in particular to a method and apparatus for transmitting interactive interface data. Background Technology

[0002] With the rapid development of artificial intelligence technology, intelligent agents have become one of the core forms of human-computer interaction. Intelligent agents can accurately understand user intent and provide users with diverse intelligent services such as information retrieval and transaction processing.

[0003] Currently, the human-computer interaction method of intelligent agents is usually a single-turn dialogue mechanism. A single-turn dialogue mechanism means that the intelligent agent provides services based solely on the user's current, single input. For example, when a user enters "What's the weather like in Beijing today?", the intelligent agent can directly return real-time weather data.

[0004] However, relying on single-turn dialogue mechanisms for human-computer interaction means that intelligent agents cannot remember users' historical input. For example, after a user asks about the weather and receives a reply, if they follow up with "What thickness of clothing should I wear?", the intelligent agent cannot associate this question with the historical input "What's the weather like in Beijing today?" and therefore cannot provide clothing suggestions tailored to the specific location and weather conditions. This reduces the accuracy of service completion, weakens the user experience, and ultimately limits the value of intelligent agents in complex business scenarios. Summary of the Invention

[0005] To address the aforementioned issues, this application provides a method and apparatus for transmitting interactive interface data, which can improve the accuracy of service completion and provide users with a coherent guided interactive experience.

[0006] The embodiments of this application disclose the following technical solutions:

[0007] In a first aspect, this application discloses a method for transmitting interactive interface data, applied to a server, the method comprising:

[0008] Get the initial interaction information sent by the client;

[0009] Based on the initial interaction information, determine the initial user intent and initial entity information;

[0010] Based on the initial user intent, a corresponding session state machine model is determined from a preset model library; wherein, the session state machine model includes multiple business states required to achieve the initial user intent, interaction templates corresponding to the multiple business states respectively, and migration rules for migrating the business states;

[0011] Based on the interaction template corresponding to the initial business state of the session state machine model and the initial entity information, first interaction interface data is generated and sent to the client so that the client generates the first interaction interface based on the first interaction interface data.

[0012] Obtain real-time interactive information input by the user on the first interactive interface, sent by the client;

[0013] If the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time interaction information, then the session state machine model is driven to migrate the business state, and second interaction interface data is generated based on the interaction template corresponding to the migrated business state and the real-time interaction information. The second interaction interface data is then sent to the client so that the client can generate a second interaction interface based on the second interaction interface data.

[0014] Repeat the steps of obtaining real-time interactive information input by the user on the interactive interface sent by the client to generate interactive interface data until the session state machine model enters the end-of-service state, generates final interactive interface data, and sends the final interactive interface data to the client so that the client can generate the final interactive interface based on the final interactive interface data.

[0015] Optionally, the step of driving the session state machine model to perform business state migration if the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time interaction information includes:

[0016] If the real-time interaction information is real-time dialogue information, then the real-time user intent is determined based on the real-time dialogue information;

[0017] If the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time user intent, then the session state machine model is driven to migrate the business state.

[0018] Optionally, the step of driving the session state machine model to perform business state migration if the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time interaction information includes:

[0019] If the real-time interaction information is real-time operation information, and the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time operation information, then the session state machine model is driven to migrate the business state; the real-time operation information includes at least one of button click, form submission, and list selection.

[0020] Optionally, determining the initial user intent and initial entity information based on the initial interaction information includes:

[0021] By invoking the natural language understanding interface of the large language model, the initial user intent and initial entity information corresponding to the initial interaction information are determined.

[0022] Optionally, the method further includes:

[0023] If, based on the initial interaction information and the real-time interaction information, it is determined that the migration rules for migrating the initial business state are not met, a prompt interaction interface is generated. The prompt interaction interface includes prompt information indicating the reason why the migration rules for migrating the initial business state are not met.

[0024] Secondly, this application discloses an interactive interface data transmission device applied to a server, the device comprising: a first acquisition module, an information determination module, a model determination module, a first generation module, a second acquisition module, a second generation module, and a repetitive execution module;

[0025] The first acquisition module is used to acquire the initial interaction information sent by the client;

[0026] The information determination module is used to determine the initial user intent and the initial entity information based on the initial interaction information.

[0027] The model determination module is used to determine the corresponding session state machine model from a preset model library based on the initial user intent; wherein, the session state machine model includes multiple business states required to achieve the initial user intent, interaction templates corresponding to the multiple business states respectively, and migration rules for migrating the business states.

[0028] The first generation module is used to generate first interactive interface data based on the interaction template corresponding to the initial business state of the session state machine model and the initial entity information, and send the first interactive interface data to the client so that the client generates the first interactive interface based on the first interactive interface data.

[0029] The second acquisition module is used to acquire real-time interactive information input by the user on the first interactive interface and sent by the client.

[0030] The second generation module is used to drive the session state machine model to migrate the business state if it is determined from the first interaction information and the real-time interaction information that the migration rules for migrating the initial business state are met, and to generate second interaction interface data according to the interaction template corresponding to the migrated business state and the real-time interaction information, and to send the second interaction interface data to the client so that the client generates a second interaction interface according to the second interaction interface data.

[0031] The repetitive execution module is used to repeatedly execute the steps of obtaining real-time interactive information input by the user on the interactive interface sent by the client and generating interactive interface data until the session state machine model enters the end-of-business state, generates final interactive interface data, and sends the final interactive interface data to the client so that the client generates the final interactive interface based on the final interactive interface data.

[0032] Optionally, the second generation module includes: a first generation submodule and a second generation submodule;

[0033] The first generation submodule is used to determine the real-time user intent based on the real-time dialogue information if the real-time interaction information is real-time dialogue information.

[0034] The second generation submodule is used to drive the session state machine model to perform business state migration if the migration rules for migrating the initial business state are satisfied based on the first interaction information and the real-time user intent.

[0035] Optionally, the second generation module is specifically used to: if the real-time interaction information is real-time operation information, and the migration rules for migrating the initial business state are satisfied based on the first interaction information and the real-time operation information, then drive the session state machine model to migrate the business state; the real-time operation information includes at least one of button click, form submission, and list selection.

[0036] Optionally, the information determination module is specifically used to: determine the initial user intent and initial entity information corresponding to the initial interaction information by calling the natural language understanding interface of the large language model.

[0037] Optionally, the device further includes: a prompt generation module;

[0038] The prompt generation module is configured to: if, based on the initial interaction information and the real-time interaction information, it is determined that the migration rules for migrating the initial business state are not met, then generate a prompt interaction interface, the prompt interaction interface including prompt information indicating the reason why the migration rules for migrating the initial business state are not met.

[0039] Compared with the prior art, this application has the following beneficial effects:

[0040] This application provides a method and apparatus for transmitting interactive interface data. The method is applied to a server and includes: acquiring initial interaction information sent by a client; determining initial user intent and initial entity information based on the initial interaction information; determining a corresponding session state machine model from a preset model library based on the initial user intent; wherein the session state machine model includes multiple business states required to achieve the initial user intent, interaction templates corresponding to the multiple business states, and migration rules for migrating business states; generating first interactive interface data based on the interaction templates corresponding to the initial business states and the initial entity information of the session state machine model, and sending the first interactive interface data to the client so that the client generates a first interactive interface based on the first interactive interface data; acquiring user information sent by the client... The first interactive interface receives real-time interactive information. If, based on the initial interactive information and the real-time interactive information, the migration rules for the initial business state are met, the session state machine model is driven to migrate the business state. Based on the interactive template and real-time interactive information corresponding to the migrated business state, second interactive interface data is generated and sent to the client, enabling the client to generate the second interactive interface. This process is repeated until the session state machine model enters the end business state, generating final interactive interface data and sending it to the client, allowing the client to generate the final interactive interface. This application predefines the complete business state chain required to achieve the user's intent in the session state machine model and binds corresponding interactive templates and migration rules to each business state, constructing a structured service process skeleton. Simultaneously, this application utilizes initial interactive information (including initial user intent and initial entity information) and real-time interactive information (reflecting subsequent user operations or supplementary needs) as verification criteria for business state migration, ensuring that the migration of business states conforms to both user intent continuity and business logic norms. Therefore, this application effectively avoids the service interruption problem caused by "only responding to current interaction information and ignoring historical interaction information", improves the accuracy of service completion, and provides users with a coherent guided interactive experience. Attached Figure Description

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

[0042] Figure 1 A flowchart illustrating a method for transmitting interactive interface data provided in an embodiment of this application;

[0043] Figure 2 A flowchart illustrating a method for transmitting interactive interface data for booking airline tickets, provided as an embodiment of this application;

[0044] Figure 3 A signaling diagram of an interactive interface data transmission system provided in an embodiment of this application;

[0045] Figure 4 A signaling diagram of a data transmission system for an interactive interface for booking airline tickets, provided in an embodiment of this application;

[0046] Figure 5 This is a schematic diagram of an interactive interface data transmission device provided in an embodiment of this application. Detailed Implementation

[0047] First, let me explain the technical terms used in this application:

[0048] The core function of the Conversational State Machine (CSM) is to transform complex and discrete business processes into complete business state chains that can be precisely executed, thereby solving the shortcomings of existing intelligent agent human-computer interaction methods such as "contextual fragmentation and uncontrollable processes".

[0049] As described earlier, current human-computer interaction methods for intelligent agents typically employ a single-turn dialogue mechanism. This means that the intelligent agent provides services based solely on the user's current, single input. However, this single-turn dialogue mechanism prevents the intelligent agent from remembering the user's past inputs. This reduces the accuracy of service delivery, weakens the user experience, and ultimately limits the value of intelligent agents in complex business scenarios.

[0050] Through research, the inventors have proposed a method and apparatus for transmitting interactive interface data. This application predefines the complete business state chain required to achieve user intent within a session state machine model, and binds corresponding interaction templates and transition rules to each business state, constructing a structured service process skeleton. Simultaneously, this application utilizes initial interaction information (including initial user intent and initial entity information) and real-time interaction information (reflecting subsequent user operations or supplementary needs) as verification criteria for business state transitions, ensuring that the transitions conform to both user intent continuity and business logic norms. Therefore, this application effectively avoids the service breakage problem caused by "only responding to current interaction information and ignoring historical interaction information," improving the accuracy of service completion and providing users with a coherent guided interactive experience.

[0051] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0052] See Figure 1 This figure is a flowchart of a method for transmitting interactive interface data according to an embodiment of this application. The method is applied to a server and includes:

[0053] S101: Obtain the initial interaction information sent by the client.

[0054] The server receives the initial interaction information sent by the client through an access gateway. The initial interaction information is natural language interaction information entered by the user on the client. For example, the initial interaction information can be text information directly entered by the user, or it can be text-to-text voice information obtained by the user through speech-to-text technology.

[0055] See Figure 2 The figure is a flowchart illustrating a method for transmitting interactive interface data for booking airline tickets, as provided in an embodiment of this application. The initial interactive information sent by the client and received by the server could be "Book me a ticket to Beijing next Friday".

[0056] S102: Determine the initial user intent and initial entity information based on the initial interaction information.

[0057] First-time user intent refers to the core needs expressed by a user through their first interaction, i.e., the specific type of business the user wants to complete, such as booking a flight, applying for a loan, checking a bill, or booking a hotel.

[0058] Initial entity information refers to structured data extracted from the initial interaction information to support the realization of the user's initial intent. It typically includes specific business parameters such as time, location, object, quantity, amount, and type.

[0059] Specifically, the server determines the initial user intent and initial entity information corresponding to the initial interaction information by calling the Natural Language Understanding (NLU) interface of the Large Language Model (LLM).

[0060] like Figure 2 As shown, based on "Help me book a flight to Beijing next Friday", the initial user intent is determined to be "book a flight", and the initial entity information is "Date: Next Friday" and "Destination: Beijing".

[0061] S103: Based on the initial user intent, determine the corresponding session state machine model from the preset model library; wherein, the session state machine model includes multiple business states required to achieve the initial user intent, interaction templates corresponding to the multiple business states, and migration rules for migrating business states.

[0062] The default model library stores multiple session state machine models. All session state machine models are stored in machine-parseable formats such as JSON or YAML.

[0063] Understandably, each session state machine model corresponds to a user intent (i.e., business type, such as booking a flight or applying for a loan). Each session state machine model has a unique global identifier (machine ID), which is usually a semantic string in English. The global identifier is used to accurately locate the session state machine model corresponding to a specific user intent in the pre-defined model library.

[0064] Each session state machine model includes at least the following three types of data:

[0065] The first type is the complete business state chain required to achieve the initial user intent. The business state chain includes multiple business states, starting from the initial business state and ending with the final business state. For example, when the initial user intent is "book a flight," the business state chain could be "information query → flight selection → passenger information entry → payment confirmation."

[0066] The second type consists of multiple interaction templates corresponding to different business states. For example, the "information query" business state corresponds to the "flight query form interaction template," and the "flight selection" business state corresponds to the "flight list display interaction template."

[0067] The third type is the migration rule for the business status. For example, the migration rule could be: after the passenger information is filled in completely and the submit button is clicked, the user is allowed to migrate to the payment confirmation business status.

[0068] Specifically, the server's session state machine engine determines the corresponding session state machine model from the preset model library based on the initial user intent.

[0069] like Figure 2 As shown, based on "booking a flight", the corresponding flight booking session state machine model (machineId: ticket_booking_flow) is determined from the preset model library. This flight booking session state machine model predefines the business state chain of "information query → flight selection → passenger information filling → payment confirmation", multiple interaction templates corresponding to multiple business states, and migration rules for migrating business states.

[0070] S104: Generate first interactive interface data based on the interaction template and initial entity information corresponding to the initial business state of the session state machine model, and send the first interactive interface data to the client so that the client can generate the first interactive interface based on the first interactive interface data.

[0071] Based on the session state machine model determined in step S103, the server determines the interaction template corresponding to the initial business state and combines the interaction template with the initial entity information determined in step S102 to generate the first interactive interface data. The first interactive interface data is structured data that can be parsed by the client (such as JSON format). Subsequently, the first interactive interface data is sent to the client, where the client's UI rendering engine parses the first interactive interface data and renders it to generate the first interactive interface.

[0072] like Figure 2 As shown, based on the interaction template "Flight Query Form Interaction Template" corresponding to the initial business state "Information Query" of the flight booking session state machine model, and "Date: Next Friday" and "Destination: Beijing", the first interaction interface data is generated and sent to the client so that the client can generate a first interaction interface pre-filled with the date and destination based on the first interaction interface data.

[0073] It should be noted that, in order to make the content in the first interactive interface more accurate and better suited to the user's actual needs, the client can integrate external data by calling the external application programming interface (API).

[0074] S105: Obtain real-time interactive information input by the user on the first interactive interface, sent by the client.

[0075] Real-time interactive information can be real-time dialogue information or real-time operation information.

[0076] Real-time dialogue messages refer to text content submitted by users in the auxiliary natural language input boxes of the first interactive interface, used to supplement their needs or express personalized requests. For example, in the business scenario of flight booking, real-time dialogue messages could be "Please prioritize showing me flights with window seats" or "If there are no tickets available next Friday, please check for flights next Saturday."

[0077] Real-time operation information refers to standardized operations performed by users on core functional elements of the primary interactive interface. Real-time operation information includes at least one of the following: button clicks (e.g., clicking the "Search Flights" button to trigger a query request), form submissions (e.g., filling in "Departure Point: Shanghai" and clicking the "Submit Form" button to synchronize the departure point to the server), and list selections.

[0078] like Figure 2 As shown, we can retrieve the user's input "Help me choose the cheapest flight" sent by the client on the first interactive interface. Alternatively, we can retrieve the user's submission "Form submission: Departure point = Shanghai" sent by the client on the first interactive interface.

[0079] S106: If the migration rules for the initial business state are met based on the initial interaction information and real-time interaction information, the session state machine model is driven to migrate the business state. Based on the interaction template and real-time interaction information corresponding to the migrated business state, the second interaction interface data is generated and sent to the client so that the client can generate the second interaction interface based on the second interaction interface data.

[0080] In one specific implementation, if the real-time interaction information is real-time dialogue information, then the real-time user intent is determined based on the real-time dialogue information; if the initial interaction information and the real-time user intent determine that the migration rules for the initial business state are met, then the session state machine model is driven to migrate the business state.

[0081] like Figure 2As shown, if the real-time dialogue information is "Help me choose the cheapest flight," then firstly, based on the real-time dialogue information, the real-time user intent is determined to be "choose a low-priced flight." Then, based on "Help me book a ticket to Beijing next Friday" and "choose a low-priced flight," it is determined whether the initial business state transition rules are met. If so, the session state machine model is driven to transition to the "flight selection" business state, and second interaction interface data is generated. Finally, the second interaction interface data is sent to the client, so that the client can generate a "flight list interaction interface" as the second interaction interface based on the second interaction interface data.

[0082] In one specific implementation, if the real-time interaction information is real-time operation information, and the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time operation information, then the session state machine model is driven to migrate the business state; the real-time operation information includes at least one of button clicks, form submissions, and list selections.

[0083] like Figure 2 As shown, if the real-time operation information is "Form Submission: Departure Point = Shanghai", and "Book me a flight to Beijing next Friday" and "Form Submission: Departure Point = Shanghai" satisfy the initial business state transition rules, then the session state machine model will transition to the "Flight Selection" business state, and generate the second interactive interface data. Finally, the second interactive interface data will be sent to the client, so that the client can generate a "Flight List Interactive Interface" as the second interactive interface based on the second interactive interface data.

[0084] It should be noted that if, based on the initial interaction information and real-time interaction information, it is determined that the migration rules for the initial business state are not met, a prompt interaction interface will be generated. The prompt interaction interface includes a prompt message indicating the reason why the migration rules for the initial business state are not met.

[0085] It is understandable that the initial interaction information and real-time interaction information in this step together constitute the context data. The server can store the aforementioned initial interaction information and real-time interaction information (i.e., context data) through the context module for subsequent steps to call, thereby achieving data reuse, avoiding repeated user input, and ensuring the continuity of data throughout the entire process.

[0086] It should be noted that, in order to make the content of the second interactive interface more accurate and more in line with the actual needs of users, the client can integrate external data by calling the external application programming interface (API) and store the external data in the context module.

[0087] S107: Repeat the steps of obtaining real-time interactive information input by the user on the interactive interface sent by the client to generate interactive interface data until the session state machine model enters the end business state, generates the final interactive interface data, and sends the final interactive interface data to the client so that the client can generate the final interactive interface based on the final interactive interface data.

[0088] The execution logic of each loop is completely consistent with steps S105-S106: First, it obtains the real-time interaction information sent by the client and input by the user on the current interactive interface. Then, it combines the context information (initial interaction information + previous real-time interaction information) to verify whether the current business state transition rules are met. If met, the session state machine model performs the business state transition and generates new interactive interface data based on the interaction template and real-time interaction information corresponding to the transitioned business state. Finally, the new interactive interface data is sent to the client so that the client can generate a new interactive interface based on the new interactive interface data.

[0089] Understandably, when the session state machine model enters the end-of-business state, the server can determine that the loop has ended and send the final interactive interface data to the client so that the client's UI rendering engine can generate the final interactive interface based on the final interactive interface data.

[0090] like Figure 2 As shown, the process of repeatedly obtaining real-time interactive information input by the user on the interactive interface sent by the client and generating interactive interface data continues until payment is confirmed. At this point, the final interactive interface data is generated and sent to the client so that the client can generate the final interactive interface of the "electronic flight itinerary" based on the final interactive interface data.

[0091] In summary, this application discloses a method for transmitting interactive interface data. This application predefines the complete business state chain required to achieve user intent within a session state machine model, and binds corresponding interaction templates and migration rules to each business state, constructing a structured service process skeleton. Simultaneously, this application utilizes initial interaction information (including initial user intent and initial entity information) and real-time interaction information (reflecting subsequent user operations or supplementary needs) as verification criteria for business state migration, ensuring that the migration of business states conforms to both user intent continuity and business logic standardization. Therefore, this application effectively avoids the service breakage problem caused by "only responding to current interaction information and ignoring historical interaction information," improves the accuracy of service completion, and provides users with a coherent guided interactive experience.

[0092] See Figure 3This figure is a signaling diagram of an interactive interface data transmission system provided in an embodiment of this application. The interactive interface data transmission system includes a client 31 and a server 32. For example, the client 31 can be a mobile phone, desktop computer, tablet computer, laptop computer, PDA, intelligent voice interaction device, smart home appliance, vehicle terminal, aircraft, etc. The server 32 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. The client 31 and the server 32 can be connected directly or indirectly through wired or wireless communication methods; this application does not impose any limitations on this connection.

[0093] S301: The client obtains the initial interaction information input by the user.

[0094] S302: The client sends the initial interaction information to the server.

[0095] S303: The server determines the initial user intent and initial entity information based on the initial interaction information.

[0096] In one specific implementation, the initial user intent and initial entity information corresponding to the initial interaction information can be determined by calling the natural language understanding interface of the large language model.

[0097] S304: The server determines the corresponding session state machine model from the preset model library based on the initial user intent; wherein, the session state machine model includes multiple business states required to achieve the initial user intent, the interaction templates corresponding to the multiple business states, and the migration rules for migrating business states.

[0098] S305: The server generates the first interactive interface data based on the interaction template and initial entity information corresponding to the initial business state of the session state machine model.

[0099] S306: The server sends the first interactive interface data to the client so that the client can generate the first interactive interface based on the first interactive interface data.

[0100] S307: The client obtains real-time interactive information input by the user on the first interactive interface.

[0101] S308: The client sends real-time interactive information to the server.

[0102] S309: If the migration rules for the initial business state are met based on the initial interaction information and real-time interaction information, the server drives the session state machine model to migrate the business state and generates the second interaction interface data based on the interaction template and real-time interaction information corresponding to the migrated business state.

[0103] In one specific implementation, if the real-time interaction information is real-time dialogue information, then the real-time user intent is determined based on the real-time dialogue information; if the initial interaction information and the real-time user intent determine that the migration rules for the initial business state are met, then the session state machine model is driven to migrate the business state.

[0104] In one specific implementation, if the real-time interaction information is real-time operation information, and the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time operation information, then the session state machine model is driven to migrate the business state; the real-time operation information includes at least one of button clicks, form submissions, and list selections.

[0105] In one specific implementation, the method further includes: if it is determined, based on the initial interaction information and the real-time interaction information, that the migration rules for the initial business state of the migration are not met, then a prompt interaction interface is generated, the prompt interaction interface including prompt information indicating the reason for not meeting the migration rules for the initial business state of the migration.

[0106] S310: The server sends the second interactive interface data to the client so that the client can generate the second interactive interface based on the second interactive interface data.

[0107] S311: The server repeatedly executes the steps from obtaining the real-time interactive information sent by the client and input by the user on the interactive interface to generating the interactive interface data, until the session state machine model enters the end business state and generates the final interactive interface data.

[0108] S312: The server sends the final interactive interface data to the client so that the client can generate the final interactive interface based on the final interactive interface data.

[0109] See Figure 4 This figure is a signaling diagram of a data transmission system for an interactive interface for booking airline tickets, provided in an embodiment of this application.

[0110] S401: The client obtains the user's input "Book me a flight to Beijing next Friday" and sends "Book me a flight to Beijing next Friday" to the server.

[0111] S402: Based on "Help me book a flight to Beijing next Friday", the server determines the corresponding initial user intent as "book a flight", and the initial entity information is "Date: next Friday" and "Destination: Beijing".

[0112] S403: The server determines the corresponding flight booking session state machine model from the preset model library based on "booked flight".

[0113] S404: The server generates the first interactive interface data based on the interaction template "Flight Query Form Interaction Template" corresponding to the initial business state "Information Query" of the flight booking session state machine model, as well as "Date: Next Friday" and "Destination: Beijing".

[0114] S405: The server sends the first interactive interface data to the client, so that the client can generate a first interactive interface pre-filled with the date and destination based on the first interactive interface data.

[0115] S406: The client obtains the user's input on the first interactive interface, such as "Help me choose the cheapest flight" or "Form submission: Departure point = Shanghai".

[0116] If the user inputs "Help me choose the cheapest flight" on the first interactive interface, then execute steps S407~S408 below, and then execute step S411:

[0117] S407: The client sends the message "Help me choose the cheapest flight" to the server.

[0118] S408: First, based on the real-time dialogue information, determine that the real-time user intent is "select a low-priced flight". Then, based on "Book me a ticket to Beijing next Friday" and "select a low-priced flight", determine whether the initial business state transition rules are met. If so, drive the session state machine model to transition to the "flight selection" business state and generate the second interactive interface data.

[0119] If the user enters "Form Submission: Departure Point = Shanghai" on the first interactive interface, then execute steps S409~S410 below, and then execute step S411:

[0120] S409: The client sends "Form Submission: Departure Point = Shanghai" to the server.

[0121] S410: If the real-time operation information is "Form Submission: Departure Point = Shanghai", and "Book me a flight to Beijing next Friday" and "Form Submission: Departure Point = Shanghai" satisfy the initial business state transition rules, then drive the session state machine model to transition to the "Flight Selection" business state and generate the second interactive interface data.

[0122] S411: The server sends the second interactive interface data to the client, so that the client can generate a "flight list interactive interface" as the second interactive interface based on the second interactive interface data.

[0123] S412: The server repeatedly executes the steps from obtaining the real-time interactive information sent by the client and input by the user on the interactive interface to generating the interactive interface data, until the payment is confirmed and the final interactive interface data is generated.

[0124] S413: The server sends the final interactive interface data to the client so that the client can generate the final interactive interface of the "electronic ticket itinerary" based on the final interactive interface data.

[0125] In summary, this application discloses an interactive interface data transmission system. This application predefines the complete business state chain required to achieve user intent within a session state machine model, and binds corresponding interaction templates and migration rules to each business state, constructing a structured service process skeleton. Simultaneously, this application utilizes initial interaction information (including initial user intent and initial entity information) and real-time interaction information (reflecting subsequent user operations or supplementary needs) as verification criteria for business state migration, ensuring that the migration of business states conforms to both user intent continuity and business logic standardization. Therefore, this application effectively avoids the service breakage problem caused by "only responding to current interaction information and ignoring historical interaction information," improves the accuracy of service completion, and provides users with a coherent guided interactive experience.

[0126] See Figure 5 This figure is a schematic diagram of an interactive interface data transmission device provided in an embodiment of this application. The interactive interface data transmission device 500 is applied to a server and includes: a first acquisition module 501, an information determination module 502, a model determination module 503, a first generation module 504, a second acquisition module 505, a second generation module 506, and a repetitive execution module 507;

[0127] The first acquisition module 501 is used to acquire the initial interaction information input by the user;

[0128] The information determination module 502 is used to determine the initial user intent and initial entity information based on the initial interaction information;

[0129] The model determination module 503 is used to determine the corresponding session state machine model from the preset model library based on the initial user intent; wherein, the session state machine model includes multiple business states required to achieve the initial user intent, interaction templates corresponding to the multiple business states, and migration rules for migrating business states.

[0130] The first generation module 504 is used to generate first interactive interface data based on the interaction template corresponding to the initial business state of the session state machine model and the initial entity information, and send the first interactive interface data to the client so that the client generates the first interactive interface based on the first interactive interface data.

[0131] The second acquisition module 505 is used to acquire real-time interactive information input by the user on the first interactive interface and sent by the client.

[0132] The second generation module 506 is used to drive the session state machine model to migrate the business state if it is determined according to the first interaction information and the real-time interaction information that the migration rules for migrating the initial business state are met, and to generate second interaction interface data according to the interaction template corresponding to the migrated business state and the real-time interaction information, and to send the second interaction interface data to the client so that the client generates a second interaction interface according to the second interaction interface data.

[0133] The repeat execution module 507 is used to repeatedly execute the steps of obtaining real-time interactive information input by the user on the interactive interface sent by the client and generating interactive interface data until the session state machine model enters the end of business state, generates final interactive interface data, and sends the final interactive interface data to the client so that the client generates the final interactive interface based on the final interactive interface data.

[0134] In one specific implementation, the second generation module 506 includes: a first generation submodule and a second generation submodule;

[0135] The first generation submodule is used to determine the real-time user intent based on the real-time dialogue information if the real-time interaction information is real-time dialogue information.

[0136] The second generation submodule is used to drive the session state machine model to perform business state migration if the migration rules for migrating the initial business state are satisfied based on the initial interaction information and the real-time user intent.

[0137] In one specific implementation, the second generation module 506 is specifically used to: if the real-time interaction information is real-time operation information, and the migration rules for migrating the initial business state are satisfied based on the first interaction information and the real-time operation information, then drive the session state machine model to migrate the business state; the real-time operation information includes at least one of button click, form submission, and list selection.

[0138] In one specific implementation, the information determination module 502 is specifically used to: determine the initial user intent and initial entity information corresponding to the initial interaction information by calling the natural language understanding interface of the large language model.

[0139] In one specific implementation, the data transmission device 500 for the interactive interface further includes: a prompt generation module;

[0140] The prompt generation module is used to: if it is determined, based on the initial interaction information and the real-time interaction information, that the migration rules for migrating the initial business state are not met, generate a prompt interaction interface, the prompt interaction interface including prompt information indicating the reason for not meeting the migration rules for migrating the initial business state.

[0141] In summary, this application discloses a data transmission device for an interactive interface. This application predefines the complete business state chain required to achieve user intent within a session state machine model, and binds corresponding interaction templates and transition rules to each business state, constructing a structured service process skeleton. Simultaneously, this application utilizes initial interaction information (including initial user intent and initial entity information) and real-time interaction information (reflecting subsequent user operations or supplementary needs) as verification criteria for business state transitions, ensuring that the transitions conform to both user intent continuity and business logic standardization. Therefore, this application effectively avoids the service interruption problem caused by "only responding to current interaction information and ignoring historical interaction information," improves the accuracy of service completion, and provides users with a coherent guided interactive experience.

[0142] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0143] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for transmitting interactive interface data, characterized by, Applied to a server, the method comprises: obtaining first interaction information sent by a client; determining a first user intent and first entity information according to the first interaction information; determining a corresponding conversation state machine model from a preset model library according to the first user intent; wherein the conversation state machine model comprises a plurality of business states required to achieve the first user intent, interaction templates corresponding to the plurality of business states respectively, and migration rules for migrating the business states; generating first interaction interface data according to the interaction template corresponding to the initial business state of the conversation state machine model and the first entity information, and sending the first interaction interface data to the client, so that the client generates a first interaction interface according to the first interaction interface data; obtaining real-time interaction information input by a user on the first interaction interface sent by the client; if it is determined according to the first interaction information and the real-time interaction information that the migration rule for migrating the initial business state is met, driving the conversation state machine model to migrate the business state, and generating second interaction interface data according to the interaction template corresponding to the migrated business state and the real-time interaction information, and sending the second interaction interface data to the client, so that the client generates a second interaction interface according to the second interaction interface data; repeating the steps of obtaining real-time interaction information input by a user on the interaction interface sent by the client to generating interaction interface data until the conversation state machine model enters an end business state, generating final interaction interface data, and sending the final interaction interface data to the client, so that the client generates a final interaction interface according to the final interaction interface data.

2. The method of claim 1, wherein, If it is determined according to the first interaction information and the real-time interaction information that the migration rule for migrating the initial business state is met, driving the conversation state machine model to migrate the business state, comprising: if the real-time interaction information is real-time dialogue information, determining a real-time user intent according to the real-time dialogue information; if it is determined according to the first interaction information and the real-time user intent that the migration rule for migrating the initial business state is met, driving the conversation state machine model to migrate the business state.

3. The method of claim 1, wherein, If it is determined according to the first interaction information and the real-time interaction information that the migration rule for migrating the initial business state is met, driving the conversation state machine model to migrate the business state, comprising: if the real-time interaction information is real-time operation information, and it is determined according to the first interaction information and the real-time operation information that the migration rule for migrating the initial business state is met, driving the conversation state machine model to migrate the business state; the real-time operation information comprises at least one of button clicking, form submission, and list selection.

4. The method of claim 1, wherein, The method further comprises: determining the first user intent and the first entity information corresponding to the first interaction information by calling a natural language understanding interface of a large language model.

5. The method of claim 1, wherein, ​ If it is determined, according to the first interaction information and the real-time interaction information, that the migration rule for migrating the initial business state is not satisfied, a prompt interaction interface is generated, and the prompt interaction interface includes prompt information indicating the reason why the migration rule for migrating the initial business state is not satisfied.

6. An apparatus for transmitting interactive interface data, the apparatus comprising: The application is applied to a server, and the device comprises a first acquisition module, an information determination module, a model determination module, a first generation module, a second acquisition module, a second generation module and a repeated execution module. The first acquisition module is configured to acquire first interaction information sent by a client. The information determination module is configured to determine a first user intention and first entity information according to the first interaction information. The model determination module is configured to determine a corresponding conversation state machine model from a preset model library according to the first user intention, wherein the conversation state machine model comprises a plurality of business states required to achieve the first user intention, interaction templates corresponding to the plurality of business states respectively, and a migration rule for migrating the business states. The first generation module is configured to generate first interaction interface data according to an interaction template corresponding to an initial business state of the conversation state machine model and the first entity information, and send the first interaction interface data to the client, so that the client generates a first interaction interface according to the first interaction interface data. The second acquisition module is configured to acquire real-time interaction information input by a user on the first interaction interface and sent by the client. The second generation module is configured to drive the conversation state machine model to migrate the business states and generate second interaction interface data according to an interaction template corresponding to a migrated business state and the real-time interaction information, if it is determined, according to the first interaction information and the real-time interaction information, that the migration rule for migrating the initial business state is satisfied, and send the second interaction interface data to the client, so that the client generates a second interaction interface according to the second interaction interface data. The repeated execution module is configured to repeatedly execute the steps of acquiring real-time interaction information input by a user on an interaction interface and sent by a client to generating interaction interface data, until the conversation state machine model enters an ending business state, generates final interaction interface data and sends the final interaction interface data to the client, so that the client generates a final interaction interface according to the final interaction interface data.

7. The apparatus of claim 6, wherein, The second generation module comprises a first generation submodule and a second generation submodule. The first generation submodule is configured to determine a real-time user intention according to real-time dialogue information, if the real-time interaction information is the real-time dialogue information. The second generation submodule is configured to drive the conversation state machine model to migrate the business states, if it is determined, according to the first interaction information and the real-time user intention, that the migration rule for migrating the initial business state is satisfied.

8. The apparatus of claim 6, wherein, The second generation module is specifically configured to: if the real-time interaction information is real-time operation information, and it is determined according to the first interaction information and the real-time operation information that a migration rule of migrating the initial business state is met, driving the session state machine model to migrate the business state. The real-time operation information includes at least one of a button click, a form submission, and a list selection.

9. The apparatus of claim 6, wherein, The information determination module is specifically configured to: determine a first user intent and first entity information corresponding to the first interaction information by calling a natural language understanding interface of a large language model.

10. The apparatus of claim 6, wherein, The device further includes a prompt generation module. The prompt generation module is configured to: if it is determined according to the first interaction information and the real-time interaction information that the migration rule of migrating the initial business state is not met, generate a prompt interaction interface, the prompt interaction interface including prompt information, the prompt information indicating a reason why the migration rule of migrating the initial business state is not met.