Skip to main content

IMPORTANT - Product End of Life Statement - IMPORTANT

Request RE, Survey, and Calendar 1.5 Support Ending December 31, 2020
Contact Kinetic Data Support with Questions
Kinetic Community

Twilio Source

Handles webhook calls to run Task Trees when an SMS to a phone number is received.

Creating a Source

First download the consumer file and place it into the WEB-INF/consumers directory of your Task application and then restart the web server.

To use the consumer, navigate to the Sources page (underneath the Admin tab) and click Add New Source. When creating a source, the type field essentially tells Kinetic Task which consumer file to use for that source.


Now that we have created a Twilio source we will be able to develop trees that refer to Twilio-specifc information like phone number and message data.

Configuring a Webhook

To have Twilio run our Task Trees we need to use webhooks. Webhooks can call the Task API whenever an SMS message is received.

Navigate to the Manage Numbers interface by clicking the Twilio Numbers link at the top of the page.


Then click the phone number link for the number you would like to configure (highlighted above).


The only thing we need to configure is the Request URL underneath the Messaging header. We need to set this field to the API route of the Task Tree we wish to run. The API routes use the following format.

Given the source "Twilio", the source group "Test", and the tree name "Message" we would use the following API route.

Finally, complete configuration by clicking the Save button.

Source Data


When the Twilio webhook calls the Task API it passes along form parameters that are converted into a string of JSON data. In Task this is referred to as Source Data. The consumer then parses the source data and provides the menu of pre-defined values available within the Tree Builder. An example of the pre-defined values menu is shown on the right.

In the Pre-defined Values section below we describe each of the pre-defined values made available by the Twilio source.

The Example Source Data section gives an example of real source data that was posted to Kinetic Task from Twilio.

Pre-defined Values


Account Sid Id of the Twilio account
Body Content of the SMS message
From Sending phone number
From Zip Zip code of the sending number
From City City of the sending number 
From State State of the sending number
From Country Country of the sending number
Sms Status Status
To Recipient phone number
To Zip Zip code of the recipient number
To City City of the recipient number
To State State of the recipient number
To Country Country of the recipient number

Example Source Data