KIVEX
Capabilities

ui.navigate

Take the visitor to a page of the site.

Tells the page the visitor is on to open another page of the same site. KIVEX returns an instruction; the KIVEX script on the site carries it out.

When to use it

Use it when the visitor wants to see something rather than read about it: the pricing page, a product, a contact form.

Available to the KIVEX script on the page. 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":"ui.navigate","input":{"pageId":"pg_pricing"}}'

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

  • Only agents running on the page can use it. A remote agent has no page to move.
  • An unknown page id returns NOT_FOUND.

Errors

This capability can answer with BAD_REQUEST, NOT_SUPPORTED, NOT_ALLOWED, RATE_LIMITED, NOT_FOUND, UNKNOWN. When the site cannot do it, NOT_SUPPORTED suggests web.search.

Example: open the pricing page

{
  "pageId": "pg_pricing"
}

On this page