I’ve integrated the OpenAI API into my game’s dialog system. Instead of writing dialog directly, characters use a custom prompt for each dialog line.
NPC dialog lines are generated on the fly and are different every time.
Full post with details, implications, and future directions here: https://doomlaser.com/openai-api-generated-video-game-dialog-with-real-time-text-to-speech/