Project

NPC AI Chatbot

Dialogue-driven NPC prototype combining behaviour trees with text generation.

Unity C# Behaviour Trees Scriptable Objects
GitHub
NPC AI Chatbot preview

Code

NPC AI Chatbot code

Overview

Solo project and my first substantial work using Python. A local NPC chat system where behaviour-driven decision logic determines when an NPC speaks while a local text layer generates responses. The project is designed to run fully offline (no paid APIs) and can be installed on a personal computer. The focus was on learning AI logic and enabling local execution rather than building polished art assets.

Features

  • • Behaviour-tree driven decision making for when to speak or stay silent.
  • • Blackboard-style memory system for tracking player context and world state.
  • • Pluggable dialogue modules for different NPC archetypes.
  • • Simple debug UI to visualise the active branch in the behaviour tree.