Variables

Hybrid.Chat has its own variable system. These variables can used to make calculations, store API responses or store User Input and can be called in subsequent parts of the Conversation Flow for various use cases.

Apart from these Variables, there are Global Variables that can be accessed by the Chatbot or Live Chat Widget as well.

Global Variables

There is a lot that the Chatbot or Live Chat Widget already knows about a person it is 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:

Variable How to call in chat flow Example format
IP Address vars.GLOBAL.ip 111.111.111.11 (IPv4) OR 2001:0db8:0000:0042:0000:8a2e:0370:7334 (IPV6)
IP Type vars.GLOBAL.type ipv4 or ipv6
Country Name vars.GLOBAL.country_name United States
Country Code vars.GLOBAL.country_code US
Region Name vars.GLOBAL.region_name California
Region Code vars.GLOBAL.region_code CA
City Name vars.GLOBAL.city Los Angeles
Zip Code vars.GLOBAL.zip 90001
Latitude vars.GLOBAL.latitude 11.0123
Longitude vars.GLOBAL.longitude 22.0123
Continent Name vars.GLOBAL.continent_name North America
Continent Code vars.GLOBAL.continent_code NA
Geoname ID vars.GLOBAL.location.geoname_id 5368361
Capital vars.GLOBAL.location.capital Washington D.C
Language* vars.GLOBAL.location.languages.0.name English
Native Language vars.GLOBAL.location.languages.0.native English
Language Code vars.GLOBAL.location.languages.0.code en
Country Calling code vars.GLOBAL.location.calling_code 1
Timezone Name vars.GLOBAL.time_zone.id America/Los_Angeles
Current Time vars.GLOBAL.time_zone.current_time 2018-03-29T07:35:08-07:00
Timezone code vars.GLOBAL.time_zone.code PDT
Country currency vars.GLOBAL.currency.name US Dollar
Currency code vars.GLOBAL.currency.code USD
Currency in Plural vars.GLOBAL.currency.plural US Dollars
Currency Symbol vars.GLOBAL.currency.symbol $
Native Currency Symbol vars.GLOBAL.currency.symbol_native $
Current URL vars.GLOBAL.bot_url https://yourdomain.com/somepage.html

results matching ""

No results matching ""