Setting up Bitrix24 CRM automation (robots)

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1173
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    811
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    564
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    745
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    655
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    976

Configuring Bitrix24 CRM Automation (Robots)

A manager forgot to send a proposal, did not call the day after the meeting, did not create a task to prepare documents. Robots in Bitrix24 CRM close these gaps — but only if they are configured for the real process, not just ticked off as done.

How Robots Work Technically

CRM robots are instances of \Bitrix\Bizproc\Automation\Robot, launched by the business process engine (bizproc). They are tied to a specific pipeline stage and fire when an entity (deal, lead, smart process) transitions to that stage.

Storage: robot configuration is in the table b_bizproc_workflow_template, instances of running processes — in b_bizproc_workflow. On stage transition, a workflow instance is created and robot actions are executed sequentially or with a delay.

This is important to understand: a robot is not a trigger, it is a separate asynchronous process. If the server is overloaded or the \Bitrix\Main\Application::runModuleAgents agent is not running — robots will queue up and execute with a delay.

Key Robots and Their Configuration

Send email (CrmSendEmailRobot) — the most commonly used. Configuration: email template, sender (portal mail or personal inbox), recipient (entity field or fixed address). Variables are substituted via {=Document.FIELD_NAME}.

Common mistake: the email is sent from the technical address noreply@bitrix24... instead of the corporate one. Solution — configure the portal's outgoing mail in Settings → Mail → Outgoing mail.

Create task (CrmAddTaskRobot) — creates a task in the tasks module linked to the deal. Important: the task is created on behalf of the deal's responsible person, if no explicit task owner is set.

Change field (CrmUpdateFieldRobot) — changes any field of the entity. Used for automatically setting tags, source, UTM parameters when converting a lead.

Call webhook (RestActivityRobot) — sends a POST request to an external URL with entity data. The foundation for integrations with external systems without programming.

Delays and Conditions

Robots support execution delay: "after 1 day from stage transition" or "at a specific time". Implemented via the \Bitrix\Bizproc\Automation\Agent agent with the next run time recorded in b_agent.

Execution conditions — the robot fires only if a condition on the entity field is met. For example: "send SMS only if the Phone field is filled in" or "create task only if deal value exceeds 100,000".

Conditions are set directly in the robot configuration via the condition builder — no programming required.

Typical Pipeline Automation Scheme

Example for a SaaS product sales pipeline:

  • "New lead" stage: robot "Notify responsible" + task "Call within 2 hours"
  • "Qualification" stage: delay 1 day → email with presentation
  • "Proposal sent" stage: delay 2 days → task "Follow up on proposal decision"
  • "Won" stage: thank-you email + webhook to account activation system

Total 6–8 robots, configuration takes 3–4 hours including testing each transition.

Debugging Robots

If a robot did not execute — check CRM → Automation → Log. Every run, its status, and any errors are visible there. A second tool is Settings → Tools → Agent queue, where you can manually trigger a stuck agent.