n8n Guides
n8nleadsfree

n8n webhook: send a form submission to Slack

Who this is for: anyone with an HTML contact form on their site who wants every submission to land in a Slack channel immediately, instead of an inbox nobody checks.

What the workflow does

n8n exposes a webhook URL. Point your HTML form's action (or a small fetch call) at it; each submission is reformatted and posted to a Slack incoming webhook, then the visitor gets a short confirmation response.

Procedure

  1. Download the webhook-form-to-slack.json file.
  2. In n8n: Workflows → Import from File and pick the downloaded file.
  3. Activate the workflow and copy the production URL from the Form inviato webhook node.
  4. In Slack: create an incoming webhook for the channel you want, and paste that URL into the Notifica su Slack node.
  5. Point your form to POST to the n8n webhook URL, with fields named nome/name, email, messaggio/message (or adjust the Code inside the node to match your field names).

How it works under the hood

The Webhook node accepts any POST body and makes it available as $json.body; the following HTTP Request node builds the Slack message text from those fields and posts it as JSON to Slack's incoming webhook URL, which needs no Slack app or bot token — just the webhook URL itself.

Note: the field names in the Code expression (nome/name, email, messaggio/message) are guesses matching common form conventions — check your own form's field names and adjust the node if they differ.