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
Accountbutton in the top right hand corner of the Twilio dashboard and navigate to theGeneral Settings -> Keys & Credentials -> API keys & tokens. - Under
Auth Tokensthere 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
Integrationsand click theAdd Integrationbutton. - Pick Twilio from the list of integrations and enter the
Auth Token,Account SIDandPhone Numberfrom 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 Twilio, navigate to
Develop -> Phone Numbers -> Manage -> Active Numbers. - Pick the phone number you are using internally.
- Scroll down to the
Messagingsection. - On the line item
A Message Comes Inset the type toWebhook, the method toHTTP POSTand 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.