Javascript OnMessageReceived event #2972
Unanswered
valentinwinkelmann
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello👋
Is there any way to listen via JavaScript for new messages sent through the widget to the client? Specifically, we would like to implement certain help commands that allow to trigger functions on our website via JavaScript as soon as a chat agent executes them through the chat.
So example:
Chat agent writes:
"#TestFunction"
Chat client browser reacts in JavaScript to "#TestFunction" and triggers:
TestFunction(){
console.log("Some client side function");
}
Beta Was this translation helpful? Give feedback.
All reactions