# dkpython7/ai-voice-support-agent architecture

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

- Interactive diagram: https://gitdiagram.com/dkpython7/ai-voice-support-agent
- Repository: https://github.com/dkpython7/ai-voice-support-agent

## Overview

GODIMS Voice Support Agent answers customer calls with a VideoSDK agent backed by Gemini Realtime. The workflow configures a voice model and agent session, waits for a participant, then conducts a bilingual support conversation: greeting and language choice, service/pricing/timeline answers, and conversational collection of project and contact details before closing. The prompt defines these capabilities in main.py; there is no separate lead-storage component. Edges reflect the setup code and documented workflow; framework-internal audio and callback routing is not shown in the excerpts.

Main entry points: [`main.py`](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py) (Support Agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Agent Runtime"]
  node_worker["VideoSDK Worker<br/>[main.py]"]
  node_session["Agent Session<br/>[main.py]"]
  node_pipeline["Voice Pipeline<br/>[main.py]"]
  node_gemini["Gemini Realtime"]
  node_voice["Voice Response"]
end

subgraph group_conversation["Support Conversation"]
  node_agent["Support Agent<br/>[main.py]"]
  node_support["Service Guidance<br/>[main.py]"]
  node_lead["Lead Collection<br/>[main.py]"]
end

node_customer(("Customer"))

node_worker -->|"starts"| node_session
node_session -->|"uses"| node_pipeline
node_pipeline -->|"configures"| node_gemini
node_session -->|"instantiates"| node_agent
node_customer -->|"joins call"| node_session
node_agent -->|"answers from"| node_support
node_agent -->|"collects details"| node_lead
node_agent -->|"speaks"| node_voice
node_voice -.->|"responds to"| node_customer

click node_worker "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"
click node_session "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"
click node_pipeline "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"
click node_agent "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"
click node_support "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"
click node_lead "https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py"

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_worker,node_session,node_pipeline,node_gemini,node_voice toneBlue
class node_agent,node_support,node_lead toneAmber
class node_customer toneIndigo
```

## Components

### Agent Runtime

- [VideoSDK Worker](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`
- [Agent Session](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`
- [Voice Pipeline](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`
- **Gemini Realtime**
- **Voice Response**

### Support Conversation

- [Support Agent](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`
- [Service Guidance](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`
- [Lead Collection](https://github.com/dkpython7/ai-voice-support-agent/blob/main/main.py): `main.py`

### Other components

- **Customer**

## Connections

- VideoSDK Worker → Agent Session: starts (evidence: `main.py`)
- Agent Session → Voice Pipeline: uses (evidence: `main.py`)
- Voice Pipeline → Gemini Realtime: configures (evidence: `main.py`)
- Agent Session → Support Agent: instantiates (evidence: `main.py`)
- Customer → Agent Session: joins call (evidence: `Readme.md`)
- Support Agent → Service Guidance: answers from (evidence: `main.py`)
- Support Agent → Lead Collection: collects details (evidence: `main.py`)
- Support Agent → Voice Response: speaks (evidence: `main.py`)
- Voice Response → Customer: responds to
