API Reference
All event types emitted by ChatSpark webhooks and their payload schemas. Subscribe to specific events when registering a webhook endpoint.
| Event | Description |
|---|---|
lead.captured | Emitted when a lead is captured via the chat widget or API. |
conversation.started | Emitted when a new conversation begins. |
conversation.ended | Emitted when a conversation is closed or ended. |
message.sent | Emitted when a message is sent (user or assistant). |
agent.updated | Emitted when an agent configuration is updated. |
ai-action.completed | Emitted when an AI action (e.g., CRM integration) completes successfully. |
ai-action.failed | Emitted when an AI action fails. |
training.completed | Emitted when training data processing completes successfully. |
training.failed | Emitted when training data processing fails. |