---
title: "Chatbot training data"
description: "Turn a website, help center and docs into chatbot training data: crawl Zendesk, Intercom or GitBook pages to Markdown, chunk them and refresh weekly."
canonical: https://www.zenrows.com/use-cases/chatbot-training-data
updated: 2026-10-18
---

# Chatbot training data

Chatbot training data is the content a support or sales chatbot answers from: your website, help center, docs and policies, as clean text. Zenrows Crawl walks the site from a start URL and returns each kept page as Markdown; Batch re-reads those URLs on a schedule, so the knowledge base matches the live site.

## Sample output: one help center article

```json
{
  "url": "https://help.example.com/articles/return-an-order",
  "content_status": "fetched",
  "content": "# Return an order\n\nYou can return most items within 30 days of delivery from **Orders > Start a return**.\n\n## Items that cannot be returned\n\nGift cards and opened personal care items are final sale.\n\n## Related\n\n- [Track your refund](https://help.example.com/articles/track-refund)",
  "kb": {
    "collection": "returns",
    "locale": "en",
    "chunks": 3,
    "last_crawled": "2026-10-17T06:00:00Z",
    "content_hash": "9f2c41d0"
  }
}
```

Illustrative: Crawl returns `url`, `content_status` and Markdown `content`; your ingestion adds `kb`.

## Website content a chatbot learns from

Most knowledge bases come from a few sections. Pick the paths, ingest them cleanly, keep them current.

| Job | Data you collect | Typical sources |
|---|---|---|
| Support bot from a help center | Articles, steps, troubleshooting tables | Zendesk Guide, Intercom Articles, Freshdesk and Help Scout help centers |
| Docs assistant | Guides, API reference, code samples | Docusaurus, GitBook, ReadMe and Mintlify docs |
| Pre-sales bot | Plans, pricing, features, integrations, security | Your own marketing site |
| Store assistant | Products, shipping, returns, size guides | Shopify and WooCommerce stores |
| Multilingual bot | The same articles per locale | `/fr/`, `/de/`, `/es/` paths |
| Chatbot platform onboarding | A new customer's whole site, at signup | Small-business sites, some behind Cloudflare |

## Why website-to-chatbot ingestion goes wrong

A bot is as accurate as its pages. Wrong answers come from junk pages, unreached sections, or policies changed since the last ingest.

| What breaks | What it looks like | How Zenrows handles it |
|---|---|---|
| Junk pages in the index | Tag archives, search results and logins crowd out articles | Keep and skip URL patterns hold the crawl to your paths |
| Duplicate URLs | One article three times, via tracking parameters and `www` variants | Crawl normalizes URLs, strips `utm_*` and similar, drops duplicates |
| JavaScript-rendered help centers | A title and no body | Crawl the URLs, then Batch in Adaptive Stealth Mode renders when needed |
| Protected sites | A Cloudflare challenge stops the ingest | Zenrows' stealth gets through Cloudflare, AWS WAF and similar to the article |
| Stale answers | The bot quotes last month's refund window | Batch re-reads the list weekly; re-embed only changed hashes |
| Slow onboarding | New users wait on a scan and leave | Crawl at signup and read results as they arrive |

## How to turn a website into chatbot data

1. **Choose the sections**: a start URL each, plus keep and skip patterns, e.g. keep `/articles/`, drop `/search` and `/login`.
2. **Crawl to Markdown**, with a page limit sized to the site.
3. **Chunk and label**: split on headings; store the URL, section and locale with each chunk.
4. **Refresh on a schedule**: re-read weekly with Batch, compare hashes, re-embed only changes.

```bash cURL
curl -X POST "https://api.zenrows.com/v1/crawls" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://help.example.com/",
    "max_items": 2000,
    "max_pages": 5000,
    "include_patterns": ["/articles/"],
    "exclude_patterns": ["/search", "/login", "/tags/"],
    "output_format": "markdown"
  }'
# Returns a crawl_id. Check progress with GET /v1/crawls/{crawl_id}
```

