I am also asking the question and I think we should never stop asking it.
Currently, my best answer would be: The purpose of life is to live it. To manage the gifts we have received by being born.
If you want to maximize your happines, do not have any expectations, do not assume the right for your future, take responsibility for the consequences of your actions. What is supposed to happen, will happen, and you will be free of regrets.