Skip to content
Visually build a full featured chat bot for Telegram, Facebook Messenger and Slack with Node-RED. Almost no coding skills required.
HTML JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 7156362 May 19, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows fix version Dec 3, 2019
__tests__ Message node language (#394) Feb 21, 2020
bin Implement Nlp.js (#387) Jan 31, 2020
docs Add files via upload May 19, 2020
lib test url for routee Mar 11, 2020
nodes fix docs Feb 21, 2020
spec test and chat bot request Jul 6, 2016
.eslintrc Microsoft Teams (#353) Nov 28, 2019
.gitignore remove model Jan 31, 2020
.travis.yml Rules node (#167) Jan 31, 2018
CHANGELOG.md 0.18.15 Mar 11, 2020
README.md Update README.md Oct 29, 2019
dump.rdb reworked topics, added docs Oct 24, 2016
jest.config.js Multi channel support (#320) Oct 28, 2019
package-lock.json 0.18.15 Mar 11, 2020
package.json 0.18.15 Mar 11, 2020
redbot.config.html Multi channel support (#320) Oct 28, 2019
redbot.config.js Multi channel support (#320) Oct 28, 2019

README.md

RedBot

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.

Release npm Build Slack Trello

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:

RedBot

Documentation

  1. RedBot nodes
  2. Examples
  3. Advanced examples
  4. Chat context
  5. Changelog

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

Telegram Receiver

Now add a Message node and connect to the Telegram Receiver

Simple Message

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

Example Simple

Now you have a useful bot that answers "Hi there!" to any received message. We can do a lot better.

Credits

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 ❤️ in 🇮🇹

You can’t perform that action at this time.