A generic digital-twin agent for creators. Builds alignment through prediction games, generates rigged 3D avatars via Tripo3D with C2PA provenance, registers on-chain coherence to Base via ERC-8004, and acts as a real-time studio assistant and live-chat moderator for YouTube and Twitch streams with Twitch-native clip creation.
A generic digital twin agent for creators. Deploy it and get an AI agent that learns your creative decision-making through prediction games, generates C2PA-secured 3D avatars via Tripo3D, registers your alignment score on-chain via ERC-8004 on Base, and acts as a real-time studio assistant and live-chat moderator for YouTube and Twitch streams.
"Lite" because it skips the platform-specific treasury, token-distribution, prediction-market, and broadcast-infrastructure integrations in favor of first-class YouTube and Twitch support for any creator.
The agent generates hypothetical creative business scenarios — pricing negotiations, IP licensing, client management, creative direction dilemmas — and evaluates your reasoning across four axes: Consistency, Reasoning Depth, Creative Integrity, and Pragmatism. Your responses build a coherence score over time using an exponential moving average. This is how the agent learns to think like you.
Generate fully rigged 3D avatar meshes (.glb) from text descriptions using the Tripo3D API. Every avatar is stamped with C2PA provenance metadata, creating a verifiable record of AI-generated visual identity assets.
When your coherence score reaches 100 after a minimum of 10 prediction rounds, the agent can register your alignment on the ERC-8004 smart contract on Base. This creates a public, verifiable record that other Digital Twin Agents in the Creative AI network can use to establish trust.
Process live audio through an audio-native LLM (OpenAI GPT-4o or Google Gemini). In cowriter mode, the agent actively suggests chord progressions, lyric alternatives, and arrangement critiques. In listener mode, it passively transcribes and analyzes.
Monitor live chat on whichever platform you're streaming on. The agent tracks engagement, moderates contextually (understanding your vibe, not just blocking keywords), and flags top participants.
isOwner, isModerator, and isSponsor booleans.isBroadcaster, isModerator, and isSubscriber booleans.Create a 30-second highlight clip from a live Twitch broadcast via the Helix POST /helix/clips endpoint when engagement spikes. Requires a user OAuth token with the clips:edit scope (anonymous clipping is not supported by Twitch).
YouTube clipping note: YouTube's Data API does not expose clip creation. For YouTube highlights, use YouTube Studio manually.
Float the 3D avatar as a transparent overlay during live broadcasts. Works with OBS Studio via a Browser Source with the R3F canvas set to alpha={true}.
| Mode | Focus | Trigger |
|---|---|---|
| Default | Prediction game, avatars, on-chain | Startup |
| Studio | Audio analysis, musical collaboration | "Switch to Studio Mode" |
| Broadcast | Chat monitoring, moderation, Twitch clipping | "Switch to Broadcast Mode" |
| AFK | Autonomous chat management and Twitch clipping | "Going AFK" |
Play a prediction round
"Let's do an alignment round. Give me a tough one."
Check your score
"What's my coherence score? How many rounds have we done?"
Generate an avatar
"Create a 3D avatar: a cyberpunk owl wearing headphones and a leather jacket, neon purple highlights, confident stance"
Register on-chain
"My score is 100 — let's register our alignment on Base."
Enter Studio Mode
"Switch to Studio Mode. I'm working on a bridge section for a new track."
Analyze audio
"Here's the latest take — analyze it and suggest chord alternatives."
Monitor a YouTube live chat
"I'm live on YouTube — video id dQw4w9WgXcQ. Monitor the chat for 2 minutes and flag anything off-vibe."
Monitor a Twitch chat
"I'm streaming on Twitch as
mychannel. Keep an eye on chat."
Clip a Twitch highlight
"That was fire — clip it on Twitch."
Go AFK
"Going AFK — take over the stream. Monitor chat and clip Twitch highlights if anything pops off."
Open the chat — the agent handles introductions and setup from there.
Configure these secrets in your Pinata dashboard for each feature:
| Secret | Purpose | Required For |
|---|---|---|
TRIPO_API_KEY | Tripo3D API key | Avatar generation |
PRIVATE_KEY | Dedicated EVM wallet (0x-prefixed) | On-chain registration |
PINATA_JWT | Pinata API JWT (Admin key) | Attached Pinata skills |
PINATA_GATEWAY_URL | Pinata gateway domain | Attached Pinata skills |
AUDIO_LLM_API_KEY | OpenAI or Google API key | Studio assistant |
AUDIO_LLM_PROVIDER | openai or google (default: openai) | Studio assistant |
YOUTUBE_API_KEY | YouTube Data API v3 key | YouTube chat monitoring |
YOUTUBE_VIDEO_ID | Default video id for HEARTBEAT invocations | YouTube chat monitoring (optional) |
TWITCH_CHANNEL | Default Twitch channel for HEARTBEAT invocations | Twitch chat monitoring (optional) |
TWITCH_CLIENT_ID | Twitch application client id | Twitch clip creation |
TWITCH_OAUTH_USER_TOKEN | User token with clips:edit scope | Twitch clip creation |
The prediction game works with zero secrets configured — you can start building alignment immediately. Anonymous Twitch chat monitoring also needs no token.
PINATA_JWTPinata API JWT token. Used by attached Pinata skills. Get one at app.pinata.cloud → Developers → API Keys → New Key (Admin permissions).PINATA_GATEWAY_URLPinata dedicated gateway domain (e.g. your-gateway.mypinata.cloud). Find it at app.pinata.cloud → Gateways.TRIPO_API_KEYTripo3D API key for text-to-3D avatar generation. Get one at https://platform.tripo3d.ai. Without it, the generate-avatar skill is disabled.PRIVATE_KEY0x-prefixed Ethereum private key for the agent's dedicated wallet. Used by @Pinata/ERC8004 for on-chain alignment registration. Create a NEW wallet — never use your personal wallet — and fund it with only the minimum ETH needed for gas on Base.AUDIO_LLM_API_KEYAPI key for the audio-capable LLM used by the studio assistant (process-live-audio skill). Works with OpenAI GPT-4o or Google Gemini depending on AUDIO_LLM_PROVIDER.AUDIO_LLM_PROVIDERProvider for audio analysis. Set to 'openai' (default) or 'google'. Paired with AUDIO_LLM_API_KEY.YOUTUBE_API_KEYYouTube Data API v3 key. Required for YouTube live chat monitoring via the monitor-youtube-chat skill.YOUTUBE_VIDEO_IDOptional default YouTube video id used for HEARTBEAT (autonomous) chat monitoring. Can be overridden per-invocation in chat.TWITCH_CHANNELOptional default Twitch channel name used for HEARTBEAT (autonomous) chat monitoring. Anonymous read-only monitoring requires no token.TWITCH_CLIENT_IDTwitch application client id. Required (paired with TWITCH_OAUTH_USER_TOKEN) for the create-twitch-clip skill.TWITCH_OAUTH_USER_TOKENTwitch user OAuth token with the 'clips:edit' scope. Required (paired with TWITCH_CLIENT_ID) for clip creation — Twitch does not support anonymous clipping.Sign up to deploy this template in under a minute