three.ws Assistant Widget

v0.1.2
io.github.nirholas/assistant-widget Checked 1 hour ago Published 1 month ago

Generate 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…

ParameterTypeDescription
accentstringAccent "#hex" color for the widget UI. Default "#f97316". Non-hex values fall back to the default.
agentstringA three.ws agent id to drive the assistant, as an alternative to picking an avatar directly.
avatarstringWhich 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.
backgroundstringBackdrop 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.
badgebooleanShow the small "three.ws" attribution badge. Defaults to on.
contextstringWhat the assistant should know about the site (used as its grounding context in chat).
greetingstringOpening line the assistant shows on load.
modestringInteraction mode: "chat" (text only), "speak" (voice only), or "both" (default).
namestringDisplay name for the assistant / widget header.
positionstringWhich corner the launcher sits in: "right" (default) or "left".
voicebooleanStart 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.

ParameterTypeDescription
filterstringOptionally return just one section. Omit to get everything.