Introduction:


Agent alerts and integrations can display variable information originating either from the LivePerson system, or from custom variables.


Instructions:


To use variable data in alerts and integrations, you embed control sequences called 'macros'

The macro is inserted between curly brackets { }, for example:
  • {LPINFO!current-title} - displays the title of the current web page
  • {LPVAR!Company} - displays the value of a "Company" custom variable defined in your web page

emptyStringNOTE: If a visitor ends a chat and starts a new chat during the same visit, the macro values are carried over from the first session.

To force the macros to be re-evaluated on each subsequent chat, add “~” to the macro name. Example: {~LPINFO!rt-session-id}

In addition, you can use the "!" symbol as a silencer. Normally, the name of the macro is shown if the variable has no value.  Using the ! silencer,  nothing is displayed if the value of the custom variable has not been set. Example: !{LPVAR!Section}.


Custom variable information
 
{LPVAR!varname}
Custom variable data - varname should be defined on the web page and passed to LivePerson. Variables can also be set using rules.
 
 
Visitor session information
 
{LPINFO!current-url}
URL of the visitor's current page
{LPINFO!current-title}
Title of the current page
{LPINFO!days-last-chat}
Number of days since the last chat session of this visitor
{LPINFO!days-last-visit}
Number of days since last visit of the visitor to the site
{LPINFO!referrer}
The referring URL (link that referred the visitor)
{LPINFO!seconds-in-site}
Number of seconds visitor has been in the site
{LPINFO!minutes-in-site}
Number of minutes visitor has been in the site
{LPINFO!seconds-in-current-page}
Number of seconds the visitor has spent on the current page
{LPINFO!browser-type}
Visitor's browser type  (user agent)
{LPINFO!rt-session-id}
Session ID of the current chat session
 
 
LivePerson Account/User Details
 
{LP!account-number}
Your LivePerson account number
{LP!rep-nickname}
Agent's nickname as it appears to visitors in chat
{LP!rep-login-name}
Agent's login Name used to log into the Admin Console
{LP!rep-user-name}
Agent's display name as it appears in the Admin Console and transfer window
 
 
Visitor Geolocation Details
(all details based on IP address)
{LPINFO!ip}
IP address
{LPINFO!host}
Host name
{LPINFO!geoISP}
ISP
{LPINFO!geoConType}
Connection type
{LPINFO!geoCountry}
Country
{LPINFO!geoCity}
City
{LPINFO!geoLong}
Longitude
{LPINFO!geoLat}
Latitude
{LPINFO!geoOrg}
Organization/company
{LPINFO!geoReg}
Region
{LPINFO!geoPost}
Postal/zip code
{LPINFO!geoTimeZone}
Time zone