umtksa / node-red-contrib-chatgpt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-red-contrib-chatgpt

Node-RED node to access the ChatGPT API

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-chatgpt

Usage

  1. Get the API key from the OpenAI API portal (https://platform.openai.com/account/api-keys)
  2. Add the API key to the ChatGPT node property

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

And then the ChatGPT node will output the answer.

Demonstration

Smart Speaker using ChatGPT

About