Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Natural language virtual assistant using Node.js + Bootstrap

License

NotificationsYou must be signed in to change notification settings

patrickjquinn/P-Brain.ai

Repository files navigation

Financial Contributors on Open CollectiveJoin the chat at https://gitter.im/P-Brain/LobbyDonate

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 Yarnhttps://yarnpkg.com/en/docs/install

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

Add api info forhttp://openweathermap.org/api andhttps://newsapi.org/account toconfig/index.js

Open Chrome and enterhttp://localhost:4567/

SayHey Brain,Brain orOkay Brain followed by your query (i.eHey 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 anindex.js.

Add functions forintent 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 ofString

Inintent addreturn {keywords:['key 1','key 2'], module:'{skill_name}'} wherekeywords are the phrases you wish the skill to respond to and{skill_name} is the name of your new skill.

Addmodule.exports = {intent, get: {skill_name}_resp}; to the end of yourindex.js

Add that new folder to theskills 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 pageAdding Skills.

Clients

Web Client

http://localhost:4567/api/ask?q={query}http://localhost:4567/http://localhost:4567/settings.htmlhttp://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 installedand cloned this repository locally. Then execute the following command to bring-up an instanceonhttp://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]

About

Natural language virtual assistant using Node.js + Bootstrap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

    Packages

    No packages published

    Contributors12


    [8]ページ先頭

    ©2009-2025 Movatter.jp