# madankk-06/buxbi-linkedin-multi-agent architecture

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

- Interactive diagram: https://gitdiagram.com/madankk-06/buxbi-linkedin-multi-agent
- Repository: https://github.com/madankk-06/buxbi-linkedin-multi-agent

## Overview

This is a 24/7 LinkedIn content and networking agent managed through Telegram. Its principal workflow scouts Gen AI research, selects a topic, drafts and humanizes a post, optionally creates visual media, stores a draft, and presents it for approval before optional publishing. Separate branches find connection leads and support post repurposing and GIFs. The sampled files show some component calls; other workflow links rely on README descriptions or the source index, so uncertain connections are omitted or marked unverified.

Main entry points: [`orchestrator.py`](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/orchestrator.py) (Workflow orchestrator), [`lib/llm_client.py`](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/llm_client.py) (LLM client), [`main.py`](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/main.py) (Scheduler and listener), [`agents/image_architect.py`](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/image_architect.py) (Image architect)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime control"]
  node_main["Scheduler and listener<br/>[main.py]"]
  node_orchestrator["Workflow orchestrator<br/>[orchestrator.py]"]
  node_telegram["Telegram bot<br/>[telegram_bot.py]"]
end

subgraph group_content["Content creation"]
  node_trend["Research scout<br/>[trend_scout.py]"]
  node_arxiv["ArXiv client<br/>[arxiv_client.py]"]
  node_director["Topic director<br/>[domain_director.py]"]
  node_post["Post architect<br/>[post_architect.py]"]
  node_humanizer["Text humanizer<br/>[humanizer.py]"]
  node_repurposer["Content repurposer<br/>[repurposer.py]"]
end

subgraph group_media["Media generation"]
  node_image_architect["Image architect<br/>[image_architect.py]"]
  node_image_client["Diagram renderer<br/>[image_client.py]"]
  node_gif["GIF engine<br/>[gif_engine.py]"]
end

subgraph group_network["Networking"]
  node_networker["Authority networker"]
end

subgraph group_services["Persistence and services"]
  node_vault[("Knowledge vault<br/>[knowledge_vault.py]")]
  node_feedback[("Feedback memory<br/>[feedback_memory.py]")]
  node_publora["Publora publisher<br/>[publora_client.py]"]
  node_db[("Agent database<br/>[database.py]")]
  node_llm["LLM client<br/>[llm_client.py]"]
  node_config["Configuration<br/>[config.py]"]
end

node_user(("Telegram user"))
node_llm_provider{{"LLM providers"}}
node_linkedin{{"LinkedIn"}}

node_user -->|"sends commands"| node_main
node_main -->|"routes requests"| node_orchestrator
node_orchestrator -->|"runs scouting"| node_trend
node_trend -.->|"fetches research"| node_arxiv
node_orchestrator -->|"selects topics"| node_director
node_director -->|"checks priority topics"| node_vault
node_orchestrator -->|"drafts posts"| node_post
node_orchestrator -->|"humanizes text"| node_humanizer
node_orchestrator -.->|"repurposes content"| node_repurposer
node_orchestrator -.->|"uses learned rules"| node_feedback
node_orchestrator -.->|"designs visuals"| node_image_architect
node_image_architect -->|"generates schema"| node_llm
node_image_architect -->|"renders diagram"| node_image_client
node_orchestrator -.->|"creates GIFs"| node_gif
node_orchestrator -->|"finds leads"| node_networker
node_networker -->|"writes connection notes"| node_llm
node_networker -->|"stores leads"| node_db
node_orchestrator -->|"persists post state"| node_db
node_orchestrator -->|"sends approval cards"| node_telegram
node_main -->|"handles bot updates"| node_telegram
node_orchestrator -.->|"submits approved posts"| node_publora
node_publora -.->|"publishes posts"| node_linkedin
node_llm -->|"routes generation"| node_llm_provider
node_config -->|"configures provider"| node_llm
node_config -->|"configures storage"| node_db

