Many inputs such as the Say/Play message and Send Analytics Event accept variables which will be substituted when possible. Variables are always wrapped in --. For example, you could set the Say/Play message to be:
You have received a call from --call.From-- with state --call.FromState--
These variables will be substituted and the become something like:
You have received a call from +61499998888 with state NSW
Not all variables are always present. For example, if the caller calls from a mobile phone we won't know the --call.FromCity--, in this case, the variable will be replaced will be ignored.
The available variables change depending on your flow type and trigger.
All flows will have contact variables available for use. These are particularly useful for sending personalised greetings, SMS and emails. Note that these variables will not always be present. We recommend you sync your users/CRM data into our contact system so you'll always have access to this data.
Pickle Contact ID
User ID in your CRM or database
Primary phone number
Array of other phone numbers. contact.phoneNumbers will be the primary number
Custom fields, eg) contact.customFields.example
Array of tags, eg) contact.tags for the first tag
Incoming Call Flows:
If you have a Call flow triggered with an 'Incoming Call' trigger: