FreeDGroup / WWPkgWebSample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About


Languages

Language:HTML 83.0%Language:JavaScript 17.0%