Receive a message
Goal
Build a workflow with a Webhook node that receives a message over POST and returns a simple response. Send a first test message to your webhook and check that the execution lands in n8n.
Done criteria
The Webhook node is your workflow's front door. Add it as the trigger, set HTTP Method to POST, and give Path a name you recognize. n8n then shows two URLs: a Test URL and a Production URL.
While you build, click "Listen for test event". n8n registers the Test URL and waits about 120 seconds for one incoming call, so you can watch the data land right in the editor. The Production URL only works after you save and activate the workflow, and those runs show up under the Executions tab, not on the canvas.
To answer the caller, set the Webhook's "Respond" parameter: "Immediately" returns a default 200 at once, "When Last Node Finishes" waits for the whole workflow, and "Using 'Respond to Webhook' Node" lets you shape the reply with a dedicated node at the end.
Your message arrives nested under body, so you read it as {{ $json.body.message }}. Paste the Test URL into the chat tool above, click "Listen for test event", send a message, and the execution should appear.
From the n8n docs