Maybe the new [Pipelines](https://docs.openwebui.com/pipelines/) feature in Open-WebUI would be better suited for this? It especially supports long-running, agent-like behavior.