KIVEX
Capabilities

web.search

Search the site's content and get passages with their source.

Searches everything KIVEX has read from the site and returns the passages that best answer a question. Each passage comes with the page it was found on and the time that page was last read, so you can quote it and link to it.

When to use it

Use it for open questions whose answer is somewhere in the site's content: how delivery works, what a product is made of, whether a service is offered. For facts the operator maintains directly, such as opening hours or contacts, call web.info first.

Available to unverified agents, agents with an API key, the KIVEX script on the page and the operator's own systems. It does not act for a particular person.

Request

Send the capability name and its input to the site's invoke endpoint.

curl https://api.kivex.chat/v1/sites/$SITE/invoke \
  -H "Authorization: Bearer $KIVEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"capability":"web.search","input":{"query":"How long does delivery take?","limit":2}}'

Prop

Type

Response

The answer is an envelope: data in the shape below, and evidence with the source and time of every value that has an evidenceRef.

Prop

Type

Good to know

  • An empty passages list means the site does not answer the question. Say so instead of filling the gap yourself.
  • Passages are observed from the public website. They are good for answering, not for a transaction.
  • score ranks passages within one response. Do not compare scores across requests.

Errors

This capability can answer with BAD_REQUEST, NOT_SUPPORTED, NOT_ALLOWED, RATE_LIMITED, UNKNOWN, SOURCE_UNAVAILABLE.

Example: delivery time question

{
  "query": "How long does delivery take?",
  "limit": 2
}

On this page