trending

Under the Hood: How AI Robot Works

Hi Product Hunters!,
This isn't your standard animation app with pre-baked video assets. Everything you see is AI generated live.

1. The "Brain": Google Gemini 2.5 Flash
When a user inputs a prompt (e.g., "Do a backflip holding a beer"), we send this intent to Gemini. Instead of returning plain text, the AI generates a JSON object containing executable JavaScript code.

  • This code contains the specific mathematical formulas (Math.sin, cos, lerp) required to calculate joint angles (shoulders, knees, hips) frame-by-frame.

  • The AI dynamically selects props, determining whether to render a standard Emoji or generate a custom SVG path.

2. The "Engine": React & Procedural Animation
The app is built on React 19. The generated code is "compiled" and executed within a requestAnimationFrame loop (targeting 60fps).

AI ROBOT - An AI robot that turns prompts into real-time animations

AI ROBOT is an interactive, browser-based experiment where natural language is instantly transformed into real-time robot animations. Instead of just generating text, the AI interprets intent and translates it into motion, actions and reactions. Built as a creative exploration of AI-driven behavior, procedural animation and human-like interaction, focused on playfulness, not perfection. No scripts, no timelines, just language, intent and movement.