• This repository has been archived on 07/Feb/2020
  • Stars
    star
    137
  • Rank 265,366 (Top 6 %)
  • Language Vue
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Web App for Dialogflow

๐Ÿšจ DEPRECATION WARNING: THIS PROJECT IS NO LONGER SUPPORTED, MOVE TO DIALOGFLOW FOR WEB V2


Dialogflow for Web

Dialogflow lets you build conversational interfaces on top of your products and services by providing a powerful natural language understanding (NLU) engine to process and understand natural language input

This is a unofficial Web client for Dialogflow, it was built, to support Google Assistant rich-responses and to make the most out of the Platform available to Web

What's included

  • 100% Progressive Web App, following Google's Material guidlines
  • Customizable environment
  • Works offline and without JavaScript
  • Responsive design
  • Contains Search Engine Optimization
  • Based on VueJS with Webpack & Live Reload
  • WebSpeech API for voice input
  • Text-To-Speech output
  • Perfect accessibility for disabled users

Requirements

  • NodeJS
  • NPM or Yarn
  • Basic knowledge in ES6 (JavaScript)
  • Dialogflow API Key (You can get it here)

What is supported

  • Basic reply (is being displayed and spoken)
  • Simple Response (is being spoken)
  • Cards
  • Carousel Cards
  • Lists
  • Suggestions Chips
  • Link chips
  • Combination of all above
  • Fancy animations and visual feedback
  • Widget mode, for more info see https://github.com/MishUshakov/dialogflow-widget
  • Googling unknown requests

Get started

Clone the repository to your machine

You can use git or download it directly from github

Get the dependencies

Open your cloned folder. Then, using your favorite package manager get the dependencies

Example using npm

npm install

Example using yarn

yarn

Start development server & build

Open your cloned folder. Then, using your favorite package manager run dev command

Example using npm

npm run dev

Example using yarn

yarn dev

When you done these steps, your default browser should open and redirect you to localhost:8080. If the port 8080 is already in use, you can give an port argument to connect at specified port

Example using npm

npm run dev --port 9090

Example using yarn

yarn dev --port 9090

PLEASE DO NOT USE THE DEVELOPMENT SERVER FOR SERVING YOUR APP, DEVELOPMENT SERVER IS MEANT FOR THE DEVELOPMENT. INSTEAD PLEASE UPLOAD BUILD ARTIFACTS TO A STATIC WEB-SERVER

Building for production

Your app will be bundled to dist/build.js To build it you can use npm or yarn

Example using npm

npm run build

Example using yarn

yarn build

Customizing App & Connecting your agent

To connect your bot, you first need to create one. You can do it by visiting Dialogflow website. Then create your intents and add Google Assistant responses

Open config.js and change the token variable, to connect your bot. You can also translate the strings to your language

Example

export default {
    app: {
        token: "9d686a47b1de48bab431e94750d1cd87"
    }
}

if you want to change the accent color open src/App.sass and change the $color variable

Frequently Asked Questions

  • Q: I changed the token and the responses are the same as with previous token
  • A: Make sure you have cleaned your cache and rebuilt your app. In Safari go to "Develop" > "Empty Caches". In Chrome: "Developer Tools" > "Application" > "Clear storage" > "Clear site data"

Thank you, stay updated!

More Repositories

1

llm-scraper

Turn any webpage into structured data using LLMs
TypeScript
1,954
star
2

dialogflow-web-v2

Dialogflow Web Integration. Supports rich components
Vue
416
star
3

signin-with-matrix

Federated sign-in component for your web app (using Matrix)
Svelte
211
star
4

dialogflow-sendgrid

๐Ÿ“ฎ Dialogflow + Sendgrid = AI Mailbox
Python
34
star
5

Polymer-Web-App-Template

Free HTML5 mobile-friendly Polymer Web App template, easy&quick installation
HTML
23
star
6

dialogflow-widget

Dialogflow widget for websites [DEPRECATED]
Vue
22
star
7

dialogflow-gateway-docs

๐Ÿ“„ Docs for Dialogflow Gateway
22
star
8

Material-Design-chrome-extension-template

Enjoy using the new MDL (Material Design Lite) powered template for creating your own chrome extension!
HTML
17
star
9

matrix-forms

Connect your forms to Matrix
JavaScript
14
star
10

floating-chat

A framework-agnostic floating chat window component written in Svelte
Svelte
14
star
11

syntaxer

Multi-backend syntax highlighter for Crystal
Crystal
13
star
12

ai-fun

The LLM-powered function builder for TypeScript
TypeScript
13
star
13

dialogflow-inbox

๐Ÿ“จ AI Mailbox, powered by Dialogflow
Python
10
star
14

g

๐Ÿงžโ€โ™‚๏ธ Google Assistant in every terminal!
Go
9
star
15

next-garph

TypeScript
8
star
16

df-btn

๐Ÿ’ฌ Dialogflow / Actions floating chat
JavaScript
7
star
17

GuitarLSTM-browser

GuitarLSTM browser runtime
Python
7
star
18

dialogflow-gateway-js

๐Ÿ”Œ Dialogflow V2 JS SDK for node and browser
TypeScript
5
star
19

fulfillment-tester

๐Ÿ‘ฉโ€๐Ÿ”ฌ Test your Dialogflow/Actions on Google fulfillments like never before
Go
5
star
20

Blockchain

โ›“ Blockchain implemented in TypeScript
TypeScript
4
star
21

gh-clone

One-line GitHub backup script
Shell
3
star
22

dodyn

๐Ÿงจ Dynamic DNS on DigitalOcean
Shell
2
star
23

pre-highlighted

Custom element that extends <pre> with syntax highlighting
JavaScript
2
star
24

servicebear

๐Ÿ”‘ Generates OAuth Tokens from Google's Service Accounts
Go
1
star
25

minizod

TypeScript
1
star