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.

1.8 KB
Raw Blame
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex">
    <title data-i18n="embed_example.meta_title">3D-Agent Embed Example</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-family: sans-serif;
        }
        h1 {
            margin: 20px;
        }
        textarea {
            width: 80%;
            max-width: 500px;
            padding: 10px;
            font-family: monospace;
            white-space: pre;
            overflow-x: auto;
        }
        .container {
            width: 80%;
            height: 60%;
            max-width: 800px;
            border: 1px solid #ccc;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <h1 data-i18n="embed_example.3d_agent_embed_example">3D-Agent Embed Example</h1>
    <p data-i18n="embed_example.copy_this_html_snippet_to_embed_an">Copy this HTML snippet to embed an agent on your website.</p>
    <textarea readonly rows="4"><iframe
    src="https://three.ws/agents/{YOUR_AGENT_ID}/embed"
    width="100%"
    height="100%"
    frameborder="0"
></iframe></textarea>
    
    <h2 data-i18n="embed_example.live_preview">Live Preview</h2>
    <div class="container">
        <iframe
            src="https://three.ws/agents/d1b244de-9728-4a96-a68f-a212f8666579/embed"
            width="100%"
            height="100%"
            frameborder="0"
        ></iframe>
    </div>
	<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
	<script type="module" src="/i18n.js"></script>
</body>
</html>