文档问题: 如何在工作流中调用变量? #7

Closed
opened 2026-02-16 05:18:51 -05:00 by yindo · 1 comment
Owner

Originally created by @toddkingsing on GitHub (May 8, 2025).

问题描述

我了解提示词可以用变量{{positive_prompt}}来调用,但如何将其它变量传入工作流中呢?比如上游节点有一个名为width的变量,我需要把它传入工作流中的图像高度定义节点,怎么办?

页面链接

https://github.com/langgenius/dify-docs-mintlify/blob/main/zh-hans/guides/tools/tool-configuration/comfyui.mdx

建议修改

Originally created by @toddkingsing on GitHub (May 8, 2025). ## 问题描述 我了解提示词可以用变量{{positive_prompt}}来调用,但如何将其它变量传入工作流中呢?比如上游节点有一个名为width的变量,我需要把它传入工作流中的图像高度定义节点,怎么办? ## 页面链接 https://github.com/langgenius/dify-docs-mintlify/blob/main/zh-hans/guides/tools/tool-configuration/comfyui.mdx ## 建议修改 <!-- 如果有具体的修改建议,请在此说明 --> <!-- 感谢您对文档质量的关注! -->
yindo closed this issue 2026-02-16 05:18:51 -05:00
Author
Owner

@AllenWriter commented on GitHub (May 9, 2025):

You can try writing the variable {{positive_prompt}} directly into the input field of the downstream node.

@AllenWriter commented on GitHub (May 9, 2025): You can try writing the variable `{{positive_prompt}}` directly into the input field of the downstream node.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs#7