Analyze documents & web content with GPT-4o Q&A assistant
Needs changesWhat this workflow does
This AI workflow has 10 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When a chat message arrives.
- Parse Document & Question (Code): runs custom JavaScript code
- File Path Check (If): checks a condition and branches into true / false
- URL Check (If): checks a condition and branches into true / false
- Read Document File (Read Binary File): uses Read Binary File
- Fetch Web Content (HTTP Request): calls an HTTP API
- Extract Document Content (Extract from File): extracts data from a file (text)
- Process Document Content (Code): runs custom JavaScript code
- Analyze Document & Answer (AI Agent): runs an AI agent, with model: OpenAI Document Analyzer
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Read Binary File in Read Document File: replace with Read/Write Files from Disk.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| Read Binary File Read Document File | Read/Write Files from Disk |
Nodes used (8)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Read Binary File
n8n-nodes-base.readBinaryFile - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Document Analyzer and Q&A Workflow AI-powered document and web page analysis using n8n and GPT model. Ask questions about any local file or web URL and get intelligent, formatted answers. Who's it for Perfect for researchers, developers, content analysts,…