Digital processing systems and methods for implementing and managing artificial intelligence functionalities in applications
Systems and methods are disclosed for selection operations for improving quality of Artificial Intelligence responses. The operations include accessing an application that employs AI functionality, receiving from a user, via the application, a query for which a response is sought from an AI agent, analyzing the query for determining a context, based on the context, selecting a particular AI agent from a pool of a plurality of AI agents, to which the query should be sent for response, and directing the query to the selected AI agent.
1 . A non-transitory computer-readable medium containing instructions that when executed by at least one processor cause the at least one processor to perform selection operations for improving quality of Artificial Intelligence responses, the operations comprising:
accessing an application that employs AI functionality, the application including a user interface and a plurality of platform elements, wherein each of the plurality of platform elements is configurable to communicate with at least one of a plurality of AI agents;
receiving from a user, via at least one of the plurality of platform elements, a query for which a response is sought from an AI agent of the plurality of AI agents;
analyzing the query for determining a context;
based on the context, selecting a particular AI agent from a pool of the plurality of AI agents, to which the query should be sent for response, by accessing a repository associating a plurality of contexts with differing AI agents in the pool;
directing the query to the selected AI agent;
receiving a response from the selected AI agent;
modifying, by the application, the received response; and
conveying the modified response to the user via the at least one of the plurality of platform elements.
2 . The non-transitory computer-readable medium of claim 1 , wherein the operations further include receiving user feedback on the conveyed response.
3 . The non-transitory computer-readable medium of claim 2 , wherein the operations further include calculating a score based on the received user feedback.
4 . The non-transitory computer-readable medium of claim 3 , wherein the operations further include storing, in a data structure, the query, the response of the selected AI agent, the user feedback and the calculated score.
5 . The non-transitory computer-readable medium of claim 3 , wherein the operations further include using the calculated score for a future selection of an AI agent from the pool of a plurality of AI agents.
6 . The non-transitory computer-readable medium of claim 3 , wherein the operations further include, when the calculated score is below a predetermined threshold, selecting an alternative AI agent from the pool of a plurality of AI agents, and transmitting the query to the alternative AI agent.
7 . The non-transitory computer-readable medium of claim 3 , wherein the operations further include running a compliance check on the selected AI agent, using a compliance check plug-in-tool.
8 . The non-transitory computer-readable medium of claim 7 , wherein calculating the score include calculating the score based on the received user feedback and the run compliance check.
9 . The non-transitory computer-readable medium of claim 3 , wherein the calculated score is used to amend a predetermined prompt.
10 . The non-transitory computer-readable medium of claim 1 , wherein selecting the particular AI agent from the pool of a plurality of AI agents includes accessing historical data on an ability of the particular AI agent to provide satisfactory responses in a context similar to the determined context.
11 . The non-transitory computer-readable medium of claim 1 , wherein the operations further include accessing a library associating a plurality of queries with the pool of a plurality of AI agents.
12 . The non-transitory computer-readable medium of claim 11 , wherein selecting the particular AI agent from the pool of a plurality of AI agents, includes selecting from the library the particular AI agent associated with one of the plurality of queries matching the received query.
13 . The non-transitory computer-readable medium of claim 1 , wherein analyzing the query for determining a context includes at least one of:
analyzing and breaking down a language used in the query;
identifying keywords;
classify the query;
inferring an intent;
analyzing details associated with the user, or
a combination thereof.
14 . The non-transitory computer-readable medium of claim 13 , wherein details associated with the user include at least one of a user profile, previous queries of the user, an ongoing conversation, a user location, or a combination thereof.
15 . The non-transitory computer-readable medium of claim 1 , wherein the selected AI agent is an hierarchical agent.
16 . The non-transitory computer-readable medium of claim 1 , wherein the operations further comprise selecting, based on the context, a second particular AI agent from the pool of the plurality of AI agents, to which the query should be sent for response and sending the query to the second particular AI agent.
17 . The non-transitory computer-readable medium of claim 16 , wherein the operations further comprise receiving a second response from the second particular AI agent, and modifying, by the application, the received second response.
18 . The non-transitory computer-readable medium of claim 17 , wherein the operations further comprise merging the modified response and the modified second response to produce a merged response.
19 . The non-transitory computer-readable medium of claim 1 , wherein the plurality of distinct AI agents are operated by one or more other processors, and the at least one processor is communicatively coupled with the one or more other processors via one or more networks.
20 . The non-transitory computer-readable medium of claim 1 , wherein the context is based in part on information associated with the at least one of the plurality of platform elements, and wherein the context is stored for later use by the application or by the plurality of AI agents.
21 . The non-transitory computer-readable medium of claim 1 , wherein the at least one of the plurality of platform elements comprises a table, a dashboard, a text document, a workflow manager, or a marketplace application.
22 . The non-transitory computer-readable medium of claim 21 , wherein the at least one of the plurality of platform elements comprises at least one of a plurality of platform sub-elements, the at least one of a plurality of sub-elements comprising at least one of a column or a cell associated with the table, a widget associated with the dashboard, or a workflow block associated with the workflow manager.
23 . A method for improving quality of Artificial Intelligence responses, the method comprising:
accessing an application that employs AI functionality, the application including a user interface and a plurality of platform elements, wherein each of the plurality of platform elements is configurable to communicate with at least one of a plurality of AI agents;
receiving from a user, via at least one of the plurality of platform elements, a query for which a response is sought from an AI agent in the plurality of AI agents;
analyzing the query for determining a context;
based on the context, selecting a particular AI agent from a pool of the plurality of AI agents, to which the query should be sent for response, by accessing a repository associating a plurality of contexts with differing AI agents in the pool;
directing the query to the selected AI agent;
receiving a response from the selected AI agent;
modifying, by the application, the received response; and
conveying the modified response to the user via the at least one of the plurality of platform elements.
24 . The method of claim 23 , wherein the operations further include receiving user feedback on the conveyed response.
25 . The method of claim 24 , wherein the operations further include calculating a score based on the received user feedback.
26 . A system for improving quality Artificial Intelligence responses, the system comprising:
at least one processor configured to:
access an application that employs AI functionality, the application including a user interface and a plurality of platform elements, wherein each of the plurality of platform elements is configurable to communicate with at least one of a plurality of AI agents;
receive from a user, via at least one of the plurality of platform elements, a query for which a response is sought from an AI agent in the plurality of AI agents;
analyze the query for determining a context;
based on the context, select a particular AI agent from the pool of a plurality of AI agents, to which the query should be sent for response, by accessing a repository associating a plurality of contexts with differing AI agents in the pool;
direct the query to the selected AI agent;
receive a response from the selected AI agent;
modify, by the application, the received response; and
convey the modified response to the user via the at least one of the plurality of platform elements.