Skip to main content
POST
Add website knowledge
Required scope: AGENTS_WRITE

Behavior

Adds a website to the receptionist’s knowledge. Allo crawls the site starting from the URL you send. The crawl runs in the background, so the call returns 201 right away with the entry (status ACTIVE). The receptionist can answer from the site once indexing has finished. If the crawl fails, the API does not report it. Send the URL of a publicly reachable site. A URL without http:// or https:// is stored as https://. There is no limit on the number of websites, but the same URL cannot be added twice to a line. Websites belong to your team’s knowledge library. If another line of your team already added that URL, Allo links the existing website to this line instead of crawling it again. The response never carries the crawled text. That text is what the receptionist reads, not something you configure.

Errors

  • 400 INVALID_KNOWLEDGE_URL: the URL has no public host (for example acme instead of acme.com).
  • 409 AGENT_KNOWLEDGE_ALREADY_EXISTS: this line already uses a website with that URL.
  • 404 PHONE_NUMBER_NOT_FOUND: the number is not one you have access to.

Authorizations

Authorization
string
header
required

Path Parameters

number
string
required

Allo phone number in E.164 format

Example:

"+14155551234"

Body

application/json
url
string
required

The URL of a publicly reachable site. A URL without a scheme is stored as https://.

Example:

"https://acme.test/pricing"

Response

The entry that was created

data
object

A website of the team's knowledge library, crawled for the receptionist to answer from. The crawled text itself is not reported: it is what the receptionist reads, not something you configure.