Pudi disclosed to TV Line that Community's writers originally wanted Abed to be more of a loner.
"Initially [the producers] saw Troy and [Chevy Chase's] Pierce as being weird buddies, but things changed," he said. "Donald and I just got each other and it fit. [The popular rap] 'La Biblioteca' spawned from an interview the two of us did."
The star continued: "[Community creator] Dan Harmon saw it, spun it into a Spanish rap and put it at the end of the show. From then on we were doing a tag at the end of every episode - which was awesome because my secret desire to be on Saturday Night Live as a kid is fulfilled in 30-second spots each week. We get to have our own sketch show, almost."
Pudi further discussed how Abed's role within the study group changed in Community's season three, where he fell out with various characters at different times.
"It was heavier. This the first time Abed's made these types of close-knit relationships, and this season we really explored what it would be like if you pulled that away from him or shook it up," he commented.
"Maybe he's not changing, but you can see that he's still very affected by what's going on around him."
Earlier this week, Pudi said he is still hopeful that Community will win an Emmy Award.
> Community: Leaked memo tells cast how to respond to Dan Harmon axe
Watch Troy and Abed's Community rap below: