I think what's needed is more of a design doc, actually. See if you can talk to @prasanna08 and figure out what the flow actually is. This PR may need some underlying infrastructure (like the jobs queue) to be built first.