@egorvas/node-red-contrib-chatbot
v1.2.5
Published
REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required
Downloads
3
Readme
With RedBot you can visually build a full featured chat bot for Telegram, Facebook Messenger, Viber, Twilio and Slack with Node-RED. ~~Almost~~ no coding skills required.
Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways.
Maintaining RedBot is very time-consuming, if you like it, please consider:
Documentation
Getting started
First of all install Node-RED
$ sudo npm install -g node-red
Then open the user data directory ~/.node-red
and install the package
$ cd ~/.node-red
$ npm install node-red-contrib-chatbot
Then run
node-red
The next step is to create a chat bot, I recommend to use Telegram since the setup is easier ( Telegram allows polling to receive messages, so it's not necessary to create a https certificate). Use @BotFather to create a chat bot, follow instructions here then copy you access token.
Then open your Node-RED and add a Telegram Receiver
, in the configuration panel, add a new bot and paste the token
Now add a Message
node and connect to the Telegram Receiver
Finally add a Telegram Sender
node, don't forget to select in the configuration panel the same bot of the Telegram Receiver
, this should be the final layout
Now you have a useful bot that answers "Hi there!" to any received message. We can do a lot better.
Credits
- Inspired by the Karl-Heinz Wind work node-red-contrib-telegram
- Telegram Bot API for NodeJS
- NLP.js
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Coded with :heart: in :it: