Convert documentation URLs to Markdown for RAG with Apify
UnknownWhat this workflow does
This AI workflow has 27 nodes and runs when someone submits an n8n form (“Ingest documentation for RAG”) (plus 4 other triggers). Along the way it connects Embeddings OpenAI, OpenAI Chat Model and Apify (community).
How it runs
Trigger: When someone submits an n8n form (“Ingest documentation for RAG”) (plus 4 other triggers).
- Configure crawl defaults (Edit Fields (Set)): sets 7 fields: startUrl, maxPages, maxSpendUsd…
- Answer questions from crawled docs (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Query docs knowledge base); memory: Keep short chat memory
- Normalize and validate URLs (Code): runs custom JavaScript code
- Has valid start URLs? (If): checks a condition and branches into true / false
- Run website to Markdown crawler (Apify): run actor and get dataset (actors)
- Build empty-URL failure (Edit Fields (Set)): sets 6 fields: ok, triggerSource, pageCount…
- Clean, dedupe, and prepare documents (Code): runs custom JavaScript code
- Build Apify failure (Edit Fields (Set)): sets 6 fields: ok, triggerSource, pageCount…
- Route ingest response (Switch): routes items into 2 branches
- Pages were saved? (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Other Apify + OpenAI templates (230)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Run website to Markdown crawler).
Nodes used (20)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Webhook
n8n-nodes-base.webhook - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Apify
@apify/n8n-nodes-apify.apify - Simple Vector Store
@n8n/n8n-nodes-langchain.vectorStoreInMemory - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Switch
n8n-nodes-base.switch - n8n Form
n8n-nodes-base.form - Respond to Webhook
n8n-nodes-base.respondToWebhook - Stop and Error
n8n-nodes-base.stopAndError - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
Quick Overview This workflow manually crawls a documentation website with Apify’s hydrocore/website-to-markdown-text actor, converts each discovered page into clean Markdown and text, and outputs a simplified, RAG-ready dataset containing the page URL, title,…