Request Demo
Request Demo

Answers your bot already knows

There is a lot that your bot already knows about a person you are chatting with. These are published as Global variables that you can call like other variables you define within the chat. Besides knowing more about the user’s details, 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 Addressvars.GLOBAL.ip111.111.111.11 (IPv4) OR 2001:0db8:0000:0042:0000:8a2e:0370:7334 (IPV6)
IP Typevars.GLOBAL.typeipv4 or ipv6
Country Namevars.GLOBAL.country_nameUnited States
Country Codevars.GLOBAL.country_codeUS
Region Namevars.GLOBAL.region_nameCalifornia
Region Codevars.GLOBAL.region_codeCA
City Namevars.GLOBAL.cityLos Angeles
Zip Codevars.GLOBAL.zip90001
Continent Namevars.GLOBAL.continent_nameNorth America
Continent Codevars.GLOBAL.continent_codeNA
Geoname IDvars.GLOBAL.location.geoname_id5368361
Capitalvars.GLOBAL.location.capitalWashington D.C
Native Languagevars.GLOBAL.location.languages.0.nativeEnglish
Language Codevars.GLOBAL.location.languages.0.codeen
Country Calling codevars.GLOBAL.location.calling_code1
Timezone Namevars.GLOBAL.time_zone.idAmerica/Los_Angeles
Current Timevars.GLOBAL.time_zone.current_time2018-03-29T07:35:08-07:00
Timezone codevars.GLOBAL.time_zone.codePDT
Country currencyvars.GLOBAL.currency.nameUS Dollar
Currency codevars.GLOBAL.currency.codeUSD
Currency in Pluralvars.GLOBAL.currency.pluralUS Dollars
Currency Symbolvars.GLOBAL.currency.symbol$
Native Currency Symbolvars.GLOBAL.currency.symbol_native$
Current URL vars.GLOBAL.bot_url

* This is an array and more languages may appear, which can be accessed by incrementing the ordinal in the end.

VariableHow to call in chat flowExample format
First Namevars.fb_user.first_nameJohn
Last Namevars.fb_user.last_nameWick
Profile Picture URLvars.fb_user.profile_pic
Gendervars.fb_user.gendermale or female
Localevars.fb_user.localeLocale of the user on Facebook. Example: en_US. For supported locale codes, see Supported Locales.
Timezonevars.fb_user.timezoneTimezone, number relative to GMT. Example -7 or 5.5
Page Specific User IDvars.fb_user.idThe user’s PSID

Read more about these available fields here.