https://github.com/Sangram03/N8N/blob/main/Rule%20zFor%20used.md
https://github.com/Sangram03/N8N/blob/main/CreateYourOwnN8N.md
n8n (node-n-node) is an open-source workflow automation tool that allows you to connect apps, APIs, databases, and AI tools without writing full code.
It is similar to Zapier, Make.com, but more powerful because:
- Completely free & open-source
- You can self-host
- Supports JavaScript functions
- Connects to APIs, databases, webhooks, triggers
You create workflows using nodes (blocks).
Here are the core building blocks:
Start the workflow automatically.
Examples:
- Webhook Trigger
- Cron Trigger
- Gmail Trigger
- Discord Trigger
- Schedule trigger
Perform tasks like:
- Send email
- Insert DB entries
- Fetch API
- If condition
- Split data
- Merge data
Secure login info for apps:
- API keys
- OAuth tokens
- Database credentials
This runs your workflow step by step.
Drag-and-drop interface where you design workflows.
Stores:
- workflows
- credentials
- execution history
(Default = SQLite, but supports Postgres/MySQL)
- Built in Vue.js
- Displays nodes, connections, history
- Sends workflow design changes → backend
- Executes workflows
- Handles triggers
- Stores credentials securely
- Runs node logic (API calls, functions, automation steps)
- Webhooks
- Cron jobs
- Event triggers (Gmail, Slack, GitHub etc.)
Used in production to run workflows parallelly.
Used when scaling horizontally.
Stores:
- workflows
- execution logs
- users
- credentials (encrypted)
n8n interacts with:
- APIs
- Databases
- SaaS tools (Gmail, Stripe, GitHub)
- AI/LLMs (OpenAI, Gemini, Claude)
- Custom scripts
-
Trigger activates Example: webhook receives data.
-
Backend receives event n8n engine starts workflow execution.
-
Node 1 executes Node runs API/database/logic.
-
Node passes output to next node Every node receives JSON input and returns JSON output.
-
Continue until last node Task completed.
-
Execution log saved You can view executions later.
There are 3 major ways to run n8n:
- Easiest
- Fully managed
Most popular.
Architecture:
User → Browser (UI)
|
v
Nginx → n8n Server → Redis (optional)
|
v
Database (Postgres)
Used by big companies.
Here is a short summary you can use:
n8n is an open-source, node-based workflow automation platform. It connects APIs, databases, and services using triggers and nodes. It has a modular architecture including UI editor, workflow engine, triggers, worker processes, and database storage. Workflows execute step-by-step with JSON data passing between nodes. It supports self-hosting, API integration, and scale-out processing using Redis + multiple workers.
I can create a full PNG diagram showing:
- Nodes
- Trigger
- Engine
- Database
- Workers
- API flow
Just tell me:
“Make a clean n8n architecture diagram for my notes” or “Create a workflow diagram for n8n automation.”