Node-RED node for chatgpt
npm install node-red-contrib-chatgptnode-red-contrib-chatgpt
=====================
Node-RED node to access the ChatGPT API
Run the following command in your Node-RED user directory - typically ~/.node-red
npm install node-red-contrib-chatgpt

3. Pass the text via msg.payload to the ChatGPT node

And then the ChatGPT node will output the answer.