```python Python
# pip install requests
import hashlib, json, re
import requests

CRAWL_ID = "YOUR_CRAWL_ID"
r = requests.get(
    f"https://api.zenrows.com/v1/crawls/{CRAWL_ID}/download",
    headers={"X-API-Key": "YOUR_ZENROWS_API_KEY"},
    timeout=300,
)
r.raise_for_status()

chunks = []
for line in r.text.splitlines():
    row = json.loads(line)
    if row.get("content_status") != "fetched":
        continue
    page_hash = hashlib.sha256(row["content"].encode()).hexdigest()[:8]
    for i, part in enumerate(re.split(r"\n(?=## )", row["content"])):
        chunks.append({"id": f'{row["url"]}#{i}', "url": row["url"],
                       "hash": page_hash, "text": part.strip()})

print(len(chunks), "chunks ready for the vector store")
```

```bash CLI
npx -y @zenrows/cli init
zenrows crawl create https://help.example.com/ --include-patterns /articles/ --max-pages 5000 --output-format markdown --follow
zenrows crawl download CRAWL_ID --out help-center.jsonl
# Weekly refresh: jobs.jsonl lists the article URLs the crawl kept
zenrows batch create jobs.jsonl --output markdown --wait
```

```text Claude Code (MCP)
# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

# Then ask:
Use Zenrows to crawl https://help.example.com/ and keep only pages under /articles/. Return each article as Markdown with its URL and title, and list any article that mentions the refund window.
```

## Which Zenrows product fits

| If you need to | Use | Why |
|---|---|---|
| Ingest a whole site or help center | [Crawl](/products/crawl) | Follows links from a start URL, keeps your paths, returns Markdown |
| Refresh every known article on a schedule | [Batch](/products/batch) | Thousands of URLs in one job, rendered when needed |
| Re-read one page the moment it changes | [Fetch](/products/fetch) | The updated article as Markdown in one request |
| Run ingestion from a script or cron | [CLI](/cli) | `batch create` with `--output markdown` and `--wait`, one line |

## What success looks like

| Measure | What good looks like | How to check it |
|---|---|---|
| Coverage | Every article in the chosen sections is indexed | Kept URLs against the sitemap or article count |
| Index cleanliness | No search, tag, login or duplicate pages | Sample indexed URLs against exclude rules |
| Freshness | Site changes reach the bot within one cycle | Edit a test article; time the bot's update |
| Answer accuracy | A fixed question set answered from current pages | Rerun the set after each refresh; diff answers |
| Ingest time | A new site answerable soon after signup | Crawl start to first and last chunk embedded |
| Refresh run time | The weekly refresh beats the cut-off as sites grow | Batch start and finish per site |

## Chatbot training data FAQ

### How do I train a chatbot on my website data?

Crawl the sections it should know, convert to Markdown, chunk, embed into a vector store, and retrieve the closest chunks per question. Zenrows Crawl does the first two steps in one job: give it a start URL and paths to keep; get each kept page as Markdown with its URL.

### Is this training the model, or retrieval?

Retrieval, for almost every website chatbot: the model reads your pages at answer time through RAG, without retraining. So freshness beats volume: re-embed a changed policy and the bot is right that day. Fine-tuning: see AI training data .

### Which pages should a chatbot knowledge base include?

Pages a customer would accept as an answer: help articles, docs, pricing, plans, policies, products. Skip search, tag and category archives, login and account pages, and paginated listings: they repeat content and confuse retrieval. Set both as URL patterns.

### How often should I refresh the chatbot's content?

As often as the site changes: weekly for most help centers and docs, daily for pricing, stock or policy pages. Re-read with Batch, compare each page's hash with the last run, re-embed only changes.

### Can it ingest help centers built with JavaScript or behind Cloudflare?

Yes. Crawl collects the URLs; Batch or Fetch reads them in Adaptive Stealth Mode, escalating to rendering and stealth only when needed. JavaScript articles render, Zenrows' stealth gets through Cloudflare, AWS WAF and similar, and plain sites stay light, with no per-domain setup.

### Can one chatbot cover several languages?

Yes. Crawl each locale path ( /fr/ , /de/ ), tag chunks with their locale, and filter retrieval by language. Separate collections per locale keep English articles out of French answers.

### How should I chunk website pages for a RAG chatbot?

By the page's structure: cut at Markdown H2 or H3 headings, and long sections at paragraphs. Keep the title and heading path on each chunk, so a refunds chunk still names its product, plus the source URL for citations and re-embedding only changed pages.

## Related use cases

