system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: In factory shows like How It's Made, who plans those assembly machines that know how to perfectly do everything?


How It's Made needs to do a How How It's Made is Made episode.
gpt
It's usually a mechanical engineer who designs the actual machine, or an engineer in the field of what it will be making.  Very complex processes are researched by engineers with a master's degree or a PhD at a university or private research company.  Once they show that whatever it is they're making can be profitable, they usually sell the technology to a company who has its engineers make it faster and cheaper.  

As far as the assembly line, plant layout, and human-machine interfaces, it's usually an industrial engineer.  If it's a chemical plant with reaction chambers, pressure tanks, and chemical flow, it's usually a chemical engineer.  Of course, being one type of engineer doesn't stop you from knowing all the things.