KIVEX
Capabilities

handoff.message

Write to the visitor in a conversation you took over.

Sends a message to the visitor. It appears in the chat widget and in the conversation's transcript in the Hub.

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.message","input":{"conversationId":"cnv_01J9Z5","content":"Dobrý den, tady Petra. Jak vám mohu pomoci?"}}'

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 in a conversation you hold; otherwise NOT_ALLOWED with handoff_not_active.
  • Send an idempotencyKey: a retried request then never sends the message twice.

Errors

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

Example: reply

{
  "conversationId": "cnv_01J9Z5",
  "content": "Dobrý den, tady Petra. Jak vám mohu pomoci?"
}

On this page