Auto-assign puppet server

Hello,
I see foreman can auto-assign networks from facts.
Is there a way to auto-assign a puppet master (if it’s empty) from the web interface?
If not I’m gonna use web-hooks. Not a prob.
Thank you