Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.38 KB

README.md

File metadata and controls

26 lines (22 loc) · 1.38 KB

Barnaby

Barnaby is a personal assistant API. This makes it offer many possibilities for integration with your projects. It uses APIs such as NewsAPI and DuckDuckGo Instant Answer API. You can test a Chatbot Demo.

How to use

  • Run script setup.sh to install all required dependencies.
  • Set your own API keys on the file apis.json. You will need to create some accounts. All APIs used are free. Used APIs are:
    • NewsAPI
    • DuckDuckGo Instant Answer API (No API key or account needed)
    • OpenWeatherMap API
    • IPGeoLocation API
  • Run script app.py.
  • That's it! Now by default you can use Barnaby on the address http://localhost:5000.

Endpoints

Endpoint Description
/ Shows this README
/api_config Shows API configuration.
/assistant Barnaby endpoint. q paramether is mandatory (Example: "How is the weather?"). Set train paramether to true to train the neural network (not needed, unless you make changes to it). A JSON response will be returned.

Screenshots

  • Chatbot Demo Chatbot Demo
  • JSON Response JSON Response