Learn how to integrate Release0 agents using HTML and JavaScript for web applications. Customize agent appearance, trigger actions, and handle events with ease using the provided code snippets and examples.
See all possible settings
id
props to each:
See all possible settings
See all possible settings
Agent.open()
: Open popup or bubble
Agent.close()
: Close popup or bubble
Agent.toggle()
: Toggle the bubble or popup open/close state,
Agent.showPreviewMessage()
: Show preview message from the bubble,
Agent.hidePreviewMessage()
: Hide preview message from the bubble,
Agent.setPrefilledVariables(...)
: Set prefilled variables.
Example:
Agent.setInputValue(...)
: Set the value in the currently displayed input.
id
prop to target a specific agent. I.e. Agent.open({ id: 'my-bubble' })
prefilledVariables
option. Here is an example:
Current URL
variable with “https://release0.com” 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://r0.ar/myagent?User%20name=John%20Doe), the variables will automatically be injected to the agent. So you don’t need to manually transfer query params to the agent embed configuration.