Skip to content
Cleverbot client for node.js
JavaScript Other
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Mar 11, 2015
.t ... Apr 10, 2015
LICENSE Initial commit Mar 11, 2015 Remove broken shield Dec 12, 2016
app.js Patched issue #5 Aug 21, 2015
example.js First Commit Mar 11, 2015
package.json ... Apr 10, 2015

npm status build status Slack Status


To install this package, simply enter the following in your console

npm install --save

Note: It is a good practice to include --save to add this to your dependencies in your package.json


Before using this module, please get your API keys at

To initialize cleverbot, require the module, then create a new instance of cleverbot

var cleverbot = require(""),
bot = new cleverbot("YOUR_API_USER", "YOUR_API_KEY");

Creating Sessions allows you to save cleverbot sessions to access later If you've already created a session previously, simply add the following code to reference it


To create or access a cleverbot session, start with the following

bot.create(function (err, session) {
  // session is your session name, it will either be as you set it previously, or will generate one for you
  // Woo, you initialized  Insert further code here

Querying Cleverbot

Now querying cleverbot is simple, you pass the text to the .ask() method

bot.ask("Just a small town girl", function (err, response) {
  console.log(response); // Will likely be: "Living in a lonely world"

Well, that's it for now! Happy hacking! is free and open source, and will remain so.

You can’t perform that action at this time.