I want to create an app that allows the user to talk to my chatbot using voice. I want to try out using the botpress chat API with the javascript library but I'm having trouble. So far, the workflow goes like this:
1. Initialize the conversation by creating a user and the conversation
(createUser, createConversation)
2. Send a message to the conversation
(createMessage)
3. List all messages in the conversation (listConversationMessages)
4. Get the newest message in the conversation
(I looped step 3 until a new message is available)
This worked only for the first input. After I tried speaking again, the listConversationMessages function doesn't seem to return anything. And when I tried using fetch or axios manually, it gave me a 500 response. Am I doing this right?