Skip to content
Help center
On this page

Client SDK Commands

Client SDK • Section 3.4

Programmatically control widget visibility, trigger greeting modals, and listen to conversation events.

Global Client API Methods

Use the global window.Stylchat client API to interact with the widget from your own website buttons:

Configuration & Options

  • Stylchat.open() — Expands the chat window.
  • Stylchat.close() — Collapses the chat window to the floating launcher bubble.
  • Stylchat.toggle() — Toggles open/closed state.
  • Stylchat.send(message) — Dispatches a visitor message programmatically.