Suggested Enhancement for Dify Workflow LLM Structured Output
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I hope you don’t mind me sharing a small suggestion to improve the flexibility of the LLM node in Dify workflows. Would it be possible to allow the json_schema for structured outputs to be dynamically passed as a variable, rather than requiring manual configuration each time? This adjustment would help streamline use cases, as I often need to generate different json_schemas based on varying requests.
2. Additional context or comments
No response
3. Can you help us with this feature?
- [ ] I am interested in contributing to this feature.
I also have a problem
interesting
Will the variable be of type string?
yes
Yevanchen @.***> 于2025年6月17日周二 15:07写道:
Yevanchen left a comment (langgenius/dify#20353) https://github.com/langgenius/dify/issues/20353#issuecomment-2979189706
Will the variable be of type string?
— Reply to this email directly, view it on GitHub https://github.com/langgenius/dify/issues/20353#issuecomment-2979189706, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7FJ2MQXUZSDSZ2YH3JOXRL3D65CPAVCNFSM6AAAAAB6CBY2BWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZZGE4DSNZQGY . You are receiving this because you authored the thread.Message ID: @.***>
+1
Hi, @Spirit-MJ. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.
Issue Summary:
- You suggested enhancing the Dify workflow LLM node by allowing the
json_schemafor structured outputs to be passed dynamically as a variable. - The variable type was confirmed to be a string, clarifying implementation details.
- Other community members have shown support or related interest in this feature.
- No contributions or updates have been made toward resolving this request yet.
Next Steps:
- Please let me know if this feature request is still relevant to the latest version of Dify by commenting on this issue.
- If I don’t hear back within 15 days, I will automatically close this issue.
Thanks for your understanding and contribution!