Skip to main content

Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI

Workflow preview

Workflow preview
100%
Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI preview
Open on n8n.io

1. Workflow Overview

What this does Receives a URL via webhook, uses Firecrawl to scrape the page into clean markdown, and stores it as vector embeddings in Pinecone. A visual, self hosted ingestion pipeline for RAG kn...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, @mendable/n8n-nodes-firecrawl.firecrawl, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI
Workflow name
Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI

What this does

Receives a URL via webhook, uses Firecrawl to scrape the page into clean markdown, and stores it as vector embeddings in Pinecone. A visual, self-hosted ingestion pipeline for RAG knowledge bases. Adding a new source is as simple as sending a URL.

The second part of the workflow exposes a chat interface where an AI Agent queries the stored knowledge base to answer questions, with Cohere reranking for better retrieval quality.

How it works

Part 1: Ingestion Pipeline

  1. Webhook receives a POST request with a url field
  2. Verify URL validates and normalizes the domain, returning a 422 error if invalid
  3. Firecrawl /scrape fetches the page and converts it to clean markdown
  4. Embeddings OpenAI generates 1536-dimensional vector embeddings from the scraped content
  5. Default Data Loader attaches the source URL as metadata
  6. Pinecone Vector Store inserts the content and embeddings into the index
  7. Respond to Webhook confirms how many items were added

Part 2: RAG Chat Agent

  1. Chat trigger receives a user question
  2. AI Agent (OpenRouter / Claude Sonnet) queries the Pinecone vector store
  3. Cohere Reranker improves retrieval quality before the agent responds
  4. Agent answers based solely on the ingested knowledge base

🔥 Firecrawl 🌲 Pinecone 🧠 OpenAI Embeddings 🤖 OpenRouter (Claude Sonnet) 🎯 Cohere Reranker

Webhook usage

Send a POST request to the webhook URL:

curl -X POST https://your-n8n-instance/webhook/your-id \
 -H "Content-Type: application/json" \
 -d '{"url": "firecrawl.dev"}'

Pinecone setup

Your Pinecone index must be configured with 1536 dimensions to match the OpenAI text-embedding-3-small model output. See the sticky note inside the workflow for the exact index settings.

Requirements

  • Firecrawl API key
  • OpenAI API key (for embeddings)
  • OpenRouter API key (for the chat agent)
  • Cohere API key (for reranking)
  • Pinecone account with a properly configured index

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 - Sticky Note

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

Block 2 - Receive URL

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 3 - Validate and normalize URL

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

Block 4 - Scrape page with Firecrawl

Type / Role
@mendable/n8n-nodes-firecrawl.firecrawl - firecrawl
Config choices
Version 1

Block 5 - Return URL validation error

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 6 - Store embeddings in Pinecone

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 7 - Return ingestion result

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

Block 8 - Generate OpenAI embeddings

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

Block 9 - Load scraped content

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

Block 10 - Receive chat message

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

Block 11 - Answer query from knowledge base

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

Block 12 - OpenRouter LLM

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 13 - Chat memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 14 - Retrieve documents from Pinecone

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.3

Block 15 - Generate OpenAI embeddings1

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

Block 16 - Rerank results with Cohere

Type / Role
@n8n/n8n-nodes-langchain.rerankerCohere - rerankerCohere
Config choices
Version 1

Block 17 - Sticky Note1

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

3. Summary Table

Workflow Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI
Complexity advanced
Nodes 17
Categories Document Extraction, AI RAG
Author Firecrawl
Published 09 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13964/13964.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 Scrape and ingest web pages into a Pinecone RAG stack with Firecrawl and OpenAI do?

What this does Receives a URL via webhook, uses Firecrawl to scrape the page into clean markdown, and stores it as vector embeddings in Pinecone. A visual, self hosted ingestion pipeline for RAG kn...

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.