Chat Interface

The FlowFuse Expert chat interface is your conversational AI companion that you can open directly in the Node-RED editor. While other FlowFuse Expert features (like inline code completions and next-node prediction) work passively in the Node-RED Editor, the chat interface is where you actively engage the AI - asking questions, exploring your flows, and gaining insights from your live data.

Opening the Chat Interface

To open the chat, first open your Node-RED instance using the Open Editor button. This launches Immersive Mode.

Chat Modes

The chat interface operates in two distinct modes. You can switch between them using the Mode Selector at the top of the Expert panel.

Support Mode

Support mode is for flow-building assistance. Use it when you need help understanding, building, or debugging your Node-RED flows. In this mode, the Expert draws on its knowledge of Node-RED, your installed palette, and the context of your current flows to answer questions and provide guidance.

Typical use cases in Support mode:

  • "How do I convert data to CSV for writing to file & do you have any flow examples?"
  • "Explain what this flow is doing"
  • "Why is this node outputting a number instead of a string?"
  • "Is node-red-contrib-string node installed on this instance?"

Context: What the Expert Can See

Support mode becomes significantly more helpful when the Expert has context about your environment. Context is not automatic, you choose what to share with the Expert depending on what you need help with.

Palette Context

To add Palette Context, click the Resource Selector button (paperclip icon) in the chat interface and select Palette. Once added, the Expert has access to information about the nodes installed in your Node-RED instance - including installed packages and their versions.

This allows you to ask questions like:

  • "Is my palette up to date?"
  • "What version of node-red-dashboard is installed?"
  • "Do I have a node available for reading from a PostgreSQL database?"

The Expert can use palette context to tailor its suggestions - for example, recommending nodes you actually have installed rather than suggesting ones that are not available.

Palette Context discussion with the FlowFuse Expert.

Flow Context

To add Flow Context, select the flow you want the Expert to reference from the flow tabs in the Node-RED editor. The selected flow is then added as context for the Expert to read and reason about.

This makes it possible to ask questions directly about your flows without having to copy and paste JSON or describe your configuration manually.

This allows you to ask questions like:

  • "What does this flow do?"
  • "Why does this flow output a number instead of a string?"
  • "Is there something wrong with this flow? I don't seem to get an output from the debug node!"

Flow Context is what makes the Expert genuinely useful as a debugging and code review tool - it can see the same flow you're looking at and reason about it directly.

FlowFuse Context discussion with the FlowFuse Expert.

Debug Context

To add Debug Context, you have 2 options:

  1. Add individual log entries by clicking the ➕ button that appears over your debug message
  2. Click the Resource Selector button (paperclip icon) in the chat interface and select Add Debug Logs.

Once added, the Expert has access to the messages and output currently captured in your Node-RED debug panel.

This allows the Expert to reason directly about the data or errors you are getting from your nodes at runtime, not just the structure of the flow itself.

This allows you to ask questions like:

  • "Why is this debug output a number instead of a string?"
  • "What does this error message in the debug panel mean?"
  • "Is the payload structure here what my downstream node expects?"

Debug Context is especially useful in combination with Flow Context - together they give the Expert both the structure of your flow and the actual data it is producing, making debugging significantly more effective.

Debug Context discussion with the FlowFuse Expert.

Resetting Context

If the Expert starts giving unexpected or inconsistent answers, it may be due to accumulated context from earlier in the conversation influencing its responses. Use the Start Over button to clear the conversation and start fresh with a clean context.

Insights Mode

Insights mode connects the Expert to your live data via Model Context Protocol (MCP). Use it when you want to query, analyze, or interact with real-world data - not just your Node-RED flows.

In Insights mode, you first select an MCP Server that you've built using FlowFuse MCP Server Nodes. The Expert can then use the tools and resources exposed by that server to answer questions against your live operational data. If you haven't built an MCP Server yet, see the guide on building an MCP Server using FlowFuse.

Typical use cases in Insights mode:

  • You have an MCP Resource named production_lines_facilities_list that returns a list of your production lines, their facility names and the facility types (stamping, assembly, packaging etc)
    • You can ask: "List all stamping facilities on our production lines"
  • You have added an MCP Tool named get_production_live_state -You can ask: "Tell me which of any of my assembly facilities are running and at what speed"
  • You have added an MCP tool named get_production_oee that
    • You can ask: "Show me the worst 3 OEE results for all production line facilities"

Note: Insights mode is currently in Beta. Capabilities are actively being expanded.

To switch to Insights mode:

  1. Open the FlowFuse Expert panel
  2. Use the Mode Selector to switch from "Chat" to "Insights"
  3. Select the MCP Server you want to query
  4. Ask your question

Writing Better Queries

The quality of the Expert's responses depends heavily on how your questions are phrased. The more specific and contextual your query, the more accurate and actionable the answer.

Here are some common patterns to improve your queries:

Be specific about what you're referring to

Vague references like "it", "this", or "that" require the Expert to guess what you mean. Name the thing explicitly.

Less effective More effective
"Is it up to date?" "Is my palette up to date?"
"What does this mean?" "What does this log entry mean?"
"Why did this happen?" "Why did this error log occur?"

Describe the actual problem, not just a symptom

If something isn't behaving as expected, describe what you expected versus what you got.

Less effective More effective
"This doesn't work" "My flow should output a string but it is outputting a number"
"The node is broken" "The HTTP Request node is returning a 401 status code"

Include relevant details upfront

The Expert works best when it doesn't have to ask clarifying questions. Include relevant context - the node type, the message property, the protocol, or the error - in your initial query.

Less effective More effective
"How do I connect to a database?" "How do I connect to a PostgreSQL database using the node-red-contrib-postgresql node?"
"How do I format this?" "How do I format a Unix timestamp as an ISO 8601 string in a Function node?"

Ask one question at a time for complex topics

If you have multiple questions, consider asking them separately so the Expert can give a focused answer to each rather than a broad response that covers everything superficially.

See also: Node-RED Embedded AI for AI features built directly into the Node-RED editor.