A lot of my ideas come to me in my dreams. I think some characters do too although I couldn't tell you where I knew them from.
I often jot down a dream even if it makes no sense and there seems to be no end. A lot of them are manic but the gist is often a thread to be pulled.