Replies: 1 comment
-
|
Dify doesn't currently support true global or workflow-level plugin variables. Plugin parameters are defined per tool, and each tool instance manages its own parameter values. However, you have two main options to achieve "fixed" variables:
Limitations:
If you need true global plugin variables (shared across all workflows and tools), you would need to extend Dify's core to support this, possibly by adding a global variable registry and updating the parameter resolution logic to check it. Let me know if you want a step-by-step example for either approach! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
How to add some fixed variables to a plugin? I am developing a plugin and hope to have some methods to add common "plugin variables" globally or to plugins in the workflow. However, it seems that currently, it is only possible to add parameters to tools, and they need to be filled in separately each time they are used.
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions