← All add-ons

MxChat Triggers

Version 2.2.4 · Updated 2 weeks ago

Turn any element on your site into a chat trigger. Click a button to fire a predefined message, open the chat from anywhere, route visitors to a specific bot — via data attributes, shortcodes, or JavaScript.

Features

  • Data attribute triggers — drop `<button data-mxchat-trigger="Hello!">` on any HTML element for instant chat-on-click integration.
  • JavaScript API — programmatic control via `window.mxchatOpenAndSend('message')` for custom flows and event-driven triggers.
  • Shortcode integration — `[mxchat_trigger message="..." bot_id="support" text="Talk to support" class="my-btn"]` works in posts, pages, and page builders.
  • Multi-Bot targeting — route specific triggers to specific bot IDs (e.g. "Talk to Sales" opens the sales bot, "Get Help" opens support).
  • Built-in button styles — `mxchat-btn-primary`, `mxchat-btn-secondary`, `mxchat-btn-gradient` for ready-to-ship trigger CTAs.
  • Animation classes — shake, pulse, bounce — draw attention to high-conversion triggers without custom CSS.
  • Page-builder compatible — works inside Elementor, Bricks, Divi, Kadence Blocks, and any builder that supports HTML or shortcodes.
  • Customize per trigger — different message, different bot, different button text, different styling on every CTA across your site.

What's new

Version 2.2.4

  • Improved When the MxChat core plugin's new optional optimization to load chatbot files only on pages where the chatbot appears is enabled, the trigger script and styles now stay off pages where the chat widget is hidden. Off by default; nothing changes unless you enable the optimization in MxChat's settings.