How abental/n8n-multi-agent-pipeline works
The product is a local, n8n-orchestrated AI analysis pipeline. A client submits text and/or images to Workflow A; the agent chooses vision, text, and report tools, then returns a JSON report with a tool-call trace. Torch-Infer exposes image detection, text classification, and entity extraction; the report workflow uses the local llama.cpp server. The README documents workflow-level routing, while sampled source confirms Torch-Infer’s API-to-analyzer calls and the LLM server startup. Workflow internals were not sampled, so their documented connections are cited to the README.
Main entry points: A_Orchestrator.json AI Orchestrator · apis.py Inference API · B_VisionTool.json Vision Tool · C_TextTool.json Text Tool
Components 11
Workflow Orchestration
- AI Orchestrator
n8n-workflows/A_Orchestrator.json - Vision Tool
n8n-workflows/B_VisionTool.json - Text Tool
n8n-workflows/C_TextTool.json - Report Writer
n8n-workflows/D_ReportTool.json
Torch-Infer Analysis
- Inference API
torch-infer/app/rest/apis.py - Object Detection
torch-infer/app/analyzers/image.py - Text Classification
torch-infer/app/analyzers/text.py - Entity Extraction
torch-infer/app/analyzers/text.py - FastAPI Service
torch-infer/app/main.py
Local LLM Serving
- LLM Server
llm-server/start.py
Other components
- Client
Connections 13
- Client → AI Orchestrator: submits input
README.md - AI Orchestrator → Vision Tool: calls vision
README.md - AI Orchestrator → Text Tool: calls text
README.md - AI Orchestrator → Report Writer: calls report
README.md - AI Orchestrator → LLM Server: uses LLM
README.md - Vision Tool → Inference API: requests detection
README.md - Text Tool → Inference API: requests analysis
README.md - Report Writer → LLM Server: requests generation
README.md - FastAPI Service → Inference API: mounts router
torch-infer/app/main.py - Inference API → Object Detection: calls detection
torch-infer/app/rest/apis.py - Inference API → Text Classification: calls classification
torch-infer/app/rest/apis.py - Inference API → Entity Extraction: calls extraction
torch-infer/app/rest/apis.py - AI Orchestrator → Client: returns report
README.md