three.ws Assistant Widget
v0.1.2Generate a paste-ready embed for a floating 3D avatar chatbot on any website.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
build_assistant_widget Build a paste-ready three.ws assistant widget embed
Turn a config into a ready-to-embed three.ws assistant widget, a floating 3D avatar chatbot you can drop onto any website. Returns a paste-ready <script> tag (with only the non-default settings as data-* attributes), a standalone frame URL for <iframe> embedding, an equivalent ThreeAssistant.init({...}) JavaScript-API snippet, the visual builder link, and the fully-normalized config. Pure and offline: every field is validated and clamped locally, so a bad value falls back to a safe default and the generated HTML is always well-formed. Call list_assistant_options first to see every avatar, back…
| Parameter | Type | Description |
|---|---|---|
accent | string | Accent "#hex" color for the widget UI. Default "#f97316". Non-hex values fall back to the default. |
agent | string | A three.ws agent id to drive the assistant, as an alternative to picking an avatar directly. |
avatar | string | Which avatar to show: a three.ws avatar id, a "/avatars/*.glb" path (e.g. "/avatars/selfie-girl.glb"), or a full GLB URL. Omit for the default mannequin. |
background | string | Backdrop behind the avatar: "transparent" (default), a "#hex" color, a preset (ember, ocean, violet, forest, dusk, slate), or "gradient:#aabbcc,#112233,160". Anything else falls back to transparent. |
badge | boolean | Show the small "three.ws" attribution badge. Defaults to on. |
context | string | What the assistant should know about the site (used as its grounding context in chat). |
greeting | string | Opening line the assistant shows on load. |
mode | string | Interaction mode: "chat" (text only), "speak" (voice only), or "both" (default). |
name | string | Display name for the assistant / widget header. |
position | string | Which corner the launcher sits in: "right" (default) or "left". |
voice | boolean | Start with voice on (true) or off (false). Defaults to on. |
list_assistant_options List every three.ws assistant widget option
List everything you can configure on the three.ws assistant widget: the built-in avatars, background presets and grammar, interaction modes, chat lanes (free vs bring-your-own-key), and the full data-* attribute reference table. Call this before build_assistant_widget to know the vocabulary. Read-only and offline.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optionally return just one section. Omit to get everything. |