Twilio
Setup
Start by creating a new account at https://twilio.com. Once your account is created, the following steps will get your account linked to Parcelvoy
Outbound
All you need for outbound messages is a phone number that supports SMS.
If you already have a phone number, jump to step four.
- Go to
Develop -> Phone Numbers -> Buy a Number
- From here, you can pick the search criteria you care about for a number. Just make sure the number selected supports SMS (Parcelvoy will not work without it)
- Purchase the number and copy it down.
- Next, hit the
Account
button in the top right hand corner of the Twilio dashboard and navigate to theGeneral Settings -> Keys & Credentials -> API keys & tokens
. - Under
Auth Tokens
there should be two sets of values, live credentials and test credentials. For Parcelvoy, you need live credentials, copy them. - Open a new window and go to your Parcelvoy project settings
- Navigate to
Integrations
and click theAdd Integration
button. - Pick Twilio from the list of integrations and enter the
Auth Token
,Account SID
andPhone Number
from Twilio. - Hit save to create the provider.
You are now setup to send SMS messages using Twilio. There is one more step however to make it fully functioning and that is to setup inbound messages so that Parcelvoy is notified of unsubscribes.
Inbound
Setting up inbound messaging is important to comply with carrier rules and regulations regarding unsubscribing from communications. By default Twilio automatically manages opt-outs (unsubscribes), you just have to listen for the inbound webhook to then register that event in Parcelvoy. An additional benefit to setting up inbound messaging is that you can use the created events to trigger journeys.
To setup inbound SMS for Twilio, do the following:
- In Twilip, navigate to
Develop -> Phone Numbers -> Manage -> Active Numbers
. - Pick the phone number you are using internally.
- Scroll down to the
Messaging
section. - On the line item
A Message Comes In
set the type toWebhook
, the method toHTTP POST
and then copy the Inbound URL from your provider into that field. - Save the values.
Inbound Twilio notifications are now configured and unsubscribe events will register as Parcelvoy user events.