API Reference
Configure the website welcome in your agent settings and start conversations using supported trigger buttons.
Edit the welcome heading, welcome message, message placeholder, and suggested prompts in your agent settings. Choose Classic or Conversation Bar for your launcher. See Launcher Styles for the available controls.
On Plus, Pro, and Enterprise, configure URL rules for Per-Page Suggested Prompts. This supplies page-specific starting questions without undocumented browser configuration fields.
Use a trigger element after loading the widget to open a conversation with a relevant question.
html
<button class="cs-trigger-agent" data-trigger="What are your pricing plans?">
Ask about pricing
</button>For opening and closing an existing widget, use Widget Controls. The public window.ChatSpark object is a controller, not a callable widget constructor. It does not expose a sendMessage method.