Skip to content

FreeDGroup/WWPkgWebSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published