Skip to Content
Loremind Platform APIOverview

Overview

AI-powered NPC intelligence for games. Give your NPCs real knowledge, personalities, and dynamic conversations.

What Is LoreMind?

LoreMind is a platform that brings your game’s NPCs to life. Instead of scripted dialogue trees, NPCs can:

  • Have real conversations - Players ask anything, NPCs respond naturally
  • Know your world - Upload your lore, NPCs reference it automatically
  • Remember players - Long-term memory across play sessions
  • Stay in character - Consistent personalities and speaking styles

How It Works

1. Upload Your Lore

Upload your game’s world knowledge as Lore Documents:

  • Locations and their descriptions
  • History and events
  • Factions and politics
  • Items, creatures, legends

2. Create NPC Personalities

Create Entity Minds from your lore. LoreMind generates complete personalities:

Name: Kaelen Oakhaven Role: Artist and Woodcarver Personality: A pragmatic and observant individual who finds inspiration in the quiet beauty of the valley.

Or create manually for full control over every detail.

3. Connect Your Game

Use a game engine SDK or call the REST API from your backend:

var npc = GetComponent<LoreMindNPC>(); var response = await npc.RespondAsync("What do you know about the dragon?"); // "The dragon? Aye, I've heard the rumors. Spotted near the old watchtower..."

4. NPCs Respond Intelligently

When players talk to NPCs, LoreMind:

  • Retrieves relevant lore
  • Applies the NPC’s personality
  • Generates contextually appropriate responses
  • Optionally stores/retrieves memories

Platform Components

Dashboard

Web interface at loremind.peekgames.dev :

SectionPurpose
Lore Documents Upload and organize world knowledge
Entity Minds Create and configure NPC personalities
Playground Test NPC responses in browser
Projects Manage projects and API keys
Billing Purchase credits, view usage

API

REST API for server integration. Your backend calls LoreMind to generate NPC responses.

Game Engine SDKs

Client-side SDKs for game engines. Handle NPC interactions, context, voice input/output. Currently available for Unity, with Unreal and Godot coming soon.

Key Features

Intelligence

AI-powered NPC responses with game-specific knowledge. Upload your lore, configure NPC personalities, and LoreMind handles the AI complexity.

Long-Term Memory

NPCs remember players across sessions. A blacksmith recalls that you helped defend their shop, a merchant remembers your past purchases, a guard recognizes a returning troublemaker.

Context Awareness

Pass situational context (location, time, weather, nearby characters) and NPCs respond appropriately:

{ "location": "Blacksmith Shop", "timeOfDay": "evening", "weather": "stormy" }

Credit System

Usage-based billing with no subscriptions:

  • Pay for what you use
  • Credits never expire
  • Real-time cost tracking

Architecture

In production, your backend sits between your game and LoreMind:

┌─────────────────────────────────────┐ │ Your Game │ │ ┌──────────┐ ┌──────────────┐ │ │ │ Game │───►│ Your │ │ │ │ Client │◄───│ Backend │ │ │ └──────────┘ └──────┬───────┘ │ └─────────────────────────┼───────────┘ ┌────────────────┐ │ LoreMind API │ └────────────────┘

Your backend:

  1. Authenticates players through your systems
  2. Stores the LoreMind API key securely
  3. Adds playerId to requests (enables memory)
  4. Forwards NPC requests to LoreMind
  5. Returns responses to clients

Editor Testing: During development, game engine SDKs can call LoreMind directly using a Server API Key stored locally.

Getting Started

New to LoreMind?

  1. Quick Start - Upload lore, create an NPC, test it
  2. Lore Documents - Organize your world knowledge
  3. Entity Minds - Craft compelling NPC personalities
  4. Playground - Test and iterate on NPCs

Ready to Build?

  1. Unity SDK - Add NPCs to your Unity project
  2. Server Integration - Set up production backend
  3. API Reference - Full API documentation

Going Deeper

Last updated on