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
I retried with widget mode and it worked but only when JS is added directly in the HTML and does not work with external JS, I donât know why. This is just a hack because ideally I want it to work with external JS.
The iframe integration on the other hand never works.
Waiting for response.