# maheshwaranabinesh5/vikki-ai-voice-assistant architecture

> Architecture diagram of the GitHub repository maheshwaranabinesh5/vikki-ai-voice-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maheshwaranabinesh5/vikki-ai-voice-assistant
- Repository: https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant

## Overview

Vikki’s main workflow is a real-time voice conversation: the user speaks to the Python assistant, which uses Google Gemini Live and sends assistant state and replies over a local WebSocket to the browser robot face. The face animates for idle, listening, thinking, speaking, emotions, and errors; the assistant can also close on a spoken goodbye. The relationship details below follow the README; agent.py was indexed but not inspected, so internal call structure is not represented.

Main entry points: [`agent.py`](https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/agent.py) (Voice assistant), [`robot.html`](https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/robot.html) (Animated robot face)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Voice conversation"]
  node_assistant["Voice assistant<br/>[agent.py]"]
  node_gemini["Gemini Live"]
end

subgraph group_transport["Browser connection"]
  node_socket["Local WebSocket<br/>[agent.py]"]
end

subgraph group_interface["Robot interface"]
  node_robot["Animated robot face<br/>[robot.html]"]
end

node_user(("Voice user"))

node_user -->|"speaks to"| node_assistant
node_assistant -->|"uses"| node_gemini
node_assistant -->|"sends state and replies"| node_socket
node_socket -->|"delivers messages"| node_robot

click node_assistant "https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/agent.py"
click node_socket "https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/agent.py"
click node_robot "https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/robot.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_assistant,node_gemini,node_user toneBlue
class node_socket toneAmber
class node_robot toneMint
```

## Components

### Voice conversation

- [Voice assistant](https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/agent.py): `agent.py`
- **Gemini Live**

### Browser connection

- [Local WebSocket](https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/agent.py): `agent.py`

### Robot interface

- [Animated robot face](https://github.com/maheshwaranabinesh5/vikki-ai-voice-assistant/blob/main/robot.html): `robot.html`

### Other components

- **Voice user**

## Connections

- Voice user → Voice assistant: speaks to (evidence: `README.md`)
- Voice assistant → Gemini Live: uses (evidence: `README.md`)
- Voice assistant → Local WebSocket: sends state and replies (evidence: `README.md`)
- Local WebSocket → Animated robot face: delivers messages (evidence: `README.md`)
