Add custom buttons that can open, close, or toggle your chat widget
Enable Trigger Buttons
Add Data Attributes
data-knowflow-trigger
attribute to any HTML element:Style Your Buttons
Test Your Triggers
Action | Description | Use Case |
---|---|---|
open | Opens the widget dialog | ”Get Help” buttons, FAQ links |
close | Closes the widget dialog | Custom close buttons in your UI |
toggle | Toggles the widget state | General “Chat” or “Support” buttons |
Trigger Buttons Not Working
Programmatic API Not Available
window.KnowFlowWidget
exists for programmatic controlDynamic Buttons Not Working