Custom API Integration allows you to connect SleekFlow AI modules, such as AgentFlow, with external systems using API documentation files.
With this setup, your AI agent can retrieve external data, trigger actions, or update records during customer conversations. This enables more dynamic workflows that go beyond static Knowledge Base responses.
For example, you can:
- Create payment links through your internal system
- Retrieve customer or membership details from a CRM
- Search products and generate booking links
- Trigger backend workflows based on customer requests
This is useful when your agent needs to interact with real-time data or business systems during a conversation.
Before you begin
Make sure you have:
- Access to the AgentFlow module
- A valid API documentation file in JSON or Swagger format
- API authentication details (API key bearer token), if required
- Access to a Premium or Enterprise plan
Note
- Only JSON and Swagger files are supported.
- Only API key bearer token authentication is supported.
How Custom API Integration works
Custom API Integration defines the API schema that AgentFlow can use.
This includes:
- Inputs: data sent to the API
- Outputs: data returned from the API
- Descriptions: what each field means
- Sources: where input values come from
Custom API integration settings and AgentFlow playbook configuration serve different roles.
Custom API integration settings define the API structure and details, such as endpoints, inputs, outputs, field descriptions, data sources, and authentication.
The AgentFlow playbook defines how the agent uses the API during a conversation, including when to call the API, what information to collect from the customer, and how to use the API response.
Area |
Custom API Integration |
AgentFlow playbook |
What it does |
Defines the API structure AgentFlow can use |
Defines how the agent uses the API during a conversation |
Focus |
Technical setup (inputs, outputs, schema) |
Conversation logic (when to call the API, what to collect, how to respond) |
Example |
Defines a booking_date field and its format |
Tells the agent to ask for the booking date before calling the API |
Where to set it up |
SleekFlow AI → Integration tab |
AgentFlow configuration (Playbook) |
Result |
Makes the API available to the agent |
Ensures the agent uses the API correctly in conversations |
You can follow the steps below to set up your Custom API:
Step 1: Start a new Custom API integration
- Click on the
icon on the left navigation bar to go to the SleekFlow AI page - In the SleekFlow AI page, click on “Integrations” on the top navigation bar
- You will be redirected to the “Integrations” tab
- Click “Add integration” at the top right corner
This opens the setup flow for connecting an external API.
Step 2: Configure the integration using the conversational setup
Use the conversational setup window on the left to define your integration.
Instead of filling out a form, you guide the setup by describing your API and how it should be used.
What you should provide
To get a useful schema, include:
- Your API documentation file (JSON or Swagger), or paste relevant sections
- A short description of what the API does
- The main action you want the agent to perform
For example:
- “This API creates a payment link using customer email and amount”
- “This API retrieves membership details based on customer phone number”
- “This API searches products and returns product name, price, and availability”
Use this template to initiate the chat with the AI Integration Builder if you are not sure what to do:
- This API [what the API does].
- The required inputs are [list of inputs].
- The API returns [list of outputs].
- This should be used when [specific situation in a conversation].
What to focus on when describing the API
Be specific about:
- What inputs are required (e.g. email, date, product ID)
- What the API returns (e.g. payment link, membership tier, product list)
- What the API is mainly used for in a conversation
This helps the system generate a more accurate schema.
What happens next
- The system reads your API documentation and instructions
- It generates a structured schema
- The schema appears in the right-side panel
This reduces the need to manually define every field.
Review the Playbook command name
After the schema is generated, review the Playbook command name for each endpoint in the right-side panel.
The Playbook command name is used when configuring this API in AgentFlow. Use a clear, recognizable name that describes the action the endpoint performs, such as:
/create_payment_link/get_membership_details/search_products.
Use action-based names so it is easy to identify the right command when setting up the AgentFlow playbook later.
Tips
Treat the conversational setup as a schema generator, not a final configuration.
To get better results:
- Start with a clear, simple use case (focus on one main action)
- Avoid describing multiple unrelated endpoints in one setup
- Use plain language instead of technical jargon where possible
You should always review and refine the generated schema in the next step to make sure it is accurate and complete.
Step 3: Review and refine the schema
After the schema is generated, review the fields in the right-side panel before saving the integration.
For each endpoint, check the following sections:
Section |
What to review |
Inputs |
Check the fields the API needs to receive. Make sure each description clearly explains what value should be provided. |
Data Source |
Choose whether the value should be collected from chat or set as a static value. |
Outputs |
Check the fields returned by the API. Make sure each description clearly explains what the field means. |
Expose to AI |
Turn this on only for output fields that the agent should use when generating a response. Turn it off for fields that are irrelevant to the conversation, not needed by the agent, or contain sensitive information. This helps reduce information overload and prevents the agent from using or sharing unnecessary details by mistake.
|
Clear field descriptions help the agent understand how to use the API correctly during a conversation.
Note
The integration setup defines the API fields and descriptions. To control when the agent should collect information or call the API, update the AgentFlow playbook.
Step 4: Define how input values are provided
In the Inputs section, use the Data Source column to choose how each input value should be provided.
In the “Inputs” section, use the Data Source column to choose how each input value should be provided. You can choose “Collect from chat” or “Static value”.
Collect from chat
Select “Collect from chat” when the value should come from the customer during the conversation.
Use this for information that may be different for each customer or request, such as email, booking date, product preference, or order number.
When you use “Collect from Chat”:
- Make sure the field description clearly explains what information is needed.
- Update the AgentFlow playbook so the agent knows when to ask the customer for this information.
- Test the agent to confirm the collected value is mapped to the correct API field.
Static value
Select “Static value” when the same value should be sent every time the API is called.
Use this for fixed values such as a default system parameter, region code, internal flag, or channel identifier.
When you use “Static value”:
- Enter the fixed value in the “Value” field.
- Check that the value matches the format required by your API.
- Save your changes before testing the integration in AgentFlow.
Note
The Data Source controls where the input value comes from. The field description explains what the value means. The AgentFlow playbook controls when the agent should collect or use the value.
Step 5: Save and publish the integration
Before saving, review the integration details to make sure they are accurate.
Check that:
- the endpoint schema is correct
- each input has the right description and data source
- static values are entered correctly, if used
- output descriptions are clear
- only the right output fields are exposed to AI
When you are ready, click “Save”.
After saving, the Custom API integration becomes available for supported SleekFlow AI modules, such as AgentFlow.
Note
You can edit and save the integration again after it is created. After making changes, review and test any AgentFlow playbooks that use this integration.
Managing your Custom API integration
You can manage your Custom API integration once it’s added to SleekFlow.
Follow the steps below to manage your Custom API integrations:
- Click on the
icon on the left navigation bar to go to the SleekFlow AI page - In the SleekFlow AI page, click on “Integrations” on the top navigation bar
- You will be redirected to the “Custom API integration” page, where you will find the Custom API added to your SleekFlow’s workspace
Editing Custom API
Important
Changes to inputs, outputs, or field descriptions may affect how your agent behaves.
After editing an integration, review and test your AgentFlow setup to ensure everything works as expected.
After creating a Custom API integration, you can update its configuration at any time. This allows you to refine inputs, adjust outputs, or update authentication as your API or use case evolves.
To edit a Custom API:
- In the Custom API integration dashboard, locate the Custom API you would like to edit
- Click on the Custom API
- You will be redirected to the Custom API details page
Updating the Integration name
You can rename your Custom API integration to better reflect its purpose. Use a clear and descriptive name so it is easy to identify when selecting the integration in AgentFlow.
Note
Updating the integration name does not affect the API configuration or how it is used in existing AgentFlow setups.
Updating authentication settings
In the “Authentication” section, you can configure or update your API credentials.
- Click “Update key” to modify your API key or bearer token
- Make sure the authentication method matches your API requirements
Changes here affect how all API requests are authorized.
Edit endpoint schema
In the “Endpoint schema section”, you can review the endpoints included in the Custom API integration.

Each endpoint shows the request method, endpoint path, and a short description of what the endpoint does. You can expand an endpoint to review its configuration.
Click “Add / Edit endpoints” to update the endpoint schema, add endpoints, or remove endpoints if your API setup changes.
Update playbook command name
Each endpoint has a Playbook command name.
This is the command name used when configuring the integration in AgentFlow. Use a clear, recognizable name that describes the action, such as /get_available_slots or /create_booking.
If you rename a command that is already used by an agent, review the related AgentFlow setup to make sure the agent still references the correct command.
Edit inputs
In the Inputs section, review the fields that the API needs to receive.
For each input, you can:
- update the description
- choose the “Data source”
- enter a value if the data source is set to Static value
Tips:
- Use “Collect from Chat” when the agent should collect the value from the customer during the conversation.
- Use “Static value” when the same value should be sent every time the endpoint is called.
Input descriptions should clearly explain what value is needed. This helps the agent map collected information to the correct API field.
Edit outputs
In the Outputs section, review the fields returned by the API.
For each output, you can:
- update the description
- turn Expose to AI on or off
Turn on Expose to AI for fields the agent should be able to use in customer replies. Turn it off for fields that are not useful for the conversation or should not be shown to the agent.
Tip: Expose only the output fields that are needed for the agent’s response. This helps keep replies focused and reduces unnecessary information.
Review assigned agents
At the bottom of the page, check Assigned agents to see which agents are currently using this integration.
If an agent is listed, you can manage how the integration is used from the agent setup.
Save your changes
After making updates, click “Save changes” at the bottom of the page.
Your updates will apply to the Custom API integration. After saving, review and test any AgentFlow setups that use this integration, especially if you changed command names, inputs, outputs, or exposed fields.
Deleting Custom API
To delete a Custom API:
- In the Custom API integration dashboard, locate the Custom API you would like to delete
- Click on the
icon next to the Custom API - Select “Delete”
- A warning message will appear. Click “Delete” to confirm the action