Variables
Default Variables
Ytel workflow and the templates it uses have the capability to utilize variables for dynamic content.
Custom contact attributes can also be used as variables and follow the same pattern of usage as default contact variables. Below is a list of the default contact variables that can be used.
Variables are used in templates and workflow by surrounding the variable name in percent signs.
Example: %phonenumber1%
Variable | Description |
---|---|
%phonenumber1% | Contact's phone number in e.164 format. |
%firstname% | Contact's first name. |
%lastname% | Contact's last name |
%email1% | Contact's email address |
%address1% | Contact's Address |
%city1% | Contact's city |
%zip1% | Contact's zip/post code |
%state1% | ISO_3166-2:US |
%country1% | ISO 3166-1 Alpha-2 Code |
%notes% | Contact notes |
%externalcontactid1% | An External ID you may store with our internal contact record |
Functions
As well as default variables, there are a number of functions that can be used in the Edit Contact node using assign fixed. The exception to this is node#.reply, which is valid anywhere.
Function | Description |
---|---|
hourofday() | Based on the recipient time zone 1-24 |
dayofweek() | Based on the recipient time zone Monday through Sunday |
now() | Current Timestamp |
node#.reply | Evaluates the action of a reply from a node or can be used to grab the content of a reply. |
Updated over 1 year ago