ui.highlight
Highlight a part of the page, such as a plan, product or form.
Points the visitor to a part of the page, such as a plan in a pricing table, a product or a button. Targets are semantic names like pricing.pro; the script on the site maps them to elements through an allowlist.
When to use it
Use it after answering, to show the visitor where the thing you talked about is.
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.highlight","input":{"targetId":"pricing.pro"}}'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.
- When the site has no targets, the manifest marks the capability unsupported and offers
ui.navigate.
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 ui.navigate.
Example: show me the pro plan
{
"targetId": "pricing.pro"
}