Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_includes/core-nodes/comment-use-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Adds documentation and explanatory notes directly within your flows.

The Comment node helps document your flows by adding explanatory text that appears on the canvas. This is essential for maintaining flows over time, especially when working in teams or returning to flows after extended periods. By documenting the purpose, requirements, and logic of flow sections, you make flows more understandable, reduce interpretation errors, and speed up troubleshooting and modifications. Comments are particularly valuable for complex flows with link nodes, multi-tab workflows, or business logic that isn't obvious from the nodes alone.

> If you need help documenting your flows, [FlowFuse Assistant](/docs/user/assistant/) can automatically generate documentation with Comment nodes. Simply select your flow and click the "Explain Flow" button, the AI will analyze your flow and create comprehensive documentation that you can add directly to your canvas.
> If you need help documenting your flows, [FlowFuse Expert](/docs/user/assistant/) can automatically generate documentation with Comment nodes. Simply select your flow and click the "Explain Flow" button, the AI will analyze your flow and create comprehensive documentation that you can add directly to your canvas.

## Modes of operation

Expand Down
2 changes: 1 addition & 1 deletion src/blog/2023/02/3-quick-node-red-tips-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ We hope you found these tips useful, if you'd like to suggest some of your own t

## Enhance Efficiency with FlowFuse

FlowFuse is a cloud-based platform designed to boost collaboration, security, and scalability for your Node-RED applications. It features [numerous tools and functionalities](/platform/features/) that streamline the development-to-deployment process, including one-click deployment, the [FlowFuse Assistant](/docs/user/assistant/), and other capabilities that simplify managing your Node-RED environment.
FlowFuse is a cloud-based platform designed to boost collaboration, security, and scalability for your Node-RED applications. It features [numerous tools and functionalities](/platform/features/) that streamline the development-to-deployment process, including one-click deployment, the [FlowFuse Expert](/docs/user/assistant/), and other capabilities that simplify managing your Node-RED environment.

For more tips, tricks, and professional development techniques with Node-RED, check out our recommended eBook:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ Function nodes are an essential part of Node-RED. They allow you to write custom

FlowFuse offers a robust platform for building, scaling, and securing your Node-RED applications.

We are constantly adding new features to make it easy to use in the enterprise where you can rapidly improve your industrial processes. The **"FlowFuse Assistant."** for example is an AI-powered tool that simplifies the creation of Function nodes. You only need to provide a prompt, and the assistant generates the Function nodes for you.
We are constantly adding new features to make it easy to use in the enterprise where you can rapidly improve your industrial processes. The **"FlowFuse Expert"** for example is an AI-powered tool that simplifies the creation of Function nodes. You only need to provide a prompt, and the assistant generates the Function nodes for you.

For more details on using the FlowFuse Assistant, visit [the Assistants Documentation](/docs/user/assistant/).
For more details on using the FlowFuse Expert, visit [the FlowFuse Expert Documentation](/docs/user/assistant/).

## Conclusion:
## Conclusion

Function nodes are particularly valuable for users who possess JavaScript programming skills. They allow for complex tasks, advanced data manipulation, and integration with external APIs, providing a high level of customization and flexibility. However, they require a good understanding of JavaScript to implement effectively and can be more challenging to manage and debug compared to standard Node-RED nodes.

On the other hand, standard Node-RED nodes offer a simpler and more accessible approach, making it easy for users without programming expertise to create and maintain flows. They are designed for straightforward tasks and provide modularity, benefiting from a supportive community for troubleshooting and knowledge sharing.

Ultimately, the choice between using function nodes and standard nodes will depend on your project's requirements and your familiarity with JavaScript. If you seek deep customization and flexibility, function nodes—enhanced by tools like FlowFuse Assistant—might be the best choice. For those who value simplicity and ease of use, standard Node-RED nodes are a great fit.
Ultimately, the choice between using function nodes and standard nodes will depend on your project's requirements and your familiarity with JavaScript. If you seek deep customization and flexibility, function nodes—enhanced by tools like FlowFuse Expert—might be the best choice. For those who value simplicity and ease of use, standard Node-RED nodes are a great fit.

6 changes: 3 additions & 3 deletions src/blog/2023/05/chatgpt-nodered-fcn-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ protect your API key), so Node-RED needs that in the runtime first, before a cal
we'd be smarter here and pass client-side creds along with the call such that we can use any changes made by the
user at the time of the call.

## FlowFuse Assistant - No API Keys Required!
## FlowFuse Expert - No API Keys Required!

