See all possible settings
id
prop:
See all possible settings
See all possible settings
zazubot.open()
: Open popup or bubble
zazubot.close()
: Close popup or bubble
zazubot.toggle()
: Toggle the bubble or popup open/close state,
zazubot.showPreviewMessage()
: Show preview message from the bubble,
zazubot.hidePreviewMessage()
: Hide preview message from the bubble,
zazubot.setPrefilledVariables(...)
: Set prefilled variables.
Example:
zazubot.setInputValue(...)
: Set the value in the currently displayed input.
zazubot.sendCommand(...)
: Send a command to the bot.
id
prop to target a specific zazubot. I.e. zazubot.open({ id: 'my-bubble' })
prefilledVariables
option. Here is an example:
Current URL
variable with “https://my-site/account” and the User name
variable with “John Doe”. More info about variables: here.
Note that if your site URL contains query params (i.e. https://zazubot.com?User%20name=John%20Doe), the variables will automatically be injected to the zazubot. So you don’t need to manually transfer query params to the bot embed configuration.