What's the best AI model for refactoring a complex workflow JSON?

Hi everyone,
I’m looking for some advice based on your latest experiences with different AI models.
I have a fairly complex AI Telegram bot workflow that I’d like to simplify for my personal use. The main task is to replace the PostgreSQL database used for chat history with a simple in-memory solution.
My plan is to feed the entire workflow JSON to an AI and ask it to perform this refactoring. Since this requires the model to handle a large JSON file and understand n8n’s structure, I want to use the best possible tool for the job.
So, my question is: Which AI model (like Claude 3 Opus, GPT-4o, Gemini 1.5 Pro, etc.) do you currently find to be the most reliable for accurately modifying a large n8n workflow JSON without breaking it?
I’d really appreciate any recommendations based on your hands-on experience!

n8n Version 1.110.1

1 Like

google/gemini 2.5 flash lite : speed and cheap
google/gemini 2.5 pro : best result but costly

@y4n
Did you have good experience with using these modesl to modify complex n8n workflow JSONs without breaking them?

1 Like

very complex

Interesting, could you give an example of type of modification you would ask these models to do with the n8n workflow JSON?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.