Automatism

The process of writing or creating art without conscious thought. The term was borrowed from physiology, which uses the term to denote involuntary processes that are not under conscious control, such as breathing. The Surrealists later applied to techniques of spontaneous writing, drawing, and painting. (MoMA Learning)