Give you agent access to product documents, KBs, and more.
queryCorpus
tool and instructing the agent on how to use the tool.
Corpora
) is to use the Ultravox web application. You can also use the API.
Create a Corpus
New Source
in the top right corner.Collection
click on New Collection
.Name
and Description
then click Save
.Create a Source
Collection
you just created.Name
and Description
for the new source.Web
and then add any URLs to be crawled.Save
and then wait a few moments for the pages to be crawled and the content to be ingested.Use the queryCorpus Tool
corpusId
. For example, if we wanted to create a voice agent to answer questions about Seattle, we could provide the tool like this:Create a Corpus
corpusId
.Create a Source
sourceId
. We will crawl the URL(s) and ingest all the content.Query the Corpus
Use the queryCorpus Tool
corpusId
. For example, if we wanted to create a voice agent to answer questions about Seattle, we could provide the tool like this:https://foo.bar/lookupProductInfo
.
All you need to do is create a custom tool that uses the external API and then give the tool to your agent.
Here’s how we might create a tool for our Ultravox agent to use: