Company RAG and data queries

Web essay extraction and Milvus vector tool RAG agent workflow

Short answer

This n8n workflow fetches an essay index page over HTTP, extracts article links via CSS selectors and processes a bounded batch of pages. HTML nodes strip navigation and image markup before splitting text into 6,000-character chunks for Milvus. Chat enquiries run through a gpt-4o-mini agent using the Milvus tool.

Catalogue ID
#1243
Functional nodes
16
Connections
14
Trigger
manualTrigger, chatTrigger
AI layer
AI-assisted
Business problem solved

Business problem solved

Long-form technical essays and knowledge bases sit spread across dozens of linked web pages. Copying articles manually stalls updates, while feeding raw HTML wrappers into embeddings fills vector indexes with menu text.

Trigger

A manual trigger runs the article fetch and Milvus ingestion; a chat trigger serves Q&A.

Connected systems

Connected systems

  • Milvus vector store
  • HTML CSS extractor
  • HTTP request
  • OpenAI
  • Chat interface
  • Self-hosted n8n

Every workflow is deployed on your own server with documentation, a run log and an error queue.

Workflow architecture

Workflow architecture

  1. 1. When clicking Execute… (Trigger) (connects to Fetch Essay List)
  2. 2. Fetch Essay List (Service and data) (connects to Extract essay names)
  3. 3. Extract essay names (Service and data) (connects to Split out into items)
  4. 4. Split out into items (Service and data) (connects to Limit to first 3)
  5. 5. Fetch essay texts (Service and data) (connects to Extract Text Only)
  6. 6. Limit to first 3 (Service and data) (connects to Fetch essay texts)
  7. 7. Extract Text Only (Service and data) (connects to Milvus Vector Store)
  8. 8. Recursive Character Text… (AI layer) (connects to Default Data Loader)
  9. 9. Milvus Vector Store (AI layer)
  10. 10. AI Agent (AI layer)
  11. 11. When chat message received (Trigger) (connects to AI Agent)
  12. 12. Default Data Loader (AI layer) (connects to Milvus Vector Store)
  13. 13. Milvus Vector Store as tool (AI layer) (connects to AI Agent)
  14. 14. Embeddings OpenAI (AI layer) (connects to Milvus Vector Store)
  15. 15. OpenAI Chat Model (AI layer) (connects to AI Agent)
  16. 16. Embeddings OpenAI1 (AI layer) (connects to Milvus Vector Store as tool)
  • Trigger
  • AI layer
  • Logic and routing
  • Service and data

Node positions and directed links are generated from the verified catalogue record.

Workflow steps

Workflow steps

  1. 01

    Article link list extraction

    HTTP fetches the index page, HTML CSS selection extracts links, Split Out splits items and Limit caps the batch.

  2. 02

    Clean body text extraction

    Each article URL is fetched and parsed through HTML extraction skipping images and navigation elements.

  3. 03

    Chunking and Milvus insertion

    Body text splits at 6,000 characters, embeds via OpenAI and writes into Milvus with clearCollection enabled.

  4. 04

    Milvus-backed chat agent

    Chat messages reach the AI agent equipped with Milvus retrieve-as-tool search and OpenAI gpt-4o-mini.

Error queue and human approval

Error queue and human approval

Built-in state in the catalogue workflow

The verified catalogue workflow contains zero node-level error flags across its 16 functional nodes and 14 connections.

Production layer added by ALTAI

During live deployment, ALTAI enforces allowlisted source domains, stores source URL metadata per chunk, replaces clearCollection with incremental sync and adds an error queue.

Frequently asked

Web article scraping Milvus RAG agent Frequently asked questions

The template limits ingestion to three essays so testing completes quickly; production deployments remove the cap or add incremental pagination.

No. The HTML extraction step targets the body container and excludes nav and img selectors before chunking.

Yes. In production we turn off clearCollection and check URL metadata so only new or updated pages are indexed.

Mert Can Gundogdu
The founder takes the call, not a sales team
Next step

We write the proposal after we have found the problem together

In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.

30 minutes · no preparation needed

The call and the week of discovery are both free.Read the terms

Chat on WhatsApp