Disable/Enable a survey from bot?
Since 3.68v it's possible to control Survey directly from bot.
Supported scenario
- Bot disables survey
- Bot enables default/custom survey
Disable a survey from a bot
Steps
- Text message. This is optional.
Update Current chatandSet chat variable [not visible by operator]set attribute to{"lhc_ds":0}lhc_dsis like a magic attribute by which Live Helper Chat knows what it has to do with a survey on page refresh.Update Current chatandSet widget live attributeThis will take care our widget live state.- set
Live attribute pathto["chat_ui","survey_id"] - check
Remove attribute if it exists
- set

Enable a survey from bot
Setting custom survey id from bot
Steps
- Text message. This is optional.
Update Current chatandSet chat variable [not visible by operator]set attribute to{"lhc_ds":2}This will set our survey id to2on page refresh.- Update Current chat
andSet widget live attribute` This will take care our widget live state.- set
Live attribute pathto["chat_ui","survey_id"] - set
Live attribute value in JSON format.value to2
- set

Setting default survey from a bot.
This can happen if you have already set survey from a bot, but now you want to reset it to default department configuration.
- Either department had survey
- Either department did hot had a survey
