Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 735 Bytes

README.md

File metadata and controls

31 lines (25 loc) · 735 Bytes

Travelflan chatbot widget usage sample for wwpkg

Introduction

This repo demonstrated how to use integrate travelfaln chatbot in for wwpkg's website.

Run demo

npm install
npm start

then open http://localhost:8080/ in your browser.

Usage

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>