Travelflan chatbot widget usage sample for wwpkg
This repo demonstrated how to use integrate travelfaln chatbot in for wwpkg's website.
npm install
npm start
then open http://localhost:8080/ in your browser.
add this script in the end of your website page.
<script src="https://widget.travelflan.com/loader/wwpkg/dist/widget.wwpkg.min.js"></script>
<script>
window.TF_CHATBOT.init({
environment: 'dev' // please set value to 'production' if used in production env
})
</script>
if you want to open the chatbot manually, you can put following code inside your function.
<script>
window.TF_CHATBOT.open()
</script>