crazyrohila / lex-web-app

AWS lex web-app interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chatbot Widget

Chatbot webapp is a chatbot wizard.

Usage

  • Copy dist folder to project.
  • Just add following markup to any page or add new html file with this content:
<script>
  fullPage = false;
  chatbot_identifier = 'chatbot-widget';
  botName = '<lex-bot>'
  awsRegion = '<aws-region>'
  awsCognitoPoolId = '<aws-cognito-pool>'
</script>
<div id="chatbot-widget" data-username="Hey User">
<script src="dist/bundle.min.js"></script>

Change the botName, awsRegion, awsCognitoPoolId and bundle file path.

Build

install packages: npm install run bundle task: gulp bundle

It will create dist directory and place minifies CSS and JS files in it. Always use minified files in production.

Response Templates

See the response.md file for expected response format.

About

AWS lex web-app interface


Languages

Language:JavaScript 70.4%Language:CSS 26.7%Language:HTML 2.9%