Rules adds checks to stage changes of leads and deals in Bitrix24 (Alaio). You describe a condition in plain words, the app turns it into a rule, and the check runs when a card moves to a stage you selected.
How do I check conditions when a deal changes stage?
A deal often should not move forward until certain things are done: the contact has a phone number or an email address, all approvals are finished, the company details are filled in. Checks like these are usually written by a developer. The built-in options are covered in required fields in Bitrix24.
With Rules, you write the condition in the Prompt field, and the AI assistant generates the code for it. You test the generated rule and save it only when it works correctly.
How Rules works
- Add a field of the Rule type to the lead or deal card and open its settings.
- Select the data sources and describe the condition in the Prompt field.
- Generate the code, run the check and save the rule if it works as expected.
- In Mandatory at Stages, choose the stages where the check is required.
- When a user moves the card to one of those stages, a window appears to verify the conditions.
Typical rules
- The contact has a phone number or an email address.
- The deal has passed all approvals: no business processes are still active on it.
- The business process task is completed; otherwise the user sees an error.
- A lead cannot be moved until the employee has started the workday.
- A deal cannot be moved until the contact and company details are filled in.
The app documentation has the generated code for these examples, along with other rules and prompts.
Frequently asked questions
How do I make a field required at a specific deal stage in Bitrix24?
In Rules, describe the check in plain words, for example that the contact must have a phone number, and select the stages in Mandatory at Stages. When a user moves the deal to one of them, a window shows whether the condition is met.
Can I stop a deal from moving forward until a business process is finished?
Yes. A rule can require that the deal has no active business processes, or that a business process task is completed, and show an error otherwise.
Do I need to write code to create a CRM rule?
No. You write the condition in the Prompt field, the AI assistant generates the code, and you check it before saving.