The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Webhook Trigger Workflow",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "user-registration",
"responseMode": "lastNode",
"options": {}
},
"id": "webhook-trigger",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"functionCode": "// Validate incoming data\nconst { email, name } = items[0].json;\n\nif (!email || !email.includes('@')) {\n throw new Error('Invalid email address');\n}\n\nif (!name || name.length < 2) {\n throw new Error('Name too short');\n}\n\nreturn [{\n json: {\n ...items[0].json,\n validated: true,\n timestamp: new Date().toISOString()\n }\n}];"
},
"id": "validate-data",
"name": "Validate Data",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
450,
300
]
},
{
"parameters": {
"requestMethod": "POST",
"url": "https://api.example.com/users",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "email",
"value": "={{$json.email}}"
},
{
"name": "name",
"value": "={{$json.name}}"
}
]
}
},
"id": "create-user",
"name": "Create User",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"functionCode": "// Format response\nreturn [{\n json: {\n success: true,\n userId: items[0].json.id,\n message: 'User created successfully'\n }\n}];"
},
"id": "format-response",
"name": "Format Response",
"type": "n8n-nodes-base.function",
"typeVersion": 1,
"position": [
850,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Validate Data",
"type": "main",
"index": 0
}
]
]
},
"Validate Data": {
"main": [
[
{
"node": "Create User",
"type": "main",
"index": 0
}
]
]
},
"Create User": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Webhook Trigger Workflow. Uses httpRequest. Webhook trigger; 4 nodes.
Source: https://github.com/pvdyck/n8n-test-framework/blob/dabf65c294eba226a14b439ef672584f48315473/examples/workflows/webhook-trigger.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
eek-Go v2 (Batch-Then-Review). Uses httpRequest. Webhook trigger; 75 nodes.
This workflow receives webhook requests from a content calendar and uses the X API v2 to publish text posts, threads, image/video posts, and polls, as well as delete existing posts and run a credentia
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c