Human likenesses believed to have intelligence were built in every major civilization : animated statues were worshipped in Egypt and Greece Human likenesses believed to have intelligence were built in every major civilization : animated cult images were worshipped in Egypt and Greece and humanoid automatons were built by Yan Shi , Hero of Alexandria and Al-Jazari .