How do you pause and resume flows?

I have multiple nodes in my flow and would like different nodes correspond to different UI pages within my app. So I’d also like the user to be able to review and provide human inputs in these pages. For this I need to be able to pause the flow and resume with human input. However this seems to be available at an Agent task level and not at a flow level. Am I missing something as I’ve searched the docs and these forums and not found anything so far. Any insights appreciated.

No, this is available at Flow level as well. One can re-run a crew flow using the id of the flow. That’s pretty documented.

You can consider a Meta state, like:

{ "app_states": { "node_1": {}, "node_2": {} } }

If you already have defined nodes, (not dynamic), then you can just expose these node states via a standard API . If you want to directly add/edit the states, otherwise, pass it back to the LLM, and ask it to populate the possible node states.

In case you want to drive it via an LLM, maybe add a meta agent, to figure out which node is the best suited for the user query.

There can be a bunch of edge cases, which is situation specific. But that’s hard to tell from here.