>>509766341 (OP)That's not how it worked.
People saw Jesus. They interacted with Jesus. They remembered Jesus. They passed down word of those interactions with Jesus, which formed what is known as Paradosis.
At some point, whether by eye witnesses themselves or by people recounting the Paradosis they were taught, stuff got written down. Little details here and there might have differed, but what mattered was that they reflected the Paradosis that had been handed down from the apostles. Different areas had different collections of books, but the main ones came to be agreed on due to their reflection of what the Apostles had handed them via word of mouth.
Eventually, after Christianity was legalized, the Church came together and decided which books it would officially recognize as a whole, based on what was most widely used and what best reflected the tradition that had been handed down.
The Gospels are inspired because Tradition is inspired, and it didn't come from dreams but from eye witness.