Reference
Event Reference
Complete reference for all SDK events and platform webhook events. SDK Events Event Payload Description ready — SDK fully initialized avatar:show — Avatar...
On this page (19 sections)
SDK Events
| Event | Payload | Description |
|---|---|---|
ready | — | SDK fully initialized |
avatar:show | — | Avatar became visible |
avatar:hide | — | Avatar was hidden |
avatar:click | — | Visitor clicked the avatar |
avatar:stateChange | { state } | Animation state changed |
conversation:started | { conversationId } | Chat panel opened |
conversation:closed | { conversationId } | Chat panel closed |
message:sent | { message } | User sent a message |
message:streaming | { token } | Streaming response token |
message:received | { message } | Full response received |
guidance:started | { steps } | Guided tour started |
guidance:stepChanged | { step } | Guidance advanced to next step |
guidance:completed | — | Guided tour finished |
error | { error } | SDK error occurred |
Platform Events (Webhooks)
| Event | Description |
|---|---|
session.started | Visitor session started |
avatar.impression | Avatar viewed in viewport |
avatar.clicked | Avatar was clicked |
conversation.started | Conversation opened |
conversation.completed | Conversation closed successfully |
message.sent | Visitor message sent |
guidance.started | Guided tour started |
guidance.completed | Guided tour completed |
knowledge.sync.completed | Knowledge sync finished |
knowledge.sync.failed | Knowledge sync failed |
Events
Overview
The Asiyst event pipeline records user interactions, assistant guidance outcomes, and operational lifecycle milestones. Events power your real-time analytics dashboard and interaction tracking.
Event Types
- System Events:
session.started,assistant.mounted,avatar.loaded.
- Interaction Events:
widget.opened,message.sent,suggestion.clicked.
- Guidance Events:
element.highlighted,route.navigated,conversion.completed.
Tracking Custom Events
Send application-specific conversion events from the SDK:
import { Asiyst } from "@asiyst/sdk";
// Record a checkout or signup conversion assisted by the avatar
Asiyst.track("purchase_completed", {
orderId: "ord_9921",
amount: 149.00,
currency: "USD",
});
Events
Overview
The SDK includes a typed event emitter for reacting to assistant actions and reporting custom conversion telemetry.
Subscribing to SDK Events
Asiyst.on("widget:opened", () => console.log("Widget Opened"));
Asiyst.on("widget:closed", () => console.log("Widget Closed"));
Asiyst.on("guidance:navigate", ({ targetUrl }) => {
router.push(targetUrl);
});
Tracking Custom Events
Asiyst.track("demo_requested", {
companySize: "50-200",
budget: "$10k+",
});
Events
Overview
Query raw unaggregated event telemetry for ingestion into internal data warehouses (BigQuery, Snowflake).
Endpoints Reference
GET /api/v1/projects/:projectId/events: Stream raw JSON event logs with timestamp filtering.
Events
Overview
Every user interaction, conversational turn, guidance milestone, and system state change emits a structured telemetry event. These events power your dashboard charts and can be ingested into your internal data warehouse.
Standard Analytics Events Catalog
| Event Name | Category | Trigger Condition |
|---|---|---|
avatar.impression | Engagement | Avatar enters viewport for >= 1s |
avatar.clicked | Engagement | User clicks the avatar model |
conversation.started | Dialogue | New chat session initialized |
message.sent | Dialogue | User submits a prompt |
message.received | Dialogue | Assistant completes response |
guidance.started | Guided Tour | User starts an interactive guide |
guidance.step_completed | Guided Tour | User finishes an individual step |
guidance.completed | Guided Tour | User finishes all steps in tour |
feedback.submitted | Quality | User rates a message (up/down) |
Event Payload Schema Example:
{
"eventId": "evt_01h8x9a2b",
"eventType": "guidance.step_completed",
"projectId": "proj_9f8a2b3c4d",
"sessionId": "sess_88a91b2c",
"visitorId": "vis_992140",
"timestamp": "2026-09-28T03:45:12.102Z",
"properties": {
"flowId": "tour_checkout_setup",
"stepIndex": 2,
"stepTitle": "Enter API Secret Key",
"durationMs": 4200
}
}
Custom Business Event Tracking
Log application-specific conversion milestones with Asiyst.track():
import { Asiyst } from "@asiyst/sdk";
// Track when a visitor upgrades their plan during an assistant interaction
Asiyst.track("subscription_upgraded", {
previousPlan: "Free Starter",
newPlan: "Pro Enterprise",
annualValue: 1188.00,
assistedByAvatar: true,
});
Exporting Raw Events
Download unaggregated raw JSON event logs for internal ETL pipelines:
curl "https://asiyst.com/api/v1/projects/proj_9f8a2b3c4d/analytics/events?limit=500" \
-H "Authorization: Bearer $ASIYST_API_TOKEN"