Skip to content
Limited timeStarter is now $9 a month instead of $20.See plans
charmotion

Designing a Multi-Agent Dashboard UI with Animated Rive Avatars

By the Charmotion team · Updated · How we write guides

Cover illustration for the guide: Designing a Multi-Agent Dashboard UI with Animated Rive Avatars, with Charmotion demo characters

Give each agent in your multi-agent dashboard its own Rive avatar instance, and drive it from the agent's real status instead of a looping clip. Model that status in one ViewModel with a number mood, bind one ViewModelInstance per agent, and throttle streaming events so the screen does not redraw on every token.

Key takeaways

  • Give each agent its own avatar instance and drive it from real run status, not a decorative loop.
  • Keep the state list to five to eight states that your backend can actually report.
  • Put one number property named mood in a single ViewModel, and reuse one .riv file for every card.
  • Load the file once, animate only visible cards, and update avatars only when status changes.
  • Connect agent frameworks through a small adapter that converts their events into the same status values.

Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.

What does each agent avatar need to show?

Most dashboards put one mascot in the header and stop there. In a multi-agent dashboard, that hides the thing people look for: which agent is working, which one is stuck, and which one needs a decision from you. This guide shows how to build a multi-agent dashboard UI with animated Rive avatars for each agent, from the state model to the performance rules that keep many cards smooth.

The architecture has four parts. Agents, such as a research agent, a coding agent and a support triage agent, emit events. A reducer turns those events into one status per agent. Each status maps to a mood value. Each avatar is a Rive ViewModelInstance that the app writes to when the mood changes, and the Rive state machine blends between the matching animations.

Rive fits this pattern because each avatar is one small file with its own state machine. The dashboard changes what an avatar shows by writing a value, without swapping videos or GIFs. The same idea works for an animated mascot in any app, but an agent dashboard adds many instances at once, so the performance rules matter more.

Which states should an agent avatar show?

Keep the list short and tied to events your backend really emits. Five to eight states cover most agent dashboards. The table below uses the mood numbers that Charmotion's generated characters use, so you can copy the mapping if you start from the same file format. Your own .riv can use any numbers, as long as the app and the state machine agree.

Agent statusMeaningMood value
idle or queuedNo run in progress0
doneLast run finished without errors1
runningA run has started and has not finished3
tool callThe agent is waiting on a tool or API5
streamingThe agent is writing output to the user7
failedThe run ended with an error4
waitingThe agent has asked the user for input9
pausedThe user or a schedule stopped the agent8

Each state should have a clear definition in your backend. Waiting means the agent has asked a question and cannot continue. Running means a run has started and no finish event has arrived. If your backend cannot report a state, leave it out of the table.

Two states are enough for a first version: working and needs you. Every extra state is another animation to design, test and explain to users, so add states only when a user would act differently on seeing them.

How do you design one Rive file for every agent?

Design one avatar in the Rive editor, then reuse that file for every agent. The ViewModel is the contract between design and code. Add the properties your app writes: a Number named mood, a String named name, a Boolean named accents and a Color for the agent's accent. Rive View Model properties can be Number, String, Boolean, Color, Enum, Trigger, Image, nested View Model or List types, so these cover a status avatar.

  • Create one artboard with the character and a state machine whose transitions read the mood value.
  • Bind the state machine inputs to the ViewModel properties. Data binding can drive any property from live data in an app.
  • Put the accent color in a property, so each agent card can set its own color without a new file.
  • Export a .riv file. The .rev format is for backups and editing, and runtimes cannot load it.

Files on Rive's Free plan export with a Rive splash screen, so a dashboard shipped to users needs a paid plan. See is Rive free and how its plans work before you choose.

If you want the character drawn and animated first, Charmotion generates one .riv from a single character image. Its CharacterViewModelMachine has a Number property named mood, and its CharacterStateMachine has a mood input, so the mapping above works without changes. Its fixed moods are idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9.

How do you bind one avatar per agent in code?

Create one ViewModelInstance per agent, then keep a map from agent ID to a function that sets that instance's mood. The status logic stays in plain code, and the Rive calls stay in one small layer. On the web runtime, the viewModelInstance getter returns the instance currently bound, and viewModel(path) returns a ViewModelInstance for a named view model. setViewModelInstance assigns an instance to the state machine without binding it, and bind() applies the instances that were set. Check the web runtime reference for the setter that matches the Number property type before you write the binding layer.

const statusToMood = {
  idle: 0,
  done: 1,
  running: 3,
  failed: 4,
  toolCall: 5,
  paused: 8,
  streaming: 7,
  waiting: 9
};

