Easy wifi network configuration

Hi.

I am trying to prepare a home assistant installation to be sent over to non tech savvy users. So here is what i am attempting to do.

When turned on, and there is no network connection, HA should broadcast a hotspot.

Once a device is connected to the hotspot, the user can enter wifi SSID and PASSWORD for HA to connect.

Then HA should connect to the said network.

Anyone has any clue on how to do this?