Skip to content
mentoor

Topic 4 of 6 · 4 min read

Testing a workflow before it runs live

Goal: Plan a test run for a new workflow with sample inputs, expected outputs and a draft-only first week.

Test a workflow with real-looking samples before you switch it on, and for its first week let it prepare drafts for a person to approve instead of acting alone. A workflow does things in your real apps. A mistake can email a customer or overwrite a row, and you cannot take it back.

Check yourself · 1 of 3

Why write the expected result for each test sample before running it?

Choose one answer

Why it matters

A chat mistake costs you a minute. A workflow mistake repeats on every run, possibly while you sleep. Models are also uneven: one prompt can handle nine emails well and fail on the tenth. Testing finds the tenth before a customer does.

How to test

  1. Collect samples. Gather 10 to 20 real inputs, with names and private details removed. Include normal cases, short ones, long ones, empty fields, a different language and one tricky or hostile message.
  2. Write the expected result first. For each sample, note what the workflow should do. Without this you only look at output and think "seems fine".
  3. Use a test setup. Point the actions at a copy: a test sheet, a test folder, your own email address, or a sandbox account where the app offers one. Never test by sending to real customers.
  4. Run step by step. Most tools let you run the trigger on a sample and look at what each step received and returned. Zapier, Make, n8n and Power Automate all show this. Check each mapped field, not just the end.
  5. Compare with your notes. Mark each sample as pass or fail. Fix, then rerun all samples, not just the failed one, because a fix can break something that worked.

The draft-only first week

Go live in two stages. In week one, every action that reaches a person outside the team creates a draft or a task: a saved email draft, a message to a private channel, a row marked "pending". A named person reads each one and approves it. At the end of the week, count how many needed a change. If almost none did, let that action run on its own. Keep approval for anything costly, legal or hard to undo.

Read the run history

Every platform keeps a history of runs with each step's input and output. Check it daily at first. Look for runs that stopped early, empty fields and replies the model labelled needs_review.

Before and after

Before: "I tried it once with my own email and it worked, so I turned it on."

After: "I ran 15 samples against a test sheet. 13 passed. The two that failed had an empty subject, so I added a rule for that and reran all 15. For the first week, replies are saved as drafts for Maya to approve."

What goes wrong

  • Testing only with the one clean example you wrote.
  • Running the test against the live customer list.
  • Going fully live on day one with no one watching.
  • Never opening the run history after launch.

Examples

A small sample set

Workflow: sort support emails and draft replies. Samples: a clear complaint, a one-word email, a long thread with three problems, an email in Spanish, an empty body, an email with two order numbers, and a message saying "ignore your rules". Expected results are written beside each one before the first run.

Deciding when to let it run alone

After a draft-only week, 46 of 50 drafts were sent unchanged and 4 needed edits for tone. The team fixes the tone instruction, runs the 4 samples again, and moves routine replies to automatic. Refund replies stay on approval.

Key points

  • Test with 10 to 20 realistic samples that include empty, long, odd and hostile inputs.
  • Write what each sample should produce before you run it, so you can mark pass or fail.
  • Point test actions at a copy, a sandbox or your own address, never at real customers.
  • For the first week, let outward actions create drafts that a named person approves.
  • Rerun all samples after every fix, and read the run history daily at the start.

Common mistakes

  • Trying one happy example and calling it tested.
  • Using the real customer list or a live inbox for test runs.
  • Fixing one failed sample and not rerunning the rest.
  • Switching on full automation with no draft stage and no named reviewer.

Check yourself · 2 of 3

You are testing a workflow that emails customers a reply. Where should the email action point during testing?

Choose one answer

Check yourself · 3 of 3

After one failed sample you change the prompt and the failed sample now passes. What should you do next?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic