Roboteka
Roboteka · Robots · Random employee from list or department

Random employee from list or department

The Random employee from list or department robot picks one random active employee from a given department or an explicit list of IDs in Bitrix24 (Alaio) business processes and robots. One employee can be excluded from the pool (e.g. the current responsible person). It returns the selected employee ID, name and email, plus a Y/N flag for whether anyone was found.

The robot randomly selects one active employee from a pool, which is handy for round-robin distribution of work among managers in the workflow designer. The pool is defined in two ways: a given department ID takes priority; when no department is set, an explicit list of employee IDs is used. You can additionally exclude one employee from the pool — for example the current responsible person, so the task goes to someone else. Typical use cases: assign a random manager as the responsible person for a new deal or lead; distribute tasks across a department; pick an employee for a review. It returns the selected employee ID, name and email, plus a Y/N flag — if no suitable employee exists the flag is N; check it in the condition of the next step.

What input parameters does the robot accept?

Parameter Type Required? Default
Department ID (takes priority if set) int
List of employee IDs (used when no department is specified) int
Exclude this employee from the pool (e.g. the current responsible person) int

What does the robot return?

Parameter Type
Selected employee ID int
Selected employee name string
Selected employee email string
Employee found (Y/N) string

Scenario: assigning a random manager to a new lead

  1. A new lead is created and a business process starts
  2. The robot picks a random active employee from the sales department, excluding the current responsible person
  3. The selected employee ID is written to the Responsible field in the next step

Related robots

Related articles