04 · Intermediate
Delivers new contact-form submissions into Slack so the team can respond in the channel.
Webhook
Slack
n8n canvas preview
Form to Slack
Canvas via n8n-demo · import JSON into n8n.io → Workflows → Import from File
Writeup
POST webhook path contact (responseMode: lastNode) → Slack #inbound with text “New form submit on thenionic”.
Step by step — how to build it
01
Add Webhook
Webhook node → Method POST, Path contact. Respond: When Last Node Finishes (lastNode).
02
Add Slack
Connect Webhook → Slack. Resource/operation: send a message to a channel.
03
Pick channel + text
Channel by name: inbound. Text: New form submit on thenionic (add {{$json.body.*}} later).
04
Attach Slack credential
Create Slack API credential (Bot Token with chat:write) and select it on the Slack node.
05
Invite the bot
In Slack, create #inbound if needed → /invite @YourBot so the node can post.
06
Test the path
Listen / Activate → POST JSON to the webhook URL → confirm the message in #inbound.
How it functions
1 · Form Webhook
POST /contact. lastNode mode — Slack runs, then n8n answers the HTTP caller from that last node’s result.
2 · Slack Notify
Posts to channel name inbound: “New form submit on thenionic”. Needs a Slack Bot credential.
Setup notes
Slack app + credential
api.slack.com → Bot with chat:write → install → n8n Credentials → Slack API.
Confirm channel
Slack Notify → channel inbound (create #inbound if missing). Invite the bot.
Wire the form
Point your contact form POST at the webhook Production URL (…/webhook/contact). Activate.
Tips
Enrich the Slack text with {{$json.body.email}} / message once your form shape is known.
lastNode response is fine for simple notifies; switch to responseNode if you need a custom JSON reply.
Import into n8n.io → Workflows → Import from File, attach credentials, activate.