Search

CN-122022756-A - Service interaction method, method for realizing trip planning and corresponding device

CN122022756ACN 122022756 ACN122022756 ACN 122022756ACN-122022756-A

Abstract

The embodiment of the application discloses a service interaction method, a method for realizing trip planning and a corresponding device. The service interaction method comprises the steps of obtaining a journey plan description input by a user through a session interface, displaying state information of a plurality of stage tasks in the process of generating a journey plan document on the session interface, wherein the plurality of stage tasks at least comprise a first stage task of analyzing the journey plan description to obtain constraint conditions of a plurality of dimensions, a second stage task of searching to obtain service data corresponding to a plurality of journey elements based on the constraint conditions, and a third stage task of generating the journey plan document conforming to the constraint conditions based on the service data, and obtaining and displaying the journey plan document on the session interface. According to the application, the trip planning document can be automatically generated based on the trip planning description input by the user, and the transparency and experience of the user interaction process are improved.

Inventors

  • SONG JUNFENG
  • LI YIN
  • ZHANG FAN
  • YANG XIAOMIN
  • CHEN KAICHENG
  • ZHU DA

Assignees

  • 优视科技(中国)有限公司

Dates

Publication Date
20260512
Application Date
20260206

Claims (15)

  1. 1. A method of service interaction, the method comprising: acquiring a journey planning description input by a user through a session interface; The session interface displays state information of a plurality of stage tasks in the process of generating a travel planning document, wherein the plurality of stage tasks at least comprise a first stage task for analyzing the travel planning description to obtain constraint conditions of a plurality of dimensions, a second stage task for calling an external service system interface to search to obtain service data corresponding to a plurality of travel elements based on the constraint conditions, and a third stage task for calling a large model to generate the travel planning document conforming to the constraint conditions based on the service data; And acquiring and displaying the trip planning document on the session interface.
  2. 2. The method of claim 1, wherein the presenting status information of the plurality of stage tasks in the course of generating the trip plan document at the session interface includes: Acquiring description information and execution progress information of a plurality of stage tasks in the process of generating the trip planning document; and displaying progress shafts comprising a plurality of nodes on the session interface, wherein the plurality of nodes are in one-to-one correspondence with the plurality of stage tasks, displaying execution progress information of the corresponding stage tasks in display areas corresponding to the nodes, and displaying description information of the corresponding stage tasks for each node.
  3. 3. The method according to claim 2, wherein the displaying the execution progress information of the corresponding stage task in the display area corresponding to each node includes: Acquiring the execution state of each stage task and the execution state of subtasks contained in each stage task; In response to acquiring information of a currently executing stage task and a subtask thereof, displaying visual elements indicating the stage task to be executed aiming at a node corresponding to the currently executing stage task, displaying an expansion area at the node corresponding to the currently executing stage task, and displaying the information of the currently executing subtask in the expansion area; And hiding the display area and updating the visual element into a visual element indicating that the stage task is executed in response to the completion of the execution of the stage task in the current execution.
  4. 4. A method according to claim 3, wherein said exposing information of a currently executing subtask in said extended area comprises: and in response to the update of the currently executing subtask, displaying the updated currently executing subtask at the preset position of the expansion area, and scrolling the executed subtask from the preset position to a direction away from the preset position.
  5. 5. The method according to claim 1, wherein the method further comprises: Displaying a first component corresponding to the node corresponding to the executed stage task; Responding to the operation of triggering the first component, and displaying an expansion area at a node corresponding to the triggered first component, wherein the expansion area comprises information of subtasks contained in the corresponding stage tasks; and hiding the expansion area in response to triggering the operation of the first component again.
  6. 6. The method according to any of claims 3 to 5, wherein the information of the subtasks presented in the extended area comprises at least one of the following: The method comprises the steps of describing information of the subtasks, calling information of an external service system interface and a second component, wherein the second component is used for triggering and displaying execution result data of the corresponding subtasks; The execution result data of the subtasks of the second-stage task comprises service data corresponding to a plurality of travel elements obtained by calling an external service system interface for searching; the execution result data of the subtasks of the third-stage task comprises at least one of the following: integrating codes used by the service data; a trip planning analysis report based on the service data; HTML code of a trip plan document generated based on the trip plan analysis report.
  7. 7. The method of any one of claims 1 to 5, wherein the presenting the trip plan document at the session interface comprises: displaying a travel abstract and a travel card on the session interface, wherein the travel card comprises a third component; And in response to triggering the operation of the third component, jumping to a travel planning page, wherein the travel planning page comprises travel description information, a visual map area for displaying routes of all time units contained in a travel, a travel element list of all time units contained in the travel, a service acquisition component corresponding to the travel element contained in the travel element list and travel budget information, and the service acquisition component is used for triggering a service acquisition page for displaying the corresponding travel element.
  8. 8. The method of claim 7, wherein the presenting a trip planning page comprises: Acquiring and analyzing an HTML code; In response to the map container being obtained by analysis from the HTML code, a visual map area is displayed in the map container, wherein the visual map area comprises interactable controls corresponding to all time units, the interactable controls are used for calling an external service system interface to obtain map data corresponding to routes of the corresponding time units after being triggered, and rendering and displaying are performed in the visual map area based on the map data; Responding to analysis from the HTML codes to obtain a travel element card, rendering the travel element card, wherein the travel element card comprises a service acquisition component, and the service acquisition component is used for calling an external service system interface to acquire corresponding service page data after being triggered and rendering and displaying a service page based on the service page data; wherein the travel element cards in the HTML code are organized and ordered by time unit.
  9. 9. A method of implementing trip planning, the method comprising: responding to a trip planning description sent by a user side, respectively executing a plurality of stage tasks and synchronizing state information of a plurality of task stages to the user side, wherein the plurality of stage tasks comprise: Analyzing the journey planning description to obtain constraint conditions of multiple dimensions; Calling an external service system interface to search for service data corresponding to a plurality of journey elements based on the constraint condition; and calling a large model to generate a journey planning document conforming to the constraint condition based on the service data corresponding to the journey elements.
  10. 10. The method of claim 9, wherein invoking the large model to generate a trip plan document that meets the constraint based on the service data corresponding to the plurality of trip elements comprises: Invoking an external service system interface to search for a reference trip based on the constraint condition to generate a planning schedule; Calling a large model to generate a journey planning analysis report based on service data corresponding to the journey elements and the planning schedule; And calling a large model to generate HTML code of the trip planning document based on the trip planning analysis report.
  11. 11. A service interaction device, the device comprising: the description acquisition unit is configured to acquire a journey plan description input by a user through a session interface; The system comprises a session interface display unit, an interface display unit and a travel planning unit, wherein the session interface display unit is used for displaying state information of a plurality of stage tasks in the process of generating a travel planning document, and the plurality of stage tasks at least comprise a first stage task for analyzing the travel planning description to obtain constraint conditions of a plurality of dimensions, a second stage task for calling an external service system interface to search to obtain service data corresponding to a plurality of travel elements based on the constraint conditions, and a third stage task for calling a large model to generate the travel planning document conforming to the constraint conditions based on the service data; and the service side interaction unit is configured to acquire and display the trip planning document on the session interface.
  12. 12. An apparatus for effecting trip planning, the apparatus comprising: The user side interaction unit is configured to acquire a route planning description sent by the user side; The task processing unit is configured to respond to the trip planning description, respectively execute a plurality of stage tasks and synchronize state information of the plurality of task stages to the user side through the user side interaction unit, wherein the plurality of stage tasks comprise: Analyzing the journey planning description to obtain constraint conditions of multiple dimensions; Calling an external service system interface to search for service data corresponding to a plurality of journey elements based on the constraint condition; and calling a large model to generate a journey planning document conforming to the constraint condition based on the service data corresponding to the journey elements.
  13. 13. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method of any of claims 1 to 10.
  14. 14. An electronic device, comprising: One or more processors, and A memory associated with the one or more processors for storing program instructions that, when read for execution by the one or more processors, perform the steps of the method of any of claims 1 to 10.
  15. 15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 10.

