How to make a visual novel with AI
Also in: Español · Deutsch · Français · Português · Italiano · Nederlands · Svenska · Norsk · Bahasa Indonesia · Türkçe · Polski · Tiếng Việt · Русский · 日本語 · 한국어 · 繁體中文
To make a visual novel with AI, open Shiny Gen, start a new game on the Godot Engine, and describe the story in the Agent tab: the setting, the characters, the scenes, the choices and where they lead, the screen layout and the look. The AI agent writes the story and the code, draws the backgrounds and portraits as code, plays it and fixes what it finds. We did that for this guide. Five messages gave Seaside Sketchbook: a new student at a seaside art school searching for her lost sketchbook before the evening festival, three scenes from morning to sunset, three characters with portraits that change expression, typed-out dialogue with name tags, choices that decide who helps her, four endings, a backlog of every line you have read, and save and load at any point. It took about nine minutes of agent time and 166 gems.

The test: five messages, one visual novel
Everything below is from one real session on 29 November 2026, recorded in the Shiny Gen app. The prompts are copied word for word, the AI's messages are quoted from the chat, and the pictures are screenshots of the app. Nothing was edited by hand.
| Message | What we sent | Agent time | Gems |
|---|---|---|---|
| 1 | The story, with the layout and art asked for up front | 4 min 17 s | 10 |
| 2 | "continue" | 38 s | 30.7 |
| 3 | "continue" | 2 min 1 s | 52.6 |
| 4 | A backlog and save and load | 1 min 57 s | 52.8 |
| 5 | "continue" | 9 s | 20.4 |
Step by step: the visual novel we made
1. Start a Godot game
Press +, choose New, then pick Godot Engine on the Choose an engine screen. In a browser, this link opens a new Godot game directly. The Agent tab is where you talk to the AI.
2. Describe the story, the layout and the look
Our first prompt, exactly:

A visual novel is mostly writing, so the prompt gives the agent the premise and the cast and leaves the lines to it. It also names the layout ("a wide 16:9 landscape layout"): in an earlier try without that line, the agent laid the game out for a portrait phone screen, which looks cramped on a computer.
3. The first message: a story you can play
The agent wrote the story, drew the three scenes and the three portraits, and built the game. It then ran two automatic playthroughs to two different endings, and said which endings it had only forced:
It had made more than we asked: hearts for each helper, a clock that moves from morning to evening, and four endings rather than two, including a bad one if you give up.

4. "continue": a real playthrough with real key presses
The second message moved the heart counters so they no longer covered the choice buttons. The third played a route the way a reader would, with real key presses, choosing Ms. Rowe at school and following her lantern trail on the beach:


5. Ask for the next change
The fourth message:
The agent added LOG, SAVE and LOAD buttons above the text box and B, S and L keys. It saved at one line, jumped ahead, loaded and landed back on the saved line, and opened the backlog with a real tap. The last "continue" tapped SAVE and LOG to check them, and listed what it had not tapped: OLDER, NEWER, CLOSE and LOAD.

6. Play it and share it
The game plays in the editor right away: click, tap or press Space to advance, and pick a choice with a click or the arrow keys. Press Share to send a link anyone can open in a browser. Exporting the game as a web zip for itch.io or any web host is included with any purchase.
Things to try yourself: the Kai route and "Everyone Helps" by hand, scrolling the backlog, and loading from the LOAD button.
What we learned from the test
- Give the premise and the cast; the agent writes the lines. It wrote the whole script and added hearts, a clock and two extra endings.
- Name the layout. "Wide 16:9 landscape" fits a computer screen; leave it out and you may get a phone layout.
- Ask it to play a route by hand. Automatic playthroughs and forced endings are quick; the real key-press run is the one that proves a route.
- Read the "did not tap" list. It tells you exactly which buttons to try first.
What to put in a visual novel prompt
- The premise: who, where, and what they want.
- The cast: names, one line each, and the expressions you want.
- Scenes: where the story happens, and the time of day.
- Choices and endings: what the choices decide and how many endings.
- The screen: the layout, the portrait position, the text box and how text appears.
- Extras: backlog, save and load, auto-advance, skip.
- The look: the art style, and "draw it yourself as code". Shiny Gen also has built-in AI image generation, which spends gems; this test asked for art drawn as code instead.
Ideas to ask for next
- "Add a short intro animation where the school bell rings."
- "Let me name Mina at the start."
- "Add soft background music that changes in each scene."
- "Add a gallery of the endings I have unlocked."
- "Add an auto-advance button for reading without clicking."
FAQ
Can AI make a visual novel?
Yes. Describe the story, the cast and the choices, and Shiny Gen's agent writes the script and the code, draws the scenes and portraits, and tests the routes. This one took five messages, about nine minutes of agent time and 166 gems.
Do I need to write the story myself?
No. Give it a premise and a cast and the agent writes the lines; you can then ask it to change any scene, or edit the script yourself in the Code view, which costs nothing.
Can AI make a game like Doki Doki Literature Club or Phoenix Wright?
Yes, a game in the same genre: a visual novel with portraits, dialogue and choices, like the one on this page. Make it your own: your own story, characters and art, especially if you share or sell your game.
Does it work on phones?
Yes, the game runs in the app and in a phone's browser. This one is laid out wide, so it fits a phone held sideways best.
Is it free?
Making, playing and sharing games is free. The built-in agent uses gems, and new accounts get free gems. Exporting a game as a file is included with any purchase. See the pricing page.
