hub.eb?material_id=770
Communicate

Twilio

Connect to Twilio and create Content Templates.

Overview

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.

Documentation

Installation

Install this Data Connector into your Workspace in the Verj.io Studio:

  1. Right-click on the location in the Entity Tree you want the Data Connector to be added.
  2. Select New >  Data Connector from the context menu.
  3. In the resulting dialog, select this Data Connector from the list of available Data Connectors.
  4. Click OK to download it into your Workspace.

Once the Data Connector is installed into your Workspace, it can be added to any number of Forms:

  1. Open the Form by double-clicking it in the Entity Tree.
  2. Drag the downloaded Data Connector from the Entity Tree into the Form's  Data Connectors View.

Before this Data Connector can connect to Twilio at runtime, it must be configured with an Twilio Account SID and Auth Token.

For comprehensive information on how to customise, use, and configure Data Connectors, please refer to the Support section.

Support

Twilio Support

Data Connector Support

Twilio Support

Compatible Verj.io Versions

FromV5.13

Required For

Support

Supported by Ebase.