id
prop:
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.
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://bot.com?User%20name=John%20Doe), the variables will automatically be injected to the bot. So you don’t need to manually transfer query params to the bot embed configuration.