Chat Widget
此内容尚不支持你的语言。
There’s no packaged, npm install-and-go chat widget component yet (an embed script or web component you’d drop into your own app the way <vai-avatar> works for voice/avatar) — that’s still on the roadmap. What already exists today is a complete, real, working reference implementation you can read and adapt directly.
Try it: play.wetel.dev/tools/chat-widget/ — a real, running chat UI wired to a live agent, not a mockup.
The whole thing is a single self-contained HTML file with no build step or framework — read its source for the full, real integration: opening a session with sdkStart, sending each user turn with sdkSendMessage, and rendering the assistant’s reply as it streams in over the Events & Subscriptions subscription. Most integrators start by copying this file directly and adapting the styling/markup to their own app, rather than building the mutation/subscription wiring from scratch.
See also: Core API Flow for the underlying mutations this widget calls, Live Demos for every other real running example on this site, Getting Started, Agents.