Knowledge base
# support
m
Hi, I need to pass in a website that my agent can refer to when asked questions. How do I add it to the Knowledge base? I can only add files, which isn’t ideal as I looking to add the urls of each page of the website. I was just checking to see what the quickest and best way is? Thanks
v
To add website content to your Vapi Knowledge Base, use the Trieve integration to crawl your site and import the data: 1. Set up a Trieve account and create a dataset. 2. Use Trieve's website crawling to ingest your site's pages. 3. Import the dataset into Vapi with this API call:
Copy code
bash
curl -X POST https://api.vapi.ai/knowledge-base \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-website-kb",
    "provider": "trieve",
    "createPlan": { "type": "import", "providerId": "<Trieve Dataset ID>" }
  }'
This is the quickest way to add multiple web pages without manual file uploads. See [Vapi's Trieve integration guide](https://docs.vapi.ai/knowledge-base/integrating-with-trieve) for details. Sources: - [Integrating with Trieve](https://docs.vapi.ai/knowledge-base/integrating-with-trieve) - [Create Knowledge Base API Reference](https://docs.vapi.ai/api-reference/knowledge-bases/create)
v
Message marked as helpful by @Matthew C! 🎉
k
checking if this is resolved/solved for you?
v
Just checking in—was the information about using the Trieve integration to add your website to the Knowledge Base helpful for your needs? If you have any more questions or need further assistance, feel free to let me know!