Send SMS alerts based on database queries (Twilio and Postgres)

Nodes

7a48708c-bd3b-409b-837b-b599c5bcd7e61a4d51ff-279d-45ca-a759-94bf60521d62

Created by

tatanaypant

Last edited 11 days ago

This workflow automatically queries a Postgres database to find outlier readings for which SMS notifications have not been sent. This is Workflow 2 in the blog tutorial Database activity monitoring and alerting.

Prerequisites

Nodes

  • Cron node triggers the workflow every minute, so the database is queried at regular intervals.
  • Postgres nodes extract values from, and update values in the database.
  • Twilio node sends an alert SMS about the outlier reading to a specified phone number.
  • Set node sets the notification value to true.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!