# abhiram-dashewar/linkedin-autopost-agent architecture

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

- Interactive diagram: https://gitdiagram.com/abhiram-dashewar/linkedin-autopost-agent
- Repository: https://github.com/abhiram-dashewar/linkedin-autopost-agent

## Overview

This repository documents an n8n LinkedIn auto-post workflow. A user submits learning notes; the workflow drafts a post and image, emails a preview and approval request, and publishes and logs the result only after approval. The tree contains no workflow export or implementation source, so workflow nodes have null paths; relationships below are based on the README documentation, not inspected workflow code.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Intake &amp; content"]
  node_form["Form trigger"]
  node_config["Workflow config"]
  node_validate["Input validation"]
  node_waits["Rate-limit waits"]
  node_writer["Post writer"]
end

subgraph group_review["Image &amp; review"]
  node_image_prompt["Image prompt agent"]
  node_cloudflare["Image generation"]
  node_binary["Image conversion"]
  node_preview["Preview email"]
  node_approval["Approval email"]
end

subgraph group_publish["Publish &amp; record"]
  node_decision["Approval decision"]
  node_skip["Skip or timeout"]
  node_restore["Restore image"]
  node_linkedin["LinkedIn publishing"]
  node_sheets[("Google Sheets log")]
end

node_user(("User"))
node_gemini_writer["Gemini writer model"]
node_gemini_image["Gemini image model"]

node_user -->|"submits notes"| node_form
node_form -->|"passes submission"| node_config
node_config -->|"provides settings"| node_validate
node_validate -->|"passes cleaned input"| node_waits
node_waits -->|"delays before"| node_writer
node_writer -->|"uses model"| node_gemini_writer
node_writer -->|"passes generated post"| node_waits
node_waits -->|"delays before"| node_image_prompt
node_image_prompt -->|"uses model"| node_gemini_image
node_image_prompt -->|"passes image prompt"| node_waits
node_waits -->|"delays before"| node_cloudflare
node_cloudflare -->|"returns base64 image"| node_binary
node_binary -->|"attaches image"| node_preview
node_preview -->|"precedes request"| node_approval
node_approval -->|"collects response"| node_decision
node_decision -->|"if approved"| node_restore
node_decision -->|"if skipped or timed out"| node_skip
node_restore -->|"provides image data"| node_linkedin
node_linkedin -->|"logs published post"| node_sheets

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_form,node_config,node_validate,node_waits,node_writer,node_user toneBlue
class node_image_prompt,node_cloudflare,node_binary,node_preview,node_approval toneAmber
class node_decision,node_skip,node_restore,node_linkedin,node_sheets toneMint
class node_gemini_writer,node_gemini_image toneIndigo
```

## Components

### Intake & content

- **Form trigger**
- **Workflow config**
- **Input validation**
- **Rate-limit waits**
- **Post writer**

### Image & review

- **Image prompt agent**
- **Image generation**
- **Image conversion**
- **Preview email**
- **Approval email**

### Publish & record

- **Approval decision**
- **Skip or timeout**
- **Restore image**
- **LinkedIn publishing**
- **Google Sheets log**

### Other components

- **User**
- **Gemini writer model**
- **Gemini image model**

## Connections

- User → Form trigger: submits notes (evidence: `README.md`)
- Form trigger → Workflow config: passes submission (evidence: `README.md`)
- Workflow config → Input validation: provides settings (evidence: `README.md`)
- Input validation → Rate-limit waits: passes cleaned input (evidence: `README.md`)
- Rate-limit waits → Post writer: delays before (evidence: `README.md`)
- Post writer → Gemini writer model: uses model (evidence: `README.md`)
- Post writer → Rate-limit waits: passes generated post (evidence: `README.md`)
- Rate-limit waits → Image prompt agent: delays before (evidence: `README.md`)
- Image prompt agent → Gemini image model: uses model (evidence: `README.md`)
- Image prompt agent → Rate-limit waits: passes image prompt (evidence: `README.md`)
- Rate-limit waits → Image generation: delays before (evidence: `README.md`)
- Image generation → Image conversion: returns base64 image (evidence: `README.md`)
- Image conversion → Preview email: attaches image (evidence: `README.md`)
- Preview email → Approval email: precedes request (evidence: `README.md`)
- Approval email → Approval decision: collects response (evidence: `README.md`)
- Approval decision → Restore image: if approved (evidence: `README.md`)
- Approval decision → Skip or timeout: if skipped or timed out (evidence: `README.md`)
- Restore image → LinkedIn publishing: provides image data (evidence: `README.md`)
- LinkedIn publishing → Google Sheets log: logs published post (evidence: `README.md`)
