How to use variables in legacy agent scripts
This article is about the legacy Script Designer based agent scripting. The below description is not relevant if your Contact Expert uses the new scripting method.
Variables can be used for inserting dynamic data into the legacy agent scripts. These variables are represented by placeholders containing the variable name between dollar signs, e.g. $variable_name$. The below table contains all variables can be used:
Placeholder | Description |
---|---|
$gcc_agent$ | Agent name (e.g. "John Demo") |
$gcc_agentid$ | Agent UC login ID (e.g. "jdemo") |
$gcc_resourceid$ | Agent resource ID (e.g. "1000001") |
$gcc_campaign$ | Campaign name (e.g. "General Sales") |
$gcc_contact$ | Customer name (e.g. "John Smith") |
$gcc_phonenumber$ | Customer's current contact address (e.g. "_12345556789") |
$gcc_currdate$ | Current date (e.g. "8/20/2015") |
$gcc_currtime$ | Current time (e.g. "3:30:00 PM") |
$gcp_phone<contact_address_number>$ | Customer's contact addresses (e.g. $gcp_phone1$ → "_12345556789") |
$gcf_<crds_field_name>$ | Customer's CRDS field values (e.g. $gcf_birthdate$ → "01/01/1980") |
Step-by-step guide
Follow these instructions to use variables in agent scripts:
- Log in to the CE Administrator PC where the CE_TeleProxy package was installed.
- Run CE Script Designer tool as administrator.
- Open a campaign script.
- In the Scenarios view, select the node in the left tree in which the variable is to be inserted.
- Type the placeholder into the editor.
- Save the campaign script.
- Start a simulation by clicking the Simulate the current script icon to make sure that the scripting engine replaces the placeholder with the certain value correctly.