Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
a
nirholas9f7127c036cf
diff --git a/src/element.js b/src/element.jsindex 00c33b632..356510923 100644--- a/src/element.js+++ b/src/element.js@@ -947,10 +947,14 @@ class Agent3DElement extends HTMLElement {return this._runtime.send(text, { voice: opts.voice ?? this.hasAttribute('voice') });}- // Play talk animation directly via the scene — bypasses LLM, works in embedded context.+ // Play speak animation — tries 'talk', falls back to 'yes', then 'wave'.speak(text, opts = {}) {const duration = Math.max(1.5, (text?.split(' ').length ?? 3) * 0.3);- this._scene?.playAnimationByHint?.('talk', { duration });+ const sc = this._scene;+ if (!sc) return;+ sc.playAnimationByHint('talk', { duration }) ||+ sc.playAnimationByHint('yes', { duration }) ||+ sc.playAnimationByHint('wave', { duration });}async ask(text, opts = {}) {