Great news! You no longer need to manage OpenAI API keys or configure ChatGPT nodes. The [FlowFuse Assistant](/docs/user/assistant/) is now built directly into Node-RED on FlowFuse Cloud, making AI-powered development even easier.
Great news! You no longer need to manage OpenAI API keys or configure ChatGPT nodes. The [FlowFuse Expert](/docs/user/assistant/) is now built directly into Node-RED on FlowFuse Cloud, making AI-powered development even easier.

Available on FlowFuse Cloud, the Assistant offers:

- **Quick Function Node Creation**: Add function nodes to your flow without dragging from the palette
- **In-line Code Generation**: Generate JavaScript code for function nodes, JSON for JSON editors, and Vue.js for FlowFuse Dashboard ui-template widgets
- **Flow Explainer**: Select nodes and click "Explain Flows" to understand what they do

FlowFuse Assistant helps developers work faster and smarter with Node-RED. [Start your free trial]({{ site.onboardingURL }}) to experience AI-powered Node-RED development on FlowFuse Cloud.
FlowFuse Expert helps developers work faster and smarter with Node-RED. [Start your free trial]({{ site.onboardingURL }}) to experience AI-powered Node-RED development on FlowFuse Cloud.
6 changes: 3 additions & 3 deletions src/blog/2023/06/import-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Within two minutes, we could wire up a node to retrieve data from our API, and t

## Simplify Function Node Creation with FlowFuse

[FlowFuse](/) provides a powerful platform to enhance, scale, and secure your Node-RED applications efficiently. One of our latest features, the **FlowFuse Assistant**, is designed to streamline the process of creating Function nodes.
[FlowFuse](/) provides a powerful platform to enhance, scale, and secure your Node-RED applications efficiently. One of our latest features, the **FlowFuse Expert**, is designed to streamline the process of creating Function nodes.

With the FlowFuse Assistant, you can leverage AI to generate Function nodes effortlessly. Just input your prompt, and the Assistant will handle the creation for you, saving time and reducing manual coding.
With the FlowFuse Expert, you can leverage AI to generate Function nodes effortlessly. Just input your prompt, and the Assistant will handle the creation for you, saving time and reducing manual coding.

To explore how to make the most of the FlowFuse Assistant and its capabilities, check out the [Assistants Documentation](/docs/user/assistant/).
To explore how to make the most of the FlowFuse Expert and its capabilities, check out the [Assistants Documentation](/docs/user/assistant/).
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The strategic adoption of AI and low-code tools is critical for maintaining comp
FlowFuse is a cloud-based platform for Node-RED, a popular low-code tool. It enhances Node-RED with real-time collaboration, version control, and remote edge device programming.

With the capability to integrate over 5000 applications, protocols, and technologies, FlowFuse empowers businesses to innovate and streamline operations.
Recently, FlowFuse has integrated AI features like the [Function GPT](/blog/2023/05/chatgpt-nodered-fcn-node/) and [Node-RED Builder](/blog/2023/11/chatgpt-gpt/) and the [FlowFuse AI Assistant](/changelog/2024/07/flowfuse-assistant/). These tools allow users to automate flow creation, significantly boosting productivity. This combination of low-code development and AI positions FlowFuse as a transformative tool for modern businesses.
Recently, FlowFuse has integrated AI features like the [Function GPT](/blog/2023/05/chatgpt-nodered-fcn-node/) and [Node-RED Builder](/blog/2023/11/chatgpt-gpt/) and the [FlowFuse Expert](/changelog/2024/07/flowfuse-assistant/). These tools allow users to automate flow creation, significantly boosting productivity. This combination of low-code development and AI positions FlowFuse as a transformative tool for modern businesses.

Manufacturing companies are already adopting these advanced features to optimize their operations and stay competitive. Tech professionals should also prepare to leverage these tools to harness the full potential of AI and low-code development.

Expand Down
12 changes: 6 additions & 6 deletions src/blog/2024/07/flowfuse-2-6-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ Whilst a big part of FlowFuse is the ability to run Node-RED, we're also focussi

### AI-Infused Node-RED

![Screenshot showing the "FlowFuse Assistant" dialog box](./images/assistant-dialog-function-node-builder.png){data-zoomable}
_Screenshot of an example instruction sent to FlowFuse Assistant._
![Screenshot showing the "FlowFuse Expert" dialog box](./images/assistant-dialog-function-node-builder.png){data-zoomable}
_Screenshot of an example instruction sent to FlowFuse Expert._

