How do 1-800 numbers work

I recently thought about this and I am not exactly sure. I sort of don't want to google it because hypothesizing about this is my current pastime. My guess/hope is that there is an operator on the other line and you say whatever word is after 800 and they patch you to the correct line, ALAS one can hope.