The Office (American TV series)
Development and writing
Before the second episode airing, the writers spent time conducting research in offices. This process was used for Daniels' other series King of the Hill and Parks and Recreation. The pilot is a direct adaptation of the first episode of the original British series. Daniels chose to go this route because "completely starting from scratch would be a very risky thing to do" owing to the show being an adaptation. He had briefly considered using the idea for "The Dundies" as the pilot episode. After the writers knew who the cast was, they were allowed to write for the actors, which allowed the show to be more original for the following episode, "Diversity Day)". Following the mixed reaction toward the first season, the writers attempted to make the series more "optimistic" and to make Michael Scott) more likable. They also established the supporting characters of the series more, giving them relatable personalities. They also made the lights in the office brighter, which allowed the series to differentiate itself from the British series.
Casting

Casting
John Krasinski and Jenna Fischer were cast in their respective roles as Jim and Pam, the main love interests. Krasinski attended school with B. J. Novak, where the two were best friends. Before Krasinski landed the role, he considered quitting acting. He discussed on The Late Show with Stephen Colbert that he moved to New York City and gave himself two to three years for his acting career to succeed or he would quit. He did not enjoy waiting tables and struggling to find roles, but his mom told him to wait it out until the end of the year. He booked his role in The Office just three weeks later.