Developers · Notifications and Email
Creating an SMS Notification
Last updated 7 November 2026
This document discusses creating an SMS Notification to send a text message to a newly signed-up user using our Twilio integration.
Note
If you want to send the SMS via GraphQL, please check the
Prerequisites
To follow the steps in this tutorial, you must understand how notifications work. Use the sign-up form created in a previous tutorial and the
- Form Configuration Options
- Notifications
- Creating a Database Field for All Users
- Creating a Sign-Up Form
- Twilio's phone number format guideline
Steps
Creating an SMS Notification is a two-step process:
- Step 1: Create an SMS Notification
- Step 2: Add the SMS Notification to the Sign-Up Form
Step 1: Create an SMS Notification
app/smses/welcome_user.liquid
---
to: "{{ form.properties.phone_number }}"
---
Hello {{ form.first_name }} via sms.This assumes that you have already created a Sign-Up Form and configured the phone_number property.
The phone number should include a country code. On the production site, users might need to learn their country code or what a country code is. For simplicity in this example, though, assume that the user provides the correct input. For production, you might find the to_mobile_number Liquid filter useful.
Step 2: Add the SMS Notification to the Sign-Up Form
Add your SMS Notification to the Sign-Up Form configuration.
The SMS notification name is a path of the file relative to the
In our example, the path to the file is app/smses/welcome_user.liquid, and the bolded part is the name -
sms_notifications:
- welcome_userto the Sign-Up Form, the content of
---
name: developer_sign_up
resource: User
resource_owner: anyone
fields:
email:
password:
first_name:
validation: { presence: true }
properties:
phone_number:
validation:
phone_number: true
...
sms_notifications:
- welcome_user
---Important
If the SMS does not arrive to your phone after a minute, please check the logs in the Insites CLI Tool using the command
Next steps
Congratulations! You have created an SMS Notification. Now you can learn about creating an API Call Notification: Creating an API Call Notification