Twilio
Configure the OptiPub Twilio Integration
Integrations can be found in OptiPub > Administration > System Settings > Integrations
Activate the Twilio Integration
- Click Add on the Twilio integration card from the Integrations page in OptiPub.
- Retrieve the
API Token
,Twilio Account SID
, andMessaging Service ID
from the Twilio Console. - The
Prefix
is for a brand name, such asOptiPub
orOptiPub Alerts
. - The
Help Text
should include directions to unsubscribe and contact support, such asReply STOP to opt-out or visit our website [www.example.com]. For more help, contact support at [[email protected]] or call [1-800-123-4567]. Msg & data rates may apply.".
- The
Stop Text
should include confirmation of opt-out, and directions to opt back in, such asYou have successfully opted out. You will not receive any more messages from this number. Reply START to resubscribe.
Configure the Webhook in Twilio Messaging Services
The Twilio Messaging Service uses a webhook to forward incoming SMS messages to OptiPub.
Configure the webhook in Twilio > Develop > Messaging > Services > [Service Name] > Integration.
- Select the 'Send a webhook' radio button.
- Add the URL -
https://{APP_DOMAIN}/auth/twilio
- to bothRequest URL
andFallback URL
and selectHTTP Post
from the drop down options. - Click [Save]
The Twilio Webhook forwards all message, and notifies OptiPub if the Twilio configured Keywords for Opt-in
,Opt-out
, or Help
are matched. OptiPub will auto-reply with the corresponding messages configured in the OptiPub Twilio Integration. View the configured Keywords in the Twilio Campaign configuration from Twilio > Develop > Messaging > Regulatory Compliance > Campaigns > [Campaign Name]
Updated about 1 month ago