One of the joys of Node-RED is how it empowers users not experienced with development to create bespoke applications. A popular and very powerful node in Node-RED is the "function" node. This node allows users to write JavaScript code to manipulate messages. However, this can be daunting for users who are not familiar with JavaScript, it's a steep learning curve. As such, when you run Node-RED in FlowFuse, you'll be able to use the **Node-RED Assistant** in both the Editor toolbar, and the function nodes:

![Screenshot showing the "FlowFuse Assistant" button available in the Editor Toolbar](./images/assistant-toolbar.png){data-zoomable}
_Screenshot showing the "FlowFuse Assistant" button available in the Editor Toolbar_
![Screenshot showing the "FlowFuse Expert" button available in the Editor Toolbar](./images/assistant-toolbar.png){data-zoomable}
_Screenshot showing the "FlowFuse Expert" button available in the Editor Toolbar_

![Screenshot showing the "Ask the FlowFuse Assistant" button available in the function node](./images/assistant-function-node-inline-code-lens.png){data-zoomable}
_Screenshot showing the "Ask the FlowFuse Assistant" button available in the function node_
![Screenshot showing the "Ask the FlowFuse Expert" button available in the function node](./images/assistant-function-node-inline-code-lens.png){data-zoomable}
_Screenshot showing the "Ask the FlowFuse Expert" button available in the function node_

The Node-RED Assistant is an AI-powered tool that can help you write JavaScript code in the function node. It can suggest code snippets, help you debug your code, and even write code for you. This is a game-changer for users who are inexperienced with JavaScript, as it lowers the barrier to entry and makes it easier to create applications.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/blog/2024/07/images/assistant-toolbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/blog/2024/08/flowfuse-2-7-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ FlowFuse 2.7 has had a big focus on user experience improvements, particularly c

<!--more-->

## FlowFuse Assistant in the JSON Editor
## FlowFuse Expert in the JSON Editor

Last release we saw the introduction of the FlowFuse Assistant, and in this release we're rolling this out further to include Node-RED's JSON Editor.
Last release we saw the introduction of the FlowFuse Expert, and in this release we're rolling this out further to include Node-RED's JSON Editor.

![(Left) Screenshot of the AI prompt for a list of 4-legged creatures and (Right) the resulting JSON generated by the FlowFuse Assistant](./images/ask-assistant-json.png){data-zoomable}
_(Left) Screenshot of the AI prompt for a list of 4-legged creatures and (Right) the resulting JSON generated by the FlowFuse Assistant_
![(Left) Screenshot of the AI prompt for a list of 4-legged creatures and (Right) the resulting JSON generated by the FlowFuse Expert](./images/ask-assistant-json.jpg){data-zoomable}
_(Left) Screenshot of the AI prompt for a list of 4-legged creatures and (Right) the resulting JSON generated by the FlowFuse Expert_

![(Left) Screenshot of the AI prompt input for a list of simulated devices and (Right) the resulting JSON generated by the FlowFuse Assistant](./images/ask-assistant-json-2.jpg){data-zoomable}
_(Left) Screenshot of the AI prompt input for a list of simulated devices and (Right) the resulting JSON generated by the FlowFuse Assistant_
![(Left) Screenshot of the AI prompt input for a list of simulated devices and (Right) the resulting JSON generated by the FlowFuse Expert](./images/ask-assistant-json-2.png){data-zoomable}
_(Left) Screenshot of the AI prompt input for a list of simulated devices and (Right) the resulting JSON generated by the FlowFuse Expert_

This new feature empowers you to create custom data sets within seconds, meaning you can sketch out Dashboards or test Node-RED flows before connecting to real, production environments.

Expand Down
Binary file removed src/blog/2024/08/images/ask-assistant-json-2.jpg
Binary file not shown.
Binary file added src/blog/2024/08/images/ask-assistant-json-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/blog/2024/08/images/ask-assistant-json.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/blog/2024/08/images/ask-assistant-json.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/blog/2024/09/how-to-scrape-web-data-with-node-red.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ When you click the **inject** button, you will see the array containing the text

### Transforming Data into Structured Objects

You can use JavaScript in a Node-RED function node to transform data into structured objects. If you are familiar with JavaScript, this process will be straightforward. However, if you are not, you can use FlowFuse Assistant to generate the necessary function. For more details, refer to our [LinkedIn Post](https://www.linkedin.com/posts/flowfuse_flowfuse-nodered-automation-activity-7226171132796637184-vKKt/?utm_source=share&utm_medium=member_desktop) for a quick guide. However, in this section, we will use a low-code approach to transform the data.
You can use JavaScript in a Node-RED function node to transform data into structured objects. If you are familiar with JavaScript, this process will be straightforward. However, if you are not, you can use FlowFuse Expert to generate the necessary function. For more details, refer to our [LinkedIn Post](https://www.linkedin.com/posts/flowfuse_flowfuse-nodered-automation-activity-7226171132796637184-vKKt/?utm_source=share&utm_medium=member_desktop) for a quick guide. However, in this section, we will use a low-code approach to transform the data.

1. Drag a **Split** node onto the canvas and connect it to the **HTML** node. This **Split** node will split the input array into individual string messages.
2. Drag a **Change** node onto the canvas and connect it to the **Split** node. Set `msg.name` to the following JSONata expression to extract the country name:
Expand Down
Binary file added src/blog/2024/10/images/flowfuse-ai-assistant.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/blog/2024/10/images/flowfuse-assistant.gif
Binary file not shown.
12 changes: 6 additions & 6 deletions src/blog/2024/10/quick-ways-to-write-functions-in-node-red.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ _Image showing collection of blockly blocks that are calculating UCL and LCL_

Using Blockly-based Function Nodes simplifies the creation of complex logic in Node-RED. However, a basic understanding of JavaScript is still beneficial, especially as your logic becomes more complicated. While beginners may appreciate the visual interface initially, it can become confusing when trying to implement more advanced features. Additionally, the Blockly Function Node is a modified version of the original Function Node, which may lead to differences in behavior and functionality. Nevertheless, it remains a valuable node for users looking to simplify writing function logics in Node-RED.

### Using FlowFuse Assistant
### Using FlowFuse Expert

![Image showing the quick function node generation with FlowFuse Assistant](./images/flowfuse-assistant.gif){data-zoomable}
_Image showing the quick function node generation with FlowFuse Assistant_
![Image showing the quick function node generation with FlowFuse Expert](./images/flowfuse-ai-assistant.gif){data-zoomable}
_Image showing the quick function node generation with FlowFuse Expert_

The FlowFuse Assistant is an AI-based plugin integrated into the FlowFuse platform within the Node-RED editor, making it incredibly easy to generate complex functions using prompts.
The FlowFuse Expert is an AI-based plugin integrated into the FlowFuse platform within the Node-RED editor, making it incredibly easy to generate complex functions using prompts.

For this example, let’s use the same logic we demonstrated with Blockly:

Expand All @@ -83,10 +83,10 @@ Before proceeding, ensure you have updated Node-RED to the latest version on the
6. To test it, connect an inject node containing an array of simulated temperature data, then drag two debug nodes onto the canvas. Connect one debug node to output 1 of the function node (this will display the UCL) and the other debug node to output 2 (this will display the LCL).
7. Deploy the flow and click the inject button; both UCL and LCL will be displayed on the debug panel.

Using the FlowFuse Assistant is significantly easier than Blockly, as it streamlines the process and saves you valuable time. You can articulate your goals in plain English or other languages, such as Spanish or Dutch, and the assistant generates your Function Node seamlessly. This allows you to focus more on your project objectives rather than getting bogged down in coding or block arrangements. Additionally, it provides you with the original Function Node, maintaining standard functionality.
Using the FlowFuse Expert is significantly easier than Blockly, as it streamlines the process and saves you valuable time. You can articulate your goals in plain English or other languages, such as Spanish or Dutch, and the assistant generates your Function Node seamlessly. This allows you to focus more on your project objectives rather than getting bogged down in coding or block arrangements. Additionally, it provides you with the original Function Node, maintaining standard functionality.

{% include "cta.njk", cta_url: "/get-started?utm_campaign=60718323-BCTA&utm_source=blog&utm_medium=cta&utm_term=high_intent&utm_content=Exploring%20Quick%20Ways%20to%20Write%20Complex%20Logic%20in%20Function%20Nodes%20in%20Node-RED", cta_type: "signup", cta_text: "" %}

## Conclusion

In summary, both Blockly and FlowFuse Assistant simplify writing complex logic in Node-RED, but FlowFuse is easier to use. Blockly’s visual approach can be confusing, while FlowFuse allows you to generate code by stating your goals in plain English or other languages. Although Blockly can be helpful, it often requires JavaScript knowledge. FlowFuse Assistant simplifies the process, allowing you to focus on your project.
In summary, both Blockly and FlowFuse Expert simplify writing complex logic in Node-RED, but FlowFuse is easier to use. Blockly’s visual approach can be confusing, while FlowFuse allows you to generate code by stating your goals in plain English or other languages. Although Blockly can be helpful, it often requires JavaScript knowledge. FlowFuse Expert simplifies the process, allowing you to focus on your project.
Loading