KALEN TRUONG

MafiAI

OpenAI, Prompt Augmentation, Python

MafiAI is a Mafia gaming experience enhanced by generative AI on Discord. It utilizes OpenAI's ChatGPT to generate narrations and predictions, Prompt augmentation to create consistent, accurate descriptions, and DALL-E to generate images supplementing the plot! I worked on this in CIS7000: Text Generation and Interactive Fiction class final project with my colleagues and made further developments.

Get a group of friends and let MafiAI transform your social deduction gaming experience!

Demo

Research

Before developing MafiAI, we looked at current research of using generative AI as storytelling agents. Language Agents with Reinforcement Learning for Strategic Play in the Werewolf Game by Zelai Xu et al. served as a foundation of how we could implement AI as an agent for strong strategic play in social deduction games. Delving deeper into this area of interest, we decided to create our own version of the infamous Mafia game, where we would use AI as storytellers and as agents of reason. We focused on two elements: NarratorAI and Predictor AI.

NarratorAI

Interactive, customizable, gameplay agent with DALL-E + GPT 3.5 integration

PredictorAI

Social deduction agent that observes gameplay and performs deductive reasoning.