• Stars
    star
    416
  • Rank 104,068 (Top 3 %)
  • Language Vue
  • License
    GNU General Publi...
  • Created almost 6 years ago
  • Updated almost 2 years ago

Reviews

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

Repository Details

Dialogflow Web Integration. Supports rich components

Dialogflow for Web v2

Dialogflow for Web v2

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 Integration for the Dialogflow V2

Notice: August 2021, i upgraded the web app to Vue 3, fixed security vulnerabilities and updated dependencies. The software comes for free, but my time is not. Consider supporting me on PayPal or through a commercial agreement

Features

  • Progressive Web App (100/100 Lighthouse score)
  • Accessibility Features
  • Extensive Browser Support (IE8+), offline capabilities (history) and great SEO
  • Familiar UI & UX, based on the official Google Assistant Design Specifications
  • Dark Mode & Theming
  • Hands-free interaction with Voice Input and Speech Feedback (with SSML)
  • Language independent
  • Docker and Kubernetes support
  • Rich-component, Webhook and Actions on Google Support (demo)
  • Floating Widget for embedding on websites (repo and demo)
  • Based on Vue 3, Webpack, Babel and PostCSS
  • Lightweight (build is ~50KB gzipped)
  • Free and fully Documented
  • Made in Germany
  • Recommended by Dialogflow and MadeWithVueJS

sponsored by Vokode - an audio marketing studio from Paris, which does: sound design, podcast and voice apps

Vokode

Installation

Requirements

  • NodeJS
  • npm or yarn
  • Google Account and Dialogflow V2 Agent (if you look for V1, please use my old repo)

Backend

Dialogflow Gateway enables third-party integrations like this to securely access the Dialogflow V2 API

AD Dialogflow Gateway by Ushakov (Hosted) is the quickest way to get started with Dialogflow for Web v2

Clone the repository

You can use git or download from GitHub

Clone Dialogflow for Web v2

Install the dependencies

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

Using npm

npm i

Using yarn

yarn

Connect the Agent

Open src/config/index.js and change the endpoint variable to your Dialogflow Gateway URL

Hint: the URL for Dialogflow Gateway Hosted by Ushakov is always your google cloud project id + .core.ushaflow.io. If you have any troubles, make sure you connected your Agent to the Gateway, then visit the console, click on "Manage" and copy the Gateway URL

Example

export default {
    endpoint: 'https://dialogflow-web-v2.core.ushaflow.io'
    [...]
}

[...]

The logo, agent name, description and available languages are fetched from Dialogflow. Change them in Dialogflow and it will sync to the UI. Please note, when adding new languages, you may have to translate some of the UI as well (translations.json in src/translations)

Develop

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

Using npm

npm run serve

Using yarn

yarn serve

Your default browser should open and redirect to localhost:8080. If the port 8080 is already in use, you can give a port argument to connect at specified port

Using npm

npm run serve --port 9090

Using yarn

yarn serve --port 9090

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

Theme

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)

Build

Your app will be bundled to the dist directory

To build it you can use npm or yarn

Using npm

npm run build

Using yarn

yarn build

Update

Run git pull origin master to integrate changes

Additionally, keep vue packages up-to-date

vue upgrade

Frequently Asked Questions

  • Q: I don't see any changes
  • A: Make sure you cleaned the cache and rebuilt the app. In Safari go to "Develop" > "Empty Caches". In Chrome: "Developer Tools" > "Application" > "Clear storage" > "Clear site data"

Inquiries

Contact the developer or open a issue

More Repositories

1

llm-scraper

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

signin-with-matrix

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

dialogflow-web

Web App for Dialogflow
Vue
137
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