adverse-sapphire
adverse-sapphire4mo ago

Knowledge base

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
4 Replies
Vapi Support Bot
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:
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>" }
}'
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 for details. Sources: - Integrating with Trieve - Create Knowledge Base API Reference
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Duckie
Duckie4mo ago
Message marked as helpful by @Matthew C! 🎉
quickest-silver
quickest-silver4mo ago
checking if this is resolved/solved for you?
Vapi Support Bot
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!

Did you find this page helpful?