Transport request intake webhook with field validation
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.A Webhook node accepts POST requests at transport-intake-lite and waits for a downstream response node.
- 2.Normalize Fields trims the string fields and parses weight_kg, replacing comma decimal separators with dots.
- 3.Validate Required Fields builds a missing_fields array and sets status to ready or needs_review.
- 4.Build Result assembles a normalized_request object alongside status and missing_fields.
- 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
- POST a request with all valid fields and verify the response status is ready.
- POST with a non-numeric weight_kg and confirm it appears in missing_fields and weight_kg is null.
- 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
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 (5)
Webhook
Webhook
Normalize Fields
Set
Validate Required Fields
Set
Build Result
Set
Respond to Webhook
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