AI model usage dashboard: Track token metrics and costs for LLM workflows
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when an HTTP GET request hits its webhook URL (plus 2 other triggers). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 2 other triggers).
- Edit Fields (Edit Fields (Set)): sets 1 field: today
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
- Get row(s) (Data table): get
- Get row(s) (Data table): get
- Get Excution ID (Edit Fields (Set)): sets 2 fields: id, model
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Code: runs custom JavaScript code
- Insert row (Data table): uses Data table
- Get an execution (n8n): get (execution)
- Respond to Webhook: sends the response back to the webhook caller
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (14)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - n8n
n8n-nodes-base.n8n - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - Webhook
n8n-nodes-base.webhook - Merge
n8n-nodes-base.merge - Code
n8n-nodes-base.code - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
🤖 n8n AI Workflow Dashboard Template Overview This template is designed to collect execution data from your AI workflows and generate an interactive dashboard for easy monitoring. It's compatible with any AI Agent or RAG workflow in n8n. Main Objectives 💾…