MarianRaphael / node-red-contrib-plugin-chatgpt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-red-contrib-plugin-chatgpt

Ask ChatGPT plugin for Node-RED flow editor

node-red-contrib-plugin-chatgpt Ask ChatGPT plugin for Node-RED flow editor

Current plugin supports generating Markdown document by ChatGPT for Node-RED flows in tab only. With this plugin, you can use the generated document as a draft of what the flow is and how the flow is executed.

How to install

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

    npm install node-red-contrib-plugin-chagpt

Set the OpenAI key to OPENAI_API_KEY and your organization identifier to OPENAI_ORG as the environment variable. In macOS or Linux environment, you can use the export command to set the environment variable.

    export OPENAI_API_KEY=<API key>
    export OPENAI_ORG=<ORG ID>

The API key can be obtained from the OpenAI website. https://platform.openai.com/account/api-keys

How to use

  1. Create a flow and click the Deploy button.

  1. Double-click the tab to open the following user interface. And then, click the "Ask ChatGPT" button.

  1. The ChatGPT will automatically generate the Markdown document from the deployed flow and paste it into the editor area.

  2. After clicking the "Done" button, you can see the documentation in the "Information" tab.

This plugin dramatically reduce time-consuming task to write the document of the Node-RED flow.

About

License:Apache License 2.0


Languages

Language:JavaScript 58.0%Language:HTML 42.0%