AI Help

How do I create a dry-run mode for an n8n workflow that writes to a CRM?

Use a persisted dry-run flag to route intended writes into a preview path, and verify that every external-write node respects it.

Steps to follow

  1. Define the intended payload and validation steps before the write. Make the run mode explicit in execution data.
  2. Gate all CRM mutations and outbound messages on the mode. In dry-run mode, record a preview with destination IDs and proposed changes.
  3. Test every branch with sandbox data and inspect the CRM for unintended writes before enabling live mode.

Example in practice

Illustrative example. A dry-run lead workflow shows the contact and fields it would update while its write branch is skipped.

Related AI help

Official guidance

n8n documentation