Track conversations

This section will help you start tracking your AI Agent conversations in less than 5 minutes.

After initializing the Aeon client, you can track conversations using the track_conversation method.

Python

python
1aeon.track_conversation( 2 conversation_id="123", 3 provider="openai", 4 model="gpt-4", 5 user_id="john@acme.com", # Optional 6 messages=[ 7 { 8 "role": "user", 9 "content": "...", 10 "timestamp": time.time(), 11 }, 12 { 13 "role": "assistant", 14 "content": "...", 15 "timestamp": time.time(), 16 }, 17 ] 18)

JavaScript / TypeScript

javascript
1await aeon.trackConversation({ 2 conversationId: "abc123", 3 provider: "openai", 4 model: "gpt-4", 5 userId="john@acme.com", // Optional 6 messages: [ 7 { 8 role: "user", 9 content: "...", 10 timestamp: Date.now(), 11 }, 12 { 13 role: "assistant", 14 content: "...", 15 timestamp: Date.now(), 16 }, 17 ], 18});

Aeon automatically gives you insights like cost breakdowns, user frustrations, feature requests, and more.

You can see all tracked conversations in your dashboard.