function applyStatus(agentId, status, setters) {
  const setMood = setters.get(agentId);
  const mood = statusToMood[status];
  if (!setMood || mood === undefined) {
    return;
  }
  setMood(mood);
}

Each card calls applyStatus when its agent's status changes. The setters map is created when each avatar's instance is bound, so a card that has not loaded yet simply ignores updates until it is ready.

On React Native, useViewModelInstance creates an instance from a RiveFile, a ViewModel or a RiveViewRef, and its async option needs @rive-app/react-native 0.4.18 or later. The React Native runtime is native, so test it in a development build rather than Expo Go. On Flutter, from version 0.15.0, data binding happens when a RiveWidgetController is created, and the separate dataBind call was removed. That release needs Flutter 3.32.0 or later. On Apple platforms, the 6.28.0 runtime binds authored default ViewModel instances automatically, and DataBind is deprecated. For native iOS details, see how to use Rive in SwiftUI.

How do you keep many animated avatars smooth?

A dashboard with a dozen live avatars can waste CPU and battery if every card runs at full speed. Most of the savings come from four habits.

  • Load the .riv once. Fetch the file once, cache it and create an instance per card. Each card should not download its own copy.
  • Animate only visible cards. Use the browser's IntersectionObserver to pause avatars that scroll out of view, and resume them when they return.
  • Cap live avatars. Show animation for the cards on screen and a still pose for the rest. A forty-agent list should not run forty state machines.
  • Write only on change. Set mood when the status changes, not on every event. Most events do not change the visible state.

Respect reduced motion as well. When the user prefers reduced motion, show a still pose or turn accents off. The mood logic stays the same, so the dashboard still shows the status through the pose and the text beside it.

How do you connect agent events to the avatars?

The events come from the agent framework, and each framework names them differently. LangGraph streams token output, state updates and node-level progress while a graph runs, and its React hook connects a front end to a running graph. LiveKit Agents frontends read the agent's state to drive their UI. AG-UI is an event-based protocol that CopilotKit uses to stream agent output, sync shared state and route tool calls. Write one small adapter per source that converts its events into the status values in the table above.

Token events should rarely change the avatar. Set streaming on the first token of a response and leave it there until the run ends. Coalesce updates too: if three events arrive in the same frame, apply only the last status. This keeps the avatar from flickering between two states during fast streams.

Voice agents follow the same pattern with different event names. For a worked mapping, see voice agent avatar events with OpenAI Realtime. For a pattern that drives an avatar from ElevenLabs agent mode changes, see the ElevenLabs agent avatar. For tool calls in coding agents, see mapping coding agent tool calls to mascot states.

Start with one agent card and test it against real runs, including failures and interrupted runs. When the mapping matches what users see, copy the same adapter pattern to the other agents.

Build a multi-agent dashboard UI with animated Rive avatars

  1. Define the agent states. List five to eight statuses your backend can report, such as idle, running, tool call, streaming, waiting, failed and done, and give each one a mood value.
  2. Create the ViewModel in Rive. In the Rive editor, add a ViewModel with a Number property named mood, a String named name, a Boolean named accents and a Color for the accent.
  3. Build the state machine. Design the avatar's states and connect the state machine transitions to the mood value so each status plays its matching animation.
  4. Export one .riv file. Export a .riv file from a plan that removes the splash screen, and load that single file for every agent card.
  5. Bind one instance per agent. Create a ViewModelInstance for each agent in your dashboard code and keep a map from agent ID to the function that sets its mood.
  6. Adapt the agent events. Write one adapter per agent framework that converts its events into the status values, updating mood only when the status changes.
  7. Limit what animates. Pause avatars that are off screen, cap the number of live animations, and show a still pose when the user prefers reduced motion.

Frequently asked questions

Can one .riv file drive several agent avatars at once?

Yes. Load the file once, create a separate ViewModelInstance for each agent and bind each instance to its card. Each instance keeps its own mood, so one agent failing does not change the others. Check your platform's runtime reference before you rely on a specific property type.

Do the agents need to run on Rive's servers?

No. The avatars play in your app through the web, React Native, Flutter or Apple runtimes, and the dashboard reads status from your own backend. The runtimes are open source and play any .riv file, so the agent logic stays wherever you already run it.

Why not use a looping video for each agent?

A video cannot change state without swapping to another file, and each card loads a full clip. A Rive state machine switches between states as the mood value changes, so one small file covers idle, running and waiting states.

Sources

Related guides