FAUN — Developer Community 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev

Follow publication

Fast deploy a chatbot using ChatGPT and Node-RED for WhatsApp, Messenger, and Telegram

Chelaru Adrian
FAUN — Developer Community 🐾
6 min readMar 11, 2023

--

If you want to create an automatic chatbot using OpenAI API, but don’t want to be dependent on a platform or an app with a ready-made solution, and also need the possibility to extend however you want the work-flow of your implementation, then you are in the right place.

Robotic Chat | Stable Diffusion — Dreamlike Photoreal 2.0 | Icons: Darius Dan — Flaticon

If you didn’t, check out my list for in-depth step by step set up of chatbots using Node-RED:

Node-RED chatbots for WhatsApp, Telegram, Messenger & Email

10 stories

You can also import the project JSON directly into the Node-RED. Check at the bottom of the article 😶.

The second part of this article is here.

Initial Node-RED setup

Let’s bring the Node-RED alive if you didn’t already by using the “Install NodeJS, NPM, and Node-RED on Raspberry Pi OS Lite 64-bit” then you can install it fast and easily by using Docker.

You can also deploy Node-RED on IBM Cloud, Horeku, Fly.io, or whatever is capable of hosting web apps, Docker containers, and Linux servers.

Install the necessary node

Navigate to the 🟩 “Manage palette” then to the “Install” tab and press the 🟦 “install” button at the right of “node-red-contrib-chatbot”:

Initial modules installation will take a while, due to the fact NPM needs to also install the necessary packages to run the nodes. You might want to press 🟦 “install” again after you re-open the “Manage palette” window.

Install RedBot — chatbot plugin for Node-RED and show examples of installed nodes.

We use simple HTTP API calls to access the ChatGPT API so we don’t need any other plugins installed…

--

--

Published in FAUN — Developer Community 🐾

We help developers learn and grow by keeping them up with what matters. 👉 www.faun.dev

Written by Chelaru Adrian

💻 Hey, I'm here to share my passion for tech! 🚩 Follow me on Medium for exciting new ideas and innovative solutions.

No responses yet

Write a response