Interactive storytelling and gaming NPCs
TEXT_INPUT:Ask the user to input their character's name.;;CHATGPT:Prompt ChatGPT with a storytelling scenario using the character's name from the previous step.;;TEXT_INPUT:Ask the user to input their character's action or choice.;;CHATGPT:Prompt ChatGPT with the character's action from the previous step to continue the story.;;DISPLAY_OUTPUT:Display the generated story output to the user.
Generative AI models have substantial potential for interactive storytelling and gaming NPCs. Language models like GPT, when integrated into games, are useful for creating NPCs with rich dialogue capabilities. Players can converse with these NPCs more naturally, leading to a more immersive and engaging gaming experience. For example, instead of picking pre-set responses, players can type their dialogues, with NPCs capable of responding intelligently with the help of the AI model.
Similarly, Image Generators can create diverse, visually appealing gaming settings, characters, and assets on the fly, enhancing the game's aesthetic appeal and variety, thus greatly enhancing the visual experience of players. By implementing AI models, each player's experience can be unique as it allows for personalization in storylines, dialogues, and visuals through procedurally generated content.
How to build with Clevis
This is an example of an application you can build using Clevis, an AI application building tool. The app, named 'Interactive Storytelling and Gaming NPCs', provides dynamic and immersive storytelling experiences, allowing users to interact with non-playable characters (NPCs).
To begin with, the app asks users to input their character's name, a task accomplished through the Text Input step. Once users provide their character's name, the app moves to the ChatGPT operation, an AI developed by OpenAI. This operation is prompted with storytelling scenario inputs, predominant of which is the character's name received from the user.
Afterward, the user is prompted with another Text Input step asking to detail their character's action or choice. The response will then be used to prompt the ChatGPT operation, continuing the interactive story based on the user's choice or action. Here, ChatGPT plays an essential role in processing the user's input and generating a coherent and engaging story advancement.
In conclusion, the Display Output operation showcases the generated story to the user. Following these steps, the interactive storytelling app creates personalized and interactive storytelling experiences, all achievable with Clevis.