Search

CN-121996110-A - Method, apparatus, device and storage medium for interaction

CN121996110ACN 121996110 ACN121996110 ACN 121996110ACN-121996110-A

Abstract

Embodiments of the present disclosure relate to a method, apparatus, device, and storage medium for interaction. The method includes determining a predetermined parameter protocol recommended for travel services, the predetermined parameter protocol including at least a corresponding set of essential parameter items for different travel service types, providing first input content to a large model in response to receiving first input content associated with a travel request of a user in a target application, obtaining recommendation information for at least one travel service related to the travel request from the large model, the recommendation information being generated by calling at least one travel service function based on the corresponding set of essential parameter items and the first input content by the large model, and presenting the recommendation information as first reply content for the first input content in the target application.

Inventors

  • WANG CE
  • ZHENG TAO

Assignees

  • 北京嘀嘀无限科技发展有限公司

Dates

Publication Date
20260508
Application Date
20241101

Claims (15)

  1. 1. A method for interaction, comprising: Determining a predetermined parameter protocol recommended for travel services, the predetermined parameter protocol comprising at least a corresponding set of essential parameter items for different travel service types; in response to receiving first input content associated with a travel request of a user in a target application, providing the first input content to a large model; Acquiring recommendation information of at least one travel service for the travel request from the large model, the recommendation information being generated by the large model by calling at least one travel service function based on the corresponding set of essential parameter items and the first input content, and The recommendation information is presented as first reply content to the first input content in the target application.
  2. 2. The method of claim 1, wherein the recommendation information is generated by the large model by: determining a target travel service type corresponding to the travel request based on the first input content; Acquiring necessary parameter information of a group of target necessary parameter items corresponding to the target travel service type from the first input content, and And generating the recommendation information by calling a target travel service function aiming at the target travel service type based on the necessary parameter information.
  3. 3. The method of claim 2, further comprising: in response to detecting second input content for the first reply content, determining whether the second input content relates to modification of the necessary parameter information; If the second input content involves modification of the necessary parameter information, correcting recommendation information of the at least one travel service by calling the target travel service function using the large model based at least on the modified necessary parameter information in response to the modified necessary parameter information satisfying a predetermined parameter requirement of the target travel service function, and And presenting the corrected recommendation information as second reply content aiming at the second input content in the target application.
  4. 4. The method of claim 1, further comprising: In response to obtaining an indication from the large model that the first input content lacks necessary parameter information, an indication requesting input of the necessary parameter information is presented in the target application.
  5. 5. The method of claim 1, further comprising: in response to an indication from the large model that recommendation information cannot be obtained, an indication is presented in the target application that the target travel service type corresponding to the travel request does not support recommendation.
  6. 6. The method of claim 1, further comprising: in response to obtaining an indication from the large model that the first input content is not related to a travel service, an indication requesting input of content related to the travel service is presented in the target application.
  7. 7. The method of claim 1, further comprising: in response to obtaining an indication from the large model that the first input content does not meet a predetermined travel criterion, presenting target content in the first input content that does not meet the predetermined travel criterion in the target application.
  8. 8. The method of claim 1, wherein the predetermined parameter protocol further comprises at least one selectable parameter item, the method further comprising: Acquiring, from the large model, further recommendation information for at least one travel service related to the travel request, the further recommendation information being generated by the large model by invoking the at least one travel service function based on the respective set of essential parameter items, the at least one selectable parameter item and the first input content, and The further recommendation information is presented as a first reply content to the first input content in the target application.
  9. 9. The method of claim 1, wherein the other recommendation information is generated by the large model by: determining a target travel service type corresponding to the travel request based on the first input content; acquiring necessary parameter information of a group of target necessary parameter items corresponding to a target travel service type from the first input content; acquiring selectable parameter information corresponding to the at least one selectable parameter item from the first input content, and And generating the another recommendation information by calling a target travel service function aiming at the target travel service type based on the necessary parameter information and the optional parameter information.
  10. 10. The method of claim 9, wherein the another recommendation information is determined by the target travel service function screening and/or ranking a plurality of candidate recommendation information determined based on the necessary parameter information based on the selectable parameter information.
  11. 11. The method of claim 8, further comprising: In response to detecting second input content for the first reply content, determining whether the second input content relates to modification of the selectable parameter information; Correcting the recommended information of the at least one target travel service by invoking the target travel service function using the large model based at least on the modified optional parameter information if the second input content relates to modification of the optional parameter information, and And presenting the corrected recommendation information as third reply content aiming at the second input content in the target application.
  12. 12. An apparatus for interaction, comprising: a predetermined parameter protocol determination module configured to determine a predetermined parameter protocol recommended for the travel service, the predetermined parameter protocol including at least a respective set of essential parameter items for different travel service types; an input content providing module configured to provide a first input content associated with a user's travel request to a large model in response to receiving the first input content in a target application; A recommendation information acquisition module configured to acquire recommendation information for at least one travel service related to the travel request from the large model, the recommendation information being generated by the large model by calling at least one travel service function based on the respective set of necessary parameter items and the first input content, and A reply content presentation module configured to present the recommendation information as a first reply content to the first input content in the target application.
  13. 13. An electronic device, comprising: At least one processing unit, and At least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, which when executed by the at least one processing unit, cause the electronic device to perform the method of any one of claims 1 to 11.
  14. 14. A computer readable storage medium having stored thereon a computer program executable by a processor to implement the method of any of claims 1 to 11.
  15. 15. A computer program product comprising computer executable instructions which when executed by a processor implement the method of any one of claims 1 to 11.

Description

Method, apparatus, device and storage medium for interaction Technical Field Example embodiments of the present disclosure relate generally to the field of computer technology and, more particularly, relate to a method, apparatus, device, and storage medium for interaction. Background The popularization of the internet technology provides a convenient online booking platform for travel services, and users can search, compare and book the services such as air tickets, hotels, rents and the like through the internet, so that the travel efficiency is greatly improved. Along with the rapid development of the mobile communication technology, a user can subscribe and manage travel services at any time and any place through mobile platforms such as a mobile phone APP, a WeChat applet and the like, so that the mobility of the travel services is realized. Disclosure of Invention In a first aspect of the present disclosure, a method for interaction is provided. The method includes determining a predetermined parameter protocol recommended for travel services, the predetermined parameter protocol including at least a respective set of essential parameter items for different travel service types, providing first input content to a large model in response to receiving first input content associated with a travel request of a user in a target application, obtaining recommendation information for at least one travel service related to the travel request from the large model, the recommendation information being generated by the large model by invoking at least one travel service function based on the respective set of essential parameter items and the first input content, and presenting the recommendation information as first reply content for the first input content in the target application. In a second aspect of the present disclosure, an apparatus for interaction is provided. The device comprises a predetermined parameter protocol determining module configured to determine a predetermined parameter protocol recommended for travel services, the predetermined parameter protocol at least comprising a corresponding set of necessary parameter items for different travel service types, an input content providing module configured to provide first input content to a large model in response to receiving the first input content associated with a travel request of a user in a target application, a recommendation information acquiring module configured to acquire recommendation information for at least one travel service related to the travel request from the large model, the recommendation information being generated by calling at least one travel service function based on the corresponding set of necessary parameter items and the first input content by the large model, and a reply content presenting module configured to present the recommendation information as first reply content for the first input content in the target application. In a third aspect of the present disclosure, an electronic device is provided. The apparatus includes at least one processing unit, and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. The instructions, when executed by at least one processing unit, cause the apparatus to perform the method of the first aspect. In a fourth aspect of the present disclosure, a computer-readable storage medium is provided. The computer readable storage medium has stored thereon a computer program executable by a processor to implement the method of the first aspect. In a fifth aspect of the present disclosure, a computer program product is provided. The computer program product comprises computer executable instructions which, when executed by a processor, implement a method according to the first aspect of the present disclosure. It should be understood that what is described in this section of the disclosure is not intended to limit key features or essential features of the embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following description. Drawings The above and other features, advantages and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, wherein like or similar reference numerals designate like or similar elements, and wherein: FIG. 1 illustrates a schematic diagram of an example environment, according to an embodiment of the present disclosure; FIG. 2 illustrates a flowchart of an example process 200 of a method for interaction according to some embodiments of the present disclosure; FIG. 3 illustrates a flowchart of an example process according to some embodiments of the present disclosure; FIG. 4 shows a schematic diagram of an example process according to s