Files
NetAlertX/docs/WEBHOOK_N8N.md
2023-02-01 20:40:14 +11:00

736 B
Executable File

Create a simple n8n workflow

n8n workflow

Specify your email template

See sample JSON if you want to see the JSON paths used in the email template below Email template

Events count: {{ $json["body"]["attachments"][0]["text"]["events"].length }}
New devices count: {{ $json["body"]["attachments"][0]["text"]["new_devices"].length }}

Get your webhook in n8n

n8n webhook URL

Configure PiAlert to point to the above URL

PiAlert config