Function Calling
Last updated
Last updated
The Function Calling AI Agent is a tool designed to interact with external APIs based on defined criteria. It offers flexibility in configuring API requests, including HTTP methods, request bodies, and headers.
Access AI Agents: Navigate to the AI Agents section within the platform.
Select Agent: Choose the "Function Calling" agent from the available options.
Deploy Agent: Click the "Deploy" button to initiate the agent creation process.
Agent Configuration:
Agent Name: Assign a unique identifier or descriptive name (e.g., "API Connector").
Prompt Description: Briefly outline the agent's purpose (e.g., "Connects to external APIs when user asks to book a meeting").
AI Criteria: Define conditions or events that trigger the agent's activation.
API Configuration
API Endpoint: Specify the target API's URL.
HTTP Method: Select the appropriate HTTP method (GET, POST, PUT, PATCH, DELETE).
Request Body: Construct the request body using the provided format options (JSON, XML, etc.).
Headers: Define custom headers for the request.
Query Parameters: Add query parameters to the URL.
Test Request: Validate the API configuration by sending a test request.
Execution
Trigger Activation: When the defined AI criteria are met, the agent is activated.
API Call: The agent sends the configured API request to the specified endpoint.
Response Handling: The agent processes the API response based on predefined rules or user-defined actions.