The idea is:
Enable users to export their workflow to Python or another language (e.g., Java, JavaScript, etc.).
Naturally, the exported workflow must reflect the order and connection between the nodes.
My use case:
I was creating an agent and needed more precise manipulation of the prompt because I needed to directly embed what the user sent. I also needed greater control over processing the content returned by an API, for example: removing junk content, processing characters, and so on. This can be done with greater precision using other libraries.
I think it would be beneficial to add this because:
Currently, workflows can only be exported to JSON, which is not executable and serves a passive purpose.
Exporting them to code enables code reviews, testing, QA, and integration with other tools that would be more complicated to use in n8n. Therefore, this feature makes the workflow highly portable.
On the other hand, as a developer, it would help me reduce the load on my server in terms of both space and memory.
Any resources to support this?
I found an online tool, but it doesn’t have all the nodes I’d like:
Also, it has limits on the number of files can be exported.
Are you willing to work on this?
Yes, I’m willing to contribute to this, and also I can help with reviews or feedback.