Answer
During WWII, Ayer served as an MI6 agent, a role that involved gathering intelligence and conducting covert operations. He was recruited by the British Secret Intelligence Service due to his language skills and his knowledge of the European continent. Ayer's work as an MI6 agent contributed to the Allied war effort and played a significant role in the eventual victory over Nazi Germany.