I like the idea but there is a good chance that the AI models don’t know the structure for all of our nodes so you may need to make your own model / vector store to do this.
Maybe in the future this is something that we could work on and it would make a good feature request.
As OpenAI and other models won’t be kept up to date with the changes we make to our nodes or worklfow json structure you would need need to create your own model that contains the structure and properties that we use that way when you ask for a workflow it would in theory output the correct json based on the latest data.
The downside is we don’t have this information in one file so I suspect it would take a lot of work to set something up, There was a chap that made a tool that would create a workflow from text inputs that did fairly well though I can’t remember where it is but it could be worth digging through the post history to find it as it would be a very good starting point.