Chatspark
Pricing
⌘K

API Reference

v1
⌘K

Welcome Messages and Suggested Prompts

Configure the website welcome in your agent settings and start conversations using supported trigger buttons.

Configure Welcome Content

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.

Page-Specific Prompts

On Plus, Pro, and Enterprise, configure URL rules for Per-Page Suggested Prompts. This supplies page-specific starting questions without undocumented browser configuration fields.

Trigger Messages

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>

Programmatic Controls

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.

Keep configuration in the dashboard
Use documented settings for persistent welcome content. Do not assume passing arbitrary data fields from website code overrides saved agent settings.

Previous

Events

Next

Custom Actions