How to set up API for Custom Integrations
Custom integrations can be used to connect an external API service that the AI agent interacts with via code-level calls in skills or tools — for example, CRM, internal databases, email systems, delivery services, etc.
⚠️ These integrations are not configured via the Integrations interface but are implemented directly in the skill or tool code.
What Is a Custom Integration?
A custom integration is access to an external API implemented inside a skill or tool, where the AI agent sends HTTP requests using parameters defined by the user. Example use cases include:
- Sending email via a non-standard SMTP server
- Writing data to a CRM
- Calling an internal REST API
To enable flexible configuration, use the Set Environment Variables mechanism.
Where to Configure Parameters
- Go to the desired AI agent’s page.
- Click Advanced Settings.
- In the Set Environment Variables section, click Add +.
- Define the required variables (e.g.,
API_URL
,TOKEN
,LOGIN
,PASSWORD
). - Save your changes and restart the AI agent.
These variables become available in the skill/tool code via os.getenv().
Important:
⚠️ Setting up custom integrations requires Python knowledge and understanding of the platform’s architecture. If you are unsure how to implement an integration, contact the Flametree support team. We’ll help configure it and share best practices.