KIVEX
Capabilities

handoff.takeover

Take a conversation over from the chatbot.

Takes over a conversation the chatbot handed to a person. From then on the visitor talks to you: the chatbot stays silent until you give the conversation back with handoff.release.

Available to 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":"handoff.takeover","input":{"conversationId":"cnv_01J9Z5","operatorName":"Petra z podpory"}}'

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

  • Whoever takes a conversation first keeps it, exactly as between two operators in the Hub. If someone else holds it, the answer is NOT_ALLOWED with handoff_held.
  • Taking over again a conversation you already hold changes nothing and returns it.

Errors

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

Example: take it as a named agent

{
  "conversationId": "cnv_01J9Z5",
  "operatorName": "Petra z podpory"
}

On this page