delay building as much as possible - unless you're doing something completely innovative such as inventing the iPhone.
research markets, research TAMs (they can be too big or too small - which is fatal) - read books about selling. reach out to potential customers in your target markets that match the TAM you want.
do pilots.
only after that then you can start building.