Skip to content

Latest commit

 

History

History
101 lines (69 loc) · 1.59 KB

README.md

File metadata and controls

101 lines (69 loc) · 1.59 KB

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