Skip to main content

Analyze documents & web content with GPT-4o Q&A assistant

Workflow preview

Workflow preview
100%
Analyze documents & web content with GPT-4o Q&A assistant preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 ...

Best for

  • Document Extraction automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.readbinaryfile, n8n-nodes-base.httprequest, n8n-nodes-base.extractfromfile, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aadarsh Jain.

Original n8n.io source

1.1 Workflow description

Title
Analyze documents & web content with GPT-4o Q&A assistant
Workflow name
Analyze documents & web content with GPT-4o Q&A assistant

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

  1. Import workflow into n8n
  2. Add your OpenAI API key to credentials
  3. Link the credential to the "OpenAI Document Analyzer" node
  4. Activate the workflow
  5. 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)


1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - Document Q&A Chat

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Parse Document & Question

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - File Path Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 4 - Read Document File

Type / Role
n8n-nodes-base.readBinaryFile - readBinaryFile
Config choices
Version 1

Block 5 - URL Check

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 6 - Fetch Web Content

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - Extract Document Content

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 8 - Process Document Content

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - OpenAI Document Analyzer

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Analyze Document & Answer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 11 - Workflow Info

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Pipeline Info

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Analyze documents & web content with GPT-4o Q&A assistant
Complexity intermediate
Nodes 12
Categories Document Extraction, AI RAG
Author Aadarsh Jain
Published 14 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9651/9651.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Analyze documents & web content with GPT-4o Q&A assistant do?

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 ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 RAG use case.