In American Horror Story, Kim Kardashian played a role that was designed to blend with the show's macabre and often convoluted storylines. Her character had to navigate the spooky and mysterious settings of the series. She was given lines and actions that were in line with the horror - themed nature of the show. Her role also had the potential to attract new viewers who were fans of her outside of the show, and she had to perform in a way that would be believable within the context of American Horror Story's established world.
Kim Kardashian's role was a character that was part of the complex narrative of American Horror Story. She had to adapt to the show's unique style of horror and drama. Her character was likely written to play into some of her public persona while also fitting into the overall theme of the season she was in. She interacted with the other actors and was involved in the various plot twists and turns that are characteristic of the show.