← AgentShield
Integration
AgentShield for n8n
Monitor what your n8n AI workflows cost per run. No code needed — just add one HTTP Request node after your AI call.
Use case
n8n workflows using OpenAI, Anthropic, or any LLM API node
Quick setup
// Step 1: Add an HTTP Request node after your AI node
// Step 2: Configure it exactly like this:
Method: POST
URL: https://api.agentshield.one/v1/track
Headers:
Authorization: Bearer ags_live_xxxxx
Content-Type: application/json
Body (JSON):
{
"agent": "my-n8n-workflow",
"model": "gpt-4o",
"input_tokens": {{ $json.usage.prompt_tokens }},
"output_tokens": {{ $json.usage.completion_tokens }}
}
// That's it. Costs appear in your dashboard in real time.
// No SDK. No code changes to your existing workflow.