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
docs(tutorials): register the body-language tutorial so it is reachable
nirholas9f12b700e9eb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a78767c8e..9c2f19250 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -32,6 +32,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Tutorial · Earn and spend in /play** (`/tutorials/earn-and-spend-in-play`) — Run the full economic loop in the open world: gather raw materials, sell them to a vendor, buy a better tool, bank the rest so death can't take it, and spin the wheel. Covers why the world has two currencies that never touch, and why the server decides every price.- **Tutorial · Explore the docs as a 3D world** (`/tutorials/explore-docs-world`) — Walk an avatar through the documentation: fourteen sections as glowing pavilions, live pages read in-world, shareable deep links, and your own GLB as the body.- **Tutorial · Give an Agent a Spending Envelope** (`/tutorials/agent-spending-envelope`) — Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.+- **Tutorial · Give your agent body language** (`/tutorials/animate-your-agent`) — Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.- **Tutorial · Monetize an MCP server: charge per tool call** (`/tutorials/monetize-mcp-server`) — Build an MCP server whose tools charge other agents per call in USDC on Solana. One free orientation tool, one paid tool that does real work, and a test that proves the product never escapes unpaid.- **Tutorial · Read the trading fleet** (`/tutorials/read-the-trading-fleet`) — Tell a working autonomous strategy from a lucky one: why realized profit is the only profit, how to read profit factor against win rate and drawdown, the sample size below which a rank means nothing, and how to spot a broken fleet that still shows a green light.- **Tutorial · Render Avatars as Images** (`/tutorials/render-avatar-images`) — Put a live 3D avatar in an image tag: four camera framings, 28 poses, ARKit facial morphs, social cards, turntables, and a CORS-open GLB proxy. No 3D engine anywhere in your stack.diff --git a/data/pages.json b/data/pages.jsonindex c5a98c1dc..10e47862d 100644--- a/data/pages.json+++ b/data/pages.json@@ -4494,6 +4494,14 @@"priority": 0.7,"changefreq": "monthly","added": "2026-07-30"+ },+ {+ "path": "/tutorials/animate-your-agent",+ "title": "Tutorial · Give your agent body language",+ "description": "Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.",+ "priority": 0.8,+ "changefreq": "monthly",+ "added": "2026-07-30"}]},diff --git a/docs/tutorials/animate-your-agent.md b/docs/tutorials/animate-your-agent.mdnew file mode 100644index 000000000..1d9dd8ac0--- /dev/null+++ b/docs/tutorials/animate-your-agent.md@@ -0,0 +1,162 @@+# Give your agent body language++By the end of this tutorial your agent will move on its own: nod when a model finishes loading, look down while it reads on-chain data, celebrate a settled payment, and dance when you ask it to. You will know which gesture fires when, how to swap any of them for a different clip, and how to drive one from your own code.++**Prerequisites:** a browser. The last two sections use an agent you own, which the first section shows you how to create, and a text editor for a few lines of JavaScript.++**Time:** about 12 minutes.++---++## What you're building++```+A skill runs ──► it declares a hint ──► the hint resolves to a slot+ │+ your override map ──────────┤+ ▼+ the slot resolves to a clip+ │+ ▼+ the avatar plays it+```++Three names, one chain. Worth learning in this order, because each one only exists to keep the next one loose:++| | What it is | Example |+|---|---|---|+| **A clip** | A baked motion file. 112 of them ship with the platform | `av-offabean-dance`, `lookdown`, `wave` |+| **A slot** | A fixed name for an intention. Resolves to a clip, and you can re-point it | `dance`, `inspect`, `wave` |+| **A hint** | What a skill declares when it starts. Resolves to a slot | `gesture`, `inspect`, `gesture-magic` |++An agent never names a clip. It names a slot, or a skill names a hint, and the platform resolves the rest. That is what lets you hand one agent a different body language without touching a line of skill code.++---++## 1. See the whole vocabulary++Open **[three.ws/gestures](https://three.ws/gestures)**.++Every slot an agent can play is on that page, on a card with the clip it resolves to. Click one and it plays on a live avatar. Three things are worth noticing before you build anything:++- **`inspect` plays `lookdown`.** Nineteen skills declare that hint, every read-only lookup in the catalog. It is the gesture your agent will spend the most time in.+- **`bow` plays `sitclap`.** The one approximation in the vocabulary, marked `approx` on its card: no bow clip is baked yet, so it borrows a seated clap. Everything else plays a clip that means what the slot means.+- **The hint table underneath is generated from the shipped skills**, so the skill names next to each hint are the real ones, not an illustration.++Deep-link any slot to show someone: [three.ws/gestures?slot=celebrate](https://three.ws/gestures?slot=celebrate).++---++## 2. Create an agent and watch it move on its own++Go to **[three.ws/create](https://three.ws/create)**, give the agent a name and a body, and save. You now have a hosted agent at `three.ws/a/<your-agent>`.++Open it and watch the avatar while the page settles:++| What you do | What fires | What you see |+|---|---|---|+| Load the page | `_onLoadStart` | `think` slot: the avatar thinks while the model streams in |+| The model finishes | `_onLoadEnd` | `nod` slot: a nod of acknowledgement |+| Ask it something that runs a read-only skill | hint `inspect` | `lookdown`: it reads |+| Ask it to buy or launch something | hint `gesture` | `point`: a decisive hand gesture |+| A skill succeeds | celebration stimulus | the face brightens; a clean validation plays `celebrate` |+| A skill fails | concern stimulus | `concern`: the `defeated` clip, with a downward gaze |++None of that is scripted per agent. It comes from the slot vocabulary, so every agent on the platform has it from the moment it exists.++---++## 3. Swap one gesture for another++Your agent's personality lives partly in which clips it uses. A trading agent that celebrates with `av-headbang` reads differently from one that plays `celebrate`.++On [three.ws/gestures](https://three.ws/gestures), click the slot you want to change, pick a clip from the **Override this slot** dropdown, and copy the JSON. You will get exactly this shape:++```json+{+ "edits": {+ "animations": {+ "dance": "av-offabean-dance"+ }+ }+}+```++Paste the inner `animations` object into your agent's `meta.edits.animations` in the agent editor (**Edit → Advanced → meta**). Add as many slots as you like:++```json+{+ "edits": {+ "animations": {+ "dance": "av-offabean-dance",+ "celebrate": "av-cheering",+ "think": "av-smoking",+ "inspect": "av-spy"+ }+ }+}+```++Save, reload the agent page, and trigger the gesture. Anything not listed keeps the platform default, so an override map is only as long as the changes you want.++Any of the 112 clip names in [`/animations/manifest.json`](https://three.ws/animations/manifest.json) is valid. Browse them with previews at [three.ws/animations](https://three.ws/animations).++---++## 4. Drive a gesture from your own code++An embedded avatar takes clips directly. Add the web component to any page, and set the clip it starts on with the `clip` attribute:++```html+<script type="module" src="https://three.ws/agent-3d/latest/agent-3d.js"></script>++<agent-3d+ body="https://three.ws/avatars/cz.glb"+ clip="idle"+ style="width: 360px; height: 480px; display: block"+></agent-3d>+```++Then play any clip whenever your own code wants one:++```html+<button id="celebrate">Celebrate</button>+<button id="dance">Dance</button>++<script type="module">+ const avatar = document.querySelector('agent-3d');++ // playClip() honours the clip's own loop flag: a loop clip loops, a one-shot+ // plays once and settles back into idle with no snap at the boundary.+ // userInitiated lets the motion run even under prefers-reduced-motion, which+ // is correct here because a click asked for it.+ document.getElementById('celebrate').addEventListener('click', () => {+ avatar.playClip('celebrate', { userInitiated: true });+ });+ document.getElementById('dance').addEventListener('click', () => {+ avatar.playClip('av-offabean-dance', { userInitiated: true });+ });++ // Shorthand for the most common one.+ document.querySelector('agent-3d').wave();+</script>+```++The full attribute and method surface is in the [embedding guide](/docs/embedding). The clip names are the same ones the slots resolve to, so a gesture you liked on the `/gestures` page works here by name.++---++## 5. Player-driven gestures on /walk++There is a second gesture library for avatars a person is driving rather than an agent: open [three.ws/walk](https://three.ws/walk), move with `WASD`, and press `1`-`8` for a gesture.++The difference that matters is the layer. `wave`, `point`, `nod` and `shrug` are **upper-body overlays**: the legs keep the walk cycle, so your avatar waves while it walks. `dance`, `sit`, `jog` and `celebrate` are **full-body**, so movement is suppressed until they end. Try waving while walking, then dancing while walking, and the distinction is obvious in one second.++---++## Where to go next++- **[three.ws/gestures](https://three.ws/gestures)** is the reference you will come back to: every slot, its clip, and the skills that fire it.+- **[Animation Studio](/pose)** if none of the 112 clips is the motion you want. Pose an avatar with FK/IK, keyframe a timeline, export the clip, and point a slot at it.+- **[docs/animations](/docs/animations)** for the developer reference: the clip pipeline, how to bake a new clip from an FBX, and how the slot and hint tables are held to the manifest by tests.+- **[The club stage](/club)** for what happens when a dance becomes a product: agents pay $0.001 USDC per performance, and the style they book is one of the same clips.diff --git a/public/changelog.json b/public/changelog.jsonindex 3a5000c23..fcff26c10 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T23:27:23.421Z",+ "generated_at": "2026-07-30T23:27:32.542Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -266,6 +266,16 @@"launch"]},+ {+ "date": "2026-07-30",+ "type": "launch",+ "title": "Tutorial · Give your agent body language",+ "summary": "Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.",+ "link": "/tutorials/animate-your-agent",+ "tags": [+ "launch"+ ]+ },{"date": "2026-07-30","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 24dc67e08..60c858ec8 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -214,6 +214,14 @@<category>launch</category><description>Fund a budget from prepaid credits, hand an agent a capped bearer token, and let it buy real x402 services with no private key: total budget, per-call ceiling, host allowlist, expiry, audit ledger, and a refund on cancel.</description></item>+ <item>+ <title>Tutorial · Give your agent body language</title>+ <link>https://three.ws/tutorials/animate-your-agent</link>+ <guid isPermaLink="false">2026-07-30:Tutorial · Give your agent body language</guid>+ <pubDate>Thu, 30 Jul 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.</description>+ </item><item><title>Tutorial · Monetize an MCP server: charge per tool call</title><link>https://three.ws/tutorials/monetize-mcp-server</link>diff --git a/public/features.json b/public/features.jsonindex 4521c928a..5cb41684b 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-30T23:22:36.222Z",+ "generated_at": "2026-07-30T23:27:32.533Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -5836,6 +5836,16 @@"indexable": true,"tags": [],"showcase": false+ },+ {+ "path": "/tutorials/animate-your-agent",+ "title": "Tutorial · Give your agent body language",+ "description": "Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.",+ "added": "2026-07-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false}]},diff --git a/public/llms-full.txt b/public/llms-full.txtindex 75cb48d92..3c02b4c3a 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -3533,6 +3533,12 @@ URL: https://three.ws/docs/tutorials/earn-and-spend-in-playRun the full economic loop in the open world: gather materials, sell them to the vendor, buy a better tool, bank what you cannot afford to lose, and spin the wheel. Explains why cooking triples fish value and why the bank is the only real decision.+### Tutorial · Give your agent body language++URL: https://three.ws/tutorials/animate-your-agent++Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.+## BlogLong-form announcements, launches, and writing from three.ws.diff --git a/public/llms.txt b/public/llms.txtindex 4cc060d6f..1e3dab5e5 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -604,6 +604,7 @@ Docs, tutorials, and reference.- [Tutorial · Earn and spend in /play](https://three.ws/tutorials/earn-and-spend-in-play): Run the full economic loop in the open world: gather raw materials, sell them to a vendor, buy a better tool, bank the rest so death can't take it, and spin the wheel. Covers why the world has two currencies that never touch, and why the server decides every price.- [Docs: The showcase](https://three.ws/docs/showcase): The public directory of ERC-8004 agents that registered a real 3D avatar. Nothing is curated: an agent appears because the crawler verified its on-chain metadata resolves to a usable model. Covers the qualifying rules and the keyset-paginated API.- [Docs · Tutorial: earn and spend in /play](https://three.ws/docs/tutorials/earn-and-spend-in-play): Run the full economic loop in the open world: gather materials, sell them to the vendor, buy a better tool, bank what you cannot afford to lose, and spin the wheel. Explains why cooking triples fish value and why the bank is the only real decision.+- [Tutorial · Give your agent body language](https://three.ws/tutorials/animate-your-agent): Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.## Blogdiff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex e31d187cb..6ab7db28c 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -79,7 +79,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 741 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 742 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -91,7 +91,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 741 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 742 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -2069,7 +2069,7 @@<section class="sm-section" id="learn"><header>- <h2>Learn<span class="sm-count" data-count>317</span></h2>+ <h2>Learn<span class="sm-count" data-count>318</span></h2><p class="sm-section-desc">Docs, tutorials, and reference.</p></header><ul class="sm-list">@@ -4292,6 +4292,13 @@<span class="sm-desc">Run the full economic loop in the open world: gather materials, sell them to the vendor, buy a better tool, bank what you cannot afford to lose, and spin the wheel. Explains why cooking triples fish value and why the bank is the only real decision.</span></a></li>+ <li>+ <a href="/tutorials/animate-your-agent">+ <span class="sm-title">Tutorial · Give your agent body language</span>+ <span class="sm-path">/tutorials/animate-your-agent</span>+ <span class="sm-desc">Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.</span>+ </a>+ </li></ul></section>diff --git a/public/tutorials-manifest.js b/public/tutorials-manifest.jsindex 9340612b6..8b4b70ab5 100644--- a/public/tutorials-manifest.js+++ b/public/tutorials-manifest.js@@ -222,6 +222,16 @@},/* ────────────────────────── MIDDLE ────────────────────────── */+ {+ slug: 'animate-your-agent',+ tier: 'middle',+ title: 'Give your agent body language',+ blurb: 'Clips, slots and hints: the three-name chain that makes an agent nod, look down while it reads, celebrate a settled payment, and dance on request. Re-point any gesture without touching skill code.',+ builds: 'An agent that gestures on its own, with a vocabulary you control',+ time: '12 min',+ previewModel: '/avatars/michelle.glb',+ ctaPrimary: { label: 'Open the gesture vocabulary', href: '/gestures' },+ },{slug: 'shopify-store-guide-advanced',tier: 'middle',