Choose your integration pattern
Before writing code, decide how you want to manage prompts.Pattern 1: Freeplay manages your prompts (recommended)
Freeplay becomes the source of truth for your prompt templates. Your application fetches prompts from Freeplay either at runtime, or as part of your build process (or both). Benefits:- Non-engineers can iterate on prompts and swap models without code changes
- Deploy prompt updates like feature flags and/or as part of your build process
- Automatic versioning and environment promotion
- Detailed observability with each log connected directly to a specific version (prompt and model configuration)
You can configure your Freeplay client to retrieve prompts from the server at runtime, or “bundle” them as part of your build process (learn more about “prompt bundling”).Many Freeplay customers retrieve prompts at runtime in lower-level environments like dev or staging to get the benefit of fast server-side experimentation, then use prompt bundling in production for tighter release management and zero latency.
Pattern 2: Code manages your prompts
The source of truth for your prompts remains your codebase. You push prompt templates and model configurations to Freeplay to enable experimentation and organize your observability data. Benefits:- Prompts stay entirely in your code
- Use your existing code review process for prompt changes
- Full flexibility over prompt structure
Both patterns still require creating prompt templates in Freeplay. The difference is whether your application fetches prompt configurations from Freeplay (Pattern 1) or logs prompts defined in code (Pattern 2).
Get started
Step 1: Install the SDK
You can integrate directly with your code using one of Freeplay’s SDKs, or select from integrations with common frameworks outlined below.Step 2: Create a prompt template
Create your first prompt template in the UI. See Start in the UI for a walkthrough. Once you save a prompt, the Integration tab provides code snippets tailored to your template.
Step 3: Integrate
- Pattern 1: Freeplay-managed prompts
- Pattern 2: Code-managed prompts
Fetch prompts from Freeplay and log completions:
Framework integrations
If you’re using a common AI framework, Freeplay provides native integrations:LangGraph
Instrument LangGraph agents with Freeplay
Vercel AI SDK
Add observability to Vercel AI applications
Google ADK
Integrate with Google’s Agent Development Kit
OpenTelemetry
Use standard OTel tracing with Freeplay

