Skip to content

Example Rasa chatbot which uses Fetchable to answer questions from users.

License

Notifications You must be signed in to change notification settings

fetchableai/example-rasa-chatbot

Repository files navigation

Fetchable: Example Rasa Chatbot

This repository contains the code for the tutorial over at Medium. The tutorial covers how to make a chabot which can answer questions from users through the command line, much like Amazon Alexa or Google Assistant. Rasa is used as the conversational AI framework and Fetchable is used as the source of information.

Some of the code was omitted in the tutorial for brevity, but is included here.

Installation

As per the tutorial, you can install Rasa with:

$ pip3 install rasa
$ pip3 install rasa_sdk

the language model with:

$ pip3 install rasa[spacy]
$ python3 -m spacy download en_core_web_md
$ python3 -m spacy link en_core_web_md en

and the Fetchable Python client-side SDK with:

$ pip3 install fetchable

You'll also need to # for a Fetchable account, download your API keys and export an environment variable with the absolute path to the file containing them with:

$ export FETCHABLE_AUTH_FILE=/path/to/fetchable_auth_keys.json

Running

Assuming you have the requirements installed - if you would like to run the code without going through the tutorial and building it from scratch run the following commands:

  1. Train the chatbot:
$ rasa train
  1. Launch the action server:
$ rasa run actions
  1. Launch the chatbot in a different terminal:
$ rasa shell --endpoint endpoints.yml

Files

workspace
├── data
│ ├── nlu.md
│ └── stories.md
├── __init__.py
├── .gitignore
├── actions.py
├── config.yml
├── credentials.yml
├── domain.yml
├── endoints.yml
├── LICENCE
└── README.rst

License

Licensed under Apache Version 2.0.

See the LICENSE file for more information.

About

Example Rasa chatbot which uses Fetchable to answer questions from users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages