Documentation Index
Fetch the complete documentation index at: https://docs.boostgpt.co/llms.txt
Use this file to discover all available pages before exploring further.
Initialization
boostgpt API object with the methods below.
Methods
boostgpt.open()
Opens the chat frame. No-op if already open.
boostgpt.close()
Minimizes the widget back to the bubble. No-op if already closed.
boostgpt.toggle()
Toggles between open and closed states.
boostgpt.hide()
Hides the entire widget (bubble + frame) from the page. Useful for conditionally showing the widget based on user state.
boostgpt.show()
Shows the widget again after hide().
boostgpt.destroy()
Removes the widget from the DOM entirely and cleans up event listeners.
boostgpt.trigger(eventName, context, options)
Shows a proactive message card above the bubble. See Event Triggers for full documentation.
boostgpt.addMessage(text, options)
Adds a custom message card above the bubble without firing an event.
boostgpt.dismiss(eventName)
Removes a specific trigger card.
boostgpt.dismissAll()
Removes all active trigger cards.
Events
Listen for widget lifecycle events:| Event | Description |
|---|---|
open | Widget frame opened |
close | Widget frame closed |
ready | Chat iframe finished loading |
messageSent | User sent a message in the chat |
Global Access
The widget is available globally asboostgpt (and BoostGPTWidget for backwards compatibility):