02 · Basic
Exposes a public URL that answers with a JSON hello — a clean first webhook for anything that needs an endpoint.
Webhook
Respond
n8n canvas preview
Webhook Hello
Canvas via n8n-demo · import JSON into n8n.io → Workflows → Import from File
Writeup
POST webhook path hello (responseMode: responseNode) → Respond JSON { ok: true, msg: "hello from n8n" }. First production-shaped API.
Step by step — how to build it
01
Add a Webhook node
New workflow → Webhook. Set HTTP Method POST, Path hello.
02
Respond using a Respond node
Webhook → Respond: “Using ‘Respond to Webhook’ node” (responseMode: responseNode).
03
Add Respond to Webhook
Connect Webhook → Respond to Webhook. Set Respond With: JSON.
04
Write the JSON body
Response Body: { "ok": true, "msg": "hello from n8n" }.
05
Listen and test
Click Listen for test event (or Activate). POST to the Test/Production URL with an empty JSON body.
06
Confirm the reply
Caller should receive ok: true and msg hello from n8n. Execution shows green on both nodes.
How it functions
1 · Webhook
httpMethod POST, path hello, responseMode responseNode — the HTTP caller waits until Respond fires.
2 · Respond
respondWith json, body { "ok": true, "msg": "hello from n8n" } so the client gets a clean 200 payload.
Setup notes
Import & activate
Import webhook-hello.workflow.json and toggle Active so the Production URL stays live.
Copy Production URL
Webhook node → Production URL (…/webhook/hello). POST with curl/Postman/your form backend.
Edit the reply
Respond → responseBody. Echo fields with expressions like {{$json.body.name}} when you need dynamic replies.
Tips
This export already uses responseNode — keep it if you add processing before Respond.
Use Test URL while editing; switch callers to Production after Activate.
Import into n8n.io → Workflows → Import from File, attach credentials, activate.