Earlier today I tried out the @flowfuse/nr-assistant plugin and it looked really promising. Since I self-host my Node-RED instances, it normally wouldn’t work for me because the assistant expects a FlowFuse-hosted environment.
While looking through the code, I noticed the settings.js option where you can specify the URL of the FlowFuse AI service. Instead of pointing it to FlowFuse, I directed it to my own localhost and implemented just one of the required API endpoints.
This is just an experiment — definitely not something to rely on in a production setup — but if you’d like to play around with it too, you can get started by following these steps:
-
Install the @flowfuse/nr-assistant plugin.
-
Edit
settings.jsand append this code to the bottom of the file:"flowforge": {
"assistant": {
"enabled": true,
"url": "/nr-assistant",
"token": "this-is-a-test-token",
"requestTimeout": 60000
}
} -
Restart your instance.
-
Import this flow:
-
Open the details of the
nr-assistant-self-hostedgroup, open the Environmental Variables tab, and provide values forNODERED_URL,NODERED_USER,NODERED_PASS, andOPENAI_APIKEY.
This will now let you use the Function Builder and “Ask the FlowFuse Assistant” functionality to generate nodes and function code.