Testing and validating workflows

Introduction to Workflow Automation with n8n

Frank Nillard

Founder, Tellyt.ai

Why testing matters

  • Testing ensures steps work as expected.
  • Catch and fix issues early to save time.
  • One failed step can break the workflow.
  • Use Execute Node to test individual steps in isolation.

chain_breaking.jpg

Introduction to Workflow Automation with n8n

Test a node

 

Onboarding_workflow.png

Introduction to Workflow Automation with n8n

Test a node

 

Issue_with_slack.png

By testing each step, we can spot and fix errors early.

Introduction to Workflow Automation with n8n

Test a node

  • It might seem manual, but this approach saves time.
  • Know exactly where things break and why.

Identify_errors.png

Introduction to Workflow Automation with n8n

Validating your data

Scanner.png

Introduction to Workflow Automation with n8n

Validating your data

  • Do the fields contain what we expect?
  • Is the format correct?
  • Does the data follow the right rules or patterns?

 

  • Ensure the result makes sense!

Makes_sense_icon.jpg

Introduction to Workflow Automation with n8n

Validation in e-commerce

Online_Store_Image.png

 

Discount_code_images.png

Introduction to Workflow Automation with n8n

Validation in e-commerce

ECommerce_Coupon.png

Introduction to Workflow Automation with n8n

Validation in e-commerce

ECommerce_Coupon_Check.png

Introduction to Workflow Automation with n8n

When testing succeeds, but validation fails

 

Testing_Image.png

 

Validation_Image.png

Introduction to Workflow Automation with n8n

When testing succeeds, but validation fails

  • Discount generation worked - test passed

ECommerce_Coupon.png

Introduction to Workflow Automation with n8n

When testing succeeds, but validation fails

  • Discount generation worked - test passed
  • Data broke a business rule - validation failed
  • Add simple checks before proceeding
  • If a rule fails - stop process or trigger a correction path
  • Prevent errors and data quality issues

ECommerce_Coupon_Check.png

Introduction to Workflow Automation with n8n

Why both matter

Testing_only.png

  • Testing helps catch issues early and verify logic.
Introduction to Workflow Automation with n8n

Why both matter

Testing_plus_validaiton.png

  • Testing helps catch issues early and verify logic.
  • Validation keeps data clean and trustworthy.
Introduction to Workflow Automation with n8n

Why both matter

Complete_testing_and_validation_formula.png

  • Testing helps catch issues early and verify logic.
  • Validation keeps data clean and trustworthy.
  • Combining both make systems reliable, predictable, and scalable.
Introduction to Workflow Automation with n8n

Let's practice!

Introduction to Workflow Automation with n8n

Preparing Video For Download...