claudiajs / claudia-bot-builder
- пятница, 17 июня 2016 г. в 03:13:53
JavaScript
Create chat bots for FB, Slack, Skype and Telegram and deploy to AWS Lambda in minutes
Claudia Bot Builder helps developers create and deploy chat-bots for various platforms in minutes to AWS Lambda. It simplifies the messaging workflows, automatically sets up the correct web hooks, and guides you through configuration steps, so that you can focus on important business problems and not have to worry about infrastructure code.
Check out this two minute video to see how you can create and deploy a bot quickly:
Here's a simple example:
const botBuilder = require('claudia-bot-builder');
const excuse = require('huh');
module.exports = botBuilder(function (request) {
return 'Thanks for sending ' + request.text +
'Your message is very important to us, but ' +
excuse.get();
});
This code is enough to operate bots for all four supported platforms. Claudia Bot Builder automatically parses the incoming messages into a common format, so you can handle it easily. It also automatically packages the response into the correct message template for the requesting bot, so you do not have to worry about individual bot protocols.
Check out the Getting Started guide for information on how to set up a simple bot in minutes and API Documentation for detailed information on the API.
See the Chat-Bots section of the Claudia.js example projects list
Contributions are greatly appreciated. See the Contributors' guide for information on running and testing code.
See the Release History
MIT -- see LICENSE