Leopard Chat Client
  • Quick Start
  • Screenshots
  • Setup
    • Extension Helper
    • Context Variables
      • Greeting Message
      • Channel
      • User's Time Zone
      • Location Context Parameters
    • Build Variables
  • Content Styling
    • CSS Styles
    • Icons
    • Markdown & HTML
  • Components Simple Syntax
  • Components
    • Answer Borders
    • Audio Player
    • Auto Open Leopard with Link
    • Alerts
    • Buttons and Lists
    • Card
    • Response Icons
    • Date & Time Pickers
    • Emergency Button
    • Expensive Operations
    • Field Masks
    • Chat Field Types (Email, Password, Location, Upload)
    • Forms
      • Feedback Form
      • Custom Forms
        • Example Config
        • Postback Object
        • Button Object
        • Field Types
        • Style Object
        • Icons Object
        • Masks
        • Validation
    • Google Map
    • Help Text
    • HTML Modal
    • Hyperlinks
    • Images
      • Image
      • Image Carousel
    • Tables
      • Tables - Simple
      • Tables - Advanced
    • Theme Change
    • Toasts
    • Language Auto Switch
    • Minimize Chat after Delay
    • Multiple Components - Same Response
    • Modal Size & Positioning
    • Open Long Response in Modal
    • Print Icon
    • Prompt Trigger Polling
    • Splitting Answers - Chunks
    • Video Player
  • Administration Area
    • Solution Configuration
    • Demo Mode - iFrames & URLs
    • ASR and TTS
  • Integrations
    • Logging / Reporting
    • Social Authentication
    • Live Chat
  • Embedding / Production
Powered by GitBook
On this page
  • Variables Sent
  • Retrieving in Pre-Processing within Teneo
  1. Setup
  2. Context Variables

Location Context Parameters

Leopard sends a bunch of useful request parameters to Teneo that can be used to personalize responses.

PreviousUser's Time ZoneNextBuild Variables

Last updated 4 years ago

To have the location information sent to Teneo you must enable the following variable.

location.login.sendAtLogin = true

Variables Sent

The values will differ based off the location of the user chatting with Teneo via Leopard. You can access these variables in a pre-processing script from within Teneo Studio.

timeZone        : America/Los_Angeles  
city            : Sammamish            
continentCode   : NA                   
continentName   : North America        
countryCode     : US                   
countryName     : United States        
currencySymbol  : $                    
currencyCode    : USD                  
latitude        : 47.5857              
longitude       : -122.0345            
regionCode      : WA                   
regionName      : Washington           

Retrieving in Pre-Processing within Teneo

if (engineEnvironment.getParameter("timeZone")) { 
    timeZone = engineEnvironment.getParameter("timeZone") 
}

if (engineEnvironment.getParameter("city")) { 
    city = engineEnvironment.getParameter("city") 
}

if (engineEnvironment.getParameter("continentCode")) { 
    continentCode = engineEnvironment.getParameter("continentCode") 
}

if (engineEnvironment.getParameter("continentName")) { 
    continentName = engineEnvironment.getParameter("continentName") 
}

if (engineEnvironment.getParameter("countryCode")) { 
    countryCode = engineEnvironment.getParameter("countryCode") 
}

if (engineEnvironment.getParameter("currencySymbol")) { 
    currencySymbol = engineEnvironment.getParameter("currencySymbol") 
}

if (engineEnvironment.getParameter("currencyCode")) { 
    currencyCode = engineEnvironment.getParameter("currencyCode") 
}

if (engineEnvironment.getParameter("latitude")) { 
    latitude = engineEnvironment.getParameter("latitude") 
}

if (engineEnvironment.getParameter("longitude")) { 
    longitude = engineEnvironment.getParameter("longitude") 
}

if (engineEnvironment.getParameter("regionCode")) { 
    regionCode = engineEnvironment.getParameter("regionCode") 
}

if (engineEnvironment.getParameter("regionName")) { 
    regionName = engineEnvironment.getParameter("regionName") 
}
build configuration