Jesus answered, The work of God is this: to believe in the one he has sent.
1 John 3:21-23 Dear friends, if our hearts do not condemn us, we have confidence before God and receive from him anything we ask, because we keep his commands and do what pleases him. And this is his command: to believe in the name of his Son, Jesus Christ, and to love one another as he commanded us. John 6:28-29
Then they asked him, What must we do to do the works God requires?
Yes, we believe in Jesus as God, yet when shown the love from God it is natural to return that love by action (or works).
Many still do not believe the words of Jesus in John: “Jesus said to them, Amen, amen, I say to you, unless you eat the flesh of the Son of Man and drink his blood, you do not have life within you. 54
Whoever eats* my flesh and drinks my blood has eternal life, and I will raise him on the last day. 55For my flesh is true food, and my blood is true drink. 56Whoever eats my flesh and drinks my blood remains in me and I in him. 57
Just as the living Father sent me and I have life because of the Father, so also the one who feeds on me will have life because of me.b 58This is the bread that came down from heaven.
Unlike your ancestors who ate and still died, whoever eats this bread will live forever.