Donna-ai / Donna

Donna = Virtual Assistant + Internet of Things, "Donna, the best Virtual Secretary platform" (Work In Progress)
MIT License
41 stars 16 forks source link

Use Senses on demand #5

Open Glavin001 opened 9 years ago

Glavin001 commented 9 years ago

Normally the senses and running in the background and emit to Donna. However it may be beneficial to have Donna be able to request usage of her senses. For instance, Donna could start listening (request Wit.ai speech recognition plugin activation) or read a file (a file system Sense plugin that would not emit to Donna but Donna could still utilize).

Glavin001 commented 9 years ago

Read from Calendar on demand versus handling Calendar events:

"What's on my agenda today?" --> request read from Calendar --> "You have two meetings today at..."

Versus the conventional:

Calendar event alert triggers --> Donna receives notification that Calendar event is coming up --> "You have a meeting coming up soon in.."

Glavin001 commented 9 years ago

API could simply be:

donna.sense('senseName:device')
.then(function(sense) {
  // `sense` represents the Sense plugin
})
.catch(function(error) {
  // error occured
});
Glavin001 commented 9 years ago

Common Types of Senses:

Advanced / Future types of Senses: