Systems and methods for automating user aware recommendations
The network environment with a decision engine and machine learning models addresses the challenge of providing personalized and user-aware recommendations by utilizing user data and local insights to enhance recommendation quality and safety.
Patent Information
- Application Number
- US19/215506
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Filing Date
- 2025-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Individuals face challenges in finding personalized, user-aware recommendations for services due to lack of access to relevant data and local expertise, and existing AI systems can provide biased or low-quality suggestions.
A network environment comprising a decision engine, LLM service, and insights service that collects user data, classifies requests, extracts requirements, and provides personalized recommendations while ensuring safety and relevance using machine learning models.
Delivers safer, higher-quality, personalized recommendations by leveraging user transaction data and local insights, reducing biases and improving recommendation accuracy.
Smart Images

Figure US20260377950A1-D00000_ABST
Abstract
Description
BACKGROUND
[0001] When a person wishes to find recommendations for a service, such as a restaurant, a hotel, an entertainment activity, or a store, the choices can often be overwhelming. Narrowing down and selecting a service is often a challenging and time-consuming process with limited success. Additionally, people often struggle to find relevant, user aware recommendations based on their specific tastes, needs, and preferences. In some cases, people may be traveling and are not familiar with the local services available and desire local expertise.BRIEF DESCRIPTION OF THE DRAWINGS
[0002] Many aspects of the present disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily to scale, with emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
[0003] FIGS. 1A-B are pictorial diagrams of an example user interface rendered by a client device according to various embodiments of the present disclosure. FIG. 1A shows an example user interface rendered by a client device when an example client application is first opened by a user according to various embodiments of the present disclosure. FIG. 1B shows an example user interface rendered by a client device when an example response is sent to the user after the user enters a user request according to various embodiments of the present disclosure.
[0004] FIG. 2 is a drawing of a network environment according to various embodiments of the present disclosure.
[0005] FIGS. 3A-C are flowcharts illustrating examples of functionality implemented as portions of a decision engine executed in a computing environment in the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0006] FIG. 4 is a sequence diagram illustrating one example of the interactions between the client application, decision engine, and large language model (LLM) service of the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0007] FIG. 5 is a sequence diagram illustrating one example of the interactions between the components of the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0008] FIG. 6 is a sequence diagram illustrating one example of the interactions between the decision engine and the LLM service of the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0009] FIG. 7 is a flowchart illustrating one example of functionality implemented as a portion of the decision engine executed in a computing environment in the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0010] FIG. 8 is a flowchart illustrating one example of functionality implemented as a portion of the decision engine executed in a computing environment in the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0011] FIG. 9 is a flowchart illustrating one example of functionality implemented as a portion of the decision engine executed in a computing environment in the network environment of FIG. 2 according to various embodiments of the present disclosure.
[0012] FIGS. 10A and 10B are sequence diagrams illustrating one example of the interactions between the client application, the decision engine, the LLM service, and the insights service of the network environment of FIG. 2 according to various embodiments of the present disclosure.DETAILED DESCRIPTION
[0013] Disclosed are various approaches for automating providing personalized, user aware recommendations. When a person wishes to receive a personalized recommendation for a service, such as a restaurant, a hotel, an entertainment activity, or a store, the person may not always have access to such personalized recommendations. Often, people struggle to find relevant, personalized, and user aware recommendations based on their specific tastes, needs, and preferences. For example, a recommendation provider is unlikely to know and understand the person’s recent spending habits. More specifically, a recommendation provider may not know which services the person regularly uses or what types of service providers or merchants the person transacts with regularly.
[0014] In another example, a person may be traveling and be unfamiliar with the local services available. In these situations, the individual may require local expertise. However, a recommendation provider may not be familiar with the local services or lack the necessary data to make a personalized, user aware recommendation. For example, a recommendation provider is unlikely to know and understand the person’s recent spending habits and the spending habits of other people in the surrounding geographic area. More specifically, a recommendation provider may not know which local services are most similar to the types of services regularly frequented by the person at home, or which local services are highly frequented by people with similar preferences or spending habits who reside in the area. Moreover, it could be extremely difficult and time-consuming for a recommendation provider to gather large amounts of transaction data from local services or conduct demographic research to determine the local service preferences of other people similar to the person seeking the recommendation.
[0015] It would be extremely difficult and time-consuming for a recommendation provider to conduct demographic research to determine the service preferences of other people similar to the person seeking the recommendation. Additionally, even if a recommendation provider could conduct such research, the recommendation provider may still lack user awareness. A person may have unique beliefs and values that can be difficult for a recommendation provider to recognize and understand when providing the person with a recommendation. Investigating and anticipating a person’s unique preferences, needs, beliefs and values, or personal desires can be a challenging and time-consuming process with limited success.
[0016] Additionally, a person may utilize generative artificial intelligence (AI) to request a personalized recommendation for a service. However, AI can have biases that can cause a person to receive a harmful, unsafe, or undesirable response. In addition to harmful biases, AI can hallucinate (e.g., generate an incorrect or misleading result), giving the person a low-quality recommendation. These inherent risks of using AI can be frustrating to the person and waste the person’s valuable time and resources. Accordingly, the various embodiments of the present disclosure solve the problem that occurs when a person wishes to receive a safer, higher quality recommendation for a service that is relevant to the person’s specific requirements.
[0017] In the following discussion, a general description of the system and its components is provided, followed by a discussion of the operation of the same. Although the following discussion provides illustrative examples of the operation of various components of the present disclosure, the use of the following illustrative examples does not exclude other implementations that are consistent with the principles disclosed by the following illustrative examples.
[0018] As illustrated in FIG. 1, shown is an example of an application 100 on a client device 103 displaying a user interface 106 for presenting a user with a variety of information associated with one or more recommendations 109. A recommendation 109 is an output of the system according to embodiments of the current disclosure. In some examples, a recommendation 109 can be a recommendation, an answer to a question, one or more images, or an available booking. In addition to presenting one or more recommendations 109, the user interface 106 can include one or more user interface elements with which a user can interact to view, modify, or otherwise manage a recommendation 109 and its presentation within the user interface 106. As shown in the example of FIG. 1, the user interface 106 can present a user with a chat box 112 for inputting a user request 115. The user request 115 is an input received from the user through the user interface 106 of the client device 103. In some examples, the user request 115 can be a question, a request for a recommendation, or a request for a booking. The user interface 106 can also show various information associated with one or more recommendations 109, such as a link to more information of a service in a recommendation 109, contact information for the service, and details of the service included in the recommendation 109, such as a rating, a category, a price range, or a location. In some examples, the user interface 106 can present multiple different recommendations 109 to a user.
[0019] The client device 103 is representative of one or more of a plurality of client devices that can be coupled to a network 215. The client device 103 can include a processor-based system such as a computer system. Such a computer system can be embodied in the form of a personal computer (e.g., a desktop computer, a laptop computer, or similar device), a mobile computing device (e.g., personal digital assistants, cellular telephones, smartphones, web pads, tablet computer systems, music players, portable game consoles, electronic book readers, and similar devices), media playback devices (e.g., media streaming devices, BluRay® players, digital video disc (DVD) players, set-top boxes, and similar devices), a videogame console, or other devices with like capability. The client device 103 can include one or more displays 118, such as liquid crystal displays (LCDs), gas plasma-based flat panel displays, organic light emitting diode (OLED) displays, electrophoretic ink (“E-ink”) displays, projectors, or other types of display devices. In some instances, the display 118 can be a component of the client device 103 or can be connected to the client device 103 through a wired or wireless connection.
[0020] The client device 103 can be configured to execute various applications such as a client application 100 or other applications. The client application 100 can be executed in a client device 103 to access network content served up by the computing environment 203 or other servers, thereby rendering a user interface 106 on the display 118. To this end, the client application 100 can include a browser, a dedicated application, or other executable, and the user interface 106 can include a network page, an application screen, or other user mechanism for obtaining user input. The client device 103 can be configured to execute applications beyond the client application 100 such as email applications, social networking applications, word processors, spreadsheets, or other applications.
[0021] In addition to presenting recommendations 109, the user interface 106 can include one or more user interface elements within a recommendation 109 with which a user can interact to view, set up, modify, or otherwise manage a recommendation 109 and its presentation within the user interface 106. As shown in the example of FIG. 1, the user interface 106 can include a user interface element to provide more information of the service in a recommendation 109. This feature can be used to visit a website, view a location of the service, view photos of the service, read reviews for the service, as well as various other information. The user interface 106 can also include a user interface element to make a reservation for the service or contact the service directly. Additionally, a user interface element can be used to view details of the service. This feature can be used to view a rating for the service, view an estimated cost range for the service, view a category for the service, as well as various other information.
[0022] With reference to FIG. 2, shown is a network environment 200 according to various embodiments. The network environment 200 can include a computing environment 203, a client device 103, an LLM environment 209, and an insights service environment 212, which can be in data communication with each other via a network 215.
[0023] The network 215 can include wide area networks (WANs), local area networks (LANs), personal area networks (PANs), or a combination thereof. These networks can include wired or wireless components or a combination thereof. Wired networks can include Ethernet networks, cable networks, fiber optic networks, and telephone networks such as dial-up, digital subscriber line (DSL), and integrated services digital network (ISDN) networks. Wireless networks can include cellular networks, satellite networks, Institute of Electrical and Electronic Engineers (IEEE) 802.11 wireless networks (i.e., WI-FI®), BLUETOOTH® networks, microwave transmission networks, as well as other networks relying on radio broadcasts. The network 215 can also include a combination of two or more networks 215. Examples of networks 215 can include the Internet, intranets, extranets, virtual private networks (VPNs), and similar networks.
[0024] The computing environment 203 can include one or more computing devices that include a processor, a memory, and / or a network interface. For example, the computing devices can be configured to perform computations on behalf of other computing devices or applications. As another example, such computing devices can host and / or provide content to other computing devices in response to requests for content.
[0025] Moreover, the computing environment 203 can employ a plurality of computing devices that can be arranged in one or more server banks or computer banks or other arrangements. Such computing devices can be located in a single installation or can be distributed among many different geographical locations. For example, the computing environment 203 can include a plurality of computing devices that together can include a hosted computing resource, a grid computing resource or any other distributed computing arrangement. In some cases, the computing environment 203 can correspond to an elastic computing resource where the allotted capacity of processing, network, storage, or other computing-related resources can vary over time.
[0026] Various applications or other functionality can be executed in the computing environment 203. The components executed on the computing environment 203 include a decision engine 218, and other applications, services, processes, systems, engines, or functionality not discussed in detail herein.
[0027] The decision engine 218 can be executed to generate a recommendation 109. The decision engine 218 can collect various data in order to produce a recommendation 109. For example, the decision engine 218 can identify data about the user and the user’s transaction history. In some examples, the decision engine 218 can obtain the user data and user transaction history from a user profile on a client application 100 on a client device 103 associated with the user. The decision engine 218 can receive a user request 115 from the client application 100 on the client device 103 after the user inputs the user request 115 into the user interface 106 on the display 118. Then, the decision engine 218 can use the user request 115 to extract data for a type of user request 263 and one or more user requirements 266. In some embodiments, the decision engine 218 can use an LLM service 233 to extract the data for the type of user request 263 and one or more user requirements 266 from the user request 115 by sending the LLM service 233 one or more prompts 248 provided by the decision engine 218 for an LLM 236. The decision engine 218 can also use data regarding one or more safety policies 245 to determine if the user request 115 is valid and appropriate. In another example, the decision engine 218 can use data regarding one or more safety policies 245 to verify the recommendation 109 is appropriate and valid before sending the recommendation 109 to the client device 103. In other embodiments, the decision engine 218 can use data regarding the one or more safety policies 245 to use an LLM service 233 to check the appropriateness of a user request 115 or a recommendation 109. The decision engine 218 can also use the extracted data for a type of user request 263 and one or more user requirements 266 in order to send an insights inquiry 251 to an insights service 269 for insights 272 for the recommendation 109.
[0028] Also, various data can be stored in the data store 239 that is accessible to the computing environment 203. The data store 239 can be representative of a plurality of data stores 239, which can include relational databases or non-relational databases such as object-oriented databases, hierarchical databases, hash tables or similar key-value data stores, as well as other data storage applications or data structures. Moreover, combinations of these databases, data storage applications, and / or data structures may be used together to provide a single, logical, data store. The data stored in the data store 239 is associated with the operation of the various applications or functional entities described below. This data can include user transaction data 242, safety policies 245, prompt(s) 248, one or more insights inquiries 251, safety response(s) 254, user information 257, user request 115, type of user request 263, user requirement(s) 266, recommendation(s) 109, and potentially other data.
[0029] The user transaction data 242 can represent transaction data associated with the user and the user’s account. The user transaction data 242 can include the transaction history of the user and various other spending data about the user. In some examples, the user transaction data 242 can include services that the user regularly transacts at, types of services that the user regularly transacts at, and data including the price ranges of services frequented by the user, locations of services frequented by the user, and times of day that the user regularly transacts at various services.
[0030] The safety policies 245 can represent a collection of policies used for checking the validity and appropriateness of an incoming user request 115 or an outgoing recommendation 109. For example, a safety policy 245 can require the user request 115 be an inquiry related to services or recommendations for services. In another example, a safety policy 245 can require the user request 115 be appropriate (e.g., the user request does not contain any defamatory or expletive language). In another example, a safety policy 245 can check the recommendation 109 for appropriateness before sending it to the client device 103. In some examples, a safety policy 245 can check the recommendation 109 for validity before sending it to the client device 103.
[0031] The prompts 248 can represent a collection of one or more prompts 248 that are sent to the LLM service 233 for prompting the LLM 236. A prompt 248 can represent input data from the data store 239 that, when provided to an LLM service 233, instructs the LLM service 233 to perform a specific action. The input data from the data store 239 can be submitted, for example, through a web-form or other web-based interface provided by the LLM service 233. As another example, the input data can be transmitted to the LLM service 233 using an application programming interface (API) provided by the LLM service 233. For example, a classification prompt 248 can be sent to the LLM service 233 in order to prompt the LLM 236 to classify the user request 115 received by the decision engine 218 into a type of user request 263 (e.g., request for a recommendation, request for a booking, a question about a service). In another example, an extraction prompt 248 can be sent to the LLM service 233 in order to prompt the LLM 236 to extract one or more user requirements 266 (e.g., location, party size, dietary preferences, etc.) from the user request 115. In another example, a rationalization prompt 248 can be sent to the LLM service 233 in order to prompt the LLM 236 to rationalize a recommendation 109 (e.g., provide a response in readable form from the insights given to the decision engine) to be sent to the client device 103. In another example, a safety check prompt 248 can be sent to the LLM service 233 in order to prompt the LLM 236 to determine if the user request 115 or the recommendation 109 is valid and appropriate based at least in part on one or more safety policies 245.
[0032] The insights inquiry 251 can represent a request generated by the decision engine 218 based at least in part on the one or more user requirements 266 that is sent to an insights service 269 for insights 272. In some examples, the insights inquiry 251 can be generated by the decision engine 218 based at least in part on the one or more user requirements 266 and the user transaction data 242. In some examples, more than one insights inquiry 251 can be generated by the decision engine 218. In other examples, the insights inquiry 251 can be generated in the form of tags.
[0033] The safety response 254 can represent a response received from the LLM service 233 indicating whether the user request 115 or the recommendation 109 is appropriate and valid based at least in part on the one or more safety policies 245. In some examples, the safety response 254 can be that the input (the recommendation 109 or the user request 115) is inappropriate based on the one or more safety policies 245. In other examples, the safety response 254 can be that the input is appropriate based on the one or more safety policies 245. In other examples, the safety response 254 can be that the recommendation 109 is not valid or contains incorrect information.
[0034] The user information 257 can be representative of a variety of data associated with the user and the user’s account. The user information 257 can include demographic data about the user such as age, gender, race, ethnicity, residence, profession, income, and various other demographic data about the user. In some examples, the user information 257 can include the recommendation-request history of the user.
[0035] The user request 115 can be data received from the client device 103 relating to the user request 115 inputted by the user into the user interface 106 of the client application 100. In some examples, the user request 115 can represent a question by the user, a request for a recommendation, or other message. The user request 115 can contain other data, such as the type of user request 263 or one or more user requirements 266.
[0036] The type of user request 263 can be data extracted from the user request 115 and can represent a classification of the user request. In some examples, the type of user request 263 can be a question, a request for a booking, a request for a recommendation, or other request.
[0037] The user requirement(s) 266 can represent data extracted from the user request 115 and can represent specific requirements provided by the user. In some examples, the user requirements 266 can be dietary restrictions, time restrictions, personal preferences, or other user specific needs.
[0038] The recommendation 109 can represent a response generated by the decision engine 218 which is sent to the client device 103 for display to the user by the client application 100. The recommendation 109 can be specific to the user request 115 and, in some examples, is generated based at least in part on user information 257 and insights 272 received from the insights service 269. In some examples, the recommendation 109 can represent an answer to a question, a recommendation for a service, details about a specific service, or other message. In some examples, the recommendation 109 can represent a default response generated by the decision engine 218 as a result of an issue in the process (e.g., the user request is inappropriate, the service could not provide sufficient insights for the response, or the response is inappropriate).
[0039] The client device 103 can be configured to execute various applications such as a client application 100 or other applications. The client application 100 can be executed in a client device 103 to access network content served up by the computing environment 203 or other servers, thereby rendering a user interface 106 on the display 118. To this end, the client application 100 can include a browser, a dedicated application, or other executable, and the user interface 106 can include a network page, an application screen, or other user mechanism for obtaining user input. The client device 103 can be configured to execute applications beyond the client application 100 such as email applications, social networking applications, word processors, spreadsheets, or other applications.
[0040] The LLM environment 209 can include one or more computing devices that include a processor, a memory, and / or a network interface. For example, the computing devices can be configured to perform computations on behalf of other computing devices or applications. As another example, such computing devices can host and / or provide content to other computing devices in response to requests for content.
[0041] Moreover, the LLM environment 209 can employ a plurality of computing devices that can be arranged in one or more server banks or computer banks or other arrangements. Such computing devices can be located in a single installation or can be distributed among many different geographical locations. For example, the LLM environment 209 can include a plurality of computing devices that together can include a hosted computing resource, a grid computing resource or any other distributed computing arrangement. In some cases, the LLM environment 209 can correspond to an elastic computing resource where the allotted capacity of processing, network, storage, or other computing-related resources can vary over time.
[0042] Various applications or other functionality can be executed in the LLM environment 209. The components executed on the LLM environment 209 can include an LLM service 233, and other applications, services, processes, systems, engines, or functionality not discussed in detail herein. Accordingly, the LLM service 233 can be executed to receive prompts, process the prompts, and return responses to the prompts based on a machine learning model that has been trained (the LLM 236). In some embodiments, the LLM service 233 can be executed by the decision engine 218 to extract the type of user request 263 or one or more user requirements 266 from the user request 115. In other embodiments, the LLM service 233 can be executed by the decision engine 218 to determine the validity and appropriateness of the user request 115 or the recommendation 109. In other embodiments, the LLM service 233 can be executed by the decision engine 218 to finalize the recommendation 109 and rationalize the recommendation 109 in readable form.
[0043] The insights service environment 212 can include one or more computing devices that include a processor, a memory, and / or a network interface. For example, the computing devices can be configured to perform computations on behalf of other computing devices or applications. As another example, such computing devices can host and / or provide content to other computing devices in response to requests for content.
[0044] Moreover, the insights service environment 212 can employ a plurality of computing devices that can be arranged in one or more server banks or computer banks or other arrangements. Such computing devices can be located in a single installation or can be distributed among many different geographical locations. For example, the insights service environment 212 can include a plurality of computing devices that together can include a hosted computing resource, a grid computing resource or any other distributed computing arrangement. In some cases, the insights service environment 212 can correspond to an elastic computing resource where the allotted capacity of processing, network, storage, or other computing-related resources can vary over time.
[0045] Various applications or other functionality can be executed in the insights service environment 212. The components executed on the insights service environment 212 include an insights service 269, and other applications, services, processes, systems, engines, or functionality not discussed in detail herein. In some embodiments, the insights service 269 can be executed by the decision engine 218 to obtain insights 272. In some examples, the insights service 269 can provide insights 272 retrieved from a machine learning model that has been trained. The insights service 269 can provide relevant recommendations 109 based at least in part on consumer behavior data and lifestyle entities. In some examples, the insights service 269 can provide relevant recommendations 109 based at least in part on transaction data, location data, interaction data, demographics, and psychographics. For example, the decision engine 218 can send an insights inquiry 251 to the insights service 269 for insights 272 that meet certain user requirements 266. More specifically, an insights inquiry 251 to the insights service 269 could ask for Italian restaurants in New York City that have availability on January 1st for a party of two people.
[0046] Next, a general description of the operation of the various components of the network environment 200 is provided. Although the following description provides one illustrative example of the operations of and interactions between the various components of the network environment 200, other operations and interactions are also encompassed by the various embodiments of the present disclosure. More detailed discussion of the operations of individual components is provided in the discussion accompanying the subsequent drawings.
[0047] To begin, a user can input a user request 115 via a user interface 106 to receive a recommendation 109. The decision engine 218 can receive the user request 115 for a recommendation 109 and proceed to obtain user information 257 associated with the user. However, in some examples, the decision engine 218 can begin the process without obtaining user information 257. The decision engine can classify the user request 115 into a type of user request 263. In some examples, the decision engine 218 can generate a classification prompt 248 based at least in part on the user request 115, send the classification prompt 248 to a large language model (LLM) service 233 for an LLM 236, and receive a classification from the LLM service 233, wherein the classification is the type of user request 263. Then, the decision engine 218 can extract one or more user requirements 266 from the user request 115 based at least in part on the type of user request 263 previously determined. In some examples, the decision engine 218 can generate an extraction prompt 248 based at least in part on the user request 115 and the type of user request 263, send the extraction prompt 248 to an LLM service 233 for an LLM 236, and receive one or more user requirements 266 from the LLM service 233. Then, the decision engine 218 can request insights 272 from an insights service 269 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 can identify user transaction data 242 and generate an insights inquiry 251 based at least in part on the one or more user requirements 266 and the user transaction data 242. Then, the decision engine 218 can finalize a recommendation 109 based at least in part on the insights 272. In some examples, the decision engine 218 can generate a rationalization prompt 248 based at least in part on the insights 272, send the rationalization prompt 248 to an LLM service 233 for an LLM 236, and receive the recommendation 109 from the LLM service 233. In some examples, the decision engine 218 can generate a safety check prompt 248 based at least in part on the user request 115 and one or more safety policies 245, send the safety check prompt 248 to the LLM service 233 for the LLM 236, and receive a safety response 254 from the LLM service 233. Similarly, in some examples, the decision engine 218 can generate a safety check prompt 248 based at least in part on the recommendation 109 and one or more safety policies 245, send the safety check prompt 248 to the LLM service 233 for the LLM 236, and receive a safety response 254 from the LLM service 233. In some embodiments, the decision engine 218 can send the recommendation 109 to the client device 103 for display to the user by the client application 100 on the client device 103.
[0048] Referring next to FIG. 3A, shown is a flowchart that provides one example of the operation of a portion of the decision engine. The flowchart of FIG. 3A provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine. As an alternative, the flowchart of FIG. 3A can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0049] Beginning with block 300, the decision engine 218 can be executed to receive a user request 115. The decision engine 218 can be triggered by the submission of a user request 115 through the user interface 106 on the display 118 generated by a client application 100 on a client device 103. In some examples, the decision engine 218 can identify user information 257 or user transaction data 242 from a data store 239 or from another system or service in the network environment 200.
[0050] Next, at block 303, the decision engine 218 can be executed to decide whether to use the LLM service 233 to check whether the user request 115 is appropriate. If the decision engine 218 decides not to use the LLM service 233, the process can proceed to block 306. In some examples, the decision engine 218 can determine if the user request 115 is appropriate based on one or more safety policies 245. If the decision engine 218 decides to use the LLM service 233, the process instead proceeds to block 309.
[0051] Then, at block 309, the decision engine 218 can be executed to generate a safety check prompt 248 based at least in part on the user request 115 to send to the LLM service 233. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a safety check prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248. In some examples, the prompt 248 can be generated based at least in part on one or more safety policies 245.
[0052] Next, at block 312, the decision engine 218 can be executed to send the safety check prompt 248 generated by the decision engine 218 at block 309 to the LLM service 233. In some examples, the prompt 248 is encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0053] Then, at block 315, the decision engine 218 can be executed to receive the safety response 254 from the LLM service 233. In some examples, the safety response 254 can be that the user request 115 is inappropriate. In other examples, the safety response 254 can be that the user request 115 is appropriate.
[0054] At block 306, the decision engine 218 can be executed to classify the user request 115 into a type of user request 263. In some examples, the user request 115 can be a user question, wherein the type of user request 263 could be a question. In other examples, the user request 115 can be a request for a booking, wherein the type of user request 263 could be a booking request.
[0055] At block 318, the decision engine 218 can be executed to decide whether to use the LLM service 233 to classify the user request 115. If the decision engine 218 decides not to use the LLM service 233, the process can proceed to block 321 in FIG. 3B. In some examples, the decision engine 218 can classify the user request 115 into a type of user request 263. If the decision engine 218 decides to use the LLM service 233, the process instead proceeds to block 324.
[0056] Then, at block 324, the decision engine 218 can be executed to generate a classification prompt 248 based at least in part on the user request 115 to send to the LLM service 233 for the LLM 236. In some examples, the classification prompt 248 can be instructions for the LLM 236 to categorize the user request 115 into a type of user request 263 based at least in part on predetermined types provided to the LLM 236 in the prompt 248. In some examples, the decision engine 218 can be executed to generate a classification prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a classification prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a classification prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248.
[0057] Next, at block 327, the decision engine 218 can be executed to send the classification prompt 248 to the LLM service 233 for the LLM 236. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0058] Then, at block 330, the decision engine 218 can be executed to receive the classification from the LLM service 233, wherein the classification is the type of user request 263. In some examples, the type of user request 263 can be a question. In other examples, the type of user request 263 can be a booking request.
[0059] Turning now to FIG. 3B, shown is a flowchart that provides one example of the operation of a portion of the decision engine 218 and is a continuation of the flowchart in FIG. 3A. The flowchart of FIG. 3B provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine. As an alternative, the flowchart of FIG. 3B can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0060] Beginning with block 321, the decision engine 218 can be executed to extract one or more user requirements 266 from the user request 115, based at least in part on the type of user request 263. In some examples, the decision engine 218 can extract certain user requirements 266 based on the type of user request 263. More specifically, if the type of user request 263 is a request for a restaurant recommendation, the decision engine 218 can extract one or more user requirements 266 such as party size, date, type of cuisine, dietary restrictions, etc.
[0061] At block 333, the decision engine 218 can be executed to decide whether to use the LLM service 233 to extract one or more user requirements 266 from the user request 115 based at least in part on the type of user request 263. If the decision engine 218 decides not to use the LLM service 233, the process can proceed to block 336. In some examples, the decision engine 218 can extract the one or more user requirements 266. If the decision engine 218 decides to use the LLM service 233, the process instead proceeds to block 339.
[0062] Then, at block 339, the decision engine 218 can be executed to generate an extraction prompt 248 based at least in part on the user request 115 and the type of user request 263 to send to the LLM service 233 for the LLM 236. In some examples, the extraction prompt 248 can be instructions for the LLM 236 to identify specific requirements the user has entered into the user request 115. In other examples, the extraction prompt 248 can be instructions for the LLM 236 to identify specific requirements the user has entered into a user profile from which the user information 257 is derived. In other examples, the user requirements 266 could be stored data in the data store 239 from prior user requests 115. In some examples, the decision engine 218 can be executed to generate an extraction prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate an extraction prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate an extraction prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248.
[0063] Next, at block 342, the decision engine 218 can be executed to send the extraction prompt 248 to the LLM service 233 for the LLM 236. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0064] Then, at block 345, the decision engine 218 can be executed to receive the one or more user requirements 266 from the LLM service 233. In some examples, the user requirements 266 can include dietary restrictions, location restrictions, or date restrictions. In other examples, the user requirements 266 could be price restrictions or a specific rating by other users.
[0065] Next, at block 336, the decision engine 218 can be executed to request insights 272 from an insights service 269 based at least in part on the one or more user requirements 266. In some examples, the insights inquiry 251 by the decision engine 218 can be in the form of tags for the various user requirements 266. In other examples, the insights inquiry 251 by the decision engine 218 can be in the form of tags for the various user requirements 266 and the user transaction data 242. In some examples, the decision engine 218 can generate an insights inquiry 251 based at least in part on the one or more user requirements 266. Then, the decision engine 218 can send the insights inquiry 251 to the insights service 269. The decision engine 218 can then receive insights 272 from the insights service 269.
[0066] At block 348, the decision engine 218 can be executed to decide whether to identify user transaction data 242 to include in the insights inquiry 251 for insights 272. If the decision engine 218 decides not to identify user transaction data 242, or if user transaction data 242 cannot be identified, the process can proceed to block 351 in FIG. 3C. If the decision engine 218 decides to identify user transaction data 242, the process instead proceeds to block 354.
[0067] Next, at block 354, the decision engine 218 can be executed to generate the insights inquiry 251 for insights 272 based at least in part on the one or more user requirements 266 and the user transaction data 242. In some examples, the decision engine 218 can be executed to generate the insights inquiry 251 for insights 272 by analyzing the one or more user requirements 266 based at least in part on one or more pre-defined rules or machine learning algorithms to extract relevant keywords or features and assigning tags to these keywords or features. In some examples, the decision engine 218 can be executed to generate the insights inquiry 251 for insights 272 by analyzing the user transaction data 242 based at least in part on one or more pre-defined rules or machine learning algorithms to extract relevant transactions or trends in the user transaction data 242 and assign tags to these transactions or trends. In some examples, the decision engine 218 can be executed to call the LLM service 233 to analyze and assign tags to the one or more user requirements 266, the user transaction data 242, or both.
[0068] Then, at block 357, the decision engine 218 can be executed to send the insights inquiry 251 to the insights service 269. In some examples, the decision engine 218 can send the insights inquiry 251 in the form of tags and the user transaction data 242. In some examples, the insights inquiry 251 can be encrypted for data security purposes before it is sent to the insights service 269 and the insights service 269 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to retrieve insights 272.
[0069] At block 360, the decision engine 218 can be executed to receive the insights 272 from the insights service 269. In some examples, the insights 272 can be a list of services that satisfy all of the user requirements 266. In other examples, the insights 272 can be a ranking of services based on the amount of user requirements 266 each satisfy.
[0070] Moving on to FIG. 3C, shown is a flowchart that provides one example of the operation of a portion of the decision engine 218 and is a continuation of the flowcharts of FIGS. 3A and 3B. The flowchart of FIG. 3C provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine. As an alternative, the flowchart of FIG. 3C can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0071] Beginning with block 351, the decision engine 218 can be executed to finalize a recommendation 109 into a user-readable format based at least in part on the insights 272. In some examples, the recommendation 109 can be a service identified in the insights 272 that met all of the user requirements 266. In other examples, the recommendation 109 can be a few services identified in the insights 272 that met all of the user requirements 266. In some examples, the recommendation 109 can be a service identified in the insights 272 that met all of the user requirements 266 and matched trends in the user transaction data 242.
[0072] Next, at block 363, the decision engine 218 can be executed to decide whether to use the LLM service 233 to finalize the recommendation 109. If the decision engine 218 decides not to use the LLM service 233, the process can proceed to block 366. If the decision engine 218 decides to use the LLM service 233, the process instead proceeds to block 369.
[0073] Then, at block 369, the decision engine 218 can be executed to generate a rationalization prompt 248 based at least in part on the insights 272 to send to the LLM service 233. In some examples, the rationalization prompt 248 can be instructions for the LLM 236 to collate data into a readable recommendation 109. In some examples, the decision engine 218 can be executed to generate a rationalization prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a rationalization prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a rationalization prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248.
[0074] Next, at block 372, the decision engine 218 can be executed to send the rationalization prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0075] Then, at block 375, the decision engine 218 can be executed to receive the recommendation 109 from the LLM service 233. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service.
[0076] At block 366, the decision engine 218 can be executed to check the recommendation 109 by checking that the recommendation 109 is safe and appropriate based at least in part on one or more safety policies 245 before sending the recommendation 109 to the client application 100. In some examples, the recommendation 109 can be the response received from the LLM service 233. In other examples, the recommendation 109 can be the response finalized by the decision engine 218 without use of the LLM service 233.
[0077] At block 378, the decision engine 218 can be executed to decide whether to use the LLM service 233 to check whether the recommendation 109 is appropriate. If the decision engine 218 decides not to use the LLM service 233, the process can proceed to block 381. In some examples, the decision engine 218 can determine if the recommendation 109 is appropriate based on one or more safety policies 245. If the decision engine 218 decides to use the LLM service 233, the process instead proceeds to block 383.
[0078] Then, at block 383, the decision engine 218 can be executed to generate a safety check prompt 248 based at least in part on the recommendation 109 to send to the LLM service 233. In some examples, the safety check prompt 248 is based at least in part on one or more safety policies 245. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a safety check prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248.
[0079] Next, at block 386, the decision engine 218 can be executed to send the safety check prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0080] Then, at block 389, the decision engine 218 can be executed to receive the safety response 254 from the LLM service 233. In some examples, the safety response 254 can be that the input (the recommendation 109) is inappropriate based on the one or more safety policies 245. In other examples, the safety response 254 can be that the input is appropriate based on the one or more safety policies 245.
[0081] At block 381, the decision engine 218 can be executed to send the recommendation 109 to the client device 103 for display on the client device 103 by the client application 100. In some examples, the decision engine 218 can be executed to send the recommendation 109 if the safety response 254 indicates the recommendation 109 is appropriate. In some examples, the decision engine 218 can determine the recommendation 109 is not appropriate, or alternatively receive a safety response 254 from the LLM service 233 indicating the recommendation 109 is not appropriate, and the process can end without sending the recommendation 109 to the client device 103.
[0082] Referring next to FIG. 4, shown is a sequence diagram illustrating one example of the interactions between a client application 100, the decision engine 218, and the LLM service 233 according to various embodiments. It is understood that the sequence diagram of FIG. 4 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the interactions between the client application 100, the decision engine 218, and the LLM service 233. As an alternative, the sequence diagram of FIG. 4 can be viewed as depicting an example of elements of a method implemented within the network environment 200 (FIG. 2) according to one or more embodiments.
[0083] Beginning with block 403, the client application 100 can be executed to send a user request 115 to the decision engine 218. In some examples, the client application 100 can be executed to receive the user request 115 through a user interface 106 of the client device 103. The user request 115 can be representative of a request to initiate the decision engine 218. In some examples, the client application 100 generates the user request 115 based at least in part on a received user input. For example, the client application 100 can convert the received user input into a user request 115.
[0084] Moving to block 406, the decision engine 218 can be executed to receive the user request 115 from the client application 100. The user request 115 can be representative of a request to initiate the decision engine 218. In some examples, the client application 100 generates the user request 115 based at least in part on a received user input. For example, the client application 100 can convert the received user input into a user request 115.
[0085] Next, at block 409, the decision engine 218 can be executed to generate a classification prompt 248 based at least in part on the user request 115. In some examples, the classification prompt 248 can be instructions for the LLM 236 to categorize the user request 115 into a type of user request 263 based at least in part on predetermined types provided to the LLM 236 in the prompt 248. In some examples, the decision engine 218 can be executed to generate a classification prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a classification prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a classification prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248.
[0086] Then, at block 412, the decision engine 218 can be executed to send the classification prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0087] At block 415, the LLM service 233 can be executed to receive the classification prompt 248. In some examples, the prompt 248 can be encrypted for data security purposes and the LLM service 233 must decrypt the encrypted prompt 248 using a credential or passcode.
[0088] Next, at block 418, the LLM service 233 can be executed to classify the user request 115 into a classification, wherein the classification is a type of user request 263. The LLM service 233 can be executed to classify the user request 115 into a classification by submitting the classification prompt to the LLM 236. The LLM service 233 then receives the classification from the LLM 236.
[0089] Then, at block 421, the LLM service 233 can be executed to send the classification to the decision engine 218. In some examples, the classification can be a question. In other examples, the classification can be a booking request.
[0090] At block 424, the decision engine 218 can be executed to receive the classification, wherein the classification is the type of user request 263. In some examples, the type of user request 263 can be used by the decision engine 218 to determine what user requirements 266 are needed for a recommendation 109. More specifically, if the type of user request 263 is a booking request, the decision engine 218 can determine that the necessary user requirements 266 for a recommendation 109 include at least a date, a party size, and a type of service.
[0091] At block 427, the decision engine 218 can be executed to generate an extraction prompt 248 based at least in part on the user request 115 and the type of user request 263. In some examples, the extraction prompt 248 can be instructions for the LLM 236 to identify specific requirements the user has entered into the user request 115. In other examples, the extraction prompt 248 can be instructions for the LLM 236 to identify specific requirements the user has entered into a user profile from which the user information 257 is derived. In other examples, the user requirements 266 could be stored data in the data store 239 from prior user requests 115.
[0092] Then, at block 430, the decision engine 218 can be executed to send the extraction prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0093] At block 433, the LLM service 233 can be executed to receive the extraction prompt 248. In some examples, the prompt 248 is encrypted for data security purposes and the LLM service 233 must decrypt the encrypted prompt 248 using a credential or passcode.
[0094] Next, at block 436, the LLM service 233 can be executed to determine one or more user requirements 266 from the user request 115. The LLM service 233 can be executed to extract one or more user requirements 266 by submitting the extraction prompt to the LLM 236. The LLM service 233 then receives the one or more user requirements from the LLM 236.
[0095] Then, at block 439, the LLM service 233 can be executed to send the one or more user requirements 266 to the decision engine 218. In some examples, the one or more user requirements 266 can be dietary restrictions, location restrictions, date restrictions, etc. In other examples, the user requirements 266 can be price restrictions, a requirement for a certain rating of the service by other users, etc.
[0096] At block 442, the decision engine 218 can be executed to receive the one or more user requirements 266 from the LLM service 233. In some examples, the decision engine 218 can determine that the one or more user requirements 266 received are insufficient for a recommendation 109. After block 442, the sequence diagram of FIG. 4 comes to an end.
[0097] Referring next to FIG. 5, shown is a sequence diagram illustrating one example of the interactions between the decision engine 218, the LLM service 233, and an insights service 269 according to various embodiments. It is understood that the sequence diagram of FIG. 5 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the interactions between the decision engine 218, the LLM service 233, and the insights service 269. As an alternative, the sequence diagram of FIG. 5 can be viewed as depicting an example of elements of a method implemented within the network environment 200 (FIG. 2) according to one or more embodiments.
[0098] Beginning with block 503, the decision engine 218 can be executed to generate an insights inquiry 251 for insights 272 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 can generate the insights inquiry 251 based at least in part on user transaction data 242.
[0099] Moving to block 506, the decision engine 218 can be executed to send the insights inquiry 251 to the insights service 269. In some examples, the decision engine 218 can send the insights inquiry 251 in the form of tags and the user transaction data 242. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0100] Next, at block 509, the insights service 269 can be executed to receive the insights inquiry 251 from the decision engine 218. In some examples, the insights inquiry 251 can be encrypted for data security purposes before it is sent to the insights service 269 and the insights service 269 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to retrieve insights 272.
[0101] Then, at block 512, the insights service 269 can be executed to determine insights 272 based at least in part on the one or more user requirements 266. In some examples, the insights service 269 can determine insights 272 based at least in part on user transaction data 242.
[0102] At block 515, the insights service 269 can be executed to send the insights 272 to the decision engine 218. In some examples, the insights 272 can be a list of services that satisfy all of the user requirements 266. In other examples, the insights 272 can be a ranking of services based on the amount of user requirements 266 each satisfy.
[0103] Next, at block 518, the decision engine 218 can be executed to receive the insights 272 from the insights service 269. In some examples, the insights 272 may be insufficient for a recommendation 109 and the process can end. In other examples, the insights 272 are sufficient for a recommendation 109 and the process proceeds to block 521.
[0104] Then, at block 521, the decision engine 218 can be executed to generate a rationalization prompt 248 for the LLM 236 based at least in part on the insights 272. In some examples, the decision engine 218 can be executed to generate a rationalization prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a rationalization prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a rationalization prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248. In some examples, the rationalization prompt 248 can be instructions for the LLM 236 to collate data into a readable recommendation 109.
[0105] At block 524, the decision engine 218 can be executed to send the rationalization prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0106] At block 527, the LLM service 233 can be executed to receive the rationalization prompt 248 from the decision engine 218. In some examples, the LLM service 233 can decrypt the encrypted rationalization prompt 248 using a credential or passcode before moving to block 530.
[0107] Then, at block 530, the LLM service 233 can be executed to determine a recommendation 109 from the LLM 236. The LLM service 233 can be executed to determine a recommendation 109 by submitting the rationalization prompt 248 to the LLM 236.
[0108] At block 533, the LLM service 233 can be executed to send the recommendation 109 to the decision engine 218. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service.
[0109] Next, at block 536, the decision engine 218 can be executed to receive the recommendation 109 from the LLM service 233. After block 536, the sequence diagram of FIG. 5 comes to an end.
[0110] Referring next to FIG. 6, shown is a sequence diagram illustrating one example of the interactions between the decision engine 218 and the LLM service 233 according to various embodiments. It is understood that the sequence diagram of FIG. 6 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the interactions between the decision engine 218 and the LLM service 233. As an alternative, the sequence diagram of FIG. 6 can be viewed as depicting an example of elements of a method implemented within the network environment 200 (FIG. 2) according to one or more embodiments.
[0111] Beginning with block 603, the decision engine 218 can be executed to generate a safety check prompt 248 for the LLM 236 based at least in part on one or more safety policies 245. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a safety check prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248. In some examples, the safety check prompt 248 can be based at least in part on the user request 115. In other examples, the safety check prompt 248 can be based at least in part on the recommendation 109.
[0112] Moving to block 606, the decision engine 218 can be executed to send the safety check prompt 248 to the LLM service 233. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0113] Next, at block 609, the LLM service 233 can be executed to receive the safety check prompt 248 from the decision engine 218. In some examples, the safety response 254 can be that the input (the user request 115 or the recommendation 109) is inappropriate based on the one or more safety policies 245. In other examples, the safety response 254 can be that the input is appropriate based on the one or more safety policies 245.
[0114] Then, at block 612, the LLM service 233 can be executed to submit the safety check prompt 248 to the LLM 236 to determine appropriateness based at least in part on the one or more safety policies 245. In some examples, the LLM service 233 can determine appropriateness based at least in part on the user request 115. In other examples, the LLM service 233 can determine appropriateness based at least in part on the recommendation 109.
[0115] At block 615, the LLM service 233 can be executed to send the safety response 254 to the decision engine 218. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0116] Next, at block 618, the decision engine 218 can be executed to receive the safety response 254 from the LLM service 233. In some examples, the safety response 254 can be that the input (the user request 115 or the recommendation 109) is inappropriate based on the one or more safety policies 245. In other examples, the safety response 254 can be that the input is appropriate based on the one or more safety policies 245. After block 618, the sequence diagram of FIG. 6 comes to an end.
[0117] Moving on to FIG. 7, shown is a flowchart that provides one example of the operation of a portion of the decision engine 218. The flowchart of FIG. 7 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine 218. As an alternative, the flowchart of FIG. 7 can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0118] Beginning with block 703, the decision engine 218 can be executed to receive a user request 115 from a client application 100. The decision engine 218 can be triggered by the submission of a user request 115 through the user interface 106 on the display 118 generated by a client application 100 on a client device 103. In some examples, the decision engine 218 can identify user information 257 or user transaction data 242 from a data store 239 or from another system or service in the network environment 200.
[0119] Next, at block 706, the decision engine 218 can be executed to decide whether the user request 115 is appropriate. If the decision engine 218 decides the user request 115 is inappropriate, the process can proceed to block 709. If the decision engine 218 decides the user request 115 is appropriate, the process instead proceeds to block 712. In some examples, the decision engine 218 can decide if the user request 115 is appropriate by generating a safety check prompt 248 for an LLM 236 based at least in part on the user request 115 and one or more safety policies 245, sending the safety check prompt 248 to an LLM service 233 for the LLM 236, and receiving a safety response 254 from the LLM service 233.
[0120] Then, at block 712, the decision engine 218 can be executed to classify the user request 115 into a type of user request 263. In some examples, the decision engine 218 can classify the user request 115 by generating a classification prompt 248 for an LLM 236 based at least in part on the user request 115, send the classification prompt 248 to an LLM service 233 for the LLM 236, and receive a classification from the LLM service 233, wherein the classification is the type of user request 263.
[0121] Next, at block 715, the decision engine 218 can be executed to extract one or more user requirements 266 from the user request 115 based at least in part on the type of user request 263. In some examples, the decision engine 218 can extract one or more user requirements 266 from the user request 115 by generating an extraction prompt 248 for an LLM 236 based at least in part on the user request 115 and the type of user request 263, sending the extraction prompt 248 to an LLM service 233 for the LLM 236, and receiving one or more user requirements 266 from the LLM service 233.
[0122] Then, at block 718, the decision engine 218 can be executed to request insights 272 from an insights service 269 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 can generate an insights inquiry 251 based at least in part on the one or more user requirements 266, send the insights inquiry 251 to an insights service 269, and receive insights 272 from the insights service 269. In other examples, the decision engine 218 can identify user transaction data 242 and generate an insights inquiry 251 based at least in part on the user transaction data 242 and the one or more user requirements 266.
[0123] At block 721, the decision engine 218 can be executed to finalize a recommendation 109 based at least in part on the insights 272. In some examples, the decision engine 218 can finalize the recommendation 109 by generating a rationalization prompt 248 for an LLM 236 based at least in part on the insights 272, sending the rationalization prompt 248 to an LLM service 233 for the LLM 236, and receiving the recommendation 109 from the LLM service 233. In some examples, the recommendation 109 is the response received from the LLM service 233. In other examples, the recommendation 109 is the response finalized by the decision engine 218 without use of the LLM service 233.
[0124] At block 724, the decision engine 218 can be executed to decide whether the recommendation 109 is appropriate. If the decision engine 218 decides the recommendation 109 is inappropriate, the process can proceed to block 709. If the decision engine 218 decides the recommendation 109 is appropriate, the process instead proceeds to block 727. In some examples, the decision engine 218 can decide if the recommendation 109 is appropriate by generating a safety check prompt 248 for an LLM 236 based at least in part on the recommendation 109 and one or more safety policies 245, sending the safety check prompt 248 to an LLM service 233 for the LLM 236, and receiving a safety response 254 from the LLM service 233.
[0125] Then, at block 727, the decision engine 218 can be executed to send the recommendation 109 to the client application 100. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service. After block 727, the flowchart of FIG. 7 comes to an end.
[0126] However, if the process proceeds to block 709, the decision engine 218 can be executed to send a default response 275 to the client application 100. In some examples, the default response 275 can be a message that the user request 115 is inappropriate. In other examples, the default response 275 can be a message that the decision engine 218 cannot process a recommendation 109. After block 709, the flowchart of FIG. 7 comes to an end.
[0127] Moving on to FIG. 8, shown is a flowchart that provides one example of the operation of a portion of the decision engine 218. The flowchart of FIG. 8 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine 218. As an alternative, the flowchart of FIG. 8 can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0128] Beginning with block 803, the decision engine 218 can be executed to classify the user request 115 into a type of user request 263. In some examples, the decision engine 218 can classify the user request 115 by generating a classification prompt 248 for an LLM 236 based at least in part on the user request 115, send the classification prompt 248 to an LLM service 233 for the LLM 236, and receive a classification from the LLM service 233, wherein the classification is the type of user request 263.
[0129] Next, at block 806, the decision engine 218 can be executed to check the user request 115 for a minimum level of context based at least in part on the type of user request 263. In some examples, the user request 115 does not provide enough context for a recommendation 109. More specifically, the user request 115 may be a question (type of user request 115) but does not contain enough information for the decision engine 218 to formulate a recommendation 109.
[0130] Then, at block 809, the decision engine 218 can be executed to decide whether the minimum level of context is sufficient for a recommendation 109 based at least in part on the type of user request 263. If the decision engine 218 decides the level of context is insufficient for a recommendation 109, the process can proceed to block 812. If the decision engine 218 decides the level of context is sufficient for a recommendation 109, the process instead proceeds to block 815. In some examples, the decision engine 218 can decide if the level of context is sufficient by extracting one or more user requirements 266. In other examples, the decision engine 218 can decide if the level of context is sufficient by generating an extraction prompt 248 for an LLM 236 based at least in part on the user request 115 and the type of user request 263, sending the extraction prompt 248 to an LLM service 233 for the LLM 236, and receiving one or more user requirements 266 from the LLM service 233. In some examples, the decision engine 218 may require a minimum number of user requirements 266 for a recommendation 109 based at least in part on the type of user request 263. Specifically, in some examples, the decision engine 218 may require at least a party size and time for a user request 115 that is a request for a restaurant booking.
[0131] Then, at block 815, the decision engine 218 can be executed to request insights 272 from an insights service 269 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 can generate an insights inquiry 251 based at least in part on the one or more user requirements 266, send the insights inquiry 251 to an insights service 269, and receive insights 272 from the insights service 269. In other examples, the decision engine 218 can identify user transaction data 242 and generate an insights inquiry 251 based at least in part on the user transaction data 242 and the one or more user requirements 266.
[0132] Next, at block 818, the decision engine 218 can be executed to decide whether the insights 272 supplied by the insights service 269 are sufficient for a recommendation 109. If the decision engine 218 decides the insights 272 supplied are insufficient for a recommendation 109, the process can proceed to block 821. If the decision engine 218 decides the insights 272 supplied are sufficient for a recommendation 109, the process instead proceeds to block 824. For example, the decision engine 218 may require insights 272 containing at least one restaurant that has an available booking at a certain time for a user request 115 that is a request for a restaurant booking.
[0133] Then, at block 824, the decision engine 218 can be executed to finalize a recommendation 109 based at least in part on the insights 272. In some examples, the decision engine 218 can finalize the recommendation 109 by generating a rationalization prompt 248 for an LLM 236 based at least in part on the insights 272, sending the rationalization prompt 248 to an LLM service 233 for the LLM 236, and receiving the recommendation 109 from the LLM service 233. In some examples, the recommendation 109 is the response received from the LLM service 233. In other examples, the recommendation 109 is the response finalized by the decision engine 218 without use of the LLM service 233.
[0134] At block 827, the decision engine 218 can be executed to send the recommendation 109 to the client application 100. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service. After block 827, the flowchart of FIG. 8 comes to an end.
[0135] However, if the process proceeds to either block 821 or block 812, the decision engine 218 can be executed to send a default response 275 to the client application 100. In some examples, the default response 275 can be a message that the user request 115 is inappropriate. In other examples, the default response 275 can be a message that the decision engine 218 cannot process a recommendation 109. After block 821 or block 812, the flowchart of FIG. 8 comes to an end.
[0136] Moving on to FIG. 9, shown is a flowchart that provides one example of the operation of a portion of the decision engine 218. The flowchart of FIG. 9 provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the depicted portion of the decision engine 218. As an alternative, the flowchart of FIG. 9 can be viewed as depicting an example of elements of a method implemented within the network environment 200.
[0137] Beginning with block 903, the decision engine 218 can be executed to receive a user request 115 from a client application 100. The decision engine 218 can be triggered by the submission of a user request 115 through the user interface 106 on the display 118 generated by a client application 100 on a client device 103. In some examples, the decision engine 218 can identify user information 257 or user transaction data 242 from a data store 239 or from another system or service in the network environment 200.
[0138] Next, at block 906, the decision engine 218 can be executed to check the user request 115 for appropriateness. In some examples, the decision engine 218 can check if the user request 115 is appropriate by generating a safety check prompt 248 for an LLM 236 based at least in part on the user request 115 and one or more safety policies 245, sending the safety check prompt 248 to an LLM service 233 for the LLM 236, and receiving a safety response 254 from the LLM service 233.
[0139] Next, at block 909, the decision engine 218 can be executed to decide whether the user request 115 is appropriate. In some examples, the decision engine 218 can be executed to decide whether the user request 115 is appropriate based at least in part on a safety response 254 received from an LLM service 233. If the decision engine 218 decides the user request 115 is inappropriate, the process can proceed to block 912. If the decision engine decides the user request 115 is appropriate, the process instead proceeds to block 915.
[0140] Then, at block 915, the decision engine 218 can be executed to classify the user request 115 into a type of user request 263. In some examples, the decision engine 218 can classify the user request 115 by generating a classification prompt 248 for an LLM 236 based at least in part on the user request 115, send the classification prompt 248 to an LLM service 233 for the LLM 236, and receive a classification from the LLM service 233, wherein the classification is the type of user request 263.
[0141] Next, at block 918, the decision engine 218 can be executed to extract one or more user requirements 266 from the user request 115 based at least in part on the type of user request 263. In some examples, the decision engine 218 can extract one or more user requirements 266 from the user request 115 by generating an extraction prompt 248 for an LLM 236 based at least in part on the user request 115 and the type of user request 263, sending the extraction prompt 248 to an LLM service 233 for the LLM 236, and receiving one or more user requirements 266 from the LLM service 233.
[0142] Then, at block 921, the decision engine 218 can be executed to request insights 272 from an insights service 269 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 can generate an insights inquiry 251 based at least in part on the one or more user requirements 266, send the insights inquiry 251 to an insights service 269, and receive insights 272 from the insights service 269. In other examples, the decision engine 218 can identify user transaction data 242 and generate an insights inquiry 251 based at least in part on the user transaction data 242 and the one or more user requirements 266.
[0143] Next, at block 924, the decision engine 218 can be executed to finalize a recommendation 109 based at least in part on the insights 272. In some examples, the decision engine 218 can finalize the recommendation 109 by generating a rationalization prompt 248 for an LLM 236 based at least in part on the aggregated insights 272, sending the rationalization prompt 248 to an LLM service 233 for the LLM 236, and receiving the recommendation 109 from the LLM service 233. In some examples, the recommendation 109 is the response received from the LLM service 233. In other examples, the recommendation 109 is the response finalized by the decision engine 218 without use of the LLM service 233.
[0144] At block 927, the decision engine 218 can be executed to decide whether the recommendation 109 is appropriate. In some examples, the decision engine 218 can be executed to decide whether the recommendation 109 is appropriate by generating a safety check prompt 248 for an LLM 236 based at least in part on the recommendation 109 and one or more safety policies 245, sending the safety check prompt 248 to an LLM service 233 for the LLM 236, and receiving a safety response 254 from the LLM service 233. In some examples, the decision engine 218 can be executed to decide whether the recommendation 109 is appropriate based at least in part on a safety response 254 received from an LLM service 233. If the decision engine 218 decides the user request 115 is inappropriate, the process can proceed to block 912. If the decision engine 218 decides the user request 115 is appropriate, the process instead proceeds to block 930.
[0145] At block 930, the decision engine 218 can be executed to send the recommendation 109 to the client application 100. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service. After block 930, the flowchart of FIG. 9 comes to an end.
[0146] However, if the process proceeds to block 912, the decision engine 218 can be executed to send a default response 275 to the client application 100. In some examples, the default response 275 can be a message that the user request 115 is inappropriate. In other examples, the default response 275 can be a message that the decision engine 218 cannot process a recommendation 109. After block 912, the flowchart of FIG. 9 comes to an end.
[0147] Referring next to FIG. 10A, shown is a sequence diagram illustrating one example of the interactions between a client application 100, the decision engine 218, and the LLM service 233 according to various embodiments. It is understood that the sequence diagram of FIG. 10A provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the interactions between the client application 100, the decision engine 218, and the LLM service 233. As an alternative, the sequence diagram of FIG. 10A can be viewed as depicting an example of elements of a method implemented within the network environment 200 (FIG. 2) according to one or more embodiments.
[0148] Beginning with block 1003, the client application 100 can be executed to receive a user request 115. In some examples, the client application 100 can be executed to receive the user request 115 through a user interface 106 of the client device 103. The user request 115 can be representative of a request to initiate the decision engine 218. In some examples, the client application 100 can generate the user request 115 based at least in part on a received user input. For example, the client application 100 can convert the received user input into a user request 115. The client application 100 can then be executed to send the user request 115 to the decision engine 218. In some examples, the user request 115 can be a question, a booking request, a recommendation request, or other input relevant to a service.
[0149] Moving to block 1006, the decision engine 218 can be executed to generate a safety check prompt 248 based at least in part on the user request 115 and send the safety check prompt 248 to the LLM service 233. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by selecting from prompts 248 stored in the data store 239 based at least in part on one or more logic functions. In some examples, the decision engine 218 can be executed to generate a safety check prompt 248 by executing a logic framework to express and chain together one or more logic components to select a prompt 248. More specifically, the decision engine 218 can be executed to generate a safety check prompt 248 by executing one or more LangChain Expression Language (LCEL) chains to select a prompt 248. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236.
[0150] Then, at block 1009, the LLM service 233 can be executed to receive the safety check prompt 248 and submit the safety check prompt 248 to the LLM 236. The LLM 236 can then output a safety response 254. The LLM service 233 can then be executed to send the safety response 254 to the decision engine 218.
[0151] Next, at block 1012, the decision engine 218 can be executed to generate a classification prompt 248 based at least in part on the user request 115. In some examples, the classification prompt 248 can be instructions for the LLM 236 to categorize the user request 115 into a type of user request 263 based at least in part on predetermined types provided to the LLM 236 in the prompt 248. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236. The decision engine 218 can then be executed to send the classification prompt 248 to the LLM service 233.
[0152] Then, at block 1015, the LLM service 233 can be executed to determine a classification of the user request 115 by submitting the classification prompt 248 to the LLM 236. The LLM 236 can then output a classification, wherein the classification is a type of user request 263. The LLM service 233 can then be executed to send the classification to the decision engine 218.
[0153] Next, at block 1018, the decision engine 218 can be executed to generate an extraction prompt 248 based at least in part on the type of user request 263. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236. The decision engine 218 can then be executed to send the extraction prompt 248 to the LLM service 233.
[0154] At block 1021, the LLM service 233 can be executed to receive the extraction prompt 248 and submit the extraction prompt 248 to the LLM 236. The LLM 236 can then output one or more user requirements 266 extracted from the user request 115. The LLM service 233 can then be executed to send the one or more user requirements 266 to the decision engine 218. After block 1021, the sequence diagram of FIG. 10A continues on to FIG. 10B.
[0155] Referring next to FIG. 10B, shown is a sequence diagram illustrating one example of the interactions between a client application 100, the decision engine 218, the LLM service 233, and the insights service 269 according to various embodiments. FIG. 10B is a continuation of the sequence diagram of FIG. 10A. It is understood that the sequence diagram of FIG. 10B provides merely an example of the many different types of functional arrangements that can be employed to implement the operation of the interactions between the client application 100, the decision engine 218, the LLM service 233, and the insights service 269. As an alternative, the sequence diagram of FIG. 10B can be viewed as depicting an example of elements of a method implemented within the network environment 200 (FIG. 2) according to one or more embodiments.
[0156] First, at block 1024, the decision engine 218 can be executed to generate an insights inquiry 251 for insights 272 based at least in part on the one or more user requirements 266. In some examples, the decision engine 218 generates the insights inquiry 251 based at least in part on user transaction data 242. The decision engine 218 can then be executed to send the insights inquiry 251 to the insights service 269.
[0157] Moving to block 1027, the insights service 269 can be executed to determine insights 272 based at least in part on the one or more user requirements 266. In some examples, the insights service 269 can determine insights 272 based at least in part on user transaction data 242. The insights service 269 can be executed to send the insights 272 to the decision engine 218.
[0158] Next, at block 1030, the decision engine 218 can be executed to generate a rationalization prompt 248 for the LLM 236 based at least in part on the insights 272. In some examples, the prompt 248 can be encrypted for data security purposes before it is sent to the LLM service 233 and the LLM service 233 can decrypt the encrypted prompt 248 using a credential or passcode once it is ready to submit the prompt 248 to the LLM 236. The decision engine 218 can be executed to send the rationalization prompt 248 to the LLM service 233.
[0159] At block 1033, the LLM service 233 can be executed to submit the rationalization prompt 248 to the LLM 236 and receive a recommendation 109 from the LLM 236. The LLM service 233 can be executed to send the recommendation 109 to the decision engine 218.
[0160] Next, at block 1036, the decision engine 218 can be executed to generate a safety check prompt 248 for the LLM 236 based at least in part on one or more safety policies 245 and the recommendation 109. The decision engine 218 can then be executed to send the safety check prompt 248 to an LLM service 233 for the LLM 236.
[0161] Moving to block 1039, the LLM service 233 can be executed to determine if the recommendation 109 is safe by submitting the safety check prompt 248 to the LLM 236. The LLM 236 can then output a safety response 254. In some examples, the safety response 254 can be that the recommendation 109 is appropriate based at least in part on the one or more safety policies 245. In other examples, the safety response 254 can be that the recommendation 109 is inappropriate based at least in part on the one or more safety policies 245 or contains inaccurate information. The LLM service 233 can then be executed to send the safety response 254 to the decision engine 218.
[0162] At block 1042, the decision engine 218 can be executed to finalize the recommendation 109 by receiving the safety response 254 from the LLM service 233 and checking that the safety response 254 indicates the recommendation 109 is safe and appropriate before sending the recommendation 109 to the client application 100. In some examples, the recommendation 109 can be a recommendation for a service. In other examples, the recommendation 109 can be an answer to a question. In other examples, the recommendation 109 can be images of a service.
[0163] At block 1045, the client application 100 can be executed to receive the recommendation 109 from the decision engine 218. The client application 100 can then be executed to display the recommendation 109 to the user through the user interface 106. After block 1045, the sequence diagram of FIG. 10 comes to an end.
[0164] A number of software components previously discussed are stored in the memory of the respective computing devices and are executable by the processor of the respective computing devices. In this respect, the term "executable" means a program file that is in a form that can ultimately be run by the processor. Examples of executable programs can be a compiled program that can be translated into machine code in a format that can be loaded into a random access portion of the memory and run by the processor, source code that can be expressed in proper format such as object code that is capable of being loaded into a random access portion of the memory and executed by the processor, or source code that can be interpreted by another executable program to generate instructions in a random access portion of the memory to be executed by the processor. An executable program can be stored in any portion or component of the memory, including random access memory (RAM), read-only memory (ROM), hard drive, solid-state drive, Universal Serial Bus (USB) flash drive, memory card, optical disc such as compact disc (CD) or digital versatile disc (DVD), floppy disk, magnetic tape, or other memory components.
[0165] The memory includes both volatile and nonvolatile memory and data storage components. Volatile components are those that do not retain data values upon loss of power. Nonvolatile components are those that retain data upon a loss of power. Thus, the memory can include random access memory (RAM), read-only memory (ROM), hard disk drives, solid-state drives, USB flash drives, memory cards accessed via a memory card reader, floppy disks accessed via an associated floppy disk drive, optical discs accessed via an optical disc drive, magnetic tapes accessed via an appropriate tape drive, or other memory components, or a combination of any two or more of these memory components. In addition, the RAM can include static random access memory (SRAM), dynamic random access memory (DRAM), or magnetic random access memory (MRAM) and other such devices. The ROM can include a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or other like memory device.
[0166] Although the applications and systems described herein can be embodied in software or code executed by general purpose hardware as discussed above, as an alternative the same can also be embodied in dedicated hardware or a combination of software / general purpose hardware and dedicated hardware. If embodied in dedicated hardware, each can be implemented as a circuit or state machine that employs any one of or a combination of a number of technologies. These technologies can include, but are not limited to, discrete logic circuits having logic gates for implementing various logic functions upon an application of one or more data signals, application specific integrated circuits (ASICs) having appropriate logic gates, field-programmable gate arrays (FPGAs), or other components, etc. Such technologies are generally well known by those skilled in the art and, consequently, are not described in detail herein.
[0167] The flowcharts and sequence diagrams show the functionality and operation of an implementation of portions of the various embodiments of the present disclosure. If embodied in software, each block can represent a module, segment, or portion of code that includes program instructions to implement the specified logical function(s). The program instructions can be embodied in the form of source code that includes human-readable statements written in a programming language or machine code that includes numerical instructions recognizable by a suitable execution system such as a processor in a computer system. The machine code can be converted from the source code through various processes. For example, the machine code can be generated from the source code with a compiler prior to execution of the corresponding application. As another example, the machine code can be generated from the source code concurrently with execution with an interpreter. Other approaches can also be used. If embodied in hardware, each block can represent a circuit or a number of interconnected circuits to implement the specified logical function or functions.
[0168] Although the flowcharts and sequence diagrams show a specific order of execution, it is understood that the order of execution can differ from that which is depicted. For example, the order of execution of two or more blocks can be scrambled relative to the order shown. Also, two or more blocks shown in succession can be executed concurrently or with partial concurrence. Further, in some embodiments, one or more of the blocks shown in the flowcharts and sequence diagrams can be skipped or omitted. In addition, any number of counters, state variables, warning semaphores, or messages might be added to the logical flow described herein, for purposes of enhanced utility, accounting, performance measurement, or providing troubleshooting aids, etc. It is understood that all such variations are within the scope of the present disclosure.
[0169] Also, any logic or application described herein that includes software or code can be embodied in any non-transitory computer-readable medium for use by or in connection with an instruction execution system such as a processor in a computer system or other system. In this sense, the logic can include statements including instructions and declarations that can be fetched from the computer-readable medium and executed by the instruction execution system. In the context of the present disclosure, a "computer-readable medium" can be any medium that can contain, store, or maintain the logic or application described herein for use by or in connection with the instruction execution system. Moreover, a collection of distributed computer-readable media located across a plurality of computing devices (e.g., storage area networks or distributed or clustered filesystems or databases) may also be collectively considered as a single non-transitory computer-readable medium.
[0170] The computer-readable medium can include any one of many physical media such as magnetic, optical, or semiconductor media. More specific examples of a suitable computer-readable medium would include, but are not limited to, magnetic tapes, magnetic floppy diskettes, magnetic hard drives, memory cards, solid-state drives, USB flash drives, or optical discs. Also, the computer-readable medium can be a random access memory (RAM) including static random access memory (SRAM) and dynamic random access memory (DRAM), or magnetic random access memory (MRAM). In addition, the computer-readable medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or other type of memory device.
[0171] Further, any logic or application described herein can be implemented and structured in a variety of ways. For example, one or more applications described can be implemented as modules or components of a single application. Further, one or more applications described herein can be executed in shared or separate computing devices or a combination thereof. For example, a plurality of the applications described herein can execute in the same computing device, or in multiple computing devices in the same computing environment 203.
[0172] Disjunctive language such as the phrase “at least one of X, Y, or Z,” unless specifically stated otherwise, is otherwise understood with the context as used in general to present that an item, term, etc., can be either X, Y, or Z, or any combination thereof (e.g., X; Y; Z; X or Y; X or Z; Y or Z; X, Y, or Z; etc.). Thus, such disjunctive language is not generally intended to, and should not, imply that certain embodiments require at least one of X, at least one of Y, or at least one of Z to each be present.
[0173] It should be emphasized that the above-described embodiments of the present disclosure are merely possible examples of implementations set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiments without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Claims
1. A system, comprising:a computing device comprising a processor and a memory; andmachine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to at least:receive a user request;classify the user request into a type of user request;extract one or more user requirements from the user request based at least in part on the type of user request;request insights from an insights service based at least in part on the one or more user requirements; andfinalize a recommendation based at least in part on the insights.
2. The system of claim 1, wherein the machine-readable instructions that classify a user request into a type of user request further cause the computing device to at least:generate a classification prompt based at least in part on the user request;send the classification prompt to a large language model (LLM); andreceive a classification from the LLM, wherein the classification is the type of user request.
3. The system of claim 1, wherein the machine-readable instructions that extract one or more user requirements from the user request further cause the computing device to at least:generate an extraction prompt based at least in part on the user request and the type of user request;send the extraction prompt to an LLM; andreceive one or more user requirements from the LLM.
4. The system of claim 1, wherein the machine-readable instructions that request insights from an insights service further cause the computing device to at least:generate an insights inquiry based at least in part on the one or more user requirements;send the insights inquiry to the insights service; andreceive insights from the insights service.
5. The system of claim 1, wherein the machine-readable instructions that finalize a recommendation further cause the computing device to at least:generate a rationalization prompt based at least in part on the insights;send the rationalization prompt to an LLM; andreceive the recommendation from the LLM.
6. The system of claim 1, wherein the machine-readable instructions that receive a user request further cause the computing device to at least:generate a safety check prompt for an LLM based at least in part on the user request and one or more safety policies;send the safety check prompt to the LLM; andreceive a safety response from the LLM.
7. The system of claim 1, wherein the machine-readable instructions further cause the computing device to at least:generate a safety check prompt for an LLM based at least in part on the recommendation and one or more safety policies;send the safety check prompt to the LLM; andreceive a safety response from the LLM.
8. The system of claim 1, wherein the machine-readable instructions that request insights from an insights service further cause the computing device to at least:identify user transaction data;generate an insights inquiry based at least in part on the one or more user requirements and the user transaction data;send the insights inquiry to the insights service; andreceive insights from the insights service.
9. A method, comprising:receiving a user request;classifying the user request into a type of user request;extracting one or more user requirements from the user request based at least in part on the type of user request;requesting insights from an insights service based at least in part on the one or more user requirements; andfinalizing a recommendation based at least in part on the insights.
10. The method of claim 9, wherein classifying a user request into a type of user request further comprises:generating a classification prompt based at least in part on the user request;sending the classification prompt to a large language model (LLM); andreceiving a classification from the LLM, wherein the classification is the type of user request.
11. The method of claim 9, wherein extracting one or more user requirements from the user request further comprises:generating an extraction prompt based at least in part on the user request and the type of user request;sending the extraction prompt to an LLM; andreceiving one or more user requirements from the LLM.
12. The method of claim 9, wherein requesting insights from an insights service further comprises:generating an insights inquiry based at least in part on the one or more user requirements;sending the insights inquiry to the insights service; andreceiving insights from the insights service.
13. The method of claim 9, wherein finalizing a response further comprises:generating a rationalization prompt based at least in part on the insights;sending the rationalization prompt to an LLM; andreceiving the recommendation from the LLM.
14. The method of claim 9, wherein receiving a user request further comprises:generating a safety check prompt for an LLM based at least in part on the user request and one or more safety policies;sending the safety check prompt to the LLM; andreceiving a safety response from the LLM.
15. The method of claim 9, further comprising:generating a safety check prompt for an LLM based at least in part on the recommendation and one or more safety policies;sending the safety check prompt to the LLM; andreceiving a safety response from the LLM.
16. The method of claim 9, wherein requesting insights from an insights service further comprises:identifying user transaction data;generating an insights inquiry based at least in part on the one or more user requirements and the user transaction data;sending the insights inquiry to the insights service; andreceiving insights from the insights service.
17. A system, comprising:a computing device comprising a processor and a memory; andmachine-readable instructions stored in the memory that, when executed by the processor, cause the computing device to at least:receive a user request;generate a classification prompt based at least in part on the user request;send the classification prompt to a large language model (LLM);receive a classification from the LLM, wherein the classification is a type of user request;generate an extraction prompt based at least in part on the user request and the type of user request;send the extraction prompt to the LLM;receive one or more user requirements from the LLM;generate an insights inquiry based at least in part on the one or more user requirements;send the insights inquiry to an insights service;receive insights from the insights service; andgenerate a rationalization prompt based at least in part on the insights;send the rationalization prompt to an LLM; andreceive a recommendation from the LLM.
18. The system of claim 17, wherein the machine-readable instructions that receive a user request further cause the computing device to at least:generate a safety check prompt for an LLM based at least in part on the user request and one or more safety policies;send the safety check prompt to the LLM; andreceive a safety response from the LLM.
19. The system of claim 17, wherein the machine-readable instructions further cause the computing device to at least:generate a safety check prompt for an LLM based at least in part on the recommendation and one or more safety policies;send the safety check prompt to the LLM; andreceive a safety response from the LLM.
20. The system of claim 17, wherein the machine-readable instructions that request insights from an insights service further cause the computing device to at least:identify user transaction data;generate an insights inquiry based at least in part on the one or more user requirements and the user transaction data;send the insights inquiry to the insights service; andreceive insights from the insights service.
