
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
exa-bot-builder
Advanced tools
Create chat-bots for various platforms and deploy with express or to AWS Lambda quickly
This is a port of Claudia Bot Builder that allows to use Express.
Exa Bot Builder helps developers create and deploy chat-bots for various platforms in minutes to AWS Lambda or using Express. 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.
| 🚀 Getting Started | 🛠 API Docs | 🤖 Example projects | 🤔 FAQ | |-----------------|----------|------------------|-----|----|
Here's a simple example:
AWS Lambda
const botBuilder = require('exa-bot-builder');
const excuse = require('huh');
module.exports = botBuilder(function (message) {
return 'Thanks for sending ' + message.text +
'Your message is very important to us, but ' +
excuse.get();
});
Express
const botBuilder = require('exa-bot-builder');
const excuse = require('huh');
module.exports = botBuilder(function (message) {
return 'Thanks for sending ' + message.text +
'Your message is very important to us, but ' +
excuse.get();
}, { "aws": false, "express": true });
This code is enough to operate bots for all supported platforms. Exa 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
You can start it passing configuration options as defined on the following example:
const botBuilder = require('exa-bot-builder');
const excuse = require('huh');
module.exports = botBuilder(function (message) {
return 'Thanks for sending ' + message.text +
'Your message is very important to us, but ' +
excuse.get();
}, { "aws": false, "express": true });
The above will start a new express on port 3000.
How to test your bot?
Your chat bot is just a Lambda function or web API, which means it is just a simple JavaScript function and you should be able to, at least in theory, run everything locally as simple automated tests.
The most important thing is to design testable Lambda functions, this guide will help you to do that.
Integration tests can be a bit more complex if you have some integrations with external or AWS services. Check this guide to see how to write integration tests and run automated tests locally.
My Facebook messenger bot responds to my messages only. Why it's not responding to everyone?
Facebook has a review process for chat bots. Make sure your bot is approved.
Can I send Slack slash command delayed responses?
Yes, here's the tutorial for that.
What's new in v2?
It's a new major version because of the dependencies - there are big improvements in the Claudia API Builder and Claudia, so Claudia Bot Builder v1.x is not compatible with them.
V2.x also brings support for many new platforms.
How to speed up the deployment
You can use claudia update
with --cache-api-config
flag to cache the API Gateway config, for more info visit docs page for claudia update.
Also, from version 2.7.0, you can disable platforms that you are not using, check the full explanation in the API docs.
Have a question that is not on this list? Feel free to ask it on Claudia chat on Gitter.
Please, do not use GitHub issues for asking questions or requesting assistance/support, use it only to report bugs.
Contributions are greatly appreciated. See the Contributors' guide for information on running and testing code.
Building something cool with Exa Bot Builder? Let us know or send a PR to update this list!
MIT -- see LICENSE
FAQs
Create chat-bots for various platforms and deploy with express or to AWS Lambda quickly
The npm package exa-bot-builder receives a total of 1 weekly downloads. As such, exa-bot-builder popularity was classified as not popular.
We found that exa-bot-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.