The Buffybot first appears in the episode "Intervention", having been created by Warren Mears as a sex toy for the vampire Spike, who is obsessed with Buffy. Therefore, the Buffybot is initially programmed to be in love with Spike and will do anything to please him. Buffy's friends mistake the robot for her, assuming that Buffy's grief over her mother's death has driven her insane, and Buffy later poses as the Buffybot to find out whether Spike betrayed her and Dawn to the hellgod Glory, rewarding him with a kiss when she learns that he endured torture to protect them. In the Season Five finale, "The Gift", Xander and Anya find the deactivated Buffybot in the basement of The Magic Box; Willow repairs it and it makes the first strike against Glory, distracting her from the real Buffy. After a few minutes of battle, the Bot is decapitated by Glory and the real Buffy then reveals herself.