Even though they did the writing for a specific purpose, these writings were history for the next generation, giving advice, making poetry but in the end the canon team found that the writing was authoritative as the word of God. The writers of this Bible are human beings who at the time of writing have been or are being controlled by the Holy Spirit.
God uses the Bible as a means of introducing himself in a special way (a special revelation to people who want to believe).