Replies: 3 comments 1 reply
-
|
Session variables (called "conversation variables") are not supported in Dify workflows as of version 1.3.1—they are only available in Chatflow, not in workflows. This is by design, since workflows are intended for one-off tasks and do not maintain state across sessions. If you need to persist or reference user input across multiple steps in a workflow, you can use workflow variables (not session variables) and pass values between nodes using the variable assigner node. For persistent session-like behavior, consider building your logic in Chatflow instead of a workflow. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
To create conversation variables in a workflow:
Then use the Variable Assigner node to write values to these variables. Reference them elsewhere with Does that solve it? |
Beta Was this translation helpful? Give feedback.
-
|
@heathdutton I don't find the "Features" button in workflow editor, here is my workflow whole windwo screeshot. @dosubot[bot] I tried to add the Variable Assign node in a chatflow. I also can not find any possible session variables I can choose.
|
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.
Help:I want to assign the value of the initial user input to a session variable in a workflow. But I do not kown how to create or where to find a session variable?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions