Allow expression for JSON Schema in Structured Output Parser node

The idea is:

Structured Output Parser node doesn’t allow expression. It has to be fixed value which is surprising as everything else can be variables.

My use case:

I am working on a n8n workflow that takes as input a system and user prompt and outputs the results from llm completion. I wanted to add structured responses available. For that I wanted my users to pass their JSON schema as input for me to use it in the node.

I think it would be beneficial to add this because:

It is beneficial for everyone who doesn’t want to duplicate workflows just because we define a different JSON Schema in output Parser.

Any resources to support this?

Are you willing to work on this?

I am not sure to have the knowledge to do so. I am only working with Python.

Couldn’t agree more!

I updated for the latest version yesterday and suddenly my most powerful and valuable workflows started crashing!

Please guys, could you rollback and make possible to write expressions on the Structured Output Parser node?

5 Likes

Same problem here

2 Likes

+1

It’s baffling that this particular node doesn’t allow expressions. Everything in my workflows is parameterized and even driven by content. This one particular node breaks this powerful pattern.

I’m also willing to help out making this happen, e.g. by reviewing or contributing code changes as far as my nodeJS/javascript knowledge allows.