Foregamer

01

The project

Foregamer is replacing scripted NPCs with characters that reason, adapt, and remember. Built on a RAG architecture with a custom knowledge layer, their NPCs hold context-aware conversations grounded in the game's world - responding to player choices, recalling past interactions, and staying in character without a predefined script.

We integrated Foregamer's AI backend into the live game BattleRise in 3 months. Alongside the integration, we built a marketing page and a developer panel that gives game studios full control over every NPC - personality, mood, world knowledge, interaction boundaries, and content validators.

Customer

Foregamer

Service

Product design

Website development

Quality Assurance

Backend and API’s

Technology

AI

Python

React

Next.js

Node

MongoDB

GraphQL

3 months

API integrated into live game BattleRise

Ms-level

Lore retrieval via custom RAG

2–3s

Average NPC response, optimised from ~9s at launch

02

Landing page

We built a landing page positioned at the intersection of AI and gaming - targeting game developers and investors. Vibrant colours, dynamic animations, and a clear articulation of what Foregamer changes: no more scripting dialogue line by line, no more NPC conversations that hit a wall.

The two audiences - developers and investors - needed different things from the same page. Developers needed to understand the system: how NPC control works, what the pipeline looks like, why it's technically credible. Investors needed to see the market opportunity: why scripted NPCs are a problem worth solving, and why Foregamer's approach wins. The design and copy had to do both jobs simultaneously, without the page feeling split or unfocused.

project view
landing page view
03

The tool

The core product is a developer panel that puts full control over NPC behaviour in the hands of the people building the game. Developers configure personality, mood, and interaction style per character. They feed in world lore, personal history, and knowledge boundaries. They set validators that keep NPCs in role regardless of what a player throws at them.

The panel connects to Foregamer's AI pipeline - built on LangChain with a custom RAG layer that retrieves matching lore data in milliseconds. NPC response latency at integration was around 9 seconds. Through pipeline iteration it now runs at 2–3 seconds under full validator load.

project view

Duration:

Oct 24’ - now

Team:

10

members

Unscripted adventures

Traditional NPC dialogue has a hard ceiling: the length of the script. Foregamer removes it. NPCs don't select from a list of responses - they reason from context, draw on what they know about the world, and adapt in real time to what's happening in the session.

We wired this into BattleRise - a live game - which meant the technology had to work under real conditions, not a demo. Every NPC stays true to its identity, recalls what happened in previous sessions, and reacts meaningfully to player choices. No two conversations are the same. Players can actively influence the story as it unfolds - reacting to choices, forming relationships, and experiencing a version of the world no other player will see in quite the same way.

project view
project view
project view

Designing immersive dialogues

The knowledge layer is where the system gets its depth. Writers provide a foundational script - just the starting point. Foregamer's pipeline runs semantic analysis on it, extracts structured knowledge, and builds it into a knowledge graph that maps the game's world, lore, and character narratives. That graph is queryable in real time. Our custom RAG implementation retrieves the right lore data in milliseconds, so NPCs can reference the game world accurately without slowing the response.

On top of that sits a memory system that summarises past interactions, keeping context coherent across long sessions without ballooning the context window. Developers can inspect, edit, and extend all of it - the world knowledge, the character history, the validator rules - directly from the panel. The narrative is shaped by writers and developers, but it evolves as NPCs think, adapt, and respond to what players actually do.

Want to light up your ideas with us?

Kickstart your new project with us in just 1 step!

Prefer to call or write a traditional e-mail?

Dev and Deliver

sp. z o.o. sp. k.

Address

Józefitów 8

30-039 Cracow, Poland

VAT EU

PL9452214307

Regon

368739409

KRS

94552994