The roots of AI can be traced back to ancient automata and the emergence of computing and logic in the 19th century.