πŸ“„Manage Pages

Add or delete pages from your chatbot's knowledge base. This allows you to dynamically update what content your chatbot can reference.

Delete Pages

Remove specific pages from your chatbot's knowledge base.

Endpoint

POST https://app.wonderchat.io/api/v1/delete-pages

Request Parameters

Parameter
Type
Required
Description

apiKey

string

βœ… Yes

Your API key

chatbotId

string

βœ… Yes

The ID of the chatbot to delete pages from

urls

array

βœ… Yes

List of URLs to delete from your chatbot

Example Request

curl --location --request POST 'https://app.wonderchat.io/api/v1/delete-pages' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiKey": "YOUR_API_KEY",
  "chatbotId": "YOUR_CHATBOT_ID",
  "urls": [
    "https://wonderchat.io/pricing"
  ]
}'

Add Pages

Add new pages to your chatbot's knowledge base.

Endpoint

POST https://app.wonderchat.io/api/v1/add-pages

Request Parameters

Parameter
Type
Required
Description

apiKey

string

βœ… Yes

Your API key

chatbotId

string

βœ… Yes

The ID of the chatbot to add pages to

urls

array

βœ… Yes

List of URLs to add to your chatbot

sessionCookie

string

❌ No

Session cookie for crawling sites behind login

Example Request

curl --location --request POST 'https://app.wonderchat.io/api/v1/add-pages' \
--header 'Content-Type: application/json' \
--data-raw '{
  "apiKey": "YOUR_API_KEY",
  "chatbotId": "YOUR_CHATBOT_ID",
  "urls": [
    "https://wonderchat.io"
  ]
}'

For pages behind authentication, you can provide a sessionCookie parameter. For detailed instructions on obtaining a valid session cookie, visit: https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/how-to-crawl-and-update-private-sites

Use Cases

  • Content Updates: Keep your chatbot's knowledge current

  • Seasonal Content: Add/remove pages based on business cycles

  • A/B Testing: Test different content sets

  • Compliance: Remove outdated or incorrect information

  • Private Content: Add authenticated pages using session cookies

Last updated

Was this helpful?