# gyoridavid/ai_agents_az architecture

> Architecture diagram of the GitHub repository gyoridavid/ai_agents_az, 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/gyoridavid/ai_agents_az
- Repository: https://github.com/gyoridavid/ai_agents_az

## Overview

This repository is a collection of n8n workflow templates and companion Modal inference examples, rather than one application with a shared runtime. Its principal user path is to select an episode’s template, import it into n8n, and use that workflow for an agent, research, social publishing, or media-generation task. The README documents the episode catalog and its capabilities; sampled Python files show separate image/video inference services. Workflow internals were not sampled, so their execution links are not inferred.

Main entry points: [`README.md`](https://github.com/gyoridavid/ai_agents_az/blob/main/README.md) (Episode catalog), [`episode_19/flux_kontext_dev_modal.py`](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_19/flux_kontext_dev_modal.py) (Flux Kontext model), [`episode_24/modal_nunchaku_flux_dev.py`](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_dev.py) (Nunchaku Flux Dev), [`episode_24/modal_nunchaku_flux_schnell.py`](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_schnell.py) (Nunchaku Flux Schnell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Agents and research"]
  node_agent_workflows["Agent workflows"]
  node_research_workflows["Research workflows"]
  node_blog_workflows["Blog workflows"]
  node_leadgen_workflows["Lead generation"]
  node_startup_workflows["Startup ideas"]
end

subgraph group_publishing["Social and commerce"]
  node_linkedin_workflows["LinkedIn posts"]
  node_social_scheduling["Social scheduling"]
  node_shopify_workflows["Shopify videos"]
  node_influencer_workflows["Influencer workflows"]
end

subgraph group_creation["Media workflows"]
  node_video_workflows["Video workflows"]
  node_story_workflows["Story workflows"]
  node_music_workflows["Sleep music"]
  node_ugc_workflows["UGC videos"]
end

subgraph group_inference["Model services"]
  node_wan_comfy["Wan ComfyUI"]
  node_kontext_model["Flux Kontext model"]
  node_nunchaku_flux_dev["Nunchaku Flux Dev"]
  node_nunchaku_flux_schnell["Nunchaku Flux Schnell"]
  node_nunchaku_qwen["Nunchaku Qwen"]
  node_z_image["Z-Image service"]
  node_explainer_service["Explainer video service"]
end

node_user(("Template user"))
node_readme["Episode catalog<br/>[README.md]"]

node_user -->|"browses"| node_readme
node_readme -->|"lists episode"| node_agent_workflows
node_readme -->|"lists episode"| node_research_workflows
node_readme -->|"lists episode"| node_blog_workflows
node_readme -->|"lists episode"| node_leadgen_workflows
node_readme -->|"lists episode"| node_startup_workflows
node_readme -->|"lists episode"| node_linkedin_workflows
node_readme -->|"lists episode"| node_social_scheduling
node_readme -->|"lists episode"| node_shopify_workflows
node_readme -->|"lists episode"| node_influencer_workflows
node_readme -->|"lists episode"| node_video_workflows
node_readme -->|"lists episode"| node_story_workflows
node_readme -->|"lists episode"| node_music_workflows
node_readme -->|"lists episode"| node_ugc_workflows
node_nunchaku_flux_dev -->|"serves generation"| node_nunchaku_flux_dev
node_nunchaku_flux_schnell -->|"serves generation"| node_nunchaku_flux_schnell
node_nunchaku_qwen -->|"serves generation"| node_nunchaku_qwen
node_z_image -->|"serves generation"| node_z_image
node_kontext_model -->|"serves editing"| node_kontext_model

click node_readme "https://github.com/gyoridavid/ai_agents_az/blob/main/README.md"
click node_agent_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_1"
click node_research_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_4"
click node_blog_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_5"
click node_leadgen_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_6"
click node_startup_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_15"
click node_linkedin_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_3"
click node_social_scheduling "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_12"
click node_shopify_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_17"
click node_influencer_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_35"
click node_video_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_7"
click node_story_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_9"
click node_music_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_22"
click node_ugc_workflows "https://github.com/gyoridavid/ai_agents_az/tree/main/episode_23"
click node_wan_comfy "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_20/modal_wan_comfyui_14b_i2v.py"
click node_kontext_model "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_19/flux_kontext_dev_modal.py"
click node_nunchaku_flux_dev "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_dev.py"
click node_nunchaku_flux_schnell "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_schnell.py"
click node_nunchaku_qwen "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_qwen.py"
click node_z_image "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_41/modal_z_image_fast.py"
click node_explainer_service "https://github.com/gyoridavid/ai_agents_az/blob/main/episode_42/modal_explainer_videos.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_agent_workflows,node_research_workflows,node_blog_workflows,node_leadgen_workflows,node_startup_workflows,node_user toneBlue
class node_linkedin_workflows,node_social_scheduling,node_shopify_workflows,node_influencer_workflows toneAmber
class node_video_workflows,node_story_workflows,node_music_workflows,node_ugc_workflows toneMint
class node_wan_comfy,node_kontext_model,node_nunchaku_flux_dev,node_nunchaku_flux_schnell,node_nunchaku_qwen,node_z_image,node_explainer_service toneRose
class node_readme toneTeal
```

## Components

### Agents and research

- [Agent workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_1): `episode_1`
- [Research workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_4): `episode_4`
- [Blog workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_5): `episode_5`
- [Lead generation](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_6): `episode_6`
- [Startup ideas](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_15): `episode_15`

### Social and commerce

- [LinkedIn posts](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_3): `episode_3`
- [Social scheduling](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_12): `episode_12`
- [Shopify videos](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_17): `episode_17`
- [Influencer workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_35): `episode_35`

### Media workflows

- [Video workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_7): `episode_7`
- [Story workflows](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_9): `episode_9`
- [Sleep music](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_22): `episode_22`
- [UGC videos](https://github.com/gyoridavid/ai_agents_az/tree/main/episode_23): `episode_23`

### Model services

- [Wan ComfyUI](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_20/modal_wan_comfyui_14b_i2v.py): `episode_20/modal_wan_comfyui_14b_i2v.py`
- [Flux Kontext model](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_19/flux_kontext_dev_modal.py): `episode_19/flux_kontext_dev_modal.py`
- [Nunchaku Flux Dev](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_dev.py): `episode_24/modal_nunchaku_flux_dev.py`
- [Nunchaku Flux Schnell](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_flux_schnell.py): `episode_24/modal_nunchaku_flux_schnell.py`
- [Nunchaku Qwen](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_24/modal_nunchaku_qwen.py): `episode_24/modal_nunchaku_qwen.py`
- [Z-Image service](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_41/modal_z_image_fast.py): `episode_41/modal_z_image_fast.py`
- [Explainer video service](https://github.com/gyoridavid/ai_agents_az/blob/main/episode_42/modal_explainer_videos.py): `episode_42/modal_explainer_videos.py`

### Other components

- **Template user**
- [Episode catalog](https://github.com/gyoridavid/ai_agents_az/blob/main/README.md): `README.md`

## Connections

- Template user → Episode catalog: browses (evidence: `README.md`)
- Episode catalog → Agent workflows: lists episode (evidence: `README.md`)
- Episode catalog → Research workflows: lists episode (evidence: `README.md`)
- Episode catalog → Blog workflows: lists episode (evidence: `README.md`)
- Episode catalog → Lead generation: lists episode (evidence: `README.md`)
- Episode catalog → Startup ideas: lists episode (evidence: `README.md`)
- Episode catalog → LinkedIn posts: lists episode (evidence: `README.md`)
- Episode catalog → Social scheduling: lists episode (evidence: `README.md`)
- Episode catalog → Shopify videos: lists episode (evidence: `README.md`)
- Episode catalog → Influencer workflows: lists episode (evidence: `README.md`)
- Episode catalog → Video workflows: lists episode (evidence: `README.md`)
- Episode catalog → Story workflows: lists episode (evidence: `README.md`)
- Episode catalog → Sleep music: lists episode (evidence: `README.md`)
- Episode catalog → UGC videos: lists episode (evidence: `README.md`)
- Nunchaku Flux Dev → Nunchaku Flux Dev: serves generation (evidence: `episode_24/modal_nunchaku_flux_dev.py`)
- Nunchaku Flux Schnell → Nunchaku Flux Schnell: serves generation (evidence: `episode_24/modal_nunchaku_flux_schnell.py`)
- Nunchaku Qwen → Nunchaku Qwen: serves generation (evidence: `episode_24/modal_nunchaku_qwen.py`)
- Z-Image service → Z-Image service: serves generation (evidence: `episode_41/modal_z_image_fast.py`)
- Flux Kontext model → Flux Kontext model: serves editing (evidence: `episode_19/flux_kontext_dev_modal.py`)
