Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
tests
.eslintrc
CHANGELOG.md
LICENSE.md
README.md
config.js
intents.xlsx
package.json
test-config.js

README.md

test-middlewares

This sample bot illustrates middlewares.

Create an app

Create an app and add intents/QnAs on Botfuel Trainer (https://app.botfuel.io).

You can get examples of intents here : https://github.com/Botfuel/botfuel-dialog/blob/master/packages/test-middlewares/intents.xlsx

See the Getting Started tutorial for how to create a new app.

Run the bot

To run this sample in your terminal:

BOTFUEL_APP_TOKEN=<...> BOTFUEL_APP_ID=<...> BOTFUEL_APP_KEY=<...> yarn start

Run the tests

BOTFUEL_APP_TOKEN=<...> BOTFUEL_APP_ID=<...> BOTFUEL_APP_KEY=<...> yarn test

Clean the brain

To empty the brain of your bot:

BOTFUEL_APP_TOKEN=<...> yarn run clean

Need help ?

  • See Getting Started to learn how to run a bot in minutes.
  • See Concepts for explanations about the internals of the SDK.

License

See the License file.