Skip to content
Marketing

Webhook Intake Router with Validation and Forwarding

6 nodes 7 0 Webhook
Download

Loading workflow…

Workflow Description

The workflow receives POST requests on a defined webhook path, extracts the request body into an input field, and checks it with an If node; empty payloads are rejected with an invalid JSON response, while non-empty input is forwarded via an HTTP POST to a placeholder API endpoint (api.example.com) and acknowledged with an accepted JSON response. It is a template: the destination URL, body parameter, and generic credential must be configured by the user before real use.

How it works

  1. 1.Webhook Trigger receives POST requests at path content-social-content-idea-intake-router-intake with responseMode set to respond via a Respond to Webhook node.
  2. 2.Normalize Input copies the request body into an input field and adds a fixed source value naming the template.
  3. 3.Validate Input checks that the input field is not empty.
  4. 4.Non-empty input goes to Forward To Service, which sends a POST with a placeholder body parameter to api.example.com using genericCredentialType authentication.
  5. 5.Respond Success returns {"status":"accepted"} after forwarding, while Respond Invalid returns {"status":"invalid"} for empty payloads.

Use cases

  • Template starting point for routing content idea submissions to an internal API endpoint.
  • Gating intake so empty payloads never reach the downstream service.
  • Returning synchronous JSON status responses to the calling client.

Requirements

  • An n8n instance with the workflow activated to accept live webhook traffic, since it is inactive by default.
  • A generic HTTP credential configured and selected on the Forward To Service node for genericCredentialType authentication.
  • Replacement of the placeholder URL and the placeholder body parameter with real endpoint and payload values.

Setup and testing in n8n

  1. Run the workflow in test mode from the n8n editor and send a POST with a JSON body to the displayed test webhook URL.
  2. Verify that a non-empty body produces an accepted response after the HTTP request node executes.
  3. Send a request with an empty body and confirm an invalid response is returned without forwarding.

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 7
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