Block 1 - AI Agent
- Type / Role
- @n8n/n8n-nodes-langchain.agent - agent
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
Analyze uploaded images, videos, audio, and documents with specialized tools — powered by a lightweight language only agent. What It Does This workflow enables multimodal file analysis using ...
@n8n/n8n-nodes-langchain.agent, n8n-nodes-base.splitinbatches, n8n-nodes-base.splitout, n8n-nodes-base.aggregate, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.googlegeminitool, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.if
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mauricio Perera.
Original n8n.io sourceThis workflow enables multimodal file analysis using Google Gemini tools connected to a text-only LLM agent. Users can upload images, videos, audio files, or documents via a chat interface. The workflow will:
Unlike end-to-end multimodal LLMs (like Gemini 1.5 or GPT-4o), this template:
| Feature | Benefit |
|---|---|
| 🧩 Modular | LLM + Tools are decoupled; can update them independently |
| 💸 Cost-Efficient | No need to pay for full multimodal models; only use tools when needed |
| 🔧 Tool-based Reasoning | Agent invokes tools on demand, just like OpenAI’s Toolformer setup |
| ⚡ Fast | Groq LLMs offer ultra-fast responses with low latency |
| 📚 Memory | Includes context buffer for multi-turn chats (15 messages) |
chatTrigger.If no files: prompt is passed directly to the agent.
If files are included:
A new chatInput is dynamically generated:
User message
Media: [array of file data]
The Langchain Agent receives:
The enriched prompt
File URLs
Memory context (15 turns)
Access to 4 Gemini tools:
IMG: analyze imageVIDEO: analyze videoAUDIO: analyze audioDOCUMENT: analyze documentThe agent autonomously decides whether and how to use tools, then responds with concise output.
| Category | Node / Tool | Purpose |
|---|---|---|
| Chat Input | chatTrigger |
User interface with file support |
| File Processing | splitOut, splitInBatches |
Process each uploaded file |
| Upload | googleGemini |
Uploads each file to Gemini, gets URL |
| Metadata | set, aggregate |
Builds structured file info |
| AI Agent | Langchain Agent |
Receives context + file data |
| Tools | googleGeminiTool |
Analyze media with Gemini |
| LLM | lmChatGroq (Qwen 32B) |
Text reasoning, high-speed |
| Memory | memoryBufferWindow |
Maintains session context |
Replace existing credentials on:
Upload a fileGeminiTool (IMG, VIDEO, AUDIO, DOCUMENT)lmChatGroq> "Hola, ¿qué dice este PDF?"
Uploads a document → Agent routes it to Gemini DOCUMENT tool → Receives extracted content → LLM summarizes it in Spanish.
multimodal, agent, langchain, groq, gemini, image analysis, audio analysis, document parsing, video analysis, file uploader, chat assistant, LLM tools, memory, AI tools
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Analyze images, videos, documents & audio with Gemini Tools and Qwen LLM Agent |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Document Extraction, AI Chatbot |
| Author | Mauricio Perera |
| Published | 05 Aug 2025 |
Use the JSON export at /data/workflows/7026/7026.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Analyze uploaded images, videos, audio, and documents with specialized tools — powered by a lightweight language only agent. What It Does This workflow enables multimodal file analysis using ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Chatbot use case.