
Recently, news emerged that Xbox had been granted a patent for a system that would allow you to add ads directly to games by analyzing what’s happening on the screen. The media is paying more attention now An interesting patentregistered by Microsoft. It involves a system that can use artificial intelligence to change the plot of a game on the fly.
Microsoft has been granted a patent for a generative artificial intelligence system that can adjust a game’s narrative based on specific player actions. This file describes tracking decisions, interactions with NPCs, and other elements in the passage and subsequent new content created directly during gameplay.
The system uses what’s called a “narrative state diagram,” in which individual nodes represent story events, tasks, and other important points in the passage, as shown in the infographic below. Artificial intelligence analyzes the player’s path, his actions and interactions with the game world, and he can then change this graph. The patent provides an example where NPC can propose new side tasks after communicating with players, and relevant content can be directly created during the passage.
It’s not just a conversation. Generative models can create new game objects, rules, locations, and other elements related to player behavior. If interactions become complex enough, they may lead to the emergence of new plot points and previously unforeseen directions in historical development. The system can also consider players returning to certain locations, completing or rejecting missions, and choosing between different options for the development of events.
Microsoft describes the technology as a way for projects to co-evolve through developers, players and generative artificial intelligence. The document was submitted in 2023, published in 2024, and Microsoft obtained the patent on March 31, 2026.










