Every automation fails eventually. The goal is to recover without redoing everything.
Design steps so they can be repeated safely. Running the same step twice should not create a second record or send a second message.
Save progress as you go, so a restart picks up where it stopped rather than at the beginning.
Add a short retry with a pause for temporary problems, and a clear alert for the ones that need a person.
Keep a list of failed items with the reason, so you can fix and rerun them.
Test by breaking a step on purpose once.
How do you recover from failures?