An electrical CELL (or an "ELECTROLYTIC cell") is used for these reactions. It is a container which has to have a CHEMICAL reaction INVOLVING electrodes. The chemical substances are exposed to electrical power, and the electrolysis reaction happens inside the electrical cell.