Get startedGet started for free

Add validation to a webhook workflow

Your Acme Corp webhook workflow is receiving orders, but there's a problem — some requests arrive with missing data. Before processing anything, you need to validate that each incoming payload contains the required fields and return an appropriate response.

You'll extend the existing webhook workflow by adding an If node that checks whether the email field is present. Each branch prepares its own response data using Edit Fields, and both feed into a single Respond to Webhook node — valid requests get a success message, invalid ones get an error.

This exercise is part of the course

Intermediate Workflow Automation with n8n

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise