Giter Club home page Giter Club logo

dialogflow-web-chatbot-ui's Introduction

Dialogflow for Web v2

This is a mobile-friendly Web Application for Dialogflow V2.
For a live demo, check this.

Installation

Requirements

  • NodeJS & NPM (or Yarn)
  • Dialogflow V2 Project (for V1, use this old repo)

Set up Dialogflow Gateway (backend)

To connect this UI with Dialogflow, you need to use a backend server.

Setup

Clone this repo first and cd into it.

Get the dependencies

  • Using npm: npm i
  • (Or) Using yarn: yarn

Connect your Agent

Open src/Config/index.js and change the API_URL variable to your Dialogflow Gateway API that you hosted.

The logo, agent name, description and available languages are fetched from your Dialogflow project. Change them there and it will sync to the UI.

Serving the application

To serve the web application (development purpose):

  • Using npm: npm run serve
  • (Or) Using yarn: yarn serve

Your browser should open and redirect to localhost:8080. You can also give a --port argument to serve at specific port.

Building for production

Your app will be bundled to the dist directory

  • Using npm: npm run build
  • (Or) Using yarn: yarn build


UI Features

Note: This is an unofficial Web Integration

Theming

You can make a custom theme for Dialogflow for Web v2, according to the specification:

Theme Dialogflow for Web v2

To apply the variables, open src/Style/Theme.sass and change them in the \:root selector

You can also optimize your theme for Dark-mode-enabled clients within the same file and selector under the @media (prefers-color-scheme: dark)

Please note, when adding new languages, you may have to translate some of the UI as well (translations.json in src/Translations)

dialogflow-web-chatbot-ui's People

Contributors

dependabot[bot] avatar gokulnc avatar mishushakov avatar prem-kumar27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.