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
botfuel-config.js
intents.xlsx
package.json
shell-config.js
test-config.js
webchat-sample.html

README.md

test-qna

This sample bot illustrates how you can implement a QnA bot using the Webchat. For a step-by-step guide, see the creating a QnA bot tutorial.

Create an app

Create an app and add 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-qna/intents.xlsx

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

Run the bot

To be able to use Botfuel Webchat with your bot you need to configure your Botfuel application. Follow the steps in the Connection to Webchat tutorial.

Then run the sample in your terminal:

BOTFUEL_APP_TOKEN=<YOUR_BOTFUEL_APP_TOKEN> BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID> BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY> yarn start botfuel-config

Run the tests

BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID> BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY> yarn test

Clean the brain

To empty the brain of your bot:

BOTFUEL_APP_TOKEN=<YOUR_BOTFUEL_APP_TOKEN> yarn run clean

Need help ?

License

See the License file.