Skip to content

MarianRaphael/node-red-contrib-plugin-chatgpt

 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.0%
  • HTML 42.0%