Client-side API (JavaScript)¶
The chatbot front end is JavaScript, so you can interact with it from your own scripts: open it, close it, send a message, or react to events.
What you can do¶
- Open or close a popup chatbot from your own button.
- Pre-fill and send a message.
- Listen for replies and events.
- Add shortcut buttons through
ogaie_chatbot_shortcuts.
Tips¶
- Wait for the chatbot to load before calling it.
- Keep custom scripts small, and load them only on pages that need them.
- For layout changes prefer the themes editor and custom CSS.
- If you embed on another site, see External integration.