Skip to content
Data & Databases

Transport request intake webhook with field validation

5 nodes 60 10 Webhook
Download

Loading workflow…

Workflow Description

The workflow receives a transport request via POST at path transport-intake-lite, trims the four input fields (pickup and delivery postcodes, pickup date, weight), converts weight to a number, computes which fields are missing, sets status to ready or needs_review, and returns a normalized JSON response. No credentials are required, and the workflow must be activated manually since it is currently inactive.

How it works

  1. 1.A Webhook node accepts POST requests at transport-intake-lite and waits for a downstream response node.
  2. 2.Normalize Fields trims the string fields and parses weight_kg, replacing comma decimal separators with dots.
  3. 3.Validate Required Fields builds a missing_fields array and sets status to ready or needs_review.
  4. 4.Build Result assembles a normalized_request object alongside status and missing_fields.
  5. 5.Respond to Webhook returns HTTP 200 with a Content-Type application/json header.

Use cases

  • Pre-screening transport requests before they enter operational systems.
  • A lightweight validation endpoint for an external form or app submitting transport jobs.
  • Normalizing request payload shape before storage or handoff to another workflow.

Requirements

  • Activate the workflow in n8n so the webhook can receive requests.
  • Send pickup_postcode, delivery_postcode, pickup_date, and weight_kg in the JSON body.
  • No credentials are needed since all nodes are local operations.

Setup and testing in n8n

  1. POST a request with all valid fields and verify the response status is ready.
  2. POST with a non-numeric weight_kg and confirm it appears in missing_fields and weight_kg is null.
  3. POST with empty fields and check status is needs_review with the correct missing_fields list.

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Webhook Set

Details

Trigger Webhook
Nodes 5
Apps 2
Views 60
Downloads 10

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 (5)

Webhook

Webhook

#1

Normalize Fields

Set

#2

Validate Required Fields

Set

#3

Build Result

Set

#4

Respond to Webhook

Webhook

#5

Source and license

Sticky Note

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