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.
Este exercício faz parte do curso
Intermediate Workflow Automation with n8n
Exercício interativo prático
Transforme a teoria em ação com um de nossos exercícios interativos
Começar o exercício