click node_main "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/main.py"
click node_orchestrator "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/orchestrator.py"
click node_trend "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/trend_scout.py"
click node_arxiv "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/arxiv_client.py"
click node_director "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/domain_director.py"
click node_vault "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/knowledge_vault.py"
click node_post "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/post_architect.py"
click node_humanizer "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/humanizer.py"
click node_repurposer "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/repurposer.py"
click node_feedback "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/feedback_memory.py"
click node_image_architect "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/image_architect.py"
click node_image_client "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/image_client.py"
click node_gif "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/gif_engine.py"
click node_networker "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/authority_networker.py"
click node_telegram "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/telegram_bot.py"
click node_publora "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/publora_client.py"
click node_db "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/database.py"
click node_llm "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/llm_client.py"
click node_config "https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/config.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_main,node_orchestrator,node_telegram,node_user toneBlue
class node_trend,node_arxiv,node_director,node_post,node_humanizer,node_repurposer toneAmber
class node_image_architect,node_image_client,node_gif toneMint
class node_networker toneRose
class node_vault,node_feedback,node_publora,node_db,node_llm,node_config,node_llm_provider,node_linkedin toneIndigo
```

## Components

### Runtime control

- [Scheduler and listener](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/main.py): `main.py`
- [Workflow orchestrator](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/orchestrator.py): `orchestrator.py`
- [Telegram bot](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/telegram_bot.py): `lib/telegram_bot.py`

### Content creation

- [Research scout](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/trend_scout.py): `agents/trend_scout.py`
- [ArXiv client](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/arxiv_client.py): `lib/arxiv_client.py`
- [Topic director](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/domain_director.py): `agents/domain_director.py`
- [Post architect](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/post_architect.py): `agents/post_architect.py`
- [Text humanizer](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/humanizer.py): `agents/humanizer.py`
- [Content repurposer](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/repurposer.py): `agents/repurposer.py`

### Media generation

- [Image architect](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/image_architect.py): `agents/image_architect.py`
- [Diagram renderer](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/image_client.py): `lib/image_client.py`
- [GIF engine](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/gif_engine.py): `lib/gif_engine.py`

### Networking

- [Authority networker](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/agents/authority_networker.py): `agents/authority_networker.py`

### Persistence and services

- [Knowledge vault](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/knowledge_vault.py): `core/knowledge_vault.py`
- [Feedback memory](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/feedback_memory.py): `core/feedback_memory.py`
- [Publora publisher](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/publora_client.py): `lib/publora_client.py`
- [Agent database](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/database.py): `core/database.py`
- [LLM client](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/lib/llm_client.py): `lib/llm_client.py`
- [Configuration](https://github.com/madankk-06/buxbi-linkedin-multi-agent/blob/main/core/config.py): `core/config.py`

### Other components

- **Telegram user**
- **LLM providers**
- **LinkedIn**

## Connections

- Telegram user → Scheduler and listener: sends commands (evidence: `README.md`)
- Scheduler and listener → Workflow orchestrator: routes requests (evidence: `main.py`)
- Workflow orchestrator → Research scout: runs scouting (evidence: `orchestrator.py`)
- Research scout → ArXiv client: fetches research
- Workflow orchestrator → Topic director: selects topics (evidence: `README.md`)
- Topic director → Knowledge vault: checks priority topics (evidence: `agents/domain_director.py`)
- Workflow orchestrator → Post architect: drafts posts (evidence: `README.md`)
- Workflow orchestrator → Text humanizer: humanizes text (evidence: `README.md`)
- Workflow orchestrator → Content repurposer: repurposes content (evidence: `orchestrator.py`)
- Workflow orchestrator → Feedback memory: uses learned rules (evidence: `orchestrator.py`)
- Workflow orchestrator → Image architect: designs visuals (evidence: `orchestrator.py`)
- Image architect → LLM client: generates schema (evidence: `agents/image_architect.py`)
- Image architect → Diagram renderer: renders diagram (evidence: `agents/image_architect.py`)
- Workflow orchestrator → GIF engine: creates GIFs (evidence: `orchestrator.py`)
- Workflow orchestrator → Authority networker: finds leads (evidence: `orchestrator.py`)
- Authority networker → LLM client: writes connection notes (evidence: `agents/authority_networker.py`)
- Authority networker → Agent database: stores leads (evidence: `agents/authority_networker.py`)
- Workflow orchestrator → Agent database: persists post state (evidence: `orchestrator.py`)
- Workflow orchestrator → Telegram bot: sends approval cards (evidence: `README.md`)
- Scheduler and listener → Telegram bot: handles bot updates (evidence: `main.py`)
- Workflow orchestrator → Publora publisher: submits approved posts (evidence: `orchestrator.py`)
- Publora publisher → LinkedIn: publishes posts (evidence: `README.md`)
- LLM client → LLM providers: routes generation (evidence: `lib/llm_client.py`)
- Configuration → LLM client: configures provider (evidence: `lib/llm_client.py`)
- Configuration → Agent database: configures storage (evidence: `core/database.py`)
