As a synthesis: the purpose of life is to realize our oneness with God and manifesting that oneness in our human relationships.
You are right.
Like Moses said:
The prime teaching of Moses
4. Hear, O Israel: The Lord is our God; the Lord is one.
5. And you shall love the Lord, your God, with all your heart and with all your soul, and with all your means.
6. And these words, which I command you this day, shall be upon your heart.
7. And you shall teach them to your sons and speak of them when you sit in your house, and when you walk on the way, and when you lie down and when you rise up.
8. And you shall bind them for a sign upon your hand, and they shall be for ornaments between your eyes.
9. And you shall inscribe them upon the doorposts of your house and upon your gates.
Deuteronomy – Chapter 6 (Parshah Va’etchanan) – Tanakh Online – Torah – Bible
Deuteronomy - Chapter 6 (Parshah Va'etchanan) - Tanakh Online - Torah - Bible
Like Jesus said:
Core teachings of Jesus.
36 “Teacher, which is the greatest commandment in the Law?”
37 Jesus replied: “‘Love the Lord your God with all your heart and with all your soul and with all your mind.’[a] 38 This is the first and greatest commandment. 39 And the second is like it: ‘Love your neighbor as yourself.’
40 All the Law and the Prophets hang on these two commandments.”
Matthew 22:36-40
Matthew 22:36-40 -
Like Quran says:
[51:57] And I* have not created the Jinn** and the men but that they may worship Me.
The Holy Quran Arabic text with Translation in English text and Search Engine - Al Islam Online
* The One-True-God
** The philosophers
Regards