Text your on-call person about emergencies with n8n

When an enquiry contains one of your emergency words, text your on-call person straight away with the sender's name, phone and message.

Updated 18 Nov 2026

What it does

When an enquiry contains one of your emergency words, this workflow texts your on-call person straight away with the sender's name, phone and the first 300 characters of the message.

You need

  • n8n, cloud or self-hosted. Tested on n8n 2.48.

  • A Twilio account with a number that can send SMS.

  • The workflow file. Download it from this page.

Set it up

  1. In n8n, choose Import from file and pick the workflow file you downloaded.

  2. Open the Trevilo enquiry step and copy its Production URL.

  3. In the same step, create a Header Auth credential. Name: X-Webhook-Key. Value: a long random key you make up (a password manager can generate one).

  4. In Trevilo, add a rule for enquiries that mention any of your emergency words, for example burst, flood, leak, no power or urgent. Send it to a new n8n connection with the Production URL. Set the connection's login to API key in a header, header name X-Webhook-Key, and the same key.

  5. In Text the on-call person, create a Twilio credential, then replace From with your Twilio number and To with the on-call mobile.

  6. Publish the workflow, then send a test enquiry containing one of your words. The on-call mobile gets a text.

Good to know

  • n8n refuses any request without your key, so only your Trevilo connection can start the workflow.

  • If Trevilo delivers the same enquiry again, the workflow ignores the repeat.

  • Your keywords decide what counts as an emergency, so this works on every plan.

  • Trevilo matches whole words and ignores capitals, so leak matches "Leak" but not "leaking". Add each form of a word you want to catch.

  • Escalation if nobody responds is not included yet.

  • Each delivery to n8n uses 1 credit. The texts this workflow sends go through your own Twilio account, not Trevilo. See Credits.

Text your on-call person about emergencies with n8n | Trevilo help