Custom Integration
Integrate any agent or application with Arden telemetry tracking.Overview
Send telemetry events from your custom agents using either the CLI or direct API calls. Perfect for tracking usage of your own AI agents, tools, or applications.Using the CLI
The simplest way to send events from any application:Basic Event
Batch Events
Create a JSON file with multiple events:Using the API
For direct integration without the CLI:Language Examples
Python
JavaScript/Node.js
Go
Best Practices
Agent Naming
- Use descriptive agent IDs:
"my-company.code-reviewer" - Keep it consistent across sessions
- Avoid special characters (use hyphens or dots)
Bid Values
- Use micro-cents (1000 = $0.01)
- Track actual usage costs when possible
- Be consistent with your pricing model
Data Payload
- Keep under 1KB total size
- Include relevant context: task type, duration, etc.
- Use flat key-value pairs for better analytics
Error Handling
- Always check response status
- Retry on network failures
- Log errors for debugging
Common Integration Patterns
Wrapper Function
Create a utility function for your application:Process Monitoring
Track long-running processes:Testing Your Integration
Use dry-run mode to test without sending real events:Troubleshooting
Events not appearing?- Check agent ID format (alphanumeric with optional prefix)
- Verify network connectivity
- Use
--dry-run --printto debug payload
- Batch events when possible (max 100 per request)
- Add delays between requests
- Use exponential backoff for retries
- Set
ARDEN_API_TOKENenvironment variable - Check token validity
- Verify API endpoint URL