Puppets and automata