Saint Jerome in His Study, Jan van Eyck and workshop, about 1442: a scholar in a red cardinal's hat reads at his desk among books, an astrolabe and glass jars.
Undernet Chat: a chat screen styled after Undertale's in-game dialogue

Next.js · Claude API · Upstash Redis

Persona AI chatbot

Role
Solo: design, prompts & development
Year
2024
For
Personal project
10,244
user messages, mid-January to 19 March 2024

Undernet Chat is a persona AI app where you text characters from the game Undertale in the browser. I built it in January 2024, after Meta announced AI personas fronted by celebrities, to try the same idea with characters people already knew how to talk to. I designed it, wrote the character prompts and built it alone, as a free app with no budget behind it, and that shaped most of how it works.

Characters

Each of the ten characters is an entry in a registry: a name, a sprite and a personality prompt. Adding a character means adding one entry, and the contact list, the chat page and the server all pick it up. An earlier version had separate server code for each character, so every fix had to be made once per character. The prompts stay on the server where a visitor cannot read them, and a shared set of rules keeps every character in character, keeps replies short, and stops the app being used as a general assistant.

Each character also has its own page, so the app has ten pages a search engine can index. I did not plan that as SEO, but search is how people kept finding the app later.

No database

The app keeps no accounts and no chat history on the server. Conversations live in the visitor's own browser. The server receives the recent part of a conversation with each message and forgets it when the reply ends. I chose this over a database because it removed the two things a free app run by one person can least afford: a hosting bill that grows with use, and other people's private messages to look after. If the browser blocks storage, the chat still works and simply does not remember.

Keeping it cheap to run

The model call is the only real cost, so the limits sit around it: replies and history are capped, each visitor is rate limited, and the account has a fixed monthly budget. The app first ran on OpenAI's GPT-3.5 on free credit. When the credit ran out in mid-2024 the chat stopped working, and I let it lapse. In November 2026 I brought it back on Claude Haiku.

What happened

In its first day the app took more than 1,200 requests from 23 countries. Over the next two months people sent more than 10,000 messages, and the second month was bigger than the first, which came from Reddit posts and word of mouth.

While the chat was broken the site still drew about 140 visitors a month from search, and a few people wrote to ask for it back. After the revival the visitor count stayed about the same, but each visitor went from about 6 page views to about 20, because people were holding conversations again.

underchat.vercel.app ↗ (opens in a new tab)

Landscape with the Parable of the Sower, Pieter Bruegel the Elder, 1557: a sower works the hillside in the foreground below thatched farmhouses, and a crowd gathers by boats on the far bank of a wide blue river.

Working on something? I'd like to hear about it.

Get in touch