Skip to content

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.

feat(voice): give voice its own step in the create-agent flow

nichd11aaa1817f8
diff --git a/pages/create-agent.html b/pages/create-agent.html
index 0d79e1a66..b3f7e8a58 100644
--- a/pages/create-agent.html
+++ b/pages/create-agent.html
@@ -1656,7 +1656,6 @@
</section>
-
<!-- Step 5 - Voice -->
<section class="panel" data-step="4" aria-label="Voice">
<p class="panel-eyebrow" data-i18n="create_agent.step_5_of_6">Step 5 of 6</p>
diff --git a/src/create-agent.js b/src/create-agent.js
index f3b131ca5..185371af2 100644
--- a/src/create-agent.js
+++ b/src/create-agent.js
@@ -1,11 +1,13 @@
// Agent Creation Wizard — /create-agent
//
-// A five-step, state-driven flow that produces a real agent identity:
+// A six-step, state-driven flow that produces a real agent identity:
// 1. Basics → name, description, tags
// 2. 3D model → starter library | own GLB upload | attach later
// 3. Skills → core (always on) + optional capabilities
-// 4. Personality → category, greeting, profile prompt, voice
-// 5. Review → POST /api/agents, optional marketplace publish
+// 4. Personality → category, greeting, profile prompt
+// 5. Voice → built-in speech, or a recorded/uploaded sample cloned onto
+// the agent (src/voice/voice-setup.js) the moment it exists
+// 6. Review → POST /api/agents, voice bind, optional marketplace publish
//
// Everything writes through the same verified endpoints the agent editor uses
// (account.js#saveRemoteGlbToAccount for the model, /api/agents for the
@@ -19,9 +21,10 @@ import { log } from './shared/log.js';
import { isValidGlbMagic } from './shared/glb-magic.js';
import { track, trackFunnelStep, trackError, ANALYTICS_EVENTS } from './analytics.js';
import { draftHasContent, isDraftFresh } from './create-agent-draft.js';
+import { VoiceSetup } from './voice/voice-setup.js';
-const TOTAL_STEPS = 5;
-const STEP_LABELS = ['Basics', 'Model', 'Skills', 'Personality', 'Review'];
+const TOTAL_STEPS = 6;
+const STEP_LABELS = ['Basics', 'Model', 'Skills', 'Personality', 'Voice', 'Review'];
const MAX_TAGS = 8;
// Marketplace categories — mirrors api/marketplace/[action].js CATEGORIES.