Add API actions to your agent
Use the API Function tool to add APIs and actions to your agent, which an LLM can invoke during interactions. This enables agents to interact with other systems, retrieve live data, or trigger actions programmatically. API functions are useful when an agent needs to work with structured servies rather than static data sources or website.
To add API actions:
- On the Tools tab, click API Function.

-
Select the Authentication method.
- If you select API key -
- The AI application includes a unique key in its request to the server.
- The server validates the key to determine if the request is authorized.
- If you select OAuth -
- The user authenticates with the service and grants permission to the AI application.
- The AI application obtains an access token after the user’s consent.
- The AI application then uses the access token to access the user’s resources on their behalf.

- If you select API key -
-
Enter the API and schema details based on the selected authentication method.

- Click Load to generate a summary and list of actions for the API.

- Review and select the required API actions.
