1.2.1 • Published 7 years ago

coglabmind v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

CogLab Mind

A simple, easy to use package to use the CognitionLab Mind learning chatbot service from Mashape.

Usage

// You will need a Mashape account and application key.
// You can obtain these free at https://market.mashape.com/

// Include the package
const Mind = require('coglabmind')
 
// Create a Mind instance
var bot = new Mind('YourKeyFromMashape000jfhdl, 'ChosenMindID', 'Name of User', 'Name of Bot');

// Send a message and get the reply object
var msg = "Hi!";
var reply = bot.send(msg);
alert(reply['message']);

// Change the name the Mind goes by
bot.name('New Mind Name');

// Change the name the user goes by
bot.user('New User Name');

// Nuke the bot's memory and start from scratch
bot.nuke();
1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago