Custom API Calls in Super Agents
This article explains how to configure custom API calls in Super Agents, allowing your AI agent to connect to external services and use live data during conversations.
You'll learn how to set up API endpoints using the Super Agent Builder, configure authentication and parameters, test requests, select response fields, and enable Super Agents to execute API calls automatically when needed.
What Are Custom API Calls in Super Agents?
Custom API calls enable Super Agents to connect to external APIs and retrieve or send data during live conversations. The Super Agent can determine when an API call is relevant, gather required information from the contact, execute the request securely, and use selected response fields in its answers.
This capability transforms Super Agents from conversational assistants into intelligent automation tools that can interact with third-party systems, databases, and services in real time.
Custom API calls work seamlessly within the conversation flow. The Super Agent recognizes when external data is needed, collects any missing parameters through natural conversation, executes the API request, and incorporates the response into its reply—all without breaking the conversational experience.
Key Benefits
Custom API calls unlock powerful automation and data integration capabilities for Super Agents.
How Custom API Calls Work
Custom API calls follow a four-stage execution process that integrates seamlessly with the conversation flow.
The Super Agent evaluates the conversation context and determines whether an API call is relevant based on the instructions you provide. For example, if a contact asks about order status, the Super Agent recognizes that it needs to query an order tracking API.
The Super Agent checks whether it has all required information to execute the API call. If any parameters are missing (such as an order number or customer ID), the Super Agent asks the contact for the information naturally during the conversation.
Once all required parameters are collected, the Super Agent places them into the correct request fields (path parameters, query parameters, headers, or request body) and executes the API call securely using the configured authentication method.
The Super Agent receives the API response, extracts the selected response fields you configured, interprets the data, and continues the conversation using the result. The response is presented naturally as part of the Super Agent's reply.
Setting Up Custom API Calls Using the Builder
The Super Agent Builder can configure API calls for you through a conversational interface. This method is ideal when you want to quickly set up an API connection without manually configuring each field.
Navigate to the Super Agents section in HighLevel and open the saved Super Agent you want to enhance with API capabilities.
Open the Builder interface for your Super Agent. This is the conversational configuration tool that understands natural language instructions.
Tell the Builder which API you want to connect and what the Super Agent should do with it. For example: "I want to connect to the Order Status API at https://api.example.com/orders/{orderId} to check order statuses when customers ask about their orders.
The Builder configures the API call including the endpoint URL, request method (GET, POST, etc.), required parameters, request body structure, authentication method, and usage instructions. Review the configuration to ensure it matches your requirements.
Test the API call to verify it works correctly, select which response fields the Super Agent should use, and enable the API call. The Super Agent can now use this API connection during conversations.
The API call is configured and ready to use. The Super Agent will determine when to execute the call based on the instructions provided by the Builder.
Configuring API Calls Manually
You can configure custom API calls manually by enabling the Custom API option in your Super Agent configuration panel. This method gives you complete control over every aspect of the API request.
Select the HTTP method for your API call: GET (retrieve data), POST (create data), PUT (replace data), PATCH (update data), or DELETE (remove data).
Enter the full API endpoint URL. Include path parameter placeholders using curly braces, such as https://api.example.com/orders/{orderId}.
Define path parameters (values inserted into the URL path) and query parameters (values appended to the URL after a question mark). Specify parameter names and provide descriptions to help the Super Agent understand what information to collect.
Add custom headers required by the API, such as Content-Type or Accept headers. Headers are sent with every request.
For POST, PUT, and PATCH requests, configure the JSON request body structure. Define the fields the Super Agent should populate based on information collected from the contact.
Select the authentication method: API Key (header or query parameter), Bearer Token (OAuth), Basic Authentication (username and password), or No Authentication for public endpoints.
Provide clear instructions defining when the Super Agent should use this API call. Describe the conversation scenarios, triggers, or contact requests that should cause the Super Agent to execute this API call.
Write detailed usage instructions. The clearer your instructions, the more accurately the Super Agent will determine when to use the API call.
Testing and Selecting Response Fields
Before enabling a custom API call, you can test it to verify the configuration and select which response fields the Super Agent should use.
Enter test values for all required parameters (path parameters, query parameters, and request body fields). Use realistic values that will return a valid response from the API.
Click the test button to execute the API call. The system sends the request to the API endpoint using your test values and authentication credentials.
The test interface displays four preview sections: the complete request details, the cURL command equivalent, the HTTP status code, and the full JSON response from the API.
Review the API response and select which fields the Super Agent should receive and use in conversations. Selecting specific fields keeps the result focused and helps the Super Agent understand the data structure.
Only select response fields that are relevant to the Super Agent's task. Including too many fields or unnecessary data can confuse the Super Agent and reduce response quality.
How Super Agents Use APIs in Conversations
Once a custom API call is configured and enabled, the Super Agent can use it naturally during conversations without requiring manual intervention.
Automatic Relevance Detection: The Super Agent evaluates the conversation context against the usage instructions you provided. When it determines an API call is relevant, it initiates the execution process automatically.
Natural Information Gathering: If any required parameters are missing, the Super Agent asks the contact for the information using natural conversation. For example, if the API requires an order ID, the Super Agent might say "I'd be happy to check your order status. Could you provide your order number?"
Automatic Field Mapping: The Super Agent places collected information into the correct request fields. If the contact provides an order number, the Super Agent automatically inserts it into the path parameter, query parameter, or request body field you configured.
Secure Execution: The API call executes using the authentication credentials you configured. The Super Agent sends the request to the external API, receives the response, and extracts the selected response fields.
Conversational Response: The Super Agent interprets the API response data and incorporates it into its reply naturally. For example, "I checked your order #12345. It shipped yesterday and is expected to arrive on Friday."
Frequently Asked Questions
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article