See all possible settings
id
prop:
See all possible settings
See all possible settings
localStorage
API to remember the state of the preview message.
Typebot.open()
: Open popup or bubble
Typebot.close()
: Close popup or bubble
Typebot.toggle()
: Toggle the bubble or popup open/close state,
Typebot.showPreviewMessage()
: Show preview message from the bubble,
Typebot.hidePreviewMessage()
: Hide preview message from the bubble,
Typebot.setPrefilledVariables(...)
: Set prefilled variables.
Example:
Typebot.setInputValue(...)
: Set the value in the currently displayed input.
Typebot.sendCommand(...)
: Send a command to the bot.
Typebot.reload()
: Reload the bot.
id
prop to target a specific typebot. I.e. Typebot.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://typebot.io?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don’t need to manually transfer query params to the bot embed configuration.