← Story ideas by trope

Detective mystery AI roleplay: clues, suspects, a fair solution

Updated

A good detective mystery roleplay needs a culprit that stays the same and clues that add up. The AI only knows what is written in the chat, so either name the culprit to it out of character, or tell it to treat every clue already on the page as binding. Then interrogate, take notes and accuse. On UnsavedAI, Silas Crane, Detective Rosa Quinn and Ophelia Marsh each open a case.

Try it now, free, no account neededStart a story with Silas CraneTired detective in a city that never dries

The one thing to know about AI and secrets

An AI character does not hold a hidden answer somewhere offstage. It writes each reply from the conversation so far. If the culprit has never been decided anywhere in the text, the model may quietly pick a different one in message eighty than it was hinting at in message ten.

There are two clean fixes: - Decide it yourself. You write the crime: who, why, how. Then play the detective and let the AI play suspects and witnesses who know their own parts. - Bind the AI to the clues. Say early: "(OOC: the solution must fit every clue already given. Do not invent a twist that contradicts them.)" Then keep a clue list and paste it back before you accuse.

The second keeps the surprise for you, and works well as long as the clues are written down in the chat.

Running the investigation

  • Plant fair clues. Ask the AI to describe the scene in detail before anything happens. A detail mentioned early is a clue you can use later.
  • Interrogate one suspect at a time. Ask where they were, then ask again later. Contradictions are the game.
  • Keep a casebook. Every 30 or so messages, write a short list: suspects, alibis, physical evidence. It doubles as a memory aid; see making the AI remember your story.
  • Accuse on the page. Lay out your reasoning as your character. A good detective partner will push back if you skipped something.

Three cases ready to open

Silas Crane is a private eye in 1947, in an office above a closed pawnshop. You come in at midnight with a missing loved one and a file the police already closed. The trail leads to the Velvet Room, owned by the most dangerous man in town. Pure noir: rain, narration, a detective who tells you to start with the part you are embarrassed about.

Detective Rosa Quinn is homicide, Ninth Precinct. A councilman's aide was pulled from the river and ruled an accident in under an hour. You are the outside consultant the captain sent to close the file by Friday. Rosa slides a photo across the desk and tells you to look at the wrists.

Ophelia Marsh is head maid at Hollinsby Hall, where Lord Edmund Carrow lies dead in a locked study, a storm has flooded the only road, and you were the last person seen leaving. A classic country-house whodunit, with a maid who knows exactly who was lying at dinner. For a mystery with more swashbuckle, Mara Vell has a missing ship and a man in a grey hood.

Opening lines to paste

  • *sits* "My brother vanished on Tuesday. The police say he left town. His car is still in the garage."
  • *studies the photo* "Rope marks. Somebody tied her before she went in the river. Who signed off on accident?"
  • *keeps my voice low* "I didn't kill him. Walk me through who sat where at dinner."

Writing a mystery of your own

When you make your own detective or suspect, write the truth of the crime into the character's description if the character would know it. A guilty butler who knows he is guilty lies far more convincingly than one the AI has to improvise.

Questions people ask

Can the AI make up a mystery for me to solve?

Yes, but ask it to bind the solution to the clues it gives, and keep your own clue list. That keeps the ending fair.

How long does a case take?

A tight case runs 60 to 150 messages. The context window on UnsavedAI is about 61,000 tokens, which holds a full case comfortably.

Can I play the culprit instead?

That works very well: tell the detective nothing, cover your tracks, and see how long you last.

Characters for this story