It is increasingly common for companies to use artificial intelligence mechanisms to manage work. This study examines the health hazards caused by these new forms of technological management. Occupational risks can be reduced if they are taken into account when programming an algorithm. This study confirms the need for algorithms to be correctly programmed, taking account of these occupational risks. In the same way as supervisors have to be trained in risk prevention to be able to perform their work, the algorithm must be programmed to weigh up the occupational risks – and when such features do not exist, steps must be taken to prevent the algorithm being used to direct workers. The algorithm must assess all (known) factors posing a risk to workers’ health and safety. It therefore seems necessary to incorporate a mandatory risk assessment performed by specialists in the programming of algorithms so that all ascertained risks can be taken into account.