Interactive itinerary planning method and apparatus, electronic device, and storage medium
By introducing an interactive service card mechanism into the itinerary planning system, users can select service items according to their needs, thereby generating personalized itinerary planning results, solving the problem that existing itinerary planning methods cannot meet users' personalized needs.
Patent Information
- Application Number
- PCT/CN2024/122168
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-28
- Filing Date
- 2024-09-29
- Publication Date
- 2025-04-03
AI Technical Summary
The existing itinerary planning methods have the problem that the itinerary planning results are single in tourism and travel scenarios and cannot meet the personalized travel needs of users.
By responding to user operations, user demand data is obtained and service cards on the interactive interface are generated. The service cards include service items that meet the constraints. Users can select based on the service items in the service cards to generate personalized recommended itinerary information.
It realizes the generation of personalized itinerary planning results based on the specific needs of users to meet the diverse and personalized travel needs of users.
Smart Images

Figure CN2024122168_03042025_PF_FP_ABST
Abstract
Description
Interactive itinerary planning method, device, electronic device and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202311278831.0 filed on September 28, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The embodiments of the present disclosure relate to an interactive itinerary planning method, device, electronic device, and storage medium. Background Art
[0003] Currently, people are participating in various tourism and travel activities more and more frequently. Internet platforms and applications for such travel services also provide various related functions to meet the different needs of users.
[0004] For travel and transportation scenarios, itinerary planning typically uses user-entered keywords to map pre-generated fixed itineraries on a server, resulting in itinerary planning results. However, these itinerary planning solutions suffer from a single, unreliable result that fails to meet users' personalized travel needs.
[0005] Summary of the Invention
[0006] The present disclosure provides an interactive itinerary planning method, including:
[0007] In response to a first user operation, user demand data is obtained, and the user demand data is used to represent the constraints for the travel activity; based on the user demand data, a corresponding service card is generated on the interactive interface, wherein the service card includes at least one service item that meets the constraints, and the service item corresponds to an activity node of the travel activity; in response to a second user operation on at least one target service item in the service card, recommended itinerary information corresponding to the travel activity is generated, and the recommended itinerary information at least represents the itinerary planning result for the activity node corresponding to the target service item.
[0008] The present disclosure provides an interactive itinerary planning device, comprising:
[0009] An interaction module, configured to obtain user demand data in response to a first user operation, wherein the user demand data is used to represent a constraint condition for a travel activity;
[0010] A display module, configured to generate a corresponding service card on an interactive interface according to the user demand data, wherein the service card includes at least one service item that meets the constraint condition, and the service item corresponds to an activity node of the travel activity;
[0011] A processing module is used to generate recommended itinerary information corresponding to the travel activity in response to a second user operation on at least one target service item in the service card, and the recommended itinerary information at least represents the itinerary planning result for the activity node corresponding to the target service item.
[0012] An embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0013] The memory stores computer-executable instructions;
[0014] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the interactive itinerary planning method with various possible designs.
[0015] An embodiment of the present disclosure provides a computer-readable storage medium having computer-executable instructions stored therein. When a processor executes the computer-executable instructions, the above-mentioned interactive itinerary planning method with various possible designs is implemented.
[0016] An embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the interactive itinerary planning method with various possible designs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] FIG1 is a diagram of an application scenario of the interactive itinerary planning method provided by an embodiment of the present disclosure;
[0019] FIG2 is a flowchart of an interactive itinerary planning method according to an embodiment of the present disclosure;
[0020] FIG3 is a flow chart of a specific implementation of step S101 in the embodiment shown in FIG2 ;
[0021] FIG4 is a schematic diagram of a process for obtaining user demand data provided by an embodiment of the present disclosure;
[0022] FIG5 is a flowchart of a specific implementation method of step S1011 in the embodiment shown in FIG3 ;
[0023] FIG6 is a schematic diagram of a process of displaying prompt information provided by an embodiment of the present disclosure;
[0024] FIG7 is a schematic diagram of a service card provided in an embodiment of the present disclosure;
[0025] FIG8 is a schematic diagram of another service card provided in an embodiment of the present disclosure;
[0026] FIG9 is a second flow chart of the interactive itinerary planning method provided by an embodiment of the present disclosure;
[0027] FIG10 is a flowchart of a specific implementation of step S202 in the embodiment shown in FIG9 ;
[0028] FIG11 is a flowchart of a specific implementation of step S203 in the embodiment shown in FIG9 ;
[0029] FIG12 is a structural block diagram of an interactive itinerary planning device provided by an embodiment of the present disclosure;
[0030] FIG13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure; and
[0031] FIG14 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0033] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0034] The application scenarios of the embodiments of the present disclosure are explained below.
[0035] FIG1 illustrates an application scenario of the interactive itinerary planning method provided by an embodiment of the present disclosure. The interactive itinerary planning method provided by an embodiment of the present disclosure can be applied to an application with intelligent assistant functionality. More specifically, it can be applied to an application scenario in which an intelligent assistant is used to plan a travel activity. The execution entity of this embodiment can be a terminal device running the aforementioned intelligent assistant application, a server hosting the corresponding server for the aforementioned application, or other electronic devices that perform similar functions. Referring to FIG1 , taking a terminal device as an example, a target application, such as a travel application, is running on the terminal device. After a user operation activates the intelligent assistant within the target application, the user can enter text content in the intelligent assistant's interactive interface using an input method or voice input to ask the intelligent assistant a question, such as "I want to travel to Shanghai this weekend. Help me plan my itinerary." The application then processes the text content to generate a corresponding itinerary planning result, which may include, for example, content such as "Itinerary planning results are as follows: Saturday at 8:00 AM, take flight XX, arrive at the airport at 10:00 AM; at 10:30 AM, take a taxi to the Science and Technology Museum; at 12:00 PM, leave the Science and Technology Museum and proceed to..." And it will be displayed in the interactive interface of the smart assistant, thus realizing automatic itinerary planning for travel activity scenarios.
[0036] The above-mentioned automatic itinerary planning for travel activity scenarios typically uses user-entered keywords to map to pre-generated fixed itineraries on the server to obtain itinerary planning results. For example, if the user-entered keywords include "Shanghai", one or more pre-generated fixed itineraries related to "Shanghai" will be obtained and displayed on the interactive interface of the intelligent assistant, completing the travel planning process. However, since the above-mentioned itinerary planning solutions all judge based on the itinerary dimension and obtain itinerary planning results corresponding to the keywords, and the itinerary planning itself is a pre-generated fixed itinerary, it leads to the problem that the itinerary planning results are single and cannot meet the user's personalized travel needs.
[0037] The embodiments of the present disclosure provide an interactive itinerary planning method to solve the above problems.
[0038] Referring to FIG2 , FIG2 is a flow chart of an interactive itinerary planning method according to an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device. The interactive itinerary planning method includes:
[0039] Step S101: In response to a first user operation, user demand data is obtained, wherein the user demand data is used to represent constraint conditions for travel activities.
[0040] For example, referring to the application scenario diagram shown in Figure 1, after a terminal device runs an application with intelligent assistant functionality, it can invoke the intelligent assistant through a specified operation, thereby displaying the corresponding interactive interface of the intelligent assistant. The above-mentioned instruction operation can be voice invocation, triggering a control to invoke the invocation, or triggering an external button on the terminal device to invoke the invocation, without limitation. Subsequently, the user further operates on the above-mentioned interactive interface to input information into the terminal device, for example, entering text content using a keyboard input method or entering text content using a voice input method. The above-mentioned operation performed on the interactive interface is referred to as the first user operation. Accordingly, the terminal device responds to the first user operation and obtains user demand data based on the text content input corresponding to the first user operation. The user demand data is used to represent the constraints on travel activities. More specifically, the user demand data includes the text content entered by the user through the first user operation. Examples include "Going to Shanghai on Wednesday", "Traveling for two people", "Going to Shanghai for three days", etc. Taking "Go to Shanghai on Wednesday" as an example, the semantics it represents are the constraints of travel activities. In the subsequent steps, corresponding service cards are generated based on the above constraints, and itinerary planning is carried out so that the final itinerary planning result is within the constraints of the above constraints.
[0041] Furthermore, in one possible implementation, the first user operation includes at least two demand input operations, that is, the user performs at least two operations on the terminal device (interaction interface), and the terminal device and the user obtain user demand data through multiple rounds of dialogue. Accordingly, as shown in FIG3 , the specific implementation of step S101 includes:
[0042] Step S1011: in response to each requirement input operation, corresponding sub-requirement information is obtained, where the sub-requirement information is used to represent sub-constraints constituting the constraint conditions.
[0043] Step S1012: Obtain user demand data based on a set of at least two sub-demand information.
[0044] Exemplarily, a demand input operation is an operation performed by a user on a terminal device for inputting information into an interactive interface (such as an intelligent assistant), more specifically, such as a language input operation, a keyboard input operation, and the like. At least two demand input operations, that is, the user has performed at least two operations for inputting information. Afterwards, for each demand input operation, the terminal device can obtain corresponding sub-demand information, and each sub-demand information represents the sub-constraints that constitute the constraint conditions. For example, if the text representing the constraint condition is "Go to Shanghai on Wednesday", then the sub-constraints that constitute the constraint condition include "travel time: Wednesday" and "destination: Shanghai". Each of the above sub-demand information is obtained through demand input operations in the form of multiple rounds of dialogue.
[0045] Figure 4 is a schematic diagram of a process for obtaining user demand data provided by an embodiment of the present disclosure. As shown in Figure 4, referring to the interactive interface schematic diagram shown in Figure 4, in multiple rounds of dialogue with the terminal device, the user made multiple text inputs, wherein, after the prompt message "Please enter your travel needs" is displayed in the interactive interface, the user inputs "go to Shanghai", which is the demand input operation P1. Accordingly, the terminal device responds to the demand input operation P1, and the sub-demand information obtained is Info_1, and the sub-constraint condition represented is "Destination: Shanghai". Afterwards, the terminal device displays a prompt message in the interactive interface prompting the user to continue inputting, such as "Anything else?". Afterwards, the user continues to input "depart on Wednesday", which is the demand input operation P2. Accordingly, the terminal device responds to the demand input operation P2, and the sub-demand information obtained is Info_2, and the sub-constraint condition represented is "travel time: Wednesday". Similarly, after multiple rounds of conversation, when the user inputs a keyword representing the end of the conversation, such as "that's all", the terminal device obtains user demand data through a collection of multiple sub-demand information such as sub-demand information Info_1 (shown as Info_1 in the figure) and sub-demand information Info_2 (shown as Info_2 in the figure).
[0046] In this embodiment, through multiple rounds of dialogue, the terminal device can obtain corresponding sub-demand information representing sub-constraints based on the user's multiple demand input operations. Based on the collection of these sub-demand information, user demand data is then obtained, enabling the user demand data to more accurately describe the user's actual needs. Furthermore, the constraints represented by the user demand data are more flexible and highly customized, allowing the subsequent simultaneous trip planning results to better match the user's actual needs.
[0047] Furthermore, in the process of the above-mentioned multiple rounds of dialogue and obtaining corresponding sub-demand information, the terminal device will display prompt information during each round of dialogue (that is, before the user performs the demand input operation), thereby guiding the user's next input content (that is, the demand input operation), thereby obtaining more complete and accurate user demand data.
[0048] For example, as shown in FIG5 , the specific implementation of step S1011 includes:
[0049] Step S1011A: Obtain prompt rule information for travel activities, where the prompt rule information is used to represent a prompt information link for constraint conditions, where the prompt information link includes at least two link nodes, and the link nodes are used to represent first prompt information for a fixed constraint dimension.
[0050] Step S1011B: Set the first link node of the prompt information link as the target link node.
[0051] Step S1011C: If the preset conditions are not met, execute step S1011D; if the preset conditions are met, end and obtain the sub-demand information corresponding to each link node.
[0052] Step S1011D: Obtain corresponding first prompt information according to the target link node, and display the first prompt information on the interactive interface.
[0053] Step S1011E: In response to the user's input operation, corresponding input content is obtained and the input content is detected.
[0054] Step S1011F: If the input content matches the constraint dimension corresponding to the first prompt information, the input content is saved as the sub-requirement information corresponding to the target link node, and the next link node on the prompt information link is set as the target link node, and then the process returns to step S1011C;
[0055] Step S1011G: If the input content does not match the constraint dimension corresponding to the first prompt information, the first preset text is displayed, and then the process returns to step S1011D.
[0056] Exemplarily, the prompt rule information is used to characterize an ordered set of prompt information, that is, a prompt information link. Exemplarily, the prompt rule information corresponds to the travel activity, that is, when the type of travel activity is different, the corresponding prompt rule information may be different. For example, when the type of travel activity is "travel travel", it corresponds to a type of prompt rule information (such as prompt rule information info_1), and when the type of travel activity is "business travel", it corresponds to another type of prompt rule information (such as prompt rule information info_2). Furthermore, different prompt rule information characterizes the prompt information link for the constraint conditions, and the prompt information link includes at least two link nodes, and the link nodes are used to characterize the first prompt information for the fixed set constraint dimension. Exemplarily, the following is an example of a prompt information link: prompt information link List_1 = {addr_1, addr_2, travel_date, travel_budget, travel_count, travel_mode}. The six link nodes addr_1, addr_2, travel_date, travel_budget, travel_count, and travel_mode represent the following constraint dimensions: departure location, destination, departure date, expenditure budget, number of travelers, and travel mode. Furthermore, the prompt information link List_1 includes six link nodes, each corresponding to a first prompt message. For example, the first prompt message corresponding to the link node addr_1 is "Please enter your departure location"; and the first prompt message corresponding to the link node travel_date is "Please enter your travel date." The prompt information link includes fixed link nodes, and therefore the first prompt message represented by each link node is also fixed. That is, once the prompt rule information is determined, a series of first prompt messages can be displayed in a fixed order and content according to the prompt rule information, thereby guiding the required input operation.
[0057] Afterwards, the first link node of the prompt information link is set as the target link node. That is, starting from the first link node, the subsequent execution steps (steps S1011C to S1011F) are executed in a loop until the first prompt information corresponding to the last link node in the prompt information link is displayed and the corresponding sub-requirement information is obtained. In this way, the sub-requirement information corresponding to each link node in the prompt information link is realized, that is, the sub-requirement information corresponding to each fixed constraint dimension is represented.
[0058] The following is an introduction to the process of obtaining the above-mentioned sub-demand information using a more specific embodiment. For example, FIG6 is a schematic diagram of a process for displaying prompt information provided by an embodiment of the present disclosure. As shown in FIG6 , referring to the interactive interface schematic diagram shown in FIG6 , after the terminal device obtains the prompt rule information info_1 corresponding to the travel activity, it generates a prompt information link List_1 represented by the prompt rule information info_1 = {addr_1, addr_2, travel_date, travel_budget, travel_count, travel_mode}. The constraint dimensions represented in sequence are: departure point, destination point, departure date, expenditure budget, number of travelers, and travel mode. Afterwards, based on the above-mentioned prompt information link List_1, starting from the first link node addr_1, the terminal device first displays the corresponding first prompt information "Please enter your departure point" in the interactive interface.
[0059] Afterwards, in a possible implementation, the terminal device obtains the input content "Shanghai" in response to the user's input operation, and the terminal device detects the input content. The detection result is that the input content "Shanghai" matches the constraint dimension "departure place" corresponding to the first prompt information. Exemplarily, the matching detection here can be achieved through word meaning analysis. For example, when the word meaning corresponding to the input content can be used as the constraint content under the constraint dimension (that is, the constraint content corresponding to the constraint dimension "departure place" can be "Shanghai"), the input content matches the constraint dimension. In this case, the input content "Shanghai" is saved as the sub-demand information corresponding to the target link node, and the sub-constraint condition represented by the sub-demand information is "departure place: Shanghai". Afterwards, the next link node addr_2 of the link node addr_1 (the current target link node) on the prompt information link is set as the target link node (the updated target link node), completing the advancement of the target link node along the prompt information link. Afterwards, the process returns to step S1011C to check whether the preset conditions are met. The preset conditions include, for example, that the target link node is empty or does not exist, i.e., the updated target link node has exceeded the prompt information link (i.e., the target link node before the update is the last link node of the prompt information link). If the preset conditions are met, the process exits the loop and obtains the sub-demand information corresponding to each link node (of course, there are other ways to implement the preset conditions, such as the number of loops being greater than a preset value, which can be set as needed and will not be described in detail here). If the preset conditions are not met, the above steps are repeated. In this embodiment, the updated target link node addr_2 is not empty, so the preset conditions are not met. The above steps are repeated, and the first prompt information such as "Please enter your departure location", "Please enter your departure date", and "Please enter your expenditure budget" is displayed on the interactive interface in sequence. Accordingly, taking the target link node addr_2 as an example, after the terminal device displays "Please enter your departure location" on the interactive interface, the terminal device responds to the user's input operation and obtains the input content "Beijing". While displaying the input content "Beijing", the above steps of performing matching detection on the input content are repeated and will not be described in detail here.
[0060] In another possible implementation, the terminal device responds to the user's input operation and obtains the input content "tomorrow". The terminal device detects the input content, and the detection result is that the input content "tomorrow" does not match the constraint dimension "departure location" corresponding to the first prompt information. In this case, the terminal device displays the first preset text, such as "Input is incorrect, please re-enter". The matching detection method has been introduced in detail in the previous steps and will not be repeated here. Afterwards, after the terminal device displays the first preset text on the interactive interface, it returns to step S1011D and re-displays the first prompt information "Please enter your departure location" on the interactive interface, and repeats the above steps until the user enters the correct content, such as "Shanghai".
[0061] In the steps of this embodiment, the terminal device sequentially and orderly displays multiple first prompt messages through prompt information links corresponding to travel activities, thereby guiding the user to enter corresponding content based on the constraint dimension represented by the first prompt information, and then obtain sub-demand information representing the sub-constraint conditions corresponding to the specific constraint dimension, so that the ultimately generated user demand data can fully reflect the user's needs and meet the needs of subsequent itinerary planning. Furthermore, in the application scenario of travel activity itinerary planning, because the itinerary planning process is automatically completed by the server or terminal device based on programs and models, the user does not fully understand the user demand data required to provide, including the specific content required. For example, users generally do not enter the "expenditure budget" constraint without prompt information. Therefore, by prompting and guiding the user through the preset prompt information link, the user can enter requirements under multiple dimensions, thereby making the final itinerary planning result more closely match the user's needs.
[0062] Furthermore, after obtaining the sub-demand information corresponding to each link node on the prompt information link, that is, satisfying the preset condition, after the loop ends, the method further includes:
[0063] Step S1011H: displaying a second prompt message on the interactive interface, where the second prompt message is used to instruct the user to input custom input content, where the custom input content is used to represent a non-fixed constraint dimension.
[0064] Step S1011I: In response to the user's input operation, obtain customized input content, and save the customized input content as corresponding sub-demand information.
[0065] For example, the second prompt, for example, "Do you have any other requirements?", directs the user to enter custom input content that represents a user requirement within a non-fixed constraint dimension, for example, "Let's go hiking if it doesn't rain." The terminal device then semantically understands the custom input content and saves it as corresponding sub-requirement information, thereby supplementing the sub-constraints within the fixed constraint dimension. This further increases the flexibility and diversity of the resulting itinerary planning results, meeting the user's personalized needs.
[0066] Step S102: Generate a corresponding service card on the interactive interface based on the user demand data, wherein the service card includes at least one service item that meets the constraint conditions, and the service item corresponds to an activity node of the travel activity.
[0067] Step S103: In response to a second user operation on at least one target service item in the service card, generating recommended itinerary information corresponding to the travel activity, the recommended itinerary information at least representing a itinerary planning result for the activity node corresponding to the target service item.
[0068] Exemplarily, after obtaining the user demand data, a service card is further generated on the interactive interface based on the user demand data. Exemplarily, the service card can be implemented by a control set in the application. The service card includes at least one service item that meets the above-mentioned constraint conditions, and the service item corresponds to an activity node, where the activity node is, for example, a specific location or activity content item in a travel activity. Figure 7 is a schematic diagram of a service card provided by an embodiment of the present disclosure. As shown in Figure 7, after the user enters the text content "Business trip from Beijing to Shanghai on Saturday" in the interactive interface of the smart assistant, the terminal device generates the corresponding user demand data and displays a service card on the interactive interface based on the user demand data. The service card includes several service items, such as "Hotel A", "Hotel B" and "Hotel C" shown in the figure. Among them, the above-mentioned service items represent the activity nodes that meet the constraint conditions corresponding to the user demand data, that is, the above-mentioned "Hotel A", "Hotel B" and "Hotel C" are located in "Shanghai" (constraint sub-condition) and can be booked on "this Saturday" (constraint sub-condition).
[0069] Exemplarily, the service card has a first card appearance, which is determined based on the constraints corresponding to the user demand data. For example, if the constraints corresponding to the user demand data include "Destination: Shanghai", the first card appearance of the service card is an appearance related to the city "Shanghai", for example, the card appearance of the service card includes a map of the city landmark building of "Shanghai". Further, exemplarily, each service item is processed in a selectable state. After the service card is displayed on the interactive interface of the terminal device, the user selects at least one target service item in the service card (implements a second user operation). After the terminal device responds to the second user operation, it sets the target service item to a selected state. Thereafter, the terminal device performs itinerary planning based on the selected target service item, thereby generating recommended itinerary information representing the itinerary planning result, wherein the itinerary planning result represented by the recommended itinerary information includes at least the activity node corresponding to the selected target service item, such as "Hotel A" and "Hotel B" in the above example. On this basis, other activity nodes can also be included in the itinerary planning result based on the user demand information, which will not be repeated here.
[0070] Furthermore, when the user demand data is generated based on multiple rounds of conversations, the service card can be generated based on the sub-demand information that constitutes the user demand data. Figure 8 is a schematic diagram of another service card provided by an embodiment of the present disclosure. For example, after multiple rounds of conversations in the embodiment shown in Figure 6, the terminal device obtains sub-demand information corresponding to multiple sub-constraints, such as the sub-demand information Info_1, sub-demand information Info_2, and sub-demand information Info_3 shown in the figure (shown as Info_1, Info_2, and Info_3, respectively). Among them, for example, the sub-constraint represented by the sub-demand information Info_1 is "departure point: Beijing", the sub-constraint represented by the sub-demand information Info_2 is "destination point: Shanghai", and the sub-constraint represented by the sub-demand information Info_3 is "travel date: Saturday". The terminal device then generates Service Card #1, Service Card #2, and Service Card #3 based on the multiple sub-demand information obtained through these multiple rounds of interaction. The service items (A through I in the figure) in Service Card #1, Service Card #2, and Service Card #3 satisfy the sub-constraints corresponding to the sub-demand information Info_1, Info_2, and Info_3, respectively, associated with these service cards. Subsequently, based on the user's second user actions on these multiple service cards, the activity node corresponding to each sub-constraint is determined, resulting in a more accurate and demand-matched itinerary planning result.
[0071] In the application scenario of travel activity planning, user requirements often include broad constraints, such as travel time, purpose, and mode of travel. Directly planning based on these broad constraints can result in a large number of itinerary planning results, making it difficult to accurately meet user needs. In this embodiment, the obtained user requirement data is further converted into service cards for display, and combined with further user operations, precise activity nodes are achieved, thereby achieving accurate itinerary planning, ensuring that the final itinerary planning results are more closely aligned with the user's actual needs.
[0072] In an embodiment of the present disclosure, user demand data is obtained in response to a first user operation, and the user demand data is used to characterize the constraints on the travel activity; a corresponding service card is generated on the interactive interface based on the user demand data, wherein the service card includes at least one service item that meets the constraints, and the service item corresponds to an activity node of the travel activity; in response to a second user operation on at least one target service item in the service card, recommended itinerary information corresponding to the travel activity is generated, and the recommended itinerary information at least characterizes the itinerary planning result for the activity node corresponding to the target service item. By utilizing the user demand data to generate a service card on the interactive interface, and then generating recommended itinerary information in response to the user operation on the service card, after the above-mentioned multiple rounds of interaction process, the purpose of accurately obtaining the activity node that meets the user's needs can be achieved, and the itinerary planning result generated based on the above-mentioned activity node can match the user's personalized needs to the greatest extent, thereby improving the diversity and personalization of the itinerary planning results.
[0073] Referring to FIG9 , FIG9 is a second flow chart of the interactive itinerary planning method provided by an embodiment of the present disclosure. Based on the embodiment shown in FIG2 , this embodiment further refines step S102 , and the interactive itinerary planning method includes:
[0074] Step S201: In response to a first user operation, user demand data is obtained, where the user demand data is used to characterize constraint conditions for travel activities.
[0075] Step S202: Obtain card features of the service card based on the user demand data. The card features are at least used to determine the service items in the service card.
[0076] Step S203: Generate a corresponding service card on the interactive interface according to the card features.
[0077] Exemplarily, after obtaining the user demand data, the constraints represented by the user demand data can be mapped to the corresponding card features, wherein the card features can be represented by feature identifiers, or by feature vectors or feature matrices of higher dimensions, which are not limited here. Through the card features, the service items in the corresponding service card can be obtained. In one possible implementation, the card features include a card identifier, and the corresponding service card identifier is obtained based on the card identifier. Then, based on the service card identifier, the corresponding service card with fixed service items is obtained. In another possible implementation, the card features include a feature matrix and a feature vector corresponding to the constraints. The corresponding target service item is determined based on the card features, and then the corresponding service card is obtained based on the target service item.
[0078] Exemplarily, the user demand data includes first structured data representing the constraint conditions. As shown in FIG10 , the specific implementation of step S202 includes:
[0079] Step S2021: Acquire the field content of the first target field of the first structured data, wherein the first target field is used to record the activity type for the activity node;
[0080] Step S2022: Obtain the card features of the service card according to the field content of the first target field.
[0081] For example, structured data refers to data with specific data fields (data structures), and user demand data can be implemented using the first structured data. Specifically, the constraints are represented by specific fields within the first structured data. In one possible implementation, after obtaining user demand data based on the first structured data, information representing the activity type of the activity node is obtained by reading specific data fields within the first structured data, such as obtaining the field content of the first target field. Examples of activity types include "meals," "residence," "travel," and "attractions." Activity types can be used to roughly categorize activity nodes. For example, the first target field's field content is #1, representing the activity type as "meals." Furthermore, this acquired type corresponds to multiple service items, such as "Restaurant A," "Restaurant B," and "Snack Street C." Therefore, the field content #1 can be used to obtain service item identifiers corresponding to multiple service items. Card features can then be generated based on the collection of these multiple service item identifiers. Alternatively, the field content #1 of the first target field can be directly used as the card feature. Card features obtained through either of these two methods can be used to identify the service items within a service card.
[0082] Furthermore, as shown in FIG11 , the specific implementation of step S203 includes:
[0083] Step S2031: Obtain the corresponding card template according to the card features;
[0084] Step S2032: Obtaining service items that meet the constraint conditions based on the field content of the second target field in the first structured data, wherein the second target field is used to record the service identifiers of service items that meet the constraint conditions under the activity type corresponding to the first target field;
[0085] Step S2033: Load the service items that meet the constraint conditions into the card template to obtain a card object, and render the card object into the interactive interface to display the service card.
[0086] Exemplarily, after determining the card features, a corresponding card template can be mapped based on the card features. Exemplarily, the card template determines the appearance of the service card and the organization of service items within the service card, such as the location and spacing of the service items. The mapping relationship between the card features and the card template can be preset and will not be described in detail here. Subsequently, the content of the second target field in the first structured data is obtained. The second target field is used to record the service identifiers of service items that meet the constraint conditions under the activity type corresponding to the target field. For example, if the activity type corresponding to the first target field is "residence," the second target field in the first structured data records the service items that meet the constraint conditions corresponding to the user demand data under the activity type "residence," such as "Hotel A," "Hotel B," etc. The service items that meet the constraint conditions are then loaded into the card template, the card object is initialized, and then the card object is rendered into the interactive interface, thereby displaying the service card including the service items. The card template can be created as a template object, and the service items are then loaded by calling the card template's load method, thereby obtaining the card object. Afterwards, the drawing method of the operating system is called to realize the on-screen rendering of the card object, which is a technology known to those skilled in the art and will not be described in detail here.
[0087] Step S204: Acquire first structured data corresponding to the user demand data.
[0088] Step S205: In response to the second user operation on the target service item, the field content of the third target field corresponding to the target service item in the first structured data is updated to generate second structured data, wherein the third target field is used to record the selected status of the service item.
[0089] Step S206: Perform itinerary planning based on the second structured data to obtain recommended itinerary information.
[0090] Furthermore, illustratively, the terminal device receives a second user operation on a service card, which may be a selection operation on a target service item in the service card; since the second user operation may include selection operations on multiple service items, after displaying the service card, the terminal device, in response to the user's selection operations on the multiple target service items, marks the target service item as selected. Thereafter, after the selection operation is completed (after the second user operation is completed), all selected service items (target service items) are planned, thereby obtaining recommended itinerary information.
[0091] Specifically, the target service item is recorded in the first structured data corresponding to the user demand data. More specifically, the third field of the first structured data can represent the selected state of each target service item. After responding to the second user operation on the target service item, the terminal device modifies the field content of the third target field corresponding to the target service item in the first structured data. For example, when in the unselected state, the field content of the third target field is "0"; when processing the selected state in response to the second user operation, the field content of the third target field is set to "1". After the first structured data is updated, the structured data obtained is the second structured data.
[0092] Afterwards, the target service item is determined by utilizing the second structured data, specifically, referring to the selected state of the service item indicated by the third target field in the second structured data, and then the itinerary is planned based on the activity nodes represented by the target service item, such as "Hotel A", "Business Center B", and "Airport C". After determining multiple locations, the implementation method of time itinerary planning can be implemented through a large model deployed on the server and connected to traffic information. The specific implementation process will not be repeated. In this embodiment, the user demand data obtained based on the user input is structured to generate the first structured data, and on the basis of the first structured data, the subsequent user operations are mapped to the first structured data. By changing the first structured data, more detailed and accurate user needs are recorded, thereby improving the efficiency of the recommended itinerary information finally obtained. In particular, when the itinerary planning step is executed through the large model deployed on the service, the computing load of the server can be effectively reduced, and the utilization rate of computing resources and network resources can be improved.
[0093] In this embodiment, the implementation of step S201 is the same as the implementation of step S101 in the embodiment shown in FIG. 2 of the present disclosure, and will not be described in detail here.
[0094] Corresponding to the interactive itinerary planning method of the above embodiment, FIG12 is a block diagram of the structure of the interactive itinerary planning device provided by the embodiment of the present disclosure. For ease of illustration, only the parts relevant to the embodiment of the present disclosure are shown. Referring to FIG12, the interactive itinerary planning device 3 includes:
[0095] An interaction module 31 is configured to obtain user demand data in response to a first user operation, where the user demand data is used to represent constraint conditions for travel activities;
[0096] A display module 32 is configured to generate a corresponding service card on the interactive interface based on the user demand data, wherein the service card includes at least one service item that meets the constraint conditions, and the service item corresponds to an activity node of the travel activity;
[0097] The processing module 33 is configured to generate recommended itinerary information corresponding to a travel activity in response to a second user operation on at least one target service item in a service card, where the recommended itinerary information at least represents a itinerary planning result for an activity node corresponding to the target service item.
[0098] In one embodiment of the present disclosure, the service card has a first card appearance, and the first card appearance is determined based on a constraint condition corresponding to the user demand data.
[0099] In one embodiment of the present disclosure, the display module 32 is specifically used to: obtain card features of the service card based on user demand data, where the card features are at least used to determine the service items in the service card; and generate a corresponding service card on the interactive interface based on the card features.
[0100] In one embodiment of the present disclosure, user demand data includes first structured data representing constraint conditions; when the display module 32 obtains the card characteristics of the service card based on the user demand data, it is specifically used to: obtain the field content of the first target field of the first structured data, wherein the first target field is used to record the activity type for the activity node; and obtain the card characteristics of the service card based on the field content of the first target field.
[0101] In one embodiment of the present disclosure, when the display module 32 generates a corresponding service card in the interactive interface according to the card features, it is specifically used to: obtain a corresponding card template according to the card features; obtain a service item that meets the constraint conditions according to the field content of the second target field in the first structured data, wherein the second target field is used to record the service identifier of the service item that meets the constraint conditions under the activity type corresponding to the first target field; load the service item that meets the constraint conditions into the card template to obtain a card object, and render the card object into the interactive interface to display the service card.
[0102] In one embodiment of the present disclosure, the first user operation includes at least two demand input operations, and the interaction module 31 is specifically used to: obtain corresponding sub-demand information in response to each demand input operation, and the sub-demand information is used to characterize the sub-constraints that constitute the constraint conditions; and obtain user demand data based on a set of at least two sub-demand information.
[0103] In one embodiment of the present disclosure, when the interactive module 31 obtains the corresponding sub-demand information in response to each demand input operation, it is specifically used to: obtain prompt rule information for travel activities, the prompt rule information is used to represent the prompt information link for the constraint condition, the prompt information link includes at least two link nodes, and the link node is used to represent the first prompt information for the fixed constraint dimension; set the first link node of the prompt information link as the target link node, and loop the following steps until the preset conditions are met: according to the target link node, obtain the corresponding first prompt information, and display the first prompt information on the interactive interface; in response to the user's input operation, obtain the corresponding input content, and detect the input content; if the input content matches the constraint dimension corresponding to the first prompt information, save the input content as the sub-demand information corresponding to the target link node, and set the next link node on the prompt information link as the target link node; if the input content does not match the constraint dimension corresponding to the first prompt information, display the first preset text; wherein the preset conditions include the target link node being empty or non-existent.
[0104] In one embodiment of the present disclosure, the interaction module 31 is also used to: after obtaining the sub-demand information corresponding to each link node on the prompt information link, display a second prompt information on the interactive interface, the second prompt information is used to instruct the user to input custom input content, and the custom input content is used to represent the constraint dimension of non-fixed settings; in response to the user's input operation, obtain the custom input content, and save the custom input content as the corresponding sub-demand information.
[0105] In one embodiment of the present disclosure, the processing module 33 is specifically used to: obtain first structured data corresponding to user demand data; in response to a second user operation on the target service item, update the field content of the third target field corresponding to the target service item in the first structured data to generate second structured data, wherein the third target field is used to record the selected status of the service item; and perform itinerary planning based on the second structured data to obtain recommended itinerary information.
[0106] The interactive module 31, the display module 32 and the processing module 33 are connected in sequence. The interactive itinerary planning device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0107] FIG13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG13 , the electronic device 4 includes:
[0108] A processor 41, and a memory 42 communicatively connected to the processor 41;
[0109] Memory 42 stores computer-executable instructions;
[0110] The processor 41 executes the computer-executable instructions stored in the memory 42 to implement the interactive itinerary planning method in the embodiments shown in FIG. 2 to FIG. 11 .
[0111] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .
[0112] The relevant explanations can be understood by referring to the relevant descriptions and effects corresponding to the steps in the embodiments corresponding to Figures 2 to 11, and no further details will be given here.
[0113] An embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the interactive itinerary planning method provided in any of the embodiments corresponding to Figures 2 to 11 of the present disclosure.
[0114] In order to implement the above embodiment, the embodiment of the present disclosure further provides an electronic device.
[0115] Referring to FIG14 , there is shown a schematic diagram of the structure of an electronic device 900 suitable for implementing an embodiment of the present disclosure. The electronic device 900 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG14 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0116] As shown in Figure 14, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0117] Typically, the following devices can be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 can allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG14 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0118] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0119] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or convey a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be conveyed using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0120] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0121] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0122] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0123] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0125] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0126] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can include or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0127] According to one or more embodiments of the present disclosure, an interactive itinerary planning method is provided, comprising:
[0128] In response to a first user operation, user demand data is obtained, and the user demand data is used to represent the constraints for the travel activity; based on the user demand data, a corresponding service card is generated on the interactive interface, wherein the service card includes at least one service item that meets the constraints, and the service item corresponds to an activity node of the travel activity; in response to a second user operation on at least one target service item in the service card, recommended itinerary information corresponding to the travel activity is generated, and the recommended itinerary information at least represents the itinerary planning result for the activity node corresponding to the target service item.
[0129] According to one or more embodiments of the present disclosure, the service card has a first card appearance, and the first card appearance is determined based on the constraint condition corresponding to the user demand data.
[0130] According to one or more embodiments of the present disclosure, generating a corresponding service card on the interactive interface based on the user demand data includes: obtaining card features of the service card based on the user demand data, the card features being used at least to determine the service items within the service card; and generating a corresponding service card on the interactive interface based on the card features.
[0131] According to one or more embodiments of the present disclosure, the user demand data includes first structured data that characterizes the constraint conditions; obtaining the card characteristics of the service card based on the user demand data includes: obtaining the field content of the first target field of the first structured data, wherein the first target field is used to record the activity type for the activity node; and obtaining the card characteristics of the service card based on the field content of the first target field.
[0132] According to one or more embodiments of the present disclosure, generating a corresponding service card in the interactive interface according to the card features includes: obtaining a corresponding card template according to the card features; obtaining a service item that meets the constraint conditions according to the field content of the second target field in the first structured data, wherein the second target field is used to record the service identifier of the service item that meets the constraint conditions under the activity type corresponding to the first target field; loading the service item that meets the constraint conditions into the card template to obtain a card object, and rendering the card object into the interactive interface to display the service card.
[0133] According to one or more embodiments of the present disclosure, the first user operation includes at least two demand input operations, and obtaining user demand data in response to the first user operation includes: obtaining corresponding sub-demand information in response to each of the demand input operations, and the sub-demand information is used to characterize the sub-constraints constituting the constraint conditions; and obtaining the user demand data based on a set of at least two of the sub-demand information.
[0134] According to one or more embodiments of the present disclosure, in response to each demand input operation, corresponding sub-demand information is obtained, including: obtaining prompt rule information for the travel activity, the prompt rule information is used to represent a prompt information link for the constraint condition, the prompt information link includes at least two link nodes, and the link node is used to represent the first prompt information for a fixed constraint dimension; the first link node of the prompt information link is set as a target link node, and the following steps are performed in a loop until a preset condition is met: according to the target link node, the corresponding first prompt information is obtained, and the first prompt information is displayed on the interactive interface; in response to the user's input operation, the corresponding input content is obtained, and the input content is detected; if the input content matches the constraint dimension corresponding to the first prompt information, the input content is saved as the sub-demand information corresponding to the target link node, and the next link node on the prompt information link is set as the target link node; if the input content does not match the constraint dimension corresponding to the first prompt information, a first preset text is displayed; wherein, the preset condition includes that the target link node is empty or does not exist.
[0135] According to one or more embodiments of the present disclosure, the method further includes: after obtaining the sub-requirement information corresponding to each link node on the prompt information link, displaying a second prompt information on the interactive interface, the second prompt information being used to instruct the user to input custom input content, the custom input content being used to characterize a non-fixed constraint dimension; in response to the user's input operation, obtaining the custom input content, and saving the custom input content as the corresponding sub-requirement information.
[0136] According to one or more embodiments of the present disclosure, the response to the second user operation on at least one target service item in the service card to generate recommended itinerary information corresponding to the travel activity includes: obtaining first structured data corresponding to the user demand data; in response to the second user operation on the target service item, updating the field content of the third target field corresponding to the target service item in the first structured data to generate second structured data, wherein the third target field is used to record the selection status of the service item; and performing itinerary planning based on the second structured data to obtain recommended itinerary information.
[0137] According to one or more embodiments of the present disclosure, an interactive itinerary planning device is provided, comprising:
[0138] An interaction module, configured to obtain user demand data in response to a first user operation, wherein the user demand data is used to represent a constraint condition for a travel activity;
[0139] A display module, configured to generate a corresponding service card on an interactive interface according to the user demand data, wherein the service card includes at least one service item that meets the constraint condition, and the service item corresponds to an activity node of the travel activity;
[0140] A processing module is used to generate recommended itinerary information corresponding to the travel activity in response to a second user operation on at least one target service item in the service card, and the recommended itinerary information at least represents the itinerary planning result for the activity node corresponding to the target service item.
[0141] According to one or more embodiments of the present disclosure, the service card has a first card appearance, and the first card appearance is determined based on the constraint condition corresponding to the user demand data.
[0142] According to one or more embodiments of the present disclosure, the display module is specifically used to: obtain card features of a service card based on user demand data, wherein the card features are at least used to determine service items within the service card; and generate a corresponding service card on an interactive interface based on the card features.
[0143] According to one or more embodiments of the present disclosure, the user demand data includes first structured data representing the constraint conditions; when the display module obtains the card characteristics of the service card based on the user demand data, it is specifically used to: obtain the field content of the first target field of the first structured data, wherein the first target field is used to record the activity type for the activity node; and obtain the card characteristics of the service card based on the field content of the first target field.
[0144] According to one or more embodiments of the present disclosure, when the display module generates a corresponding service card in the interactive interface according to the card features, it is specifically used to: obtain a corresponding card template according to the card features; obtain a service item that meets the constraint conditions according to the field content of the second target field in the first structured data, wherein the second target field is used to record the service identifier of the service item that meets the constraint conditions under the activity type corresponding to the first target field; load the service item that meets the constraint conditions into the card template to obtain a card object, and render the card object into the interactive interface to display the service card.
[0145] According to one or more embodiments of the present disclosure, the first user operation includes at least two demand input operations, and the interaction module is specifically used to: obtain corresponding sub-demand information in response to each of the demand input operations, and the sub-demand information is used to characterize the sub-constraints constituting the constraint conditions; and obtain the user demand data based on a set of at least two of the sub-demand information.
[0146] According to one or more embodiments of the present disclosure, when the interactive module obtains the corresponding sub-demand information in response to each of the demand input operations, it is specifically used to: obtain prompt rule information for the travel activity, the prompt rule information is used to represent the prompt information link for the constraint condition, the prompt information link includes at least two link nodes, and the link node is used to represent the first prompt information for the fixed constraint dimension; set the first link node of the prompt information link as the target link node, and loop the following steps until the preset condition is met: according to the target link node, obtain the corresponding first prompt information, and display the first prompt information on the interactive interface; in response to the user's input operation, obtain the corresponding input content, and detect the input content; if the input content matches the constraint dimension corresponding to the first prompt information, save the input content as the sub-demand information corresponding to the target link node, and set the next link node on the prompt information link as the target link node; if the input content does not match the constraint dimension corresponding to the first prompt information, display the first preset text; wherein the preset condition includes that the target link node is empty or does not exist.
[0147] According to one or more embodiments of the present disclosure, the interaction module is also used to: after obtaining the sub-requirement information corresponding to each link node on the prompt information link, display a second prompt information on the interaction interface, the second prompt information is used to instruct the user to input custom input content, and the custom input content is used to represent the constraint dimension of non-fixed settings; in response to the user's input operation, obtain the custom input content, and save the custom input content as the corresponding sub-requirement information.
[0148] According to one or more embodiments of the present disclosure, the processing module is specifically used to: obtain first structured data corresponding to the user demand data; in response to a second user operation on the target service item, update the field content of the third target field corresponding to the target service item in the first structured data to generate second structured data, wherein the third target field is used to record the selected status of the service item; perform itinerary planning based on the second structured data to obtain recommended itinerary information.
[0149] According to one or more embodiments of the present disclosure, there is provided an electronic device, including: at least one processor and a memory;
[0150] The memory stores computer-executable instructions;
[0151] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the interactive itinerary planning method described in one or more embodiments above.
[0152] According to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the interactive itinerary planning method described in one or more of the above embodiments is implemented.
[0153] According to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the interactive itinerary planning method described in one or more of the above embodiments.
[0154] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0155] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0156] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An interactive itinerary planning method, comprising: In response to a first user operation, obtaining user demand data, wherein the user demand data is used to characterize a constraint condition for a travel activity; Generate a corresponding service card on the interactive interface according to the user demand data, wherein the service card includes at least one service item that meets the constraint condition, and the service item corresponds to an activity node of the travel activity; and In response to a second user operation on at least one target service item in the service card, recommended itinerary information corresponding to the travel activity is generated, wherein the recommended itinerary information at least represents a itinerary planning result for an activity node corresponding to the target service item.
2. The method according to claim 1, wherein: The service card has a first card appearance, and the first card appearance is determined based on a constraint condition corresponding to the user demand data.
3. The method according to claim 1, wherein: Generating a corresponding service card on the interactive interface according to the user demand data includes: Obtaining card features of the service card according to the user demand data, wherein the card features are at least used to determine service items in the service card; and According to the card features, a corresponding service card is generated on the interactive interface.
4. The method according to claim 3, wherein: The user demand data includes first structured data representing the constraint condition; The obtaining of the card features of the service card according to the user demand data includes: Acquire a field content of a first target field of the first structured data, wherein the first target field is used to record an activity type for the activity node; and The card characteristics of the service card are obtained according to the field content of the first target field.
5. The method according to claim 4, wherein: Generating a corresponding service card on the interactive interface according to the card feature includes: According to the card features, a corresponding card template is obtained; Obtaining, according to the field content of the second target field in the first structured data, a service item that satisfies the constraint condition, wherein the second target field is used to record the service identifier of the service item that satisfies the constraint condition under the activity type corresponding to the first target field; and The service items satisfying the constraint conditions are loaded into the card template to obtain a card object, and the card object is rendered into the interactive interface to display the service card.
6. The method according to claim 1, wherein: The first user operation includes at least two demand input operations, and obtaining user demand data in response to the first user operation includes: In response to each of the requirement input operations, corresponding sub-requirement information is obtained, wherein the sub-requirement information is used to represent The constraints that constitute the sub-constraints of the constraint; and The user demand data is obtained according to a set including at least two of the sub-demand information.
7. The method according to claim 6, wherein: The step of obtaining corresponding sub-demand information in response to each demand input operation includes: Acquire prompt rule information for the travel activity, wherein the prompt rule information is used to represent a prompt information link for the constraint condition, the prompt information link includes at least two link nodes, and the link nodes are used to represent first prompt information for a fixed constraint dimension; and The first link node of the prompt information link is set as the target link node, and the following steps are performed cyclically until a preset condition is met: According to the target link node, the corresponding first prompt information is obtained, and the first prompt information is displayed on the interactive interface, In response to the user's input operation, the corresponding input content is obtained and the input content is detected. If the input content matches the constraint dimension corresponding to the first prompt information, the input content is saved as the sub-demand information corresponding to the target link node, and the next link node on the prompt information link is set to the target link node, and If the input content does not match the constraint dimension corresponding to the first prompt information, display the first preset text, The preset condition includes that the target link node is empty or does not exist.
8. The method according to claim 7, further comprising: After obtaining the sub-demand information corresponding to each of the link nodes on the prompt information link, displaying second prompt information on the interactive interface, wherein the second prompt information is used to instruct the user to input custom input content, and the custom input content is used to represent a constraint dimension that is not fixedly set; and In response to the user's input operation, the custom input content is obtained, and the custom input content is saved as corresponding sub-demand information.
9. The method according to claim 1, wherein: The generating, in response to a second user operation on at least one target service item in the service card, recommended itinerary information corresponding to the travel activity includes: Acquire first structured data corresponding to the user demand data; In response to a second user operation on the target service item, updating the field content of a third target field corresponding to the target service item in the first structured data to generate second structured data, wherein the third target field is used to record the selected state of the service item; and Perform itinerary planning based on the second structured data to obtain the recommended itinerary information.
10. An interactive itinerary planning device, wherein: include: An interaction module, configured to obtain user demand data in response to a first user operation, wherein the user demand data is used to characterize a constraint condition for a travel activity; a display module configured to generate a corresponding service card on an interactive interface according to the user demand data, wherein the service card includes at least one service item that meets the constraint condition, and the service item corresponds to an activity node of the travel activity; and The processing module is configured to generate recommended itinerary information corresponding to the travel activity in response to a second user operation on at least one target service item in the service card, wherein the recommended itinerary information at least represents the itinerary planning result for the activity node corresponding to the target service item.
11. An electronic device, comprising: at least one processor and memory; Wherein, the memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the interactive itinerary planning method according to any one of claims 1 to 9.
12. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the interactive itinerary planning method according to any one of claims 1 to 9 is implemented.
13. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the interactive itinerary planning method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Interactive itinerary planning method and device, electronic equipment and storage medium
CN117349521A
Business line recommendation method, device and storage medium based on service
CN108769160A
Route planning method and device
CN115164909A
Travel mode recommendation method and device, equipment, storage medium and product
CN115700702A
Method and device for managing combined travel
CN116257699A