dify icon indicating copy to clipboard operation
dify copied to clipboard

Suggested Enhancement for Dify Workflow LLM Structured Output​

Open Spirit-MJ opened this issue 8 months ago • 1 comments

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.

Spirit-MJ avatar May 28 '25 07:05 Spirit-MJ

I also have a problem

pepsile avatar May 29 '25 02:05 pepsile

interesting

Yevanchen avatar Jun 17 '25 06:06 Yevanchen

Will the variable be of type string?

Yevanchen avatar Jun 17 '25 07:06 Yevanchen

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: @.***>

Spirit-MJ avatar Jul 01 '25 06:07 Spirit-MJ

+1

hxt365 avatar Aug 19 '25 13:08 hxt365

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_schema for 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!

dosubot[bot] avatar Sep 19 '25 16:09 dosubot[bot]