AI voice assistant that controls a real time Rive dashboard with ViewModel data binding

Wanted to share a project I've been working on. It started as a simple ViewModel data binding experiment but it kept growing and turned into this full EV dashboard prototype with an AI voice assistant that controls the car in real time.

The idea was to push Rive beyond standalone animation and use it as a real UI layer connected to a live backend. So every element on the dashboard is bound to actual state coming from a server, not hardcoded values.

Sequence 01.mp4


How the data binding works

The dashboard uses a single Rive file with the MID_MAIN artboard and a MainControlsVM ViewModel. I set up autoBind on initialization so the ViewModel properties connect directly to the state machine inputs. Then I built a state map that takes backend data coming through WebSockets and writes it to the correct ViewModel property in real time.

There are 16 ViewModel properties bound from the backend. Battery percentage, speed, gear, drive mode, brake lights, driver and passenger temperature, fan speed, AC and heater toggles, four door states, lock state, headlight state, and sunroof.

Bidirectional control

This was the tricky part. The dashboard isn't just displaying data. You can also interact with controls inside the Rive animation and those changes need to go back to the backend. So I set up a polling loop that checks the ViewModel properties for changes and sends them to the server through REST calls.

The biggest challenge was preventing feedback loops. When you change the temperature slider in Rive, it sends that to the backend, which broadcasts the new state to all clients, which would then try to update the same slider again. The 500ms debounce window after each user interaction was the fix for that.

Why this setup matters for prototyping

The thing that makes this project interesting is that it's not just one app. There's a separate backend that mimics the controls of a real car. Think of it as the actual knobs, pedals, and buttons. So when you're prototyping a car UI in Rive you can test it against real simulated data in real time instead of guessing how things will behave. Change the speed on the controls panel and the speedometer in the Rive dashboard moves. Turn on the AC and the climate display updates. I think this is one of the things Rive does best, making the prototyping process feel effortless, and connecting it to live data just takes it further.

Voice pipeline

There's also a full voice conversation loop built into the dashboard. You click the AI button, it plays an intro animation, starts recording, detects when you stop talking, sends the audio to the backend for transcription, the AI processes the command, executes it, and the dashboard animates the result. Then it synthesizes a voice response and plays it back with animated frequency bars.

The frequency bars use 5 ViewModel properties with per band smoothing that animate during both recording and playback.

The design approach

I kept the animations intentionally clean. In a car you don't want the UI fighting for the driver's attention so I focused on making the interactions feel right rather than packing in flashy animations.

The whole system is three separate apps running together. The Rive dashboard, a Python backend with an AI agent that has 12 tools for vehicle control, and a React panel that simulates the car hardware. All synced through WebSockets.

I'm really excited to keep experimenting with Rive in real world scenarios like this!