This document discusses creating an SMS Notification to send a text message to a newly signed-up user using our Twilio integration.
If you want to send the SMS via GraphQL, please check the
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
Creating an SMS Notification is a two-step process:
app/smses/welcome_user.liquid
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.
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 -
to the Sign-Up Form, the content of
If the SMS does not arrive to your phone after a minute, please check the logs in the Insites CLI Tool using the command
Congratulations! You have created an SMS Notification. Now you can learn about creating an API Call Notification: Creating an API Call Notification
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.