| CPC G06F 21/6218 (2013.01) | 20 Claims |

|
1. A method for data protection and routing when using artificial intelligence models, comprising:
storing provider restrictions that correspond to categories of restricted subject matter for providers of AI services, wherein the providers include a first provider and a second provider;
receiving an input at a gateway, from an application executing on a user device, the application being configured to utilize a first model at the first provider;
detecting, in the input, a first category of restricted subject matter, wherein the first category corresponds to a first provider restriction of the first provider;
based on a management rule, modifying the input with a reversible transformation, including replacing a portion of the input with a contextual placeholder;
injecting a prompt for inclusion with the input, the injected prompt related to the first category of restricted subject matter;
routing the modified input and the injected prompt to the second provider;
receiving an output from the second provider;
modifying the output by at least:
adding a message to the output related the injected prompt; and
replacing the contextual placeholder with the portion of the input;
causing the output to display on the user device;
preventing transmission of a second input to the first provider; and
causing the user device to receive an indication that the first provider does not allow the first category of restricted subject matter,
wherein the indication also identifies the second provider as a destination for the second input as a result of the prevented transmission.
|