Chat events

I was looking for a way to trigger an event every time someone sends a message in the wix chat, so I can get the message as a string and work with it in the event code.
I found out that it’s not possible to do that, so I was looking for some alternatives.

The reason why I want to do that is because I want to use the API of a chatbot. When the user types a message, I get it as a string and send it to the chatbot via API. Then the chatbot answers and I send the answer to the chat again.

Is there a way to do this? Some alternative to wix chat?

Thanks

https://www.wix.com/corvid/forum/community-discussion/user-chat-messenger

Hi Rodrigo,

We just open Chat + Corvid integration functionality that will allow you to do those events:
https://www.wix.com/corvid/reference/$w.Chatbox.html

Enjoy, Erez