Analyze Documents & Web Content with GPT-4o Q&A Assistant

Go to Workflow
0 views
Built by Aadarsh Jain Aadarsh Jain
Created on June 13, 2026

Description

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, students, and anyone who needs quick insights from documents or web pages without uploading files to external services.

What it does

Analyzes local files**: PDF, Markdown, Text, JSON, YAML, Word docs
Fetches web content**: Documentation sites, blogs, articles
Answers questions**: Using GPT model with structured, well-formatted responses

Input format: path_or_url | your_question

Examples:
/Users/docs/readme.md | What are the installation steps?
https://n8n.io | What is n8n?

Setup

Import workflow into n8n
Add your OpenAI API key to credentials
Link the credential to the "OpenAI Document Analyzer" node
Activate the workflow
Start chatting!

Customize

Change AI model → Edit "OpenAI Document Analyzer" node (switch to gpt-4o-mini for cost savings)

Adjust content length → Modify maxLength in "Process Document Content" node (default: 15000 chars)

Add file types → Update supportedTypes array in "Parse Document & Question" node

Increase timeout → Change timeout value in "Fetch Web Content" node (default: 30s)

Nodes Used (4)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi