diff --git a/src/changelog/2024/07/flowfuse-assistant-json.md b/src/changelog/2024/07/flowfuse-assistant-json.md new file mode 100644 index 0000000000..6910730aeb --- /dev/null +++ b/src/changelog/2024/07/flowfuse-assistant-json.md @@ -0,0 +1,50 @@ +--- +title: FlowFuse Assistant Writes JSON +description: "The FlowFuse Assistant gets more helpful." + +date: 2024-07-16 13:00:00.0 + +authors: ["stephen-mclaughlin"] +tags: + - changelog +--- + +The FlowFuse Assistant can now assist you by generating JSON. + +Wherever you edit JSON in the Rich Monaco Editor you will see the "Ask the FlowFuse Assistant 🪄" code lens. +That includes the Inject Node, the Template Node and any contrib node that uses the built-in editor for writing JSON. + +We think you will find this to be a great time saver and a good helper when you are unsure of the syntax. + +Just ask for what you want and it does a decent job of figuring it out. + +Here are some examples: + + +### Asking the Assistant to generate JSON from within the `template` node + +![Prompting from within the Template Node](./images/ask-assistant-json-1a.png) +![Resulting JSON](./images/ask-assistant-json-1b.png) + +### Asking the Assistant to generate JSON from within the `inject` node for the `payload` value + +![Prompting from within the Inject Nodes Typed Input](./images/ask-assistant-json-2a.png) +![Resulting JSON](./images/ask-assistant-json-2b.png) + +This is just the beginning of the FlowFuse Assistant's capabilities. Stay tuned! + + +#### Updating the Assistant to get these new features +If you are running Node-RED v4.x, head over to the Palette Manager, update the plugin and restart your instance. + + +![Updating assistant on Node-RED 4](./images/assistant-update-nr4.png) + + +If you are still running Node-RED v3.x, you can update the plugin by adding `@flowfuse/nr-assistant` to the instance settings then restart it. + +![Updating assistant on Node-RED 3](./images/assistant-update-nr3.png) + + + + diff --git a/src/changelog/2024/07/images/ask-assistant-json-1a.png b/src/changelog/2024/07/images/ask-assistant-json-1a.png new file mode 100644 index 0000000000..b4f84f8c7c Binary files /dev/null and b/src/changelog/2024/07/images/ask-assistant-json-1a.png differ diff --git a/src/changelog/2024/07/images/ask-assistant-json-1b.png b/src/changelog/2024/07/images/ask-assistant-json-1b.png new file mode 100644 index 0000000000..cd578e690c Binary files /dev/null and b/src/changelog/2024/07/images/ask-assistant-json-1b.png differ diff --git a/src/changelog/2024/07/images/ask-assistant-json-2a.png b/src/changelog/2024/07/images/ask-assistant-json-2a.png new file mode 100644 index 0000000000..e22e9aa015 Binary files /dev/null and b/src/changelog/2024/07/images/ask-assistant-json-2a.png differ diff --git a/src/changelog/2024/07/images/ask-assistant-json-2b.png b/src/changelog/2024/07/images/ask-assistant-json-2b.png new file mode 100644 index 0000000000..cb3f2e5656 Binary files /dev/null and b/src/changelog/2024/07/images/ask-assistant-json-2b.png differ diff --git a/src/changelog/2024/07/images/assistant-update-nr3.png b/src/changelog/2024/07/images/assistant-update-nr3.png new file mode 100644 index 0000000000..05f8b97902 Binary files /dev/null and b/src/changelog/2024/07/images/assistant-update-nr3.png differ diff --git a/src/changelog/2024/07/images/assistant-update-nr4.png b/src/changelog/2024/07/images/assistant-update-nr4.png new file mode 100644 index 0000000000..1640d89082 Binary files /dev/null and b/src/changelog/2024/07/images/assistant-update-nr4.png differ