Ultimately, the key to getting good story into your game is hiring Swift and Wolpaw: the funniest people alive. Writer Erik Wolpaw and Team Lead/Level Designer Kim Swift expounded upon the topic of integrating narrative into game design... more specifically, Portal's game design.
Spoiler Alert! This article contains spoilers regarding key events and the ending of Portal. You have been warned.