Suggestions on approach for n8n bulk editing via code editor and code llm

Describe the problem/error/question

need suggestions on how I can make bulk edits across (sub)-workflows in n8n. certain common variables present across multiple workflows and changing values in each of them via the editor UI is cumbersome. how can I best do this via a code editor that has code agent integrate e.g. vscode + github copilot?

What is the error message (if any)?

Please share your workflow

workflow not really required. also cannot owing discretion 

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 2.1.1
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker + runners
  • Operating system: wsl

hello @adarsh-lm

you can download the json file of the worklfow and use search & replace. AI is not very good in such kind of things

The goal is not just to search and replace but also to probably edit flows comprehensively and also write from scratch

but even for a simple search and edit there will be use cases wherein keywords could be present across but not all are to be replaced and the replacement pattern also need not be exactly identical.

code LLM agents have gotten better perhaps? and I wanted to give it a try

This calls for a bigger problem’s solution. With the community edition how can you effectively manage all workflows with a code editor than just relying on the editor because it is not always the best option for making modifications

Well.. you can’t :slight_smile:
It’s still a way more easier to modify any workflow in the UI.

Workflow files have a good syntax for importing/exporting, but not for modifications or writing from scratch. The main reason is that there is no schema for nodes. Their parameters are being added dynamically and in the JSON file you may see only the ones, which are being set.

However, you can try the n8n’s MCP feature, maybe it will be better.

n8n MCP is for leveraging workflows. They have search, get_details and execute in my understanding.

Modification and authoring is not yet available as per the docs

hm, I feel there could be something done on these lines. Hope other members chime in too.