SMS Flows
Automates a text message conversation for an offer, parsing replies and sending follow-up responses.
GET /text_message_flows
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows
List SMS Flow records.
Returns the SMS Flows configured on the account. An SMS Flow matches inbound text message replies against a pattern and applies token values or an automated reply.
Params
| Param name | Description |
|---|---|
|
ids Optional |
Return records matching these ids.
|
|
page Optional |
Return the next page of results.
|
|
per_page Optional |
How many results to return per page. The default is 25.
|
|
created_at_to Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
created_at_from Optional |
Date formatted like 2016-01-01 12:25:15 -0500
|
|
fulltext Optional |
Search for any record that matches this text
|
|
time_zone Optional |
Date ranges will be parsed using this time zone.
|
|
columns Optional |
Specify the columns you would like returned by the API for a given resource.
Limiting the columns can significantly increase API response time since only the requested data will be processed.
columns=uuid,number,created_at
Must be any combination of:
|
|
root Optional |
Pass
|
GET /text_message_flows/new
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows/new
Build SMS Flow with defaults.
Returns an SMS Flow built with default attributes for previewing available fields. It is not saved.
Params
| Param name | Description |
|---|---|
|
description Optional |
Description
|
|
offer_id Optional |
Offer
|
|
parse_value_with_expression Optional |
Parse Value With Expression
|
|
value_formatter Optional |
Value Formatter
|
|
value_expression Optional |
Value Expression
|
|
use_flow_when_pattern_matches Optional |
Use Flow When Pattern Matches
|
|
record_token_filter_id Optional |
Record Token Filter
|
|
token_value_ids Optional |
Token Value Ids
|
|
request_a_response Optional |
Request A Response
|
|
response_message Optional Blank value allowed |
The outgoing SMS message sent back to the consumer when this flow matches the incoming message.
|
|
assert_acceptable_with_contact_field Optional |
Assert Acceptable With Contact Field
|
|
response_message_when_unacceptable Optional |
Response Message When Unacceptable
|
|
attribution_token_value_ids Optional |
Attribution Token Value Ids
|
|
contact_field_assign_id Optional Blank value allowed |
The Contact Field the consumer’s reply is saved to on the lead.
|
|
contact_field_validate_id Optional Blank value allowed |
The Contact Field checked against the accepted responses when
|
|
process_response_with_sms_flow_type Optional Blank value allowed |
How the consumer’s reply is passed on for further processing after this flow matches. One of
|
|
valid_responses_csv Optional Blank value allowed |
A comma-separated list of the responses accepted as valid when
|
|
wait_for_response_seconds Optional Blank value allowed |
How many seconds Trackdrive waits for the consumer’s reply before giving up on this flow.
|
|
text_message_flow_id Optional Blank value allowed |
The parent SMS Flow this flow is nested under, tried when the parent’s reply is passed to its nested flows.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
POST /text_message_flows
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows
Create SMS Flow.
Creates an SMS Flow that matches inbound text messages against a pattern, tied to an offer, and optionally requests and validates a reply from the recipient.
Params
| Param name | Description |
|---|---|
|
description Optional |
Description
|
|
offer_id Optional |
Offer
|
|
parse_value_with_expression Optional |
Parse Value With Expression
|
|
value_formatter Optional |
Value Formatter
|
|
value_expression Optional |
Value Expression
|
|
use_flow_when_pattern_matches Optional |
Use Flow When Pattern Matches
|
|
record_token_filter_id Optional |
Record Token Filter
|
|
token_value_ids Optional |
Token Value Ids
|
|
request_a_response Optional |
Request A Response
|
|
response_message Optional Blank value allowed |
The outgoing SMS message sent back to the consumer when this flow matches the incoming message.
|
|
assert_acceptable_with_contact_field Optional |
Assert Acceptable With Contact Field
|
|
response_message_when_unacceptable Optional |
Response Message When Unacceptable
|
|
attribution_token_value_ids Optional |
Attribution Token Value Ids
|
|
contact_field_assign_id Optional Blank value allowed |
The Contact Field the consumer’s reply is saved to on the lead.
|
|
contact_field_validate_id Optional Blank value allowed |
The Contact Field checked against the accepted responses when
|
|
process_response_with_sms_flow_type Optional Blank value allowed |
How the consumer’s reply is passed on for further processing after this flow matches. One of
|
|
valid_responses_csv Optional Blank value allowed |
A comma-separated list of the responses accepted as valid when
|
|
wait_for_response_seconds Optional Blank value allowed |
How many seconds Trackdrive waits for the consumer’s reply before giving up on this flow.
|
|
text_message_flow_id Optional Blank value allowed |
The parent SMS Flow this flow is nested under, tried when the parent’s reply is passed to its nested flows.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
GET /text_message_flows/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows/:id
Get SMS Flow by id.
Returns a single SMS Flow by id, including its matching pattern and response configuration.
PUT /text_message_flows/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows/:id
Update SMS Flow by id.
Updates an SMS Flow's matching pattern, offer, token values, or auto-response behavior.
Params
| Param name | Description |
|---|---|
|
description Optional |
Description
|
|
offer_id Optional |
Offer
|
|
parse_value_with_expression Optional |
Parse Value With Expression
|
|
value_formatter Optional |
Value Formatter
|
|
value_expression Optional |
Value Expression
|
|
use_flow_when_pattern_matches Optional |
Use Flow When Pattern Matches
|
|
record_token_filter_id Optional |
Record Token Filter
|
|
token_value_ids Optional |
Token Value Ids
|
|
request_a_response Optional |
Request A Response
|
|
response_message Optional Blank value allowed |
The outgoing SMS message sent back to the consumer when this flow matches the incoming message.
|
|
assert_acceptable_with_contact_field Optional |
Assert Acceptable With Contact Field
|
|
response_message_when_unacceptable Optional |
Response Message When Unacceptable
|
|
attribution_token_value_ids Optional |
Attribution Token Value Ids
|
|
contact_field_assign_id Optional Blank value allowed |
The Contact Field the consumer’s reply is saved to on the lead.
|
|
contact_field_validate_id Optional Blank value allowed |
The Contact Field checked against the accepted responses when
|
|
process_response_with_sms_flow_type Optional Blank value allowed |
How the consumer’s reply is passed on for further processing after this flow matches. One of
|
|
valid_responses_csv Optional Blank value allowed |
A comma-separated list of the responses accepted as valid when
|
|
wait_for_response_seconds Optional Blank value allowed |
How many seconds Trackdrive waits for the consumer’s reply before giving up on this flow.
|
|
text_message_flow_id Optional Blank value allowed |
The parent SMS Flow this flow is nested under, tried when the parent’s reply is passed to its nested flows.
|
|
record_token_filter_list Optional Blank value allowed |
Assign filters to the object by passing an array of key:value pairs
|
|
record_token_additional_list Optional Blank value allowed |
Assign additional tokens that will be applied to leads and calls by passing a comma separated string of key:value pairs.
|
DELETE /text_message_flows/:id
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/text_message_flows/:id
Destroy SMS Flow by id.
Permanently deletes an SMS Flow, so it no longer matches incoming text messages.