This technique is referred to as "free association".
Free association is a training in psychoanalytic treatment in which a customer is asked to uninhibitedly share considerations, irregular words, and whatever else that rings a bell, paying little heed to how lucid or suitable the musings are.