Role-taking is a basic social process underpinning much of the structural social psychology paradigm-a paradigm built on empirical studies of human interaction. Yet today, our social worlds are occupied by bots, voice assistants, decision aids, and other machinic entities collectively referred to as artificial intelligence (AI). The integration of AI into daily life presents both challenges and opportunities for social psychologists. Through a vignette study, we investigate role-taking and gender in human-AI relations. Participants read a first-person narrative attributed to either a human or AI, with varied gender presentation based on a feminine or masculine first name. Participants then infer the narrator's thoughts and feelings and report on their own emotions, producing indicators of cognitive and affective role-taking. Overall, participants score higher on role-taking measures when the narrator is human versus AI. However, gender dynamics differ between Human and AI conditions. When the text is attributed to a human, masculinized narrators elicit stronger role-taking responses than their feminized counterparts, and women participants score higher on role-taking measures than men. This aligns with prior research on gender, status, and role-taking variation. When the text is attributed to an AI, results deviate from established findings and in some cases, reverse. We supplement results with qualitative analysis from two open-ended survey questions. This first study of human-AI role-taking tests the scope of key theoretical tenets and sets a foundation for addressing group processes in a newly emergent form.