Skip to content

A smooth way to manage and maintain your chatbot definition.

License

Notifications You must be signed in to change notification settings

DiUS/chatbot-builder

Repository files navigation

ChatBot Builder

This module is to help DiUS team to bootstrap and maintain a ChatBot project with Amazon Lex service. It is built with javascript (ES6), Node.js and lerna in a monorepo pattern.

The original idea is from @sergei-matheson who has suggested a more declarative way to manipulate the bot-definition, instead of managing and editing the JSON file directly. So we decided to start this new project and try to explore new approach to fulfill our requirements, which helps to spin up new ChatBot quickly and smoothly, as well as maintaining them.

PLEASE NOTE: This project is in a WIP status, and is not ready for production. It can be terminiated at any time, based on the decision of the team.

Getting Started

  1. Install lerna CLI
$ npm i -g lerna
  1. Link the dependencies. Go to the root directory and run
$ lerna bootstrap

Run the code

$ lerna run start

A simple CLI has been created in chatbot-builder-core which enables you to use the command chatbot-builder in your terminal. To get it running, you can run npm link in chatbot-builder-core directory and go to chatbot-builder-example and run chatbot-builder command in your terminal to test the result.

$ chatbot-builder

alt text

Test

$ lerna run test

if you want to target a single module to test, simply run

$ lerna run test --scope=chatbot-builder-core

Alternatively, you can manually go to each module and run test in the traditional way:

$ npm run test

With Docker

You can run this project in the Docker container with the volume mapping, so the exports files will be synced to your local drive from the Docker host:

docker run -v [YOUR_LOCAL_DRIVE]:/usr/chatbot-builder/packages/chatbot-builder-example/exports dius/chatbot-builder

Portal

Resources

License

chatbot-builder is licensed under a MIT License.

About

A smooth way to manage and maintain your chatbot definition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published