Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Answer Node in Workflow for Progressive Response #16927

Open
4 of 5 tasks
shanpf opened this issue Mar 27, 2025 · 0 comments
Open
4 of 5 tasks

Add Answer Node in Workflow for Progressive Response #16927

shanpf opened this issue Mar 27, 2025 · 0 comments
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.

Comments

@shanpf
Copy link

shanpf commented Mar 27, 2025

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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Description

I need to implement progressive responses in complex workflows to improve user experience. Currently, for complex workflows with long execution times, users have to wait until the entire process is complete before seeing any response.

Use Case

  • I have complex workflows that take considerable time to execute
  • Users need to see intermediate thinking progress/responses during workflow execution
  • I want to publish these complex workflows as tools, so I cannot use chatflow directly
  • Need a way to send partial responses back to the frontend during workflow execution

Proposed Solution

Add a new "Answer" node type in the workflow that would:

  • Allow sending intermediate responses back to the frontend while the workflow continues executing
  • Enable progressive updates to show the system's thinking process
  • Support both text and structured data responses
  • Not terminate the workflow execution (unlike the current final response node)

Benefits

  1. Better user experience by providing real-time feedback
  2. Reduced perceived waiting time for users
  3. More flexibility in building complex tool-oriented workflows
  4. Ability to show step-by-step reasoning process

Technical Considerations

  • The Answer node should be different from the final response node
  • Multiple Answer nodes should be allowed in a single workflow
  • The frontend needs to handle progressive response updates
  • Should maintain workflow execution context after sending intermediate responses

Additional Context

This feature is particularly important for:

  • Complex reasoning chains
  • Multi-step processing workflows
  • AI tool development
  • Long-running data analysis tasks

Would love to discuss this further and hear the team's thoughts on implementation approaches.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added 🌊 feat:workflow Workflow related stuff. 💪 enhancement New feature or request labels Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request 🌊 feat:workflow Workflow related stuff.
Projects
None yet
Development

No branches or pull requests

1 participant