I have just started building a bot using this framework and working on a very tight timeline. I have used the embed mode to integrate my bot. Added the iframe in a sample HTML page. The chat starts fine but I have added a JS code on the collectchat.on callback but it is not getting called.
I saw that the collectchat object itself is not getting initialized.
What am I doing wrong?
I have added the JS code in an external JS file and linked it to HTML using the script tag.
Please let me know for any solutions