# bhavana-sreenivasan/convertai architecture

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

- Interactive diagram: https://gitdiagram.com/bhavana-sreenivasan/convertai
- Repository: https://github.com/bhavana-sreenivasan/convertai

## Overview

ConvertAI is a browser-only recruitment sales agent: a prospective partner converses with the agent, and the app presents model-produced lead analytics and compliance signals alongside the conversation. The documented flow sends conversation history and a language-specific sales prompt to Groq, then parses the response’s analytics block to update dashboard views. The app also offers contextual quick replies and a post-call handoff summary. All implementation nodes point to the single static file; source excerpts were not provided, so relationships are based on README documentation only.

Main entry points: [`convertai.html`](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html) (Analytics Parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation"]
  node_app["Browser App<br/>[convertai.html]"]
  node_language["Language Selection<br/>[convertai.html]"]
  node_conversation_flow["Conversation Flow<br/>[convertai.html]"]
  node_quick_replies["Quick Replies<br/>[convertai.html]"]
  node_browser_storage[("Browser Storage")]
end

subgraph group_intelligence["Agent Intelligence"]
  node_groq{{"Groq Chat API"}}
  node_sales_prompt["Sales Prompt<br/>[convertai.html]"]
  node_analytics_parser["Analytics Parser<br/>[convertai.html]"]
end

subgraph group_dashboard["Live Dashboard"]
  node_lead_score["Lead Score<br/>[convertai.html]"]
  node_objection_tracker["Objection Tracker<br/>[convertai.html]"]
  node_compliance_panel["Compliance Panel<br/>[convertai.html]"]
  node_call_metrics["Call Metrics<br/>[convertai.html]"]
  node_summary["Post-call Summary<br/>[convertai.html]"]
end

node_lead(("Prospective Partner"))

node_lead -->|"replies to"| node_app
node_app -->|"selects language"| node_language
node_language -->|"sets language"| node_sales_prompt
node_app -->|"handles replies"| node_conversation_flow
node_conversation_flow -->|"sends history"| node_groq
node_sales_prompt -->|"guides replies"| node_groq
node_groq -->|"returns response"| node_analytics_parser
node_analytics_parser -->|"updates score"| node_lead_score
node_analytics_parser -->|"updates objections"| node_objection_tracker
node_analytics_parser -->|"updates flags"| node_compliance_panel
node_analytics_parser -->|"updates metrics"| node_call_metrics
node_conversation_flow -->|"changes suggestions"| node_quick_replies
node_lead -->|"requests summary"| node_summary
node_app -->|"stores API key"| node_browser_storage

click node_app "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_language "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_conversation_flow "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_quick_replies "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_sales_prompt "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_analytics_parser "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_lead_score "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_objection_tracker "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_compliance_panel "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_call_metrics "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html"
click node_summary "https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.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_app,node_language,node_conversation_flow,node_quick_replies,node_browser_storage toneBlue
class node_groq,node_sales_prompt,node_analytics_parser toneAmber
class node_lead_score,node_objection_tracker,node_compliance_panel,node_call_metrics,node_summary toneMint
class node_lead toneIndigo
```

## Components

### Conversation

- [Browser App](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Language Selection](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Conversation Flow](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Quick Replies](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- **Browser Storage**

### Agent Intelligence

- **Groq Chat API**
- [Sales Prompt](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Analytics Parser](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`

### Live Dashboard

- [Lead Score](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Objection Tracker](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Compliance Panel](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Call Metrics](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`
- [Post-call Summary](https://github.com/bhavana-sreenivasan/convertai/blob/main/convertai.html): `convertai.html`

### Other components

- **Prospective Partner**

## Connections

- Prospective Partner → Browser App: replies to (evidence: `README.md`)
- Browser App → Language Selection: selects language (evidence: `README.md`)
- Language Selection → Sales Prompt: sets language (evidence: `README.md`)
- Browser App → Conversation Flow: handles replies (evidence: `README.md`)
- Conversation Flow → Groq Chat API: sends history (evidence: `README.md`)
- Sales Prompt → Groq Chat API: guides replies (evidence: `README.md`)
- Groq Chat API → Analytics Parser: returns response (evidence: `README.md`)
- Analytics Parser → Lead Score: updates score (evidence: `README.md`)
- Analytics Parser → Objection Tracker: updates objections (evidence: `README.md`)
- Analytics Parser → Compliance Panel: updates flags (evidence: `README.md`)
- Analytics Parser → Call Metrics: updates metrics (evidence: `README.md`)
- Conversation Flow → Quick Replies: changes suggestions (evidence: `README.md`)
- Prospective Partner → Post-call Summary: requests summary (evidence: `README.md`)
- Browser App → Browser Storage: stores API key (evidence: `README.md`)
