Pacing and pacemakers have been with us decades now.
For individuals with low pulse/ heart block
a fib etc symptoms of syncope
or death can occur.
Electrical wires can be placed trans venous or on occasion trans thoracic to the heart surfaces.
These are tested for best thresholds, and attached to selelected pacemaker
/acid or device with battery internalized to send stimulus to the h.