← AgentShield
Integration
AgentShield for Flowise
Track what your Flowise chatflows cost per conversation. API integration, no proxy needed.
Use case
Flowise chatflows and agent flows with any LLM node
Quick setup
// Option 1: Use the Flowise Custom Tool node
// Add an HTTP Request tool that POSTs to AgentShield
// Option 2: Track from your backend after calling Flowise API
const response = await fetch('https://your-flowise/api/v1/prediction/...', {
method: 'POST',
body: JSON.stringify({ question: userInput })
})
const result = await response.json()
// Then track to AgentShield:
await fetch('https://api.agentshield.one/v1/track', {
method: 'POST',
headers: {
'Authorization': 'Bearer ags_live_xxxxx',
'Content-Type': 'application/json'
},
body: JSON.stringify({
agent: 'my-flowise-chatflow',
model: result.model || 'gpt-4o',
input_tokens: result.tokenUsage?.promptTokens,
output_tokens: result.tokenUsage?.completionTokens
})
})