AI NPC Characters
Build intelligent non-player characters powered by large language models. Learn to create dynamic dialogue systems, behavior trees enhanced with AI, persistent memory, voice integration, and best practices for shipping AI-driven NPCs in production games.
Course Lessons
Follow the lessons in order or jump to any topic you need.
1. Introduction
The evolution of game NPCs, how LLMs change everything, architecture overview, and what you will build in this course.
2. Dialogue Systems
Build LLM-powered dialogue with context windows, persona prompts, guardrails, branching conversations, and emotional tone.
3. Behavior AI
Combine behavior trees with LLM reasoning. Create NPCs that plan, react to world state, and adapt to player actions.
4. Memory
Give NPCs persistent memory using vector databases, summarization chains, and episodic recall for long-term relationships.
5. Voice Integration
Add real-time text-to-speech and speech-to-text so players can talk to NPCs naturally with low-latency voice.
6. Best Practices
Latency budgets, content filtering, cost management, fallback systems, testing strategies, and shipping AI NPCs safely.
Lilly Tech Systems