GithubHelp home page GithubHelp logo

botfuel / botfuel-sample-facetedsearch Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 4.0 2.99 MB

Sample faceted search bot using Botfuel Dialog and FacetedSearch module

Home Page: http://docs.botfuel.io/dialog/demos/faceted-search

License: Other

JavaScript 100.00%
botfuel botfuel-demo botfuel-sample botfuel-facetedsearch bot faceted-search facetedsearch sample-bot chatbot botfuel-dialog-samples chatbots

botfuel-sample-facetedsearch's Introduction

Sample bot used in the FacetedSearch module

This sample bot is used in the FacetedSearch 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 intent with lable article with the following training phrases for examples:

    • I want to buy a pair of jeans
    • I want to buy a shirt
    • I want to buy some polos
  • Add an intent with lable greetings with the following training phrases for examples:

    • Hi
    • Hello

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

How to run the bot

Clone the repository:

git clone https://github.com/Botfuel/botfuel-sample-facetedsearch.git

Install dependencies

cd botfuel-sample-facetedsearch
yarn install

Start the bot:

BOTFUEL_APP_TOKEN=<...> BOTFUEL_APP_ID=<...> BOTFUEL_APP_KEY=<...> yarn start shell-config.js

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

2018-04-05T20:31:26.529Z - info: [Environment] BOTFUEL_APP_TOKEN=<YOUR_BOT_APP_TOKEN>
2018-04-05T20:31:26.531Z - info: [Environment] BOTFUEL_APP_ID=<YOUR_BOT_ID>
2018-04-05T20:31:26.532Z - info: [Environment] BOTFUEL_APP_KEY=<YOUR_BOT_APP_KEY>
2018-04-05T20:31:26.588Z - debug: [ShellAdapter] run

Try typing Hello and I want to buy a polo

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.

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.