This article describes the problem of automatic regulation of reactive power using electronic devices FACTS (Flexible AC Transmission Systems): static synchronous compensator (STATCOM) and unified power flow controller (UPFC). With the help of a complex writing form, the following are determined: voltages at the installation nodes of the FACTS device and loads, currents of loads, power sources and electronic compensators in case of voltage instability at the load node of the electrical network. Voltages and currents are determined using the node-voltage method. The task of STATCOM is partial or full compensation of reactive power. During the reduction of the voltage at the load node, the reactive power generated by the power source decreases. The STATCOM should partially or fully compensate for the reactive power imbalance as quickly as possible. However, at the same time, it is not possible to fully compensate for the voltage reduction. A series-parallel or parallel-series UPFC can be used to solve this problem. As a result of using the UPFC, it is possible to automatically raise the voltage level to acceptable values with the help of the UPFC series compensator. The analysis shows that the parallel-serial UPFC is characterized by the stability of operation. In the case of using a series-parallel UPFC, there are restrictions on the ability to adjust the imaginary voltage component of the series compensator, since the angle of the voltage vector changes, which causes a failure in the operation of the regulator of the parallel compensator UPFC.