项目作者: mishushakov

项目描述 :
💬 Dialogflow / Actions floating chat
高级语言: JavaScript
项目地址: git://github.com/mishushakov/df-btn.git
创建时间: 2019-07-31T12:45:20Z
项目社区:https://github.com/mishushakov/df-btn

开源协议:MIT License

下载


DF Button

Dialogflow on any website

Add your Dialogflow Agent / Actions on Google to any website!

  • No dependencies, no tracking, no vurnabilities
  • Hosted on CDN
  • Powered by open-source project (Dialogflow for Web)
  • Free & open-source (licensed under MIT)

See a demo

Installation

  1. Link your agent to Dialogflow Gateway Hosted
  2. Add the script in your HTML (also see index.html):
  1. <script
  2. src="https://cdn.jsdelivr.net/gh/mishushakov/df-btn/df-btn.min.js"
  3. id="df-btn"
  4. project="dialogflow-web-v2"
  5. width="400px"
  6. height="600px"
  7. openText="Chat"
  8. closeText="Close"
  9. logo="assets/logo.svg"
  10. background="#FEFFFF"
  11. backgroundDark="#171717"
  12. logoDark="assets/logo_dark.svg">
  13. </script>
  1. Configure. Properties you can change:
  1. project - your project id on Dialogflow Gateway Hosted
  2. width - modal width (100% on mobile)
  3. height - modal height (100% on mobile)
  4. openText - button text to open chat
  5. closeText - button text to close chat
  6. background - background color
  7. backgroundDark - background color (in dark)
  8. logo - custom logotype
  9. logoDark - custom logotype (in dark)
  1. (Optionally) grab the source code and make it truly yours!