Web Messaging Guest API: How to trigger typing indicators programmatically?

i’m trying to build a custom bot interface that sits on top of the Genesys Cloud Web Messenger widget. the widget works fine for basic text, but i need to show the ‘typing’ bubbles when the bot is ‘thinking’. i know the widget has a sendTyping method, but i’m building the logic in a separate React component that talks to the Guest API directly for some custom flows.

i found the endpoint POST /api/v2/webmessaging/guests/{externalContactId}/typing in the docs. it says it accepts a JSON body with conversationId and direction. i’m passing the correct externalContactId and the active conversationId from the session token. here’s what i’m sending:

{
 "conversationId": "abc-123-def",
 "direction": "OUTBOUND"
}

the request returns a 204 No Content, which usually means success, right? but the customer never sees the typing indicator in the widget. they just see the message appear instantly when i send the actual text via POST /api/v2/webmessaging/conversations/{id}/messages.

i’ve checked the network tab and the typing call definitely goes through before the message call. is there a delay i’m missing? or does the widget ignore typing events from the API and only respect the client-side sendTyping() call? i tried calling sendTyping() from the injected script but it’s not exposed in the global window object the way the docs imply.

anyone got this to work with the Guest API? or do i have to hack the widget instance directly?