botfuel-cli

0.1.0 • Public • Published

Botfuel CLI

Botfuel-dialog command line utility.

Features

Installation

npm install -g botfuel-cli

Usage

Create a new project

fuel new my-new-bot

Generate files

fuel generate <command>

Generate view

fuel generate view <name>

Generate Dialog

fuel generate dialog <name> [entities..] [--type=]

Generating dialog <name> of type [type] with [entities]

Options:
  --type     Dialog type (void, base, default, qna,
             confirmation)            [default: "default"]

Example

fuel generate dialog travel destination:city pilot:forename --type=prompt

Generate Intents

The intent generation with :

  • generate the dialog file
  • generate the view file
  • call the botfuel API to create the intent in the trainer
fuel generate intent <name>

Generate Config

fuel g config <name> [options]
 
Generate config <name>
 
Options:
  --adapter  Adapter to use (test, botfuel, shell, messenger ...)
                                                              [default: "shell"]
  --brain    Brain to use (memory, mongo)
  --locale   Locale to use (en, fr, en)
  --logger   Logger to use (debug, info, error)
  --modules  List of modules used (botfuel-module-facetedsearch, ...)

Example

fuel g c botfuel --adapter=botfuel --brain=mongo --locale=en --logger=info --modules="foo bar"

Run bot

fuel serve <config>

Example

fuel generate config webchat --adapter=botfuel --loger=debug
fuel serve webchat

Run tests

fuel test

Package Sidebar

Install

npm i botfuel-cli

Weekly Downloads

0

Version

0.1.0

License

Apache-2.0

Unpacked Size

25.9 kB

Total Files

19

Last publish

Collaborators

  • botfueladmin