User Task (Beta) as a Function

Would it be possible to add User Task as a function instead of just as a block?

Currently it's only possible to trigger a User Task before/after other blocks are ran, however there are situations where a User Task is required while the code inside a block is still running. Loops are a good example of this, specifically the OpenAI process for polling run results. It's possible for the model to request input (like tool results), but since that would require ending the loop block, running a user task block, then restarting/re-creating the loop it's now created a necessity for duplicate code (2 loops blocks that do the same thing) which isn't the best of situations to be in for code maintainability and while negligible it also bloats the workflow file size a bit

Hi @bobthebear!

Funny enough, we have a user Tasks/"Human-In-the-loop" feature for workflows being polished up now in beta testing :raised_hands:

Stay tuned for more news and updates on release timeline. It is looking very promising for being able to perform a type of async/await at any point in a workflow, prompt a user for an action and then resume the workflow with the given inputs!

1 Like