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
- Enter the
nameof the prompt - Enter the
labelthat 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:
- A Langfuse account, either Langfuse Cloud or self-hosted.
- API credentials from your Langfuse project settings: hostname, public key, secret key
Development
Prerequisites
You need the following installed on your development machine:
- git
- Node.js and npm. Minimum version Node 20. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL here. For Windows users, refer to Microsoft's guide to Install NodeJS on Windows.
- Install n8n with:
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