The Twilio Data Connector uses Twilio's Messaging API to create Content Templates. These can then be used to deliver messages using other Twilio Data Connectors (SMS, WhatsApp, etc).
Once installed and added to a Form, you can access this Data Connector in the Form's server event scripts using: connectors.verjio.twilio
.
twilio.content.createCallToActionTemplate
create a template that contains one or more buttons for the user to interact with.
twilio.content.createCardTemplate
create a template that contains made up of a title, subtitle and some media, for example an image.
twilio.content.createCarouselTemplate
create a template that contains a horizontal, scrolling list of cards.
twilio.content.createListPickerTemplate
create a template that contains up to 10 list items that a user can select.
twilio.content.createLocationTemplate
create a template that contains a map with a location pin and label.
twilio.content.createMediaTemplate
create a template that contains a message and a media file.
twilio.content.createQuickReplyTemplate
create a template that allows a user to tap a button to respond to a message.
twilio.content.createTextTemplate
create a template that contains a message.
twilio.content.deleteTemplate
deletes a specified template.
twilio.getPhoneNumber
retrieves a phone number that can be used by your Twilio account. Phone numbers can be filtered by their capabilities. For example, you may want to retrieve a phone number capable of sending multimedia messages.
Code Example:
connectors.verjio.twilio.content.createTextTemplate(
'simpleorderconfirmation',
'Your order {{1}} has been received.',
{ 1: 'order_number' } );
For comprehensive information on how to use and develop applications with this Data Connector please refer to the Support section.
The Installation section has instructions on installing it into your Workspace.
Complete JavaScript API documentation for this Data Connector can be found in the Documentation section.