Chatspark
Pricing
⌘K

API Reference

v1
⌘K

Connecting Widget Conversations to Actions

Configure supported AI Actions and lead capture from your agent settings. Use website trigger buttons to start a conversation.

Configure AI Actions

Connect supported actions in the AI Actions library, choose the agent, and enter the required integration settings. Available actions depend on the agent type and plan. See AI Actions for the catalogue and individual setup guides.

Use the native lead capture settings to collect contact details. Supported lead routing and server webhooks can connect those records to your business systems.

Website Trigger Buttons

After the widget script loads, a website button can open the agent and send a starting question. This starts a conversation. It does not by itself authorize a booking, payment, or other business action.

html

<button class="cs-trigger-agent" data-trigger="I would like to book a demo">
  Ask about a demo
</button>

Server Integrations

For business events, use the server webhook API on Enterprise. Validate webhook signatures and apply your own record-level authorization before making changes.

Supported interfaces
The public widget API does not define arbitrary data.actions form injection or an action-triggered callback contract. Use the supported agent settings, AI Actions, trigger elements, and server APIs.

Previous

Custom Messages

Next

Identity Verification