AI Tools for Writing Video Game NPC Dialogue

AI tools for writing video game NPC dialogue range from writer-led story engines to free-form talking characters. Compare Convai, Inworld, Charisma and more.

By Galactic News Editorial · Published 2026-11-24T07:55:07+00:00 · Updated 2026-11-24T07:55:07+00:00

AI tools video game NPC dialogue: talking characters for games

AI Tools for Writing Video Game NPC Dialogue

Scripted dialogue trees break the moment a player asks something unexpected. AI tools for writing video game NPC dialogue let characters answer in their own voice, remember past conversations, and stay in character. This guide compares the leading tools, explains the two main approaches, and shows a workflow for writing dialogue that ships.

What AI tools for writing video game NPC dialogue do

A talking NPC is three parts in a loop. Something hears the player, typed text or speech to text. A language model writes a reply in character. Text to speech says it out loud. NPC dialogue tools package some or all of that loop. Some focus on the writing. Others focus on the voice and the runtime.

Two approaches dominate. Writer-led tools keep you in control of the story beats. The AI writes dialogue inside the structure you define. Emergent tools let the NPC improvise freely from a character sheet. Each fits a different kind of game.

AI tools video game NPC dialogue compared

ToolApproachFree planPaid starting pointEngines
ConvaiEmergent NPCs, voice and memory100 interactions a month$29/month Indie DevUnity, Unreal 5, Web
Inworld AIVoice APIs and character runtimePay as you go, up to 70 minutes of voice free$25/month CreatorAPIs, Unity and Unreal templates
Charisma.aiWriter-led branching narrativeNo free plan listed$5 per 50,000 creditsUnity, Unreal, JavaScript, Python
ElevenLabsVoice only10,000 credits a month$6/month StarterAPI, any engine via your server
Ollama + PiperDIY local model and voiceFree and open sourceFreeAny engine that can make HTTP requests

Plan limits and prices come from each company's own pricing page, checked in October 2026. Free allowances are small. Convai's free plan allows only one monthly active end user, so it is for testing, not shipping. Confirm current pricing on the official site before you commit.

Convai: fastest in Unity and Unreal

Convai is the quickest route to a talking NPC in Unity or Unreal Engine 5. Its plugins install through the package manager or asset store, and the docs walk you through adding a chat interface and lip sync. The free plan gives 100 interactions a month, with only 50 on flagship language models. It includes character creation tools and server-based animation.

The catch is shipping. One monthly active end user means only you can play. Indie Dev costs $29 a month for 3,000 interactions and 75 users, and adds long-term memory. Professional costs $99 a month with 10,000 interactions and 250 users. Convai also warns never to ship an API key inside a game build. Use its Auth Token mode so the key stays on your server.

Inworld AI: voice APIs with a commercial free tier

Inworld changed direction in 2026. Its legacy Character Studio was retired. You now build characters with its Agent Runtime and character templates for Unity, Unreal, and Node.js. What is clearly live is the API platform: text to speech, speech to text, a realtime voice API, and language model access through one API.

The On-Demand plan starts at $0, pay as you go. It includes up to 70 minutes of text to speech or 400 minutes of speech to text free, 100 custom voices, voice cloning, and access to more than 100 language models. A commercial license is included on On-Demand. That makes it the strongest free option for a game you plan to sell, if you are comfortable writing the NPC logic yourself.

Charisma.ai: story first, writer led

Charisma is built around writing. You lay out story beats in its editor and use generated dialogue inside them. Writers define narrative beats, and the AI adapts responses to player input in real time. Characters carry emotion and memory settings. This gives you far more authorial control than a fully improvising NPC.

There is no free plan listed. Pro is pay as you go at $5 per 50,000 credits, which Charisma says is about 200 experience minutes. It includes speech to text, a voice library, custom voices, and generated dialogue. Its Plug and Play SDKs cover Unity and Unreal, with JavaScript and Python SDKs on GitHub. Pick Charisma when the story matters more than free-form chat.

Voices and the DIY route

ElevenLabs is the voice specialist. Its free plan gives 10,000 credits a month, and text to speech uses about one credit per character. The commercial license starts on Starter at $6 a month. It works with any engine through your own server.

The DIY route is the most flexible path and the only one that works the same in every engine, including Godot. Run a local model with Ollama, which is free and open source under the MIT license. Its REST API listens on your own computer, so your game sends a normal HTTP request. Pair it with Piper, a fast local neural voice engine, for speech. Each model and voice has its own license, so check before you ship. Players would also need to run the local setup, which limits DIY to prototypes and PC releases.

A workflow for writing NPC dialogue that ships

  1. Design the NPC before you pick a tool. Write a short character sheet: name, job, personality, speech style, what they know, and what they must never do.
  2. Start with one NPC and one job. A shopkeeper who chats but always ends with your scripted sell menu is a great first project.
  3. Write the guardrails first. The NPC must never break character, talk about the real world, give spoilers, or say anything outside your game's rating.
  4. Prototype with short replies. Ask for one or two short sentences per reply. Shorter text is faster to generate and faster to speak.
  5. Hide the wait. Stream text into the dialogue box as it arrives. Play a filler line or a thinking animation right away.
  6. Test the failure cases. Ask the NPC rude questions, off-topic questions, and trick questions. Fix the guardrails before players find the gaps.
  7. Plan the cost. Every line costs money once you leave the free tier. Set a spending limit or a daily cap per player on your server.

Costs, keys, and store rules

Two mistakes burn beginners. First, never put an API key in the game. Anything shipped to users can be inspected, and anyone with your key can run up your bill. Put the key on a small server you control. Second, every conversation is a paid API call once free allowances run out. Build the cost into your plan early.

Steam has rules too. If your game connects to a live-generated AI service with ongoing costs, you must disclose it in the content survey. You manage player access and collect payment through a Steam-supported method. Valve's examples include building the cost into the game price, selling interactions as microtransactions, or selling a DLC that unlocks unlimited interactions.

Bottom line

Use Convai if you want the fastest working NPC in Unity or Unreal. Use Inworld if you want voice APIs with a commercial license on a free starting tier. Use Charisma if the writing and the story beats matter most. Use ElevenLabs when you only need voices for lines you already wrote. Build DIY with a local model when you want full control and zero API bills during prototyping. Whatever you pick, design the character and the guardrails before you write a line of code.