n8n Node - Langfuse

n8n Node for Langfuse Prompt Management

The Langfuse n8n node enables seamless integration of Langfuse's Prompt Management with n8n workflows. This community-maintained node allows you to fetch and use prompts directly from your Langfuse project within n8n workflows.

What is n8n? n8n is an open‑source, node‑based workflow automation platform that lets you visually connect and orchestrate APIs, apps, and data without writing full code.

Langfuse Node in example n8n workflow:

Installation

Self-hosted n8n

Install via Settings > Community Nodes using package name: @langfuse/n8n-nodes-langfuse

n8n Cloud

Use the node directly in your workflows by searching for Langfuse.

Operations

Get Prompt

This node can be used to get a prompt from Langfuse Prompt Management.

Steps

  1. Enter the name of the prompt
  2. Enter the label that identifies the prompt version that you want to fetch. Defaults to "production". Learn more about prompt labels in Langfuse here.

Example workflow that retrieves the system prompt for the agent from Langfuse:

Credentials

To use this node, you need to authenticate with Langfuse. You'll need:

  1. A Langfuse account, either Langfuse Cloud or self-hosted.
  2. API credentials from your Langfuse project settings: hostname, public key, secret key

Development

Prerequisites

You need the following installed on your development machine:

npm install n8n -g

Build new version

npm run build
npm link

Test in local n8n

cd ~/.n8n/custom
npm link n8n-nodes-langfuse

Resources

License

MIT
Source: langfuse/n8n-nodes-langfuse