Skip to content

Group chat widget based on HTML/CSS/JS, Firebase, Dialogflow

License

Notifications You must be signed in to change notification settings

avdhut1990/firebase-ai-groupchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

firebase-ai-groupchat

Group chat widget based on HTML/CSS/JS, Firebase, Dialogflow

Installation

var fcg = new FirebaseAIGroupChat({firebaseAPIKey:"",dialogflowAccessToken:""});

Usage

  • Generate a Dialogflow response: Call the getDFResponse(message, beforeSendFunc, successFunc, errorFunc) javascript function to generate a Dialogflow response for a message
    fcg.getDFResponse(message, beforeSendFunc, successFunc, errorFunc);
  • Trigger a Dialogflow event: Call the triggerDFEvent(eventName, beforeSendFunc, successFunc, errorFunc) javascript function to trigger a Dialogflow event such as WELCOME
    fcg.triggerDFEvent('WELCOME', beforeSendFunc, successFunc, errorFunc);

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b firebase-ai-groupchat
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin firebase-ai-groupchat
  5. Submit a pull request :D

History

  • Version 1.0: Chat interface with automatic responses generated using Dialogflow

Credits

Messaging interface based on Fabio Ottaviani's work on codepen: http://cdpn.io/jqOBqp

License

MIT license

Releases

No releases published

Packages

No packages published