Description

Service interaction method, method for realizing trip planning and corresponding device Technical Field The application relates to the technical field of artificial intelligence and information service, in particular to a service interaction method, a method for realizing journey planning and a corresponding device. Background With the rapid development of artificial intelligence and information service technologies, intelligent assistant services are evolving from simple information queries to deep living services. The user may have a trip planning requirement in various scenes such as travel, activity organization, business, etc., and needs to switch back and forth on a plurality of platforms to browse information and manually perform trip planning. Such as viewing sight locations and routes on a map application platform, comparing prices on a ticketing application platform, looking up restaurants on a food application platform, looking up accommodations and comparing prices on an accommodation application platform, and the like. Obviously inefficiency and poor user experience. Disclosure of Invention In view of the above, the present application provides a service interaction method, a method for implementing trip planning, and a corresponding apparatus, so as to improve user efficiency and user experience. The application provides the following scheme: In a first aspect of an embodiment of the present application, a service interaction method is provided, including: acquiring a journey planning description input by a user through a session interface; The method comprises the steps of displaying state information of a plurality of stage tasks in the process of generating a travel planning document on a session interface, wherein the plurality of stage tasks at least comprise a first stage task for analyzing travel planning description to obtain constraint conditions of a plurality of dimensions, a second stage task for searching to obtain service data corresponding to a plurality of travel elements based on the constraint conditions and a third stage task for generating the travel planning document conforming to the constraint conditions based on the service data; And acquiring and displaying the trip planning document on a session interface. In some embodiments, presenting status information for a plurality of stage tasks in generating a trip plan document at a session interface includes: Acquiring the execution state of each stage task and the execution state of subtasks contained in each stage task; In response to acquiring information of a currently executing stage task and a subtask thereof, displaying visual elements indicating the stage task to be executed aiming at a node corresponding to the currently executing stage task, displaying an expansion area at the node corresponding to the currently executing stage task, and displaying the information of the currently executing subtask in the expansion area; And hiding the display area and updating the visual element into a visual element indicating that the stage task is executed in response to the completion of the execution of the stage task in the current execution. In some embodiments, the displaying the execution progress information of the corresponding stage task in the display area corresponding to each node includes: Acquiring the execution state of each stage task and the execution state of subtasks contained in each stage task; And in response to acquiring the information of the currently executing stage task and the subtasks thereof, displaying an expansion area at a node corresponding to the currently executing stage task, and displaying the information of the currently executing subtasks in the expansion area. In some embodiments, exposing information of a currently executing subtask in an extended region includes: and in response to the update of the currently executing subtask, displaying the updated currently executing subtask at the preset position of the expansion area, and scrolling the sub-task after execution from the preset position to a direction away from the preset position. In some embodiments, the method further comprises: Displaying a first component corresponding to the node corresponding to the executed stage task; responding to the operation of triggering the first component, and displaying an expansion area at a node corresponding to the triggered first component, wherein the expansion area comprises information of subtasks contained in the corresponding stage tasks; in response to triggering the operation of the first component again, the extended region is hidden. In some embodiments, the information of the subtasks presented in the extension area includes at least one of: The system comprises description information of the subtasks, information for calling an external service system interface and a second component, wherein the second component is used for triggering and displaying execution result data of the corr