Aurelix

Tools › AI and RAG

Website to Knowledge Base Sync

Turns a website into knowledge base chunks with stable IDs, then returns only chunks to upsert or delete.

For AI teams keeping a chatbot or agent current. Prices: $0.10 per 1,000 changed chunks plus $0.50 per 1,000 pages checked; push changes into your own Pinecone or Qdrant index.

$0.10 per 1,000 changed chunks ($0.08 on paid Apify plans)

At a glance

What the Website to Knowledge Base Sync does

Start from
Public start URLs or sitemap URLs
Returns
One row per chunk: op 'upsert' (text to embed) or 'delete' (chunk ID to remove)
IDs
Content-anchored chunk IDs and page IDs, valid UUIDs
Vector database
Optional push to Pinecone or Qdrant with your own key
Automate
Schedules, Zapier, Make, n8n, MCP for AI agents

Who it is for

  • Keeping a RAG chatbot or support assistant in sync with a help center or documentation site
  • Feeding docs to an LLM or AI agent as a knowledge base with source citations
  • Daily vector database sync into Pinecone or Qdrant without re-embedding the whole site
  • Building a website-to-knowledge-base pipeline in n8n, Make or your own code from one row per change

Output

What you get

  • op: 'upsert' (add or replace this chunk) or 'delete' (remove this chunk ID from your index)
  • chunk_id, doc_id (stable UUIDs), url (canonical page URL), chunk_url (with #anchor), title
  • heading_path, chunk_index, text (Markdown), char_count, citation (upserts)
  • reason (deletes: 'chunk changed or removed' or 'page returned HTTP 404'), sync_id, source_url, scraped_at (ISO 8601 UTC)
  • embedding: only with your OpenAI key and no vector database, the chunk's vector
  • Plus a SUMMARY record per run: pages checked, new, changed, deleted and unchanged, chunks upserted and deleted, index size, pages that could not be read, vector database result

Example

Input and output

Input

{
  "startUrls": [
    "https://docs.apify.com/academy"
  ],
  "maxPages": 300,
  "syncId": "apify-academy",
  "chunkSize": 1500
}

One output record

{
  "op": "upsert",
  "chunk_id": "e961c229-16d2-5b80-9a15-7c9c9143d7ea",
  "doc_id": "d67cabce-5772-5274-acc5-2b5cf3bf4520",
  "url": "https://docs.apify.com/academy",
  "chunk_url": "https://docs.apify.com/academy",
  "title": "Apify Academy | Academy | Apify Documentation",
  "heading_path": [
    "Apify Academy",
    "Beginner courses",
    "Apify platform"
  ],
  "chunk_index": 4,
  "text": "The Apify platform is the best place to run your scrapers and automations in the cloud. Learn what an actor is, how to turn your program into an actor, and…",
  "char_count": 228,
  "citation": "Apify Academy > Beginner courses > Apify platform (https://docs.apify.com/academy)",
  "reason": null,
  "sync_id": "site-487918db87be",
  "source_url": "https://docs.apify.com/academy",
  "scraped_at": "2026-11-14T14:06:14Z"
}

From a real run of this tool; long text and lists shortened here.

How to use it

Three steps

  1. Paste public start URLs (or a sitemap URL) and set Max pages above the size of the site.
  2. Run it once: every chunk comes back as 'upsert' with its stable chunk_id. Embed and load them, or let the Actor push them into Pinecone or Qdrant.
  3. Schedule the same input daily. Each run returns only chunks to upsert and chunk IDs to delete; apply them by chunk_id in your vector database, or let the Actor do it.

API

Call it from Python

from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("aurelix/rag-site-sync").call(run_input={'startUrls': ['https://docs.apify.com/academy'],
 'maxPages': 300,
 'syncId': 'apify-academy',
 'chunkSize': 1500})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

pip install apify-client. The same input works from the Apify console, a schedule, Make, n8n, Zapier or an AI agent through the Apify MCP server.

Pricing

Pay per result

Per 1,000 changed chunks, free plan$0.10
Per 1,000 changed chunks, paid plans$0.08
Page checked, per 1,000, free plan$0.50
Start fee per run$0.01

Live prices from the Apify Store; no subscription and no platform usage billed on top. See the Store page.

Honest limits

What it does not do

  • No JavaScript rendering: pages that are an empty app shell are skipped (and keep their chunks if already known).
  • Only HTML pages; PDFs, images and other files are skipped. HTML pages over 2 MB are skipped.
  • Max pages caps the pages fetched per run (up to 5,000), including pages that could not be read. Known pages not reached keep their chunks and are checked in a later run; set Max pages above the size of the site.
  • Pages are found by following links from the start URLs. A first run can miss pages no crawled page links to; a later run returns them as new when it finds them. Turn on 'Also use the sites' sitemaps' for complete coverage.
  • Sitemaps (and robots.txt) are read within 30 seconds at the start. On a slow site with a big sitemap index, the sitemap is skipped and pages are found by following links from the start URLs; a site that asks for a Crawl-delay over 6 seconds is not crawled, even when robots.txt answers late.
  • At most two new requests per second per site (slower with a Crawl-delay up to 6 s; sites asking for more are skipped). The run stops early, with everything saved so far kept, when 10 pages in a row cannot be read (blocked, errors, no answer), when no page can be read for 45 s, or when the site answers so slowly that the run takes more than 12 s per page.
  • One sync holds up to 300,000 chunks (memory). A run that would go past it stops with a message; use a larger chunk size or split the site into several syncs.
  • Changing chunk size or overlap, or the start URLs without a sync ID, starts a new sync with new IDs. Known pages that your include/exclude patterns now leave out are deleted from the index (delete rows) and no longer fetched.
  • A page that shrinks by more than 90% (from at least 5 chunks) is treated as broken and keeps its chunks; if the shrink is real, start a new sync.
  • Vector database sync covers Pinecone and Qdrant; embeddings use OpenAI only. For other databases, apply the dataset rows yourself by chunk_id.
  • Pages behind a login, paywall or bot challenge are not accessible.

FAQ

Questions buyers ask

Is it cheaper than the leading tools?

For keeping an index current, yes: you pay $0.50 per 1,000 pages checked plus $0.10 per 1,000 changed chunks (about $0.12 to $0.14 per 1,000 chunks on the first runs we measured, page checks included), instead of paying to re-crawl and re-embed the whole site. A quiet day costs only the page checks and the start fee.

Can I use it without a vector database?

Yes. By default the changes are only in the dataset, one row per chunk, ready for Google Sheets, n8n, Make, Zapier or your own code; the vector database push is optional.

Can an AI agent use it?

Yes. Through Apify's MCP server an agent can sync a docs site and read only the changed chunks with their citations; see 'Use it from AI agents' below.

How much does the Website to Knowledge Base Sync cost?

$0.10 per 1,000 changed chunks ($0.08 on paid Apify plans), billed through your Apify account; you pay only for results. Apify's free plan includes $5 of credit a month, enough for about 50,000 changed chunks.

How are changes detected?

Each page's main content is converted to Markdown and split into chunks by heading, paragraph and sentence. Each chunk's ID comes from the page URL, its heading path and a hash of its normalized text. A run compares the page's chunk IDs with the ones it remembered from the previous run: new IDs become 'upsert' rows, missing IDs become 'delete' rows, and a page whose IDs are all the same returns nothing. Whitespace changes and moved menus are not changes. Pages that redirect or point by rel=canonical to another page with the same content are merged into it, and the old URL's chunks are deleted; a URL with and without a trailing slash counts as one page.

Why do unchanged chunks keep their IDs?

Chunk boundaries are cut at content-defined points (heading boundaries and paragraph or sentence breaks chosen by their own hash), not at fixed character offsets, so editing a paragraph re-cuts only the chunk it sits in and, rarely, the next one. With overlap on, the chunk after an edited one also gets a new ID, because its text includes the overlap.

Where is the memory kept, and how do I start over?

In a named key-value store 'aurelix-rag-site-sync' in your own Apify account: one record per sync (sync ID plus chunk size and overlap), read once and written once per run. Re-running the same input reuses it. To start over, use a new sync ID or delete the record. Changing chunk size or overlap starts a new sync, because the IDs change. Pages not checked for 180 days are forgotten.

How do I connect Pinecone or Qdrant?

Choose the database in 'Push changes to a vector database'. Pinecone: your API key and the index host from the Pinecone console; with an OpenAI key the chunks are embedded and written as vectors with the text and citation as metadata, without one the index's integrated embedding is used (set the text field your index embeds). Qdrant: your cluster URL, API key, collection and an OpenAI key; the collection is created with cosine distance if it does not exist. Keys are stored encrypted by Apify and never logged or returned.

What happens if my vector database or OpenAI key fails?

The keys are checked before any page is fetched; a wrong key or host ends the run at once with the reason, and only the start fee is charged. If the database refuses a write during the run, the run stops, that page is not charged and not remembered, and it is sent again on the next run, so the database never silently misses a change.

Which IDs do I use in my own vector database?

Use 'chunk_id' as the vector or point ID (a UUID, accepted by Pinecone, Qdrant, Weaviate, Chroma and pgvector) and store 'url', 'doc_id' and 'citation' as metadata. For each 'upsert' row embed 'text' and upsert by chunk_id; for each 'delete' row delete that chunk_id.

Does it respect robots.txt?

Always, and it cannot be switched off. Disallowed URLs are never requested, Crawl-delay is honoured up to 6 seconds (sites asking for more are skipped and not charged), and links on nofollow pages are not followed.

Is this legal?

It reads only public data any logged-out visitor can see: the website you choose (sync only sites you have the right to crawl). It goes at a polite pace, respects robots.txt, never logs in and never solves CAPTCHAs. It returns each page's main content as text chunks with title and headings, as the site published it; copyright in it stays with its owner. To have a record removed, open an issue on this Actor's Issues tab; if a site owner formally asks us to stop, this Actor will stop. You are responsible for using the data lawfully, incl. anti-spam and privacy laws; this is not legal advice.

Guides

Tutorials using this tool

Related

Related tools

Try the Website to Knowledge Base Sync

Open it on the Apify Store, paste the example input above and click Start. Results download as CSV, Excel or JSON.