Skip to content

React component for customizable chatbot UI with Dialogflow integration

Notifications You must be signed in to change notification settings

hboylan/react-bot-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-bot-ui

Travis npm package Coveralls

React component for customizable chatbot UI with Dialogflow integration

Demo

Check out the live demo.

Take a look at the demo source code.

Installation

NPM:

npm i --save react-bot-ui

Yarn:

yarn add react-bot-ui

Features

  • React component
  • Override default CSS variables
  • Integrate with Dialogflow
  • Toggle chat window open/close
  • Embed within existing page

Usage

Minimum Dialogflow integration

<ReactBotUI
	dialogflow={{accessToken: 'youshallnotpass'}} />

All optional property defaults

<ReactBotUI
	dialogflow={null}
	dialogHeightMax={calculatedToFlex}
	isUserHidden={false}
	isVisible={true}
	title={'React Bot UI'} />

Styling

Default styling can be overriden using CSS variables

TODO

  • Include default images as Base64
  • Open chat in new window
  • Add non-Dialogflow compatability
  • Add prop-types integration

About

React component for customizable chatbot UI with Dialogflow integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published