Smart Processes: 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.
A Smart Process is a versatile CRM entity that can be customized to meet the needs of a company. For each Smart Process, Bitrix24 creates a separate section in the CRM. In this section, you can configure Sales Funnels and stages, Automation rules, fields, and connections to other Bitrix24 entities.
Quick Navigation: All Methods and Events
User Documentation: Smart Process Automation in CRM
Working with a Smart Process
- Create and configure the Smart Process — methods crm.type.*.
- Set up Sales Funnels and stages — crm.category.* for funnels and crm.status.* for stages.
- Add custom fields — userfieldconfig.*.
- Configure the item detail form — crm.item.details.configuration.*.
- Create the first items within the Smart Process — crm.item.*.
The Smart Process can be transferred from the CRM section to the Automation section via digital workplaces.
Connections with Other Entities
CRM Entities. A Smart Process can be linked to leads, deals, and other CRM entities. The linked entity will be accessible through the field parentId{ID}, where {ID} is the numeric identifier of the CRM entity.
Client. This field in the Smart Process detail form consists of the associated company and contacts. There is one company in the field; change the linked company through the companyId field. There can be multiple contacts in the "Client" field. Interaction with contacts is managed through the contactIds field — pass an array of contact IDs in this field. Enable the field with the isClientEnabled option in the crm.type.add or crm.type.update methods.
Your Company Details. Specify your company ID in the mycompanyId field so that its details are automatically used in documents. You can obtain your company ID using the crm.item.list method for the company object with a filter on the isMyCompany field. Enable the field with the isMycompanyEnabled option in the crm.type.add or crm.type.update methods.
Products. To add, modify, or delete product items in the Smart Process, use the crm.item.productrow.* methods. Enable the products tab and the "Amount and Currency" field with the isLinkWithProductsEnabled option in the crm.type.add or crm.type.update methods.
Users. The Smart Process is linked to users by numeric identifiers in the fields:
createdBy— created by,updatedBy— updated by,movedBy— who changed the stage,assignedById— responsible for the item,observers— observers. Enable the field with theisObserversEnabledoption in the crm.type.add or crm.type.update methods.
You can obtain the user ID and data using the user.get method.
Documents. To create a document from a template, upload a new template for the Smart Process, or configure the document numbering, use the crm.documentgenerator.* methods. Enable document handling in the Smart Process with the isDocumentsEnabled option in the crm.type.add or crm.type.update methods.
Tasks. Smart Process items can be linked to tasks. Use the tasks.task.* methods to work with tasks. To make the linking option available, enable and configure the isUseInUserfieldEnabled option in the crm.type.add or crm.type.update methods.
Calendar Events. Smart Process items can be linked to calendar events. Use the calendar.event.* methods to work with the calendar. To make the linking option available, enable and configure the isUseInUserfieldEnabled option in the crm.type.add or crm.type.update methods.
User Documentation
Smart Process Item Detail Form
The main workspace in a Smart Process is the "General" tab of the detail form. It consists of two parts:
-
The left part contains fields with information. If the system fields are insufficient, you can create your own custom fields. Fields allow you to store information in various data formats: string, number, link, address, and others. To create, modify, retrieve, or delete custom fields in the Smart Process, use the group of methods userfieldconfig.*.
-
The right part contains the Smart Process timeline. Here, you can create, edit, filter, and delete CRM activities — a group of methods crm.activity.*, and timeline records — a group of methods crm.timeline.*.
You can manage the parameters of the Smart Process detail form through the group of methods crm.item.details.configuration.*.
User Documentation
Widgets
You can embed an application into the Smart Process detail form. This allows you to use the application without leaving the item detail form.
There are two embedding scenarios:
-
Use special embedding locations. For example, by creating your own tab.
-
Create a custom field where the interface of your application will be loaded.
Embedding Locations for Smart Processes
Replace XXX with the numeric identifier of the specific Smart Process, for example, CRM_DYNAMIC_183_DOCUMENTGENERATOR_BUTTON.
-
CRM_DYNAMIC_XXX_DETAIL_TAB— tab in the detail form of the CRM item -
CRM_DYNAMIC_XXX_DETAIL_ACTIVITY— button above the item detail timeline -
CRM_DYNAMIC_XXX_DETAIL_TOOLBAR— item in the dropdown menu of the top button in the detail form -
CRM_DYNAMIC_XXX_DOCUMENTGENERATOR_BUTTON— item in the dropdown menu of the document generator -
CRM_DYNAMIC_XXX_LIST_MENU— item in the context menu in the list of items -
CRM_DYNAMIC_XXX_LIST_TOOLBAR— item in the dropdown menu above the list of items -
CRM_DYNAMIC_XXX_ACTIVITY_TIMELINE_MENU— item in the context menu of the activity in the item detail form -
CRM_DYNAMIC_XXX_ROBOT_DESIGNER_TOOLBAR— item in the dropdown menu of the top button of the Automation rule designer
Typical Use-Cases and Scenarios
Smart Process Identifiers
Each Smart Process has four types of identifiers. Use these identifiers to apply a method to a specific Smart Process.
-
Numeric identifier of type
130. Obtain it using the crm.enum.ownertypeIDor crm.type.listentityTypeId. -
Symbolic code of type
DYNAMIC_130— crm.enum.ownertypeSYMBOL_CODE. -
Short symbolic code of type
T82— crm.enum.ownertypeSYMBOL_CODE_SHORT. -
Custom field object type
CRM_13— crm.type.list. Substitute theidfrom the method result into the formulaCRM_ + {ID}.
Overview of Methods and Events
Scope:
crmWho can execute the method: depending on the method
Smart Processes
|
Method |
Description |
|
Creates a new Smart Process |
|
|
Updates the Smart Process |
|
|
Returns the Smart Process by id |
|
|
Returns the Smart Process by entityTypeId |
|
|
Returns a list of Smart Processes |
|
|
Deletes the Smart Process |
|
|
Returns the fields of the Smart Process |
|
Event |
Triggered |
|
When a Smart Process is created |
|
|
When a Smart Process is updated |
|
|
When a Smart Process is deleted |
Items
The CRM object identifier entityTypeId — numeric identifier type, for example, 128.
|
Method |
Description |
|
Creates a new item |
|
|
Updates the item |
|
|
Returns the item by Id |
|
|
Returns a list of items by filter |
|
|
Deletes the item |
|
|
Returns the fields of the item |
|
Event |
Triggered |
|
When a Smart Process item is created |
|
|
When a Smart Process item is deleted |
|
|
When a Smart Process item is updated |
Sales Funnels
The CRM object identifier entityTypeId — numeric identifier type, for example, 128.
|
Method |
Description |
|
Creates a new Sales Funnel |
|
|
Updates the Sales Funnel |
|
|
Returns the Sales Funnel by Id |
|
|
Returns a list of Sales Funnels |
|
|
Deletes the Sales Funnel |
|
|
Returns the fields of the Sales Funnel |
Custom Fields
The CRM object identifier entityId — custom field object type, for example, CRM_1.
|
Method |
Description |
|
Creates a custom field |
|
|
Modifies the field settings |
|
|
Returns the settings of the custom field by identifier |
|
|
Returns the set of available custom field types for the module |
|
|
Returns a list of custom field settings |
|
|
Deletes the custom field |
Managing Detail Form Settings
The CRM object identifier entityTypeId — numeric identifier type, for example, 128.
|
Method |
Description |
|
Sets a common detail form for all users |
|
|
Retrieves the parameters of the item detail form |
|
|
Resets the parameters of the item detail form |
|
|
Sets the parameters of the item detail form |
Product Items
The CRM object identifier ownerType — short symbolic code type, for example, T80.
|
Method |
Description |
|
Adds a product item |
|
|
Updates a product item |
|
|
Retrieves information about a product item by id |
|
|
Links a product item to a CRM object |
|
|
Retrieves a list of product items |
|
|
Retrieves a list of unpaid products |
|
|
Deletes a product item |
|
|
Retrieves a list of product item fields |