#I'm using the conversational ai javascript sdk and i want to fetch the conversation messages in tex

1 messages · Page 1 of 1 (latest)

tardy hingeBOT
#
AI-generated Answer for fyro4966

It seems like you're having trouble with the onMessage callback in the Conversational AI JavaScript SDK. The onMessage callback is typically used to handle incoming messages from the AI agent. If it's not catching the messages, there might be a few things to check:

  1. Ensure Proper Setup: Make sure that the SDK is correctly initialized and connected to the websocket. The onMessage callback should be set up after establishing a connection.

  2. Check Connection: Verify that the websocket connection is active and stable. If the connection drops, the callback won't receive messages.

  3. Callback Implementation: Double-check the implementation of the onMessage callback to ensure it's correctly handling the incoming data. You might want to log the incoming messages to see if they're being received but not processed as expected.

  4. Agent Configuration: Ensure that the agent is configured to send messages in the expected format. Sometimes, configuration issues can lead to unexpected behavior.

If you've checked these aspects and the issue persists, it might be helpful to review any available documentation or examples related to the SDK. If needed, you can also reach out for further support or provide more details about your implementation for more specific guidance.

chilly saddle
#

I am having the same issue! Did you figure out how to catch the conversation messages?