suggestions for chatflow #2086

Closed
opened 2026-02-21 17:41:32 -05:00 by yindo · 0 comments
Owner

Originally created by @badbye on GitHub (Apr 10, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

I was trying to implement the chat-langchain project using chatflow.
It rewrite the user's question based on the memory(chat history), then let the LLM answer the rewrited question.
However, in chatflow the LLM node always treat sys.query as the last user message.

image

2. Describe the feature you'd like to see

  1. Set memory as a system variable so that every node can read it.
  2. Allow us customize user message(set to any variable) in LLM node.

3. How will this feature improve your workflow or experience?

Well, if those two features are added, we can

  1. Cut the memory by ourself, or even rewrite the memory.
  2. Use the memory to rewrite user's query.
  3. We can even customize the whole prompt using the template(jinja2) node, then send to LLM.
    The flexibility comes back.

4. Additional context or comments

No response

5. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @badbye on GitHub (Apr 10, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] Pleas do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? I was trying to implement the [chat-langchain](https://github.com/langchain-ai/chat-langchain) project using chatflow. It rewrite the user's question based on the memory(chat history), then let the LLM answer the rewrited question. However, in chatflow the LLM node always treat `sys.query` as the last user message. <img width="415" alt="image" src="https://github.com/langgenius/dify/assets/3295865/27e14fdb-586e-4d8b-ac0d-fd793cf70922"> ### 2. Describe the feature you'd like to see 1. Set memory as a system variable so that every node can read it. 2. Allow us customize user message(set to any variable) in LLM node. ### 3. How will this feature improve your workflow or experience? Well, if those two features are added, we can 1. Cut the memory by ourself, or even rewrite the memory. 2. Use the memory to rewrite user's query. 3. We can even customize the whole prompt using the template(jinja2) node, then send to LLM. The flexibility comes back. ### 4. Additional context or comments _No response_ ### 5. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 17:41:32 -05:00
yindo closed this issue 2026-02-21 17:41:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2086