Talk to this self-learning AI chatbot one player built entirely inside of Minecraft

Another day and we're one step closer to the Minecraft singularity thanks to players building everything from Atari emulators to working cellphones. And now, thanks to the efforts of builder Onnowhere, Minecraft has its own self-learning chatbot. Forget playing with friends, AlbertAI is a chatty little AI you can talk to using a keyboard interface and learns to talk the more you do.

"I've always been interested in artificial intelligence, so naturally I really wanted to make one," Onnowhere tells me. He'd been messing around in Python and Java, but was drawn to the challenge of building an AI inside of Minecraft. While the room in which you chat with Albert seems clean and simple, it really masks a massive physical computer that determines how he'll respond to your dialogue.

The secret to this is Minecraft's command blocks that dramatically expanded the potential for engineering and programming inside of Minecraft. With these blocks, players can execute simple console commands, which is what allows Albert's responses appear in the chat window like any normal player. More impressive, however, is how Albert knows what to say.

The algorithm is complicated, but it relies on finding the frequencies of letters used in your messages as well as length and the total difference between letters to determine what the response should be. So if you say 'Hello' to Albert, he'll scan his memory bank of responses for ones that closely match that syntax, and then respond. What's impressive is that the more you speak to him the larger that memory bank grows and the more responses he develops.
 

These massive towers contain all of Albert's responses.
Best of Minecraft

Minecraf 1.18 key art

(Image credit: Mojang)

Minecraft update: What's new?
Minecraft skins: New looks
Minecraft mods:  Beyond vanilla
Minecraft shaders: Spotlight
Minecraft seeds: Fresh new worlds
Minecraft texture packs: Pixelated
Minecraft servers: Online worlds
Minecraft commands: All cheats

"When I began making my first chatbot in Python for fun, I made it a goal of mine not to have it 'preset' with responses, because if it's just responding to things with stuff the creator has already determined, I feel it won't be as genuine," Onnowhere says. "Users would probably see a pattern and it would cut off from the uniqueness of the idea. Cleverbot was a big inspiration for the method I came up with, because it learns by talking with users rather than using premade chats."

That kind of programming already seems complex, but it becomes almost mind-boggling when it has to be done within a physical Minecraft world. For example, text input is stored in wool and clay blocks that are broken down to 'interpret' the value of each letter in your sentences. "There is an odd satisfaction one can get out of creating something despite limits," Onnowhere says.

AlbertAI has been his pet project for almost a year, and while he had the basic concepts nailed down from previous chatbots he made in Java and Python, implementing them in Minecraft wasn't easy. It only took him a day to build the basic foundation to calculate Albert's responses, but he tells me that he quickly ran into hurdles. "I had a major issue with lag due to a method I was using to calculate things, and it took quite some time before I came to a solution that could fix it," he says. "I'm glad it finally worked out though, as I almost didn't release it due to how slow it ran."

This is hardly Onnowhere's most impressive project either. He's also well known for recreating Redstonia, a city from Telltale's Minecraft: Story Mode, inside of vanilla Minecraft. So he's ported a Minecraft city from a non-Minecraft game back into Minecraft. If you're interested in seeing if AlbertAI passes the Turing Test, you can download it here, and check out Onnowhere's YouTube channel for more on his other Minecraft projects. 

Steven Messner

With over 7 years of experience with in-depth feature reporting, Steven's mission is to chronicle the fascinating ways that games intersect our lives. Whether it's colossal in-game wars in an MMO, or long-haul truckers who turn to games to protect them from the loneliness of the open road, Steven tries to unearth PC gaming's greatest untold stories. His love of PC gaming started extremely early. Without money to spend, he spent an entire day watching the progress bar on a 25mb download of the Heroes of Might and Magic 2 demo that he then played for at least a hundred hours. It was a good demo.

Latest in Survival & Crafting
Two airships fire broadsides into each other's hull in Echoes of Elysium.
In this airship-building survival game, I faced an enemy worth punching trees over: 'The hubris of man'
Lost Rift screenshot
After suspending development in 2024, People Can Fly brings Project Victoria back to life as survival-extraction shooter Lost Rift
A man examines the implant in his beefy arm
New Ark DLC gets AI-generated trailer so awful that the original developer's washing its hands of the whole thing, and fans are in uproar: 'This is disgusting and you should be ashamed'
Palworld early access
Palworld's Crossplay Update does far more than let you play with console buddies, adding photo mode, a drafting table and 'dimensional Pal Storage'
Three sheep with big guns in Palworld.
It was 'super popular to hate Palworld' after launch, says community manager: 'A lot of companies might crumble under the threats, under the pressure'
Palworld Ancient Civilization Parts - Grizzbolt with a minigun
'It was a very depressing day': Palworld community manager reveals studio's reaction to Nintendo lawsuit
Latest in Features
Fragpunk
Somebody finally figured out casual Counter-Strike
Dean Hall at GDC 2025.
Outer space inspired DayZ's Dean Hall to become a modder and game developer, and now he's making a Kerbal successor called Kitten Space Agency
An image of a corpse with the text "You've been re-educated."
I played the lost videogame sequel to 1984, and came away more nostalgic than ever for gaming's awkward adolescence in 1999
Bears in Space
I downloaded this bear-obsessed comedy FPS to kill time before Doom: The Dark Ages and discovered the most underrated shooter on Steam
Fallout 76 ghoul screenshots
Getting to level 50 in Fallout 76 to become a ghoul actually isn't as daunting as it seems, which is why I created a new character
A man turns away from an open window while monsters gather in the dark
Look Outside is a survival horror RPG where you absolutely should not look outside