AI Help

How do I test an AI workflow in n8n with sample data before activating it?

Test with representative sample inputs and sandbox destinations before activating the workflow. Pinned data behavior can differ from production execution.

Steps to follow

  1. Prepare ordinary, missing-field and failure cases. Keep external writes disabled or directed to test accounts.
  2. Run the workflow manually and inspect each node's input, output and routing. Check any pinned data and remove unintended fixtures.
  3. Run a controlled production-style trigger and verify the destination result before wider activation.

Example in practice

Illustrative example. A support workflow is tested with a normal ticket, an empty message and a simulated lookup failure using a sandbox mailbox.

Related AI help

Official guidance

n8n documentation