Basic Usage
Trigger Options
Options
Screenshots
Enable screenshot capture to give your agent visual context about what the user was seeing:Screenshot capture requires html2canvas. Add it to your page:
Dismissing Triggers
Custom Messages
UseaddMessage() to show cards without firing an event — useful for announcements, tips, or custom CTAs:
Trigger Events
Listen for trigger lifecycle events:Trigger-Only Mode
If you only want triggers without the persistent chat bubble, setwidget: false:
Migration from trigger.js
If you were using the standalonetrigger.js script, migrate to the unified widget.js:
- Replace
trigger.jswithwidget.js - Remove
type: 'toast'(toast is now the only trigger style) - Use
textinstead ofmessagefor the trigger card text boostgpt.triggerDirect()is now justboostgpt.trigger()- The old
trigger.jsstill works with a deprecation warning but will be removed in a future version