langflow icon indicating copy to clipboard operation
langflow copied to clipboard

How to add human-in-the-loop like in LangGraph?

Open FILM6912 opened this issue 1 year ago • 1 comments

Hi, is there a way to implement human-in-the-loop controls similar to this example from LangGraph? https://langchain-ai.github.io/langgraph/tutorials/get-started/4-human-in-the-loop/

Thanks!

FILM6912 avatar Jun 01 '25 11:06 FILM6912

Hi @WATCHARAPHON6912! I'm Dosu and I’m helping the langflow team.

Human-in-the-loop (HITL) controls like those in the LangGraph example are not currently supported in Langflow. There is no built-in way to pause execution for human input or intervention during a workflow, and it is not possible to use multiple chat input components in a single workflow to simulate this behavior. However, this feature is on the roadmap and planned for future updates, as confirmed by the maintainers (discussion).

If you want to experiment with partial HITL-like behavior, you could explore the LoopComponent, which processes lists of data items and could, in theory, be adapted to include human feedback at certain stages. However, this would require significant manual intervention and does not provide the seamless, interrupt/resume pattern shown in the LangGraph tutorial (LoopComponent details).

For now, classic HITL use cases—such as pausing execution for review, manual override, or managed workflow interruptions—are not natively supported in Langflow. Keep an eye on future releases for updates on this feature.

To reply, just mention my name @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

dosubot[bot] avatar Jun 01 '25 11:06 dosubot[bot]