- [LLM web scraping for RAG and agents](https://www.zenrows.com/use-cases/llm-web-scraping.md): Live pages as Markdown or JSON for RAG pipelines, grounding and agent tool calls.
- [AI training data](https://www.zenrows.com/use-cases/ai-training-data.md): Web corpora for pre-training and fine-tuning, collected as Markdown JSONL with a source URL on every document.
- [Website content migration](https://www.zenrows.com/use-cases/website-content-migration.md): Every page, title, meta tag, image and URL from a legacy site, exported as Markdown or JSON.
- [Website change monitoring](https://www.zenrows.com/use-cases/website-change-monitoring.md): Pricing pages, policies, stock status and IR pages fetched on a schedule and diffed to catch real changes.
- [Content aggregation](https://www.zenrows.com/use-cases/content-aggregation.md): Articles, events, deals and listings from hundreds of websites, mapped to one schema and kept fresh.

Start free: https://app.zenrows.com/register. Docs: https://docs.zenrows.com

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.zenrows.com/use-cases/chatbot-training-data#webpage","url":"https://www.zenrows.com/use-cases/chatbot-training-data","name":"Chatbot training data","description":"Turn a website, help center and docs into chatbot training data: crawl Zendesk, Intercom or GitBook pages to Markdown, chunk them and refresh weekly.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-10-18","dateModified":"2026-10-18","about":{"@type":"Thing","name":"chatbot training data"},"keywords":"chatbot training data, train chatbot on website data, train ai chatbot on website, website to chatbot knowledge base, chatbot knowledge base, help center to chatbot, rag chatbot website data","publisher":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Use cases","item":"https://www.zenrows.com/use-cases"},{"@type":"ListItem","position":3,"name":"Chatbot training data","item":"https://www.zenrows.com/use-cases/chatbot-training-data"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/use-cases/chatbot-training-data#faq","mainEntity":[{"@type":"Question","name":"How do I train a chatbot on my website data?","acceptedAnswer":{"@type":"Answer","text":"Crawl the sections it should know, convert to Markdown, chunk, embed into a vector store, and retrieve the closest chunks per question. Zenrows Crawl does the first two steps in one job: give it a start URL and paths to keep; get each kept page as Markdown with its URL."}},{"@type":"Question","name":"Is this training the model, or retrieval?","acceptedAnswer":{"@type":"Answer","text":"Retrieval, for almost every website chatbot: the model reads your pages at answer time through RAG, without retraining. So freshness beats volume: re-embed a changed policy and the bot is right that day. Fine-tuning: see AI training data ."}},{"@type":"Question","name":"Which pages should a chatbot knowledge base include?","acceptedAnswer":{"@type":"Answer","text":"Pages a customer would accept as an answer: help articles, docs, pricing, plans, policies, products. Skip search, tag and category archives, login and account pages, and paginated listings: they repeat content and confuse retrieval. Set both as URL patterns."}},{"@type":"Question","name":"How often should I refresh the chatbot's content?","acceptedAnswer":{"@type":"Answer","text":"As often as the site changes: weekly for most help centers and docs, daily for pricing, stock or policy pages. Re-read with Batch, compare each page's hash with the last run, re-embed only changes."}},{"@type":"Question","name":"Can it ingest help centers built with JavaScript or behind Cloudflare?","acceptedAnswer":{"@type":"Answer","text":"Yes. Crawl collects the URLs; Batch or Fetch reads them in Adaptive Stealth Mode, escalating to rendering and stealth only when needed. JavaScript articles render, Zenrows' stealth gets through Cloudflare, AWS WAF and similar, and plain sites stay light, with no per-domain setup."}},{"@type":"Question","name":"Can one chatbot cover several languages?","acceptedAnswer":{"@type":"Answer","text":"Yes. Crawl each locale path ( /fr/ , /de/ ), tag chunks with their locale, and filter retrieval by language. Separate collections per locale keep English articles out of French answers."}},{"@type":"Question","name":"How should I chunk website pages for a RAG chatbot?","acceptedAnswer":{"@type":"Answer","text":"By the page's structure: cut at Markdown H2 or H3 headings, and long sections at paragraphs. Keep the title and heading path on each chunk, so a refunds chunk still names its product, plus the source URL for citations and re-embedding only changed pages."}}]}]}
</script>
