Sign inGet Started

Send a typing indicator

POST
/v1/amb/conversations/{conversation_id}/typing
const result = await bird.amb.conversations.typing(
  "acv_01krdgeqcxet5s7t44vh8rt9mg",
  { event: "typing_start" },
);
console.log(result);

Sends a typing indicator to the customer's device on this conversation. Send typing_start before the reply it precedes; sending it again before that reply is not meaningful and may be dropped. Bird also shows a typing indicator before each reply it sends, so set skip_typing on that reply to avoid a second one. Apple's own behavior for typing_end sent with no reply following is unproven, so treat it as best-effort. This conversation must be open: the same checks that gate a message on this conversation gate a typing indicator, other than the content checks, since a typing indicator has no content. Apple can still refuse the indicator for this customer: AMBRecipientUnreachable means none of their devices can receive it, and AMBConversationClosed can also mean Apple reports that the customer left the conversation, which then closes when the next message is sent.

Parameters

conversation_idstring

Conversation identifier. Starts with acv_.

Verzoekpayload

event
string
verplicht

The typing signal to send. typing_start tells the customer's device that an operator is composing a reply. typing_end tells it composition stopped without a message following. Apple expects at most one typing_start before the reply it precedes; sending it again before that reply is not meaningful and may be dropped. typing_end's behavior against a live conversation is unproven: the legacy platform's implementation was disabled after it caused issues, so treat it as best-effort.

Possible values: typing_start, typing_end

Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.