[section: intro]nail your agent's first reply.
For customer-facing agents, the first response decides the conversation. Give yours the behavioural context a human rep would have — what the user was doing before they typed — and it lands the first reply instead of stalling on a clarifying question.
Early integrators see double-digit lifts in first-response engagement: fewer clarifying-question loops, fewer abandoned threads. Right now your agent is flying blind — it sees what the user typed, not the 45 seconds of idle time, the three rage clicks, or the tab they keep switching to.
We built the SDK we wished existed — three lines, no collector, no signup. MIT-licensed, runs entirely in the browser.
{
behavior: {
session_duration_s: 45,
scroll_depth_pct: 78,
rage_clicks: { count: 3, by_target: [...] },
tab_switches: 2,
idle_periods: [{ start_ms: 8000, end_ms: 28000 }],
current_element_focus: "#checkout-button"
},
device_info: { viewport_w: 1440, device_type: "desktop" },
marketing_params: { utm_source: "organic", ... },
event_log: [...]
}