Coder Social home page Coder Social logo

timmyfengz / p-brain.ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patrickjquinn/p-brain.ai

0.0 0.0 0.0 4.39 MB

Natural language virtual assistant using Node.js + Bootstrap

License: MIT License

Shell 0.12% JavaScript 77.26% CSS 7.27% HTML 15.23% Dockerfile 0.13%

p-brain.ai's Introduction

P-Brain.ai - Voice Controlled Personal Assistant

Financial Contributors on Open Collective Join the chat at https://gitter.im/P-Brain/Lobby Donate

Natural language virtual assistant using Node + Bootstrap

Screenshot

alt tag

Video Introduction To The Project

https://www.youtube.com/watch?v=4EF_qEYNNwU

Dependencies

  • Node >= 10
  • Python >= 2
  • Yarn / npm

Setup

Install

Install Yarn https://yarnpkg.com/en/docs/install

Clone repo, cd into its directory and type yarn & yarn start

Add api info for http://openweathermap.org/api and https://newsapi.org/account to config/index.js

Open Chrome and enter http://localhost:4567/

Say Hey Brain, Brain or Okay Brain followed by your query (i.e Hey Brain, What is the weather in Paris).

Install - Extra Windows Instructions

Install Python: https://www.python.org/downloads/windows/

Install Node.js v6: https://nodejs.org/en/download/

Install Windows Build Tools: npm install --global --production windows-build-tools

Skills

Adding Skills

Add a skill by creating a new folder with the name of your new skill and adding an index.js.

Add functions for intent and {skill_name}_resp to that index, the latter contining the logic that will respond to a query. The {skill_name}_resp function must have a response type of String

In intent add return {keywords:['key 1','key 2'], module:'{skill_name}'} where keywords are the phrases you wish the skill to respond to and {skill_name} is the name of your new skill.

Add module.exports = {intent, get: {skill_name}_resp}; to the end of your index.js

Add that new folder to the skills directory in the project.

And bang, Brain will automatically import and enable your new skill!

API

For more detail on adding skills see the Wiki page Adding Skills.

Clients

Web Client

http://localhost:4567/api/ask?q={query} http://localhost:4567/ http://localhost:4567/settings.html http://localhost:4567/users.html

Raspberry Pi Client

The Raspberry Pi Client for this project is available here: https://github.com/patrickjquinn/P-Brain.ai-RasPi

MagicMirror+P-Brain

Coming Soon!

Android Client

https://github.com/timstableford/P-BrainAndroid

iOS Client

https://github.com/patrickjquinn/P-Brain.ai-iOS

Docker

You can run this application via Docker. Prequisites are that you have docker installed and cloned this repository locally. Then execute the following command to bring-up an instance on http://localhost:4567:

docker-compose up --build

Easter eggs

  • One can ask brain about 'trip to mordor'
  • or 'what is love'

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

p-brain.ai's People

Contributors

timstableford avatar patrickjquinn avatar dependabot[bot] avatar syzer avatar marcoss avatar taitberlette avatar anonrig avatar monkeywithacupcake avatar patrickjmq avatar gitter-badger avatar darkstardxm avatar elergy avatar

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.