Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Build an SMS Panic Button with Twilio Functions

Blog post from Twilio

Post Details
Company
Date Published
Author
Fernando Larranaga
Word Count
918
Language
English
Hacker News Points
-
Summary

A nonprofit or social enterprise can build an SMS Panic Button using a free Twilio account and an IoT button like Flic to discreetly send an urgent call for help in emergency situations. The panic button sends an HTTP request that triggers a Twilio Function, which then sends an SMS message to a predefined number. This flow requires configuring the button to execute an outgoing HTTP request and linking it to the Twilio Function. A Twilio Function is created with a predefined phone number and sends a message whenever an HTTP request comes in. The panic button's logic works as follows: a single click triggers an HTTP request that leads to the Twilio Function, which then sends an SMS message to a list of numbers defined by the user.