Skip to main content

We are integrating an instant chat with live agents in a React Native application, utilizing the native chat-core SDK's for both Android and iOS. The plan is to route customers through the same setup as our website, however, the website uses a bot that sets up custom events to suggest responses. The bot is from a third-party and behaves as a normal agent, outside of the custom events. On the web the custom events are implemented using the embedded Live Agent API, and transformed into HTML buttons.

 

We're running into some issues with handling these custom events, since there seems to be no native solution to consume them in the SDK. We see that we could come pretty close using the REST API (we think...), by posting data to the custom event endpoint and watching the session's messages to display them. The problem is that the native SDK's only expose the session id, but we don't seem to have access to the session affinity token or the session key.

Does anyone have any suggestions on how to handle this within a React Native app?

0/9000