n8n Integration
Connect Atlas Forms to n8n for self-hosted workflow automation. Keep full control of your data while building powerful automations.
Quick Setup
1. Add Webhook Node
2. Copy Webhook URL
Copy either:
3. Add to Atlas
4. Activate Workflow
Make sure your n8n workflow is activated to receive production webhooks.
Webhook Payload
n8n receives this data from Atlas:
json
{
"event": "submission.created",
"form": {
"id": "form-uuid",
"name": "Contact Form"
},
"submission": {
"id": "submission-uuid",
"data": {
"name": "Jane Doe",
"email": "jane@example.com"
}
}
}Verify Webhooks with HMAC
Use n8n's Function node to verify webhook signatures:
javascript
const crypto = require('crypto');
const secret = $env.WEBHOOK_SECRET;
const signature = $input.first().headers['x-webhook-signature'];
const body = JSON.stringify($input.first().json);
const expected = 'sha256=' + crypto
.createHmac('sha256', secret)
.update(body)
.digest('hex');
if (signature !== expected) {
throw new Error('Invalid signature');
}
return $input.all();