Replies: 1 comment 3 replies
-
|
Dify supports calling a sub-workflow from a main chatflow using the "Workflow as Tool" pattern — you publish a workflow and then invoke it as a tool node within your main chatflow [1]. The sub-workflow executes synchronously and returns its outputs back to the parent flow. However, there's an important limitation for your use case: sub-chatflows cannot have their own independent interactive interface during nested execution. The pause/human-input mechanism is explicitly disabled for nested workflow calls [2], meaning the sub-flow can't pause to display interactive tables/charts to the user and then wait for an "exit" command before returning. Possible workarounds:
Unfortunately, there's no native "flow to another chatflow with its own interactive UI and return" feature in Dify today. The conversation-variable routing approach within a single chatflow is likely your best bet for a smooth user experience without HTML redirects. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
How to realize the flow of the main chatflow to the sub-chatflow (with an interactive interface, which will output tables and charts), and then return to the main chatflow when the sub-chatflow receives the exit?
I don't want to use html jump method, the interface interaction effect is very poor.
Beta Was this translation helpful? Give feedback.
All reactions