Overview

Last Updated : Oct 13, 2023 |
Prolog information
For agent-based campaigns, agents may require scripts for questionnaires or gathering and updating information. You can create scripts with the embedded HTML script editor and assign the scripts to campaigns. If a script is located outside the POM environment on a different server, you can register the script as a URL on the POM server. Additionally, you can register a fail-over URL for the primary URL.
You can create two types of agent scripts, such as Native and URL. To reuse the script, you can save the script with a different name and customize the script.
Note:
The reuse option is valid only for the Native type of agent scripts.
You can import or export a Native agent script. You can create or edit a Native type of agent script using a built-in editor. This editor lets you create your script and can add POM-specific attributes such as FirstName, LastName, and Phone 1.
For a URL type of agent script, specify the primary URL where the script belongs. If the primary URL does not function, you can also provide a fail-over URL.
To make the agent scripts work, you must add the POM server hostname and IP address in the C:\WINDOWS\system32\drivers\etc\hosts file on the agent's system.
Though the agent in ConfPassive or ConsultPassive state can update the attributes using POM, ensure that you update the attributes through the agent desktop.
If agent's system cannot complete running the tomcat services and the agent receives a new call, the system might not load the agent script. Therefore, the system displays the following error:
Displaying error 503, service temporarily unavailable
The agent must refresh the agent script page from the agent desktop, and after the system completes running the tomcat services, the agent can view the agent script.
You can write a custom javascript code for designing an agent script. You must replace the special character + with _PLUS_CHAR_ and & with _ampersand_ when creating a custom javascript.
Native Agent Scripts are now enhanced for better security. This enhanced security can be turned off from the Global Configurations page.