AI in Bitrix24: Overview of Methods
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The ai section helps connect your own AI service to Bitrix24. The methods in this section allow you to register new services, retrieve their list, and remove selected ones.
Important
Before registration, check the availability of the external handler URL in the completions_url parameter and the requirements for processing requests.
Quick navigation: all methods
What to Consider Before Registration
-
Specify a valid URL in
completions_urlthat returns an HTTP status of200upon verification. -
For the
imagecategory, use asynchronous processing. -
Choose the
categoryvalue based on the service scenario:text,image,audio, orcall. -
Pass additional parameters in
settings.
How to Get Started
-
Prepare the external endpoint.
-
Register the service via ai.engine.register.
-
Verify the registration and service parameters through ai.engine.list.
-
Remove the service via ai.engine.unregister if it is no longer needed.
How Integration Works
Endpoint. The application sends requests from Bitrix24 to the external endpoint via completions_url.
Callback Mechanism. After processing, the service sends the result to callbackUrl and error information to errorCallbackUrl.
Endpoint Template
You can use this template as a basis for your own service.
Connection with the Application and Access
Application. The service is linked to the application via the APP_CODE field. This can be obtained in the response from the ai.engine.list method. In the context of an OAuth application, the list contains only the services of the current application.
Webhook. You can filter services by any APP_CODE through the webhook.
Overview of Methods
Scope:
ai_adminWho can execute the method: administrator
|
Method |
Description |
|
Registers a custom AI service |
|
|
Retrieves a list of registered AI services |
|
|
Removes a registered AI service |