Secure payment flow using an LLM agent with a single use access token and an on-device wallet
A computerized method for integrating a conversational agent with a payment application programming interface (API) is provided. A large language model (LLM) custom agent receives a request to book a travel itinerary. The user is prompted, in a user interface of the conversational agent, to authorize one-time permission to access a digital wallet associated with the user. Upon receiving the one-time permission to access the digital wallet, the travel itinerary comprising the plurality of bookings is provided to the user. If a confirmation to book the travel itinerary is received, the LLM custom agent books, using the payment API and the digital wallet associated with the user, the provided travel itinerary comprising the plurality of bookings. A confirmation of booking the provided travel itinerary is provided in the user interface of the conversational agent.
1 . A computerized secure payment method comprising:
receiving from a user, by a large language model (LLM) custom agent on a user device, a request to book a travel itinerary comprising a plurality of bookings;
performing a secure payment for the travel itinerary comprising the plurality of bookings by at least:
upon receiving the request, prompting, in a user interface of a conversational agent on the user device, the user to authorize one-time permission for the LLM custom agent to access a digital wallet and receive therefrom a single-use payment token, wherein the digital wallet is on the user device and associated with the user;
upon receiving, via the user interface of the conversational agent on the user device, the one-time permission to access the digital wallet, providing the travel itinerary comprising the plurality of bookings to the user;
receiving a confirmation from the user to book the provided travel itinerary; and
booking, in response to the confirmation and by the LLM custom agent via a payment application programming interface (API) that is on the user device and that engages with one or more travel service providers, the provided travel itinerary comprising the plurality of bookings using the single-use payment token, wherein no personal preference information of the user is shared with the one or more travel service providers.
2 . The computerized secure payment method of claim 1 , wherein the one-time permission has a time bound state within which the one-time permission is not expired followed by a subsequent state during which the one-time permission is expired, and wherein the computerized secure payment method further comprises:
receiving another request to adjust, in accordance with an adjustment, the provided travel itinerary comprising the plurality of bookings from the user, the adjustment requiring at least one more booking; and
determining whether the one-time permission is not expired or expired, and providing, when the one-time permission is not expired, an adjusted travel itinerary to the user without prompting the user for another one-time permission to access the digital wallet, the adjusted travel itinerary comprising the at least one more booking and an adjustment of at least one of the plurality of bookings provided previously to the user.
3 . The computerized secure payment method of claim 1 , further comprising:
in response to receiving the confirmation to book the provided travel itinerary, prompting the user about availability of a reward for booking, usable for booking a portion of the provided travel itinerary;
receiving a confirmation to use the reward for booking; and
running, by the LLM custom agent, the payment API for booking the provided travel itinerary comprising the plurality of bookings using the reward and the digital wallet associated with the user.
4 . The computerized secure payment method of claim 1 , further comprising:
providing an output of running the payment API within the user interface of the conversational agent.
5 . The computerized secure payment method of claim 1 , further comprising:
synthesizing, using generative artificial intelligence (AI), an immersive video offering glimpses into impending adventures for the user.
6 . The computerized secure payment method of claim 5 , wherein the immersive video is provided within the user interface of the conversational agent.
7 . The computerized secure payment method of claim 1 , wherein the provided travel itinerary comprises booking recommendations based on user preferences.
8 . The computerized secure payment method of claim 1 , wherein each of the plurality of bookings in the provided travel itinerary comprises a single recommendation with a confirmed booking.
9 . The computerized secure payment method of claim 1 , wherein the one-time permission comprises a single use access token to access the digital wallet on a user device associated with the user.
10 . The computerized secure payment method of claim 1 , wherein the request to book the travel itinerary is received by the LLM custom agent via the conversational agent.
11 . A secure payment system comprising:
a processor; and
a memory storing instructions that upon execution by the processor perform operations comprising:
receiving from a user, by a large language model (LLM) custom agent on a user device, a request to book a travel itinerary comprising a plurality of bookings;
performing a secure payment for the travel itinerary comprising the plurality of bookings by at least:
upon receiving the request, prompting, using a payment application programming interface (API), the user to authorize a one-time access token for the LLM custom agent to access a digital wallet and receive therefrom a single-use payment token, wherein the digital wallet is on the user device and associated with the user;
receiving, by the LLM custom agent, the one-time access token for the digital wallet generated using the payment API;
providing, upon receiving the one-time access token and in a user interface of the LLM custom agent, the travel itinerary comprising the plurality of bookings obtained from a travel service provider;
receiving, by the LLM custom agent, a confirmation from the user to book the provided travel itinerary; and
booking, in response to said confirmation and by the LLM custom agent using the one-time access token, the provided travel itinerary comprising the plurality of bookings with the travel service provider, wherein no personal preference information of the user is shared with the travel service provider.
12 . The secure payment system of claim 11 , wherein one or more of: the request to book the travel itinerary and the confirmation from the user to book the provided travel itinerary, are received by the LLM custom agent via a conversational agent.
13 . The secure payment system of claim 11 , wherein LLM custom agent and the digital wallet interact on a user device of the user using the payment API.
14 . The secure payment system of claim 11 , wherein the instructions upon execution by the processor perform further operations comprising:
in response to receiving the confirmation to book the provided travel itinerary, prompting the user about availability of a reward usable for booking a portion of the provided travel itinerary;
receiving a confirmation to use the reward for booking;
receiving a modified one-time access token for the digital wallet, the modified one-time access token being generated by modifying the one-time access token to include the confirmation to use the reward for booking; and
booking, by the LLM custom agent using the modified one-time access token, the provided travel itinerary comprising the plurality of bookings.
15 . The secure payment system of claim 11 , wherein the instructions upon execution by the processor perform further operations comprising:
synthesizing, using generative artificial intelligence (AI), an immersive video offering glimpses into impending adventures for the user, wherein the immersive video is provided within the user interface of the LLM custom agent or an application on a user device of the user.
16 . A computer storage medium storing instructions that, upon execution by a processor, perform a secure payment method comprising:
receiving from a user, by a large language model (LLM) custom agent on a user device and via a conversational agent from a user, a request to book a travel itinerary comprising a plurality of bookings;
performing a secure payment for the travel itinerary comprising the plurality of bookings by at least:
upon receiving the request, prompting, using a payment application programming interface (API), the user to authorize a one-time access token for the LLM custom agent to access a digital wallet and receive therefrom a single-use payment token, wherein the digital wallet is on the user device and associated with the user;
receiving, by the LLM custom agent, the one-time access token for the digital wallet generated using the payment API;
upon receiving the one-time access token, providing, in a user interface of the conversational agent, the travel itinerary comprising the plurality of bookings obtained from a travel service provider;
receiving, by the LLM custom agent, a confirmation from the user to book the provided travel itinerary; and
booking, in response to said confirmation and by the LLM custom agent using the one-time access token, the provided travel itinerary comprising the plurality of bookings with the travel service provider, wherein no personal preference information of the user is shared with the travel service provider.
17 . The computer storage medium of claim 16 , wherein the one-time access token has a time bound state within which the one-time access token is not expired followed by a subsequent state during which the one-time access token is expired, and wherein the instructions upon execution by the processor perform further operations comprising:
receiving another request to adjust, in accordance with an adjustment, the provided travel itinerary comprising the plurality of bookings from the user, the adjustment requiring at least one more booking; and
determining whether the one-time access token is not expired or expired, and providing, when the one-time access token is not expired, an adjusted travel itinerary to the user without prompting the user for another one-time permission to access the digital wallet, the adjusted travel itinerary comprising the at least one more booking and an adjustment of at least one of the plurality of bookings provided previously to the user.
18 . The computer storage medium of claim 16 , wherein the instructions upon execution by the processor perform further operations comprising:
in response to receiving the confirmation to book the provided travel itinerary, prompting the user about availability of a reward usable for booking a portion of the provided travel itinerary;
receiving a confirmation to use the reward for booking;
receiving a modified one-time access token for the digital wallet, the modified one-time access token being generated by modifying the one-time access token to include the confirmation to use the reward for booking; and
booking, by the LLM custom agent using the modified one-time access token, the provided travel itinerary comprising the plurality of bookings.
19 . The computer storage medium of claim 16 , wherein the LLM custom agent is integrated with the digital wallet and the conversational agent on the user device.
20 . The computer storage medium of claim 19 , wherein the instructions upon execution by the processor perform further operations comprising:
synthesizing, using generative artificial intelligence (AI), an immersive video offering glimpses into impending adventures for the user, wherein the immersive video is provided within the user interface of the conversational agent or an application on the user device.