Skip to content
mentoor

Topic 4 of 5 · 4 min read

Designing automations that can be undone

Goal: Write an undo plan for each write action in a workflow, naming how it is reversed and within what time.

For each action an automation takes, decide before launch how you would reverse it, and choose the version that can be reversed. If an action has no undo, it needs a stronger gate.

Check yourself · 1 of 3

Which design makes an automated email step easiest to undo?

Choose one answer

Why it matters

An approval step lowers the chance of a mistake. It does not remove it. A tired reviewer will approve a wrong item, and an automation can run a loop you did not expect. When that happens, what matters is how fast you can put things back. A written plan made in advance is far better than inventing one at 2 a.m. with customers waiting.

How to do it

Go through every action that writes to something: sends, edits, moves, deletes, posts and payments. For each one, write a line with three parts: the action, the way to reverse it, and the time window in which that is possible.

Prefer a reversible version of the action:

  • Draft instead of send. The automation puts the email in your Drafts folder. A person sends it. Nothing leaves until then.
  • Soft delete instead of delete. Move items to a trash or archive folder, or mark them deleted in the database, and purge only after 30 days.
  • Staging instead of live. Write to a copy of the spreadsheet, a test folder or an unpublished page. Promote it after review.
  • Version history. Use tools that keep one, such as Google Docs, Notion or Git. Know how to restore a version.
  • Copy before change. Before a bulk edit, export the affected rows to a backup file with the date in the name.
  • Small batches. Run on 10 records, check, then run on the rest. A bad rule then harms 10, not 10,000.

Some actions cannot be reversed: a sent email, a published and indexed page, a payment already settled. For those, write the best partial answer: a correction email, a takedown request, a refund, and say who does it. Mark the action as irreversible and make sure it has an approval gate and a cap.

Finally, check that the undo works. Restore one real item from the trash before launch. An untested backup is a guess.

Before and after

Before: A cleanup automation deletes every contact marked inactive.

After: It moves inactive contacts to an Archive list and writes their IDs to a dated file. Undo: move them back from Archive, available for 30 days. First run covers 20 contacts, which a person checks before the full run.

What goes wrong

  • No plan until something breaks.
  • An untested backup that turns out to be empty or missing a field.
  • Undo window too short. The mistake is found on day 12 and the trash empties after 7.
  • Cascading effects. Restoring the contact does not undo the "goodbye" email already sent from it.

Examples

Undo table for a contact cleanup

  • Mark contact inactive: restore the field from the dated export, any time.
  • Move to Archive list: move back, 30 days.
  • Send "we miss you" email: irreversible. Needs approval and a cap of 100 per day. A correction email is the fallback.

The team tested the restore with one contact before the first run.

Draft instead of send

A sales assistant writes follow-up emails. Rather than sending, it saves each one to the rep's Drafts folder with the CRM record linked. The rep reads, edits and sends. If the assistant misreads a name for a whole week, 40 wrong drafts are deleted and no customer ever saw one.

Key points

  • Write one undo line per write action: what it does, how it is reversed and for how long.
  • Choose reversible versions: drafts, soft deletes, staging areas, version history and backup copies.
  • Start with a small batch so a bad rule harms few records.
  • Mark truly irreversible actions, such as a sent email, and give them a gate and a cap.
  • Test the undo on one real item before launch, and check the window is longer than your detection time.

Common mistakes

  • Writing the undo plan after the first incident instead of before launch.
  • Never testing that a backup or trash restore actually works.
  • Choosing an undo window shorter than the time it takes to notice a mistake.
  • Forgetting side effects, such as emails already sent, that a restore does not reverse.

Check yourself · 2 of 3

A cleanup automation will remove 3,000 old contacts. Which plan is best?

Choose one answer

Check yourself · 3 of 3

A soft-delete folder is emptied automatically after 7 days. Your team usually notices mistakes after about 2 weeks. What should you change?

Choose one answer

Practice items, not counted towards your mastery.

Start here