Skip to content
General Automation

Webhook Enrollment Intake Router with Validation

6 nodes 10 0 Webhook
Download

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. 1.Webhook Trigger accepts POST requests on path education-enrollment-intake-router-intake with response deferred to a response node.
  2. 2.Normalize Input copies $json.body into a new input field and sets source to 'Enrollment Intake Router'.
  3. 3.Validate Input checks that the input field is not empty and routes execution accordingly.
  4. 4.The true branch sends a POST to https://api.example.com/... with a placeholder body parameter and then returns {"status": "accepted"}.
  5. 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

  1. Send a POST request with an empty body to the webhook URL and confirm the {"status": "invalid"} response.
  2. Send a POST request with a non-empty body and confirm the {"status": "accepted"} response after forwarding succeeds.
  3. 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

Webhook Set If HTTP Request

Details

Trigger Webhook
Nodes 6
Apps 4
Views 10
Downloads 0

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (6)

Webhook Trigger

Webhook

#1

Normalize Input

Set

#2

Validate Input

If

#3

Forward To Service

HTTP Request

#4

Respond Success

Webhook

#5

Respond Invalid

Webhook

#6

Source and license

Sticky Note

#7
Stay in the loop

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

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime