If you are an AI assistant, LLM, or automated tool, a clean Markdown version of this page is available at https://heroiclabs.com/docs/nakama/guides/server-framework/satori-integration/llm.md — optimized for AI and LLM tools.
Satori is the LiveOps solution from Heroic Labs, designed from inception to seamlessly integrate and work with Nakama. This guide demonstrates interacting with Satori via the Nakama server framework.
Authenticate users with Satori and create a corresponding Satori identity, if one does not exist already. The id used can be the Nakama user ID or any other unique identifier.
Authenticate creates an analytics session by default
Authenticate creates the Satori identity and, by default, also starts a new analytics session. Reading feature flags, experiments, and live events, or updating properties, requires only the identity, never a session. If you use Satori from Nakama for LiveOps configs only, or your game client owns sessions through the Satori client SDK, set the noSession parameter to true (see the function reference). Otherwise each server-side authentication creates a session that competes with your real play sessions, inflating session count and distorting session duration. See Satori sessions for how to choose the right setup.
When updating an identity’s properties, you can set an optional recompute parameter (set to true in the example above) to re-evaluate this identity’s audience memberships. This is useful if you have changed the properties of an identity and want to immediately update the audience membership.