DocsPrompt ManagementGet Started

Get Started with Prompt Management

This guide walks you through creating and using a prompt with Langfuse. If you’re looking to understand what prompt management is and why it matters, check out the Prompt Management Overview first. For details on how prompts are structured in Langfuse and how it works in the background, see Core Concepts.

Get API keys

  1. Create Langfuse account or self-host Langfuse.
  2. Create new API credentials in the project settings.

Set up your AI agent

Use the Langfuse Skill in your editor’s agent mode to automatically create, edit, and use prompts.

What is a Skill? A reusable instruction package for AI coding agents. It gives your agent Langfuse-specific workflows and best practices out of the box.

Install the Langfuse Skill in your coding tool:

Langfuse has a Cursor Plugin that includes the skill automatically.

Create a prompt

Start a new agent session, then prompt it to create your prompt:

"Create a prompt in Langfuse called 'movie-critic' that takes a movie name 
and critic level as variables."

Or prompt it to migrate your existing prompts to Langfuse:

"Migrate the hardcoded prompts in this codebase to Langfuse."

Use the prompt in your code

If you haven’t started a new agent session yet, start one and prompt it to integrate prompt fetching:

"Fetch the 'movie-critic' prompt, production version, from Langfuse 
and use it in my application."

Not seeing what you expected?

Next steps

Now that you’ve used your first prompt, there are a couple of things we recommend you do next to make the most of Langfuse Prompt Management:

Looking for something specific? Take a look under Features for guides on specific topics.

Was this page helpful?