Building a custom client app that mirrors the native Web Messaging widget. We’re using the Guest API to manage the session state directly. Everything works for sending text messages, but the typing indicators aren’t showing up on the agent desktop.
I’m sending the typing event via the Guest API endpoint:
const response = await fetch(`${gatewayUrl}/api/v2/interactions/guest/sessions/${sessionId}/typing`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
typing: true
})
});
The API returns a 200 OK. No errors. But the agent sees nothing. I checked the WebSocket stream on the client side and I’m not seeing the typing event come through either.
Is there a specific requirement for the typing indicator to trigger the UI update on the agent side? Or does it only work if sent through the embedded widget’s internal state management? We can’t use the widget because we need full control over the UI.
Also, read receipts seem to have the same issue. Sending read via the API returns 200 but the message doesn’t show as read for the agent.
Any insights?