The best way is to know your users before you start building. Meaning, personally know users/businesses suffering an actual problem they would be willing to pay money for to have it solved. Then build the thing that solves it.
Successful products often come out of such a starting point.