During a 1964 production in London, Swedish director Ingmar Bergman met Morton Baum, a representative of the American Broadcasting Company, which was launching a film production arm.
Gould believed Andersson's character was influenced by a woman, Ingrid Karlebo, Bergman was living with at the time, and that the film was semi-autobiographical.