We just added a great feature that allows bot builders to know to whom they are talking to. You will see the chatlog emails something like this from now on (after updating your bot):

These are published as Global variables that you can call like other variables you define within the chat. You can use the same variables within your chatflow dialogue or pass this to webhook for further transactions.

Here is a list of these global variables:

VariableHow to call in chat flowExample format
IP Addressvar.global.ip111.111.111.11 (IPV4) ORĀ 2001:0db8:0000:0042:0000:8a2e:0370:7334 (IPV6)
IP Typevar.global.typeipv4 or ipv6
Country Namevar.global.country_nameUnited States
Country Codevar.global.country_codeUS
Region Namevar.global.region_nameCalifornia
Region Codevar.global.region_codeCA
City Namevar.global.cityLos Angeles
Zip Codevar.global.zip90001
Continent Namevar.global.continent_nameNorth America
Continent Codevar.global.continent_codeNA
Geoname IDvar.global.location.geoname_id5368361
Capitalvar.global.location.capitalWashington D.C
Native Languagevar.global.location.languages.nativeEnglish
Language Codevar.global.location.languages.codeen
Country Calling codevar.global.location.calling_code1
Timezone Namevar.global.time_zone.idAmerica/Los_Angeles
Current Timevar.global.time_zone.current_time2018-03-29T07:35:08-07:00
Timezone codevar.global.time_zone.codePDT
Country currencyvar.global.currency.nameUS Dollar
Currency codevar.global.currency.codeUSD
Currency in Pluralvar.global.currency.pluralUS Dollars
Currency Symbolvar.global.currency.symbol$
Native Currency Symbolvar.global.currency.symbol_native$
Use cases:
  • Lead generation: Knowing cities and countries from where most of the meaningful conversations are coming. You can use it to further your marketing campaigns in these regions.
  • Sales: Pushing enriched data in CRMs and HelpDesk softwares
  • Ecommerce store: Quoting price in native currency of the user
  • MultiLingual Chatbot: Offering to chat in the native language of the user

Nov 14, 2018 Update:
We added a new variable today for reporting the current URL from where the user initiated the chat.

VariableHow to call in chat flowExample format
Current URLvars.GLOBAL.bot_urlhttps://yourdomain.com/somepage.html