Integrate LoreMind into your game.
LoreMind is the AI backend that gives your NPCs lore-grounded dialogue, long-term memory, and situational awareness. Drop in the Unity SDK or call the REST API from your game server.
One component. One call.
The Unity SDK is the fastest path. Not on Unity? Every feature is one REST call from your game server: Unreal, Godot, or anything else.
// Player talks to an NPC, call from YOUR server
POST /api/loremind/v1/npc/interact
Authorization: Bearer sk_server_•••
{
"entityMindId": "gruff_the_barkeep",
"playerId": "player_8f3a",
"text": "Who really runs the silver mines?",
"context": { "location": "tavern", "npcMood": "wary" },
"memory": { "retrieve": true }
}
→ 200 OK
{
"success": true,
"character": "Gruff the Barkeep",
"response": "The Ashfords hold the deed, aye.
But it's the watch that takes their cut."
}Unity SDK
RECOMMENDEDAdd the LoreMindNPC component to any GameObject. The SDK handles conversation history, scene context, proximity sensing, location zones, and memory. Optional voice input via Whisper.
REST API
ANY ENGINECall /npc/interact from your game server. Your server authenticates players and forwards requests. Lore grounding, memory, context, and conversation history all work through the API.
Everything, through one integration.
Core capabilities available through both the Unity SDK and the REST API.
Conversation History
Tracked and sent with every request, with smart trimming at memory checkpoints so context never overflows.
Context Awareness
Pass live state from your game: location, time, weather, player state, and nearby characters all shape the reply.
Long-Term Memory
NPCs remember who the player is and what they have discussed, scoped per player and carried across sessions.
Voice Support
The Unity SDK supports voice input via Whisper and voice output via Kokoro, both running locally on the player's device.
Ready to integrate?
Download the Unity SDK or explore the server integration guide. Your players could be talking to intelligent characters today.