8000 GitHub - facebookarchive/cherry-wit: cherry plugin to interact with wit.ai
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

facebookarchive/cherry-wit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cherry-wit

config

"witd_url": "http://192.168.1.68:8080",
"wit_token": "MY_TOKEN",

api

Produces "from: wit" messages. e.g.

cherry.handle({
  wit: function (message) {
    var plugins = cherry.plugins();
    var intent = message.outcomes[0].intent;

    if (intent === 'lights_on') {
      plugins.hue({on: true});
    } else if (intent === 'lights_off') {
      plugins.hue({on: false});
    } else {
      console.log("unkown intent " + intent);
    }
  }
});

About

cherry plugin to interact with wit.ai

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0