This is an n8n community node. It lets you use Langfuse in your n8n workflows.
Langfuse is an open-source LLM engineering platform that provides observability, metrics, evaluations, prompt management and a playground.
n8n is a fair-code licensed workflow automation platform.
Installation
Operations
Credentials
Development
Resources
Follow the installation guide in the n8n community nodes documentation.
npm install @langfuse/n8n-nodes-langfuse
This node can be used to get a prompt from Langfuse Prompt Management.
Steps
- Enter the
name
of the prompt - 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:
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
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
- Recommended: follow n8n's guide to set up your development environment.
npm run build
npm link
cd ~/.n8n/custom
npm link n8n-nodes-langfuse