Calling APIs on user's behalf allows you to use secure standards to call APIs from tools, integrating your app with other products. These examples demonstrate how to integrate Auth0 AI SDK with AI SDK, LangChain, LlamaIndex, Genkit and others to call APIs on behalf of users. For more information, refer to the documentation.
- User Request: A user submits a request to execute a tool that requires calling an external API.
- Permissions check: Auth0 AI SDK verifies the user's permissions and checks the external API authorization requirements.
- Response Generation: Base on the required permissions, the system generates a response tailored to request users's explicit authorization.
- User Authorization: The user reviews the request and provides consent if they choose to proceed.
- Token Generation: The system generates a token for the user to access the external API.
- API Call: The system calls the external API on behalf of the user, using the tool parameters from the User's original request.
- Tool Execution: The system executes the tool, incorporating the API response into the final output.
- User Response: The user receives the final output, which may include information retrieved from the external API.
Below is a high-level workflow:
Note
Coming soon...
