Solo Dev · UE5 Plugin · OpenAI API

LLM NPC
Plugin.

A UE5 plugin integrating GPT-driven NPC dialogue with tunable personality profiles and behavioral data assets. NPCs respond dynamically to player input via the OpenAI API — with per-character personality, traits, edge cases, and context windows defined entirely in data assets, keeping all configuration out of code and in the hands of designers.

// primary C++ Unreal Engine 5
// systems & tools OpenAI API Plugin Arch Data Assets HTTP Plugin Blueprint NPC Design
// project.info
type UE5 Plugin
engine Unreal 5
api OpenAI GPT
status In Dev
source GitHub

01
Personality Data Assets
Each NPC's personality is defined in a UE5 Data Asset — main description, supporting details, named traits with intensity values, forbidden topics, conditional edge cases, and default responses. Designers configure full NPC behavior without touching a line of code.
02
GPT API Integration
Async HTTP requests to the OpenAI API built on UE5's HTTP Plugin. The data asset is packaged into a readable JSON payload, sent to GPT, and the streamed response is parsed and output back into the game at runtime.
03
Context Window Management
Previous conversation context is passed alongside the current input and data asset on every request — giving NPCs persistent memory across a dialogue session while staying within API token limits.
04
Blueprint-Accessible Interface
The full plugin interface is exposed to Blueprint — designers can trigger dialogue, pass player input, and handle NPC responses without writing C++. Drop in, configure a data asset, and go.
LLM NPC Plugin — live in-game dialogue with GPT-generated response
LLM NPC Plugin — personality data asset configuration
LLM NPC Plugin — dialog config dev flow diagram