# agricidaniel/automated-business-analysis-workflow architecture

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

- Interactive diagram: https://gitdiagram.com/agricidaniel/automated-business-analysis-workflow
- Repository: https://github.com/agricidaniel/automated-business-analysis-workflow

## Overview

This repository provides an n8n business-analysis workflow: a user submits a website URL, the workflow scrapes and analyzes its content, and delivers a Google Docs/PDF report by email. The README documents the service roles and report sections, but no workflow JSON excerpts were provided, so internal node-level routing cannot be verified; the graph shows only documented relationships.

Main entry points: [`Business Analysis Workflow - AI Marketing Hub.json`](https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20-%20AI%20Marketing%20Hub.json) (n8n workflow), [`Business Analysis Workflow Tools - AI Marketing Hub.json`](https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20Tools%20-%20AI%20Marketing%20Hub.json) (Workflow tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow orchestration"]
  node_n8n["n8n workflow"]
  node_workflow_tools["Workflow tools"]
end

subgraph group_analysis["Business analysis"]
  node_firecrawl["Firecrawl scraper"]
  node_perplexity["Perplexity analysis"]
  node_gemini["Gemini analysis"]
  node_business_insights["Business insights"]
end

subgraph group_reporting["Report delivery"]
  node_google_docs["Google Docs report"]
  node_google_drive["Google Drive PDF"]
  node_gmail["Gmail delivery"]
  node_report["Analysis report"]
end

node_user(("URL submitter"))

node_user -->|"submits URL"| node_n8n
node_n8n -->|"scrapes website"| node_firecrawl
node_n8n -->|"sends content"| node_perplexity
node_n8n -->|"sends content"| node_gemini
node_perplexity -->|"analyzes content"| node_business_insights
node_gemini -->|"analyzes content"| node_business_insights
node_n8n -->|"formats report"| node_google_docs
node_n8n -->|"creates PDF"| node_google_drive
node_n8n -->|"delivers report"| node_gmail
node_google_docs -->|"produces document"| node_report
node_google_drive -->|"produces PDF"| node_report
node_gmail -->|"emails report"| node_report
node_n8n -.-> node_workflow_tools

click node_n8n "https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20-%20AI%20Marketing%20Hub.json"
click node_workflow_tools "https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20Tools%20-%20AI%20Marketing%20Hub.json"

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_n8n,node_workflow_tools toneBlue
class node_firecrawl,node_perplexity,node_gemini,node_business_insights toneAmber
class node_google_docs,node_google_drive,node_gmail,node_report toneMint
class node_user toneIndigo
```

## Components

### Workflow orchestration

- [n8n workflow](https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20-%20AI%20Marketing%20Hub.json): `Business Analysis Workflow - AI Marketing Hub.json`
- [Workflow tools](https://github.com/agricidaniel/automated-business-analysis-workflow/blob/main/Business%20Analysis%20Workflow%20Tools%20-%20AI%20Marketing%20Hub.json): `Business Analysis Workflow Tools - AI Marketing Hub.json`

### Business analysis

- **Firecrawl scraper**
- **Perplexity analysis**
- **Gemini analysis**
- **Business insights**

### Report delivery

- **Google Docs report**
- **Google Drive PDF**
- **Gmail delivery**
- **Analysis report**

### Other components

- **URL submitter**

## Connections

- URL submitter → n8n workflow: submits URL (evidence: `README.md`)
- n8n workflow → Firecrawl scraper: scrapes website (evidence: `README.md`)
- n8n workflow → Perplexity analysis: sends content (evidence: `README.md`)
- n8n workflow → Gemini analysis: sends content (evidence: `README.md`)
- Perplexity analysis → Business insights: analyzes content (evidence: `README.md`)
- Gemini analysis → Business insights: analyzes content (evidence: `README.md`)
- n8n workflow → Google Docs report: formats report (evidence: `README.md`)
- n8n workflow → Google Drive PDF: creates PDF (evidence: `README.md`)
- n8n workflow → Gmail delivery: delivers report (evidence: `README.md`)
- Google Docs report → Analysis report: produces document (evidence: `README.md`)
- Google Drive PDF → Analysis report: produces PDF (evidence: `README.md`)
- Gmail delivery → Analysis report: emails report (evidence: `README.md`)
- n8n workflow → Workflow tools
