POST /contact_field_views
Authorization Requiredhttps://[your-subdomain].trackdrive.com/api/v1/contact_field_views
Create record.
Creates an Agent Script for an offer: an HTML script shown to live agents while they handle a call, with recognized contact-field tokens rendered as inline input fields the agent fills in during the call. fields_type must be unique per offer and is submitted with leads to select which script applies. The first script created for an offer is automatically marked as that offer's default.
Params
| Param name | Description |
|---|---|
|
title Required |
Agent Script Display Name
|
|
offer_id Required |
Assign the record to this Offer.
|
|
fields_type Optional Blank value allowed |
A unique value that will be submitted with leads to select this field type and agent script.
|
|
script_html Optional Blank value allowed |
This script will be displayed to agents when they are answering calls from consumers. Contact fields in this script will be replaced with inputs, allowing the agent to enter responses inline in the script.
|
|
token_keys Optional Blank value allowed |
These fields will be visible when this field_type is selected.
|
|
sortable_order Optional Blank value allowed |
The order in which records will be sorted. Values are sorted in ascending order; smaller values are listed first.
|
|
is_default Optional Blank value allowed |
Uses this Agent Script by default when a call doesn’t match any other Agent Script’s filters.
|
|
script_javascript Optional Blank value allowed |
Custom JavaScript run alongside this Agent Script while agents are on the call.
|
|
jornaya_campaign_id Optional Blank value allowed |
The Jornaya campaign id associated with this Agent Script.
|
|
use_when_tokens_match Optional Blank value allowed |
Only uses this Agent Script for calls matching the token filters below.
|
|
token_value_ids Optional Blank value allowed |
Only uses this Agent Script for calls matching these token values.
|
|
attribution_token_value_ids Optional Blank value allowed |
When this Agent Script is used on a call, the call will be tagged with these token values.
|
|
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.
|