Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 774 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 774 Bytes

Travelflan chatbot widget usage sample for mayflower

Introduction

This repo demonstrated how to use integrate travelfaln chatbot in for Mayflower'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://alpha-widget.travelflan.com/loader/mayflower/dist/widget.mayflower.min.js"></script>
<script>
  window.TF_CHATBOT.init()
</script>

if you want to use this widget in production website, please add

<script src="https://widget.travelflan.com/loader/mayflower/dist/widget.mayflower.min.js"></script>
<script>
  window.TF_CHATBOT.init({
    environment: 'production'
  })
</script>