Skip to content

Botfuel/botfuel-sample-customerservice

Repository files navigation

botfuel-sample-customerservice

This sample bot is used in the QnA Chatbot demo.

Create an app

  • Create a new app on Botfuel Trainer (https://app.botfuel.io). See the Getting Started tutorial for how to create a new app.

  • Add an QnA with title Invoice with:

    • Training questions:

      • Do you have an invoice?
      • Can I get an invoice ?
    • Answer: Of course! The invoice for your purchase will be sent along with your goods. You can also download an electronic version from your account

  • Add an QnA with title Information with:

    • Training questions:

      • I have a question.
      • I need some information?
    • Answer: Hello! I can provide you with information about our payment and shipping policies.

    You can get examples of intents here : https://github.com/Botfuel/botfuel-sample-customerservice/blob/master/intents.xlsx

How to run the bot

Clone the repository:

git clone git@github.com:Botfuel/botfuel-sample-customerservice.git

Install dependencies:

cd botfuel-sample-customerservice
npm install

Start the bot:

BOTFUEL_APP_TOKEN=<YOUR_BOT_ID> BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID> BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY> npm start botfuel-config.js

If you set your app credentials right, you should see:

2017-12-07T16:12:09.131Z - info: [Environment] BOTFUEL_APP_TOKEN=<YOUR_BOT_ID>
2017-12-07T16:12:09.133Z - info: [Environment] BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID>
2017-12-07T16:12:09.133Z - info: [Environment] BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY>
> onboarding

Try typing I need assistance.!

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.