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. 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.

Parameter

conversation_idstring

Conversation identifier. Starts with acv_.

Anfrage-Nutzlast

event
string
erforderlich

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

Weiter mit der Dokumentation, Anleitungen und Beispielen zu diesem Thema.