AutomationMart
Home/Browse/LLM usage tracker & cost monitor with node-level analytics (v2)
n8n

LLM usage tracker & cost monitor with node-level analytics (v2)

n8nn8n12 modulesv1.0
OpenAI

LLM Cost Monitor & Usage Tracker for n8n > v2: Now it can read multiple types of LLM usages. Better dynamic approach for reading model usage. 🎯 What This Workflow Does This workflow provides comprehensive monitoring and cost tracking for all LLM/AI agent usage across your n8n workflows. It extracts detailed token usage data from any workflow execution and calculates precise costs based on current model pricing. The Problem It Solves When running LLM nodes in n8n workflows, the token usage a

At a glance

LLM usage tracker & cost monitor with node-level analytics (v2) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
OpenAI
Modules
12
Price
Free
Version
v1.0
LLM usage tracker & cost monitor with node-level analytics (v2) workflow diagram

About this workflow

LLM Cost Monitor & Usage Tracker for n8n > v2: Now it can read multiple types of LLM usages. Better dynamic approach for reading model usage. 🎯 What This Workflow Does This workflow provides comprehensive monitoring and cost tracking for all LLM/AI agent usage across your n8n workflows. It extracts detailed token usage data from any workflow execution and calculates precise costs based on current model pricing. The Problem It Solves When running LLM nodes in n8n workflows, the token usage and intermediate data are not directly accessible within the same workflow. This monitoring workflow bridges that gap by: - Retrieving execution data using the execution ID - Extracting all LLM usage from any nested structure - Calculating costs with customizable pricing - Providing detailed analytics per node and model - WARNING: it works after the full execution of the workflow (i.e. you can't get this data before completion of all tasks in the workflow) ⚙️ Setup Instructions Prerequisites 1. Experience Required: Basic familiarity with n8n LLM nodes and AI agents 2. Agent Configuration: In your monitored workflows, go to agent settings and enable "Return Intermediate Steps" 3. For getting execution data, you need to set upthe n8n API in your instance (also available onthe free version) Installation Steps 1. Import this monitoring workflow into your n8n instance 2. Go to Settings >> select n8n API from left bar >> define an API. Now you can add this as the credential for your "Get an Execution" node 3. Configure your model name mappings in the "Standardize Names" node 4. Update model pricing in the "Model Prices" node (prices per 1M tokens) 5. To monitor a workflow: - Add an "Execute Workflow" node at the end of your target workflow - Select this monitoring workflow - Important: Turn OFF "Wait For Sub-Workflow Completion" - Pass the execution ID as input 🔧 Customization When You See Errors If the workflow enters the error path, it means an undefined model was detected. Simply: 1. Add the model name to the standardizenamesdic 2. Add its pricing to the modelpricedic 3. Re-run the workflow Configurable Elements - Model Name Mapping: Standardize different model name variations (e.g., "gpt-4-0613" → "gpt-4") - Pricing Dictionary: Set costs per million tokens for input/output - Extraction Depth: Captures tokens from any nesting level automatically 📊 Output Data Per LLM Call - Cost Breakdown: Prompt, completion, and total costs in USD - Token Metrics: Prompt tokens, completion tokens, total tokens - Performance: Execution time, start time, finish reason - Content Preview: First 100 chars of input/output for debugging - Model Parameters: Temperature, max tokens, timeout, retry count - Execution Context: Workflow name, node name, execution status - Flow Tracking: Previous nodes chain Summary Statistics - Total executions and costs - Breakdown by model type - Breakdown by node - Average cost per call - Total execution time ✨ Key Benefits - No External Dependencies: Everything runs within n8n - Universal Compatibility: Works with any workflow structure - Automatic Detection: Finds LLM usage regardless of nesting - Real-time Monitoring: Track costs as workflows execute - Debugging Support: Preview actual prompts and responses - Scalable: Handles multiple models and complex workflows 📝 Example Use Cases - Cost Optimization: Identify expensive nodes and optimize prompts - Usage Analytics: Track token consumption across teams/projects - Budget Monitoring: Set alerts based on cost thresholds - Performance Analysis: Find slow-running LLM calls - Debugging: Review actual inputs/outputs without logs - Compliance: Audit AI usage across your organization 🚀 Quick Start 1. Import workflow 2. Update model prices (if needed) 3. Add monitoring to any workflow with the Execute Workflow node 4. View detailed cost breakdowns instantly --- Note: Prices are configured per million tokens. Default includes GPT-4, GPT-3.5, Claude, and other popular models. Add custom models as needed.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Create Facebook ads copy with Google Sheets and ChatGPT: PAS formula

Master Facebook Ads copy creation using Google Sheets and ChatGPT by applying the effective Pain, Agitate, Solution (PAS) copywriting formula. Optimize your ad results while simplifying your social media marketing approach.

Free

AI real estate agent: end-to-end ops automation (web, data, voice)

This suite automates distinct aspects of real estate operations: incoming web lead qualification, scheduled/manual data research and content generation, and automated voice call outreach with lead qualification. It leverages AI (primarily OpenAI GPT-4o Mini via Langchain), data processing nodes, and integrations with external APIs and Google Workspace. Workflow 1: Incoming Web Lead Qualification & Scoring This workflow captures leads from a web source, validates their input, uses AI to cl

Free

Query-to-action automation with Bright Data MCP & OpenAI GPT

AI Agent Template with Bright Data MCP Tool Integration This template obtains all the possible tools from Bright Data MCP, process this through chatbot, then run any tool based on the user's query --- ❓ Problem It Solves The problem that the MCP solves is the complexity and difficulty of traditional automation, where users need to have specific knowledge of APIs or interfaces to trigger backend processes. By allowing interaction through natural language, automatically classifying and routing que

Free

Create email drafts using ChatGPT for new incoming emails

Automatically draft email responses for new incoming emails using ChatGPT. Triggered by new emails, drafts are created in your email app.

Free

YouTube video to AI-powered auto blogging and affiliate automation

YouTube to WordPress AI-Powered Automation Transform your YouTube content into professional blog posts automatically! This n8n template seamlessly converts your YouTube videos into fully-formatted, SEO-optimized WordPress blog posts using AI-powered content generation—all without lifting a finger. --- 🎯 What This Automation Does - 📺 Monitors your YouTube channel for new video uploads - 🔍 Extracts key video information (title, description, URL, thumbnail) - 🤖 Leverages AI to generate comprehensi

Free

Clone LinkedIn writing styles with AI analysis & prompt generation to Airtable

Boost Your Content Speed & Grow Authority in Your LinkedIn Space Are you tired of spending HOURS crafting the perfect LinkedIn posts? This revolutionary n8n workflow is changing the game for content creators, marketing agencies, and business leaders worldwide. WHAT MAKES THIS TOOL A GAME-CHANGER The LinkedIn Style Extractor & Prompt Generator uses cutting-edge AI technology to analyze ANY LinkedIn profile, extract their unique writing fingerprint, and create custom AI prompts that perfectly re

Free

Voice AI chatbot with OpenAI, RAG (Qdrant) & Guardrails for WordPress

This workflow implements a complete Voice AI Chatbot system for Wordress that integrates speech recognition, guardrails for safety, retrieval-augmented generation (RAG), Qdrant vector search, and audio responses. It is designed to be connected to a WordPress Voicebot AI plugin through a webhook endpoint. --- Key Advantages ✅ Complete Voice AI Pipeline The workflow handles: audio input STT intelligent processing TTS output All within a single automated pro

Free

Amplify social media presence with O3 and GPT-4 multi-agent team

Amplify Social Media Presence with O3 and GPT-4 Multi-Agent Team 🌍 Overview This n8n workflow acts like a virtual social media department. A Social Media Director Agent coordinates multiple specialized AI agents (Instagram, Twitter/X, Facebook, TikTok, YouTube, and Analytics). Each agent creates or analyzes content for its platform, powered by OpenAI models. The result? A fully automated, cross-platform social media strategy—from content creation to performance tracking. --- 🟢 Section 1: Trigger

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free