- default_id
- default_name
- default_email
- default_ip
- default_city
- default_region
- default_country
- default_country_code
- default_timezone
- default_url
- default_referrer
If you want to use one of these attributes in your bot just type it into your bot response like presented below:
Hello {{default_name}}
or
Hello {{default_name}}, your email is {{default_email}}, right?
You can do it with your LiveChat widget code (https://www.livechatinc.com/kb/custom-variables-configuration/)
Warning! If you want to replace e.g. default_name and default_email parameters your code should look like presented below:
<script type="text/javascript">
window.__lc = window.__lc || {};
window.__lc.license = 123456; // here put your license id
window.__lc.params = [
{ name: "name", value: "PUT_YOUR_VALUE" }, // example of replacing default_name value
{ name: "email", value: "PUT_YOUR_VALUE" } // example of replacing default_email value
];
(function() {
var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.livechatinc.com/tracking.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);})();
</script>
Important! Parameters cannot contain a prefix default_
that you are using to recognize these attributes in ChatBot platform.
After that, you can use your replaced attributes in ChatBot like that:
Hello {{default_name}}, your email is {{default_email}}, right?