Webhook Enrollment Intake Router with Validation
Loading workflow…
Workflow Description
This workflow receives POST requests on a webhook, normalizes the payload by copying the body field into input and tagging a fixed source value, and validates that the input is non-empty. The true branch forwards the request to an external HTTP endpoint with a placeholder body and responds with accepted, while the false branch responds with invalid without any outbound call.
How it works
- 1.Webhook Trigger accepts POST requests on path education-enrollment-intake-router-intake with response deferred to a response node.
- 2.Normalize Input copies $json.body into a new input field and sets source to 'Enrollment Intake Router'.
- 3.Validate Input checks that the input field is not empty and routes execution accordingly.
- 4.The true branch sends a POST to https://api.example.com/... with a placeholder body parameter and then returns {"status": "accepted"}.
- 5.The false branch returns {"status": "invalid"} directly with no external call.
Use cases
- Starter intake gateway that screens enrollment submissions before handing them to a backend service.
- Base template for validating inbound form payloads via webhook before downstream processing.
Requirements
- Activate the workflow so the webhook URL becomes reachable.
- Configure generic HTTP credentials for Forward To Service and replace the placeholder URL and REPLACE_WITH_YOUR_VALUE body parameter with real values.
- Access to an external service able to accept the forwarded POST requests.
Setup and testing in n8n
- Send a POST request with an empty body to the webhook URL and confirm the {"status": "invalid"} response.
- Send a POST request with a non-empty body and confirm the {"status": "accepted"} response after forwarding succeeds.
- Inspect n8n execution logs to verify which branch and nodes ran in each case.
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (6)
Webhook Trigger
Webhook
Normalize Input
Set
Validate Input
If
Forward To Service
HTTP Request
Respond Success
Webhook
Respond Invalid
Webhook
Source and license
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides