kindly-js

A simple backend wrapper for node applications integrating with Kindly

Usage no npm install needed!

<script type="module">
  import kindlyJs from 'https://cdn.skypack.dev/kindly-js';
</script>

README

Kindly JS

A simple JavaScript library for applications integrating with Kindly.

Just install it with npm:

npm install kindly-js --save

Request a greeting-message:

var kindly = require('kindly-js');
kindly.API_KEY = "YOUR API KEY";
kindly.greet({
    user_id: "abc123", // User/chat identifier
});

Ask the bot questions:

var kindly = require('kindly-js');
kindly.API_KEY = "YOUR API KEY";
kindly.send({
    user_id: "abc123", // User/chat identifier
    message: "Message to bot", // What to ask bot
});

...and we'll POST the reply to the webhook you specified when getting started setting up the application.

For more, check out the official Kindly documentation.