There you go, I already wrote a guide on this.
Welcome to the UiPath Forum!
I think you want it in Maestro perhaps, since you mention agentic process, that isn’t covered by my guide, but maybe understanding how it works in Studio will bridge the gap in Maestro for you. Might be easier to build this all in Studio for now?