A natural language interface for storing and retrieving information.
To run tests:
npm install
npm test
To interact with a local copy of Elda:
npm install
node cli.js
To exit the interface, type one of exit, quit, stop, or bye:
I'm listening
: quit
Ok, bye!
To use Elda as a library, run:
npm install elda-ai --save
Then create the script example.js as follows:
var elda = require('elda-ai');
var messages = [
'hello',
'what is this for?',
'help!',
'lets take this from the top'
];
elda().then(function(instance) {
messages.forEach(function(message) {
instance.respondTo(message).then(console.log);
});
});Run the example using the command:
node example.js
This is the public interface to Elda.
This method configures and returns an API object, which can then be used to interact with Elda.
var elda = require('elda-ai');
var config = {};
var api = elda(config);This method interprets a message, and forms a response.
var elda = require('elda-ai');
var message = 'Add event Kate\'s birthday party, at 5pm tomorrow';
elda().respondTo(message).then(console.log);