Giter VIP home page Giter VIP logo

botfuel-sample-starter's Introduction

botfuel-sample-starter

This sample bot is used in Getting Started.

Create an app

  • Create a new app on Botfuel Trainer (https://app.botfuel.io).

  • Add an intent with lable name with the following training phrases for examples:

    • My name is Bob.
  • Add an intent with lable greetings with the following training phrases for examples:

    • Hi
    • Hello

How to run the bot

Clone the repository:

git clone [email protected]:Botfuel/botfuel-sample-starter.git

Install dependencies:

cd botfuel-sample-starter
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

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

2017-12-07T16:12:09.131Z - info: [Config] You didn't specify any config file, using default config.
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>

Try typing Hello or My name is <YOUR_NAME>!

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.

botfuel-sample-starter's People

Contributors

daniellepintz avatar josselinmorau avatar kevindepuydt avatar michelbl avatar tagazok avatar tcnguyen avatar windkomo avatar yangeorget avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

botfuel-sample-starter's Issues

Export the bot code

Hi Team,

I am trying to understand the working of BotFuel. Tutorial uses the existing code from github and runs that bot. However, if I create a new app, then is there any way I can export the bot code from portal or I need to create all the files? I believe there will be some export option which will take all the config settings I did on the portal. Please let me know if that is the case. Thank you.

Regards,
Naresh

Unable to run ExtractorConstructor is not a constructor TypeError

When npm start with BOTFUEL_APP_TOKEN, BOTFUEL_APP_ID, BOTFUEL_APP_KEY, next to config success message, an error is appearing as
error: [Run] ExtractorConstructor is not a constructor TypeError: ExtractorConstructor is not a constructor
at /botfuel-sample-starter/botfuel-sample-starter/node_modules/botfuel-dialog/build/nlus/botfuel-nlu.js:118:16

Environment variable BOTFUEL_APP_TOKEN is not defined.

Hi I got the following error msg

warn: [Environment] Environment variable BOTFUEL_APP_TOKEN is not defined.
2018-08-21T07:57:38.659Z - error: [Run] BOTFUEL_APP_ID and BOTFUEL_APP_KEY are required to use Botfuel NLU. Error: BOTFUEL_APP_ID and BOTFUEL_APP_KEY are required to use Botfuel NLU.
at checkCredentials (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\utils\environment.js:54:13)
at new Bot (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\bot.js:68:5)
at _callee$ (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\run.js:53:18)
at tryCatch (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\babel-polyfill\node_modules\regenerator-runtime\runtime.js:65:40)
at Generator.invoke [as _invoke] (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\babel-polyfill\node_modules\regenerator-runtime\runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\babel-polyfill\node_modules\regenerator-runtime\runtime.js:117:21)
at step (c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\run.js:4:191)
at c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\run.js:4:437
at new Promise ()
at c:\Users\10209288\Desktop\botfuel-sample-starter-master\node_modules\botfuel-dialog\build\run.js:4:99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.