Function Calling

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.

How To Use It

  1. Access AI Agents: Navigate to the AI Agents section within the platform.

  2. Select Agent: Choose the "Function Calling" agent from the available options.

  3. Deploy Agent: Click the "Deploy" button to initiate the agent creation process.

  4. 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.

  5. API Configuration

    1. API Endpoint: Specify the target API's URL.

    2. HTTP Method: Select the appropriate HTTP method (GET, POST, PUT, PATCH, DELETE).

    3. Request Body: Construct the request body using the provided format options (JSON, XML, etc.).

    4. Headers: Define custom headers for the request.

    5. Query Parameters: Add query parameters to the URL.

    6. Test Request: Validate the API configuration by sending a test request.

  6. Execution

    1. Trigger Activation: When the defined AI criteria are met, the agent is activated.

    2. API Call: The agent sends the configured API request to the specified endpoint.

    3. Response Handling: The agent processes the API response based on predefined rules or user-defined actions.

Last updated