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.
Updated
{
"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"
}
}
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 | |
| 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.
Tag archives, search results and logins crowd out articles
Keep and skip URL patterns hold the crawl to your paths
One article three times, via tracking parameters and www variants
Crawl normalizes URLs, strips utm_* and similar, drops duplicates
A title and no body
Crawl the URLs, then Batch in Adaptive Stealth Mode renders when needed
A Cloudflare challenge stops the ingest
Zenrows' stealth gets through Cloudflare, AWS WAF and similar to the article
The bot quotes last month's refund window
Batch re-reads the list weekly; re-embed only changed hashes
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
- Choose the sections: a start URL each, plus keep and skip patterns, e.g. keep
/articles/, drop/searchand/login. - Crawl to Markdown, with a page limit sized to the site.
- Chunk and label: split on headings; store the URL, section and locale with each chunk.
- Refresh on a schedule: re-read weekly with Batch, compare hashes, re-embed only changes.
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}# 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")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# 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
- Ingest a whole site or help center CrawlFollows links from a start URL, keeps your paths, returns Markdown
- Refresh every known article on a schedule BatchThousands of URLs in one job, rendered when needed
- Re-read one page the moment it changes FetchThe updated article as Markdown in one request
- Run ingestion from a script or cron CLIbatch 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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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. -
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.