Skip to content

Latest commit

 

History

History
executable file
·
20 lines (14 loc) · 1.03 KB

WEBHOOK_N8N.md

File metadata and controls

executable file
·
20 lines (14 loc) · 1.03 KB

Create a simple n8n workflow

N8N can be used for more advanced conditional notification use cases. For example, you want only to get notified if two out of a specified list of devices is down. Or you can use other plugins to process the notifiations further. The below is a simple example of sending an email on a webhook.

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 NetAlertX to point to the above URL

NetAlertX config