Skip to main content

fact_ai_conversations

Each row is one conversation handled by an AI agent inside a conversation flow: which agent (and which version) handled it, how it was resolved, what sentiment the user showed, how many messages were exchanged, and how many tokens it consumed.
Don’t confuse it with fact_agent_conversations: that table holds conversations handled by human agents in the agent workspace. The names are almost identical, but they are different products — don’t mix the two tables in the same metric.

What questions does it answer?

  • How many conversations did each AI agent handle, and how many did it resolve?
  • How does user sentiment change across agents or across versions of an agent?
  • How many tokens does each agent consume, in total and per conversation?
  • How long does the agent take to respond?
  • What happened in the rest of the flow before and after the AI? (join fact_treble_sessions on session_id)

Columns

Counts and tokens are NULL when the conversation didn’t record them — for example, conversations from before Treble started measuring tokens. NULL never means zero: sum() and avg() already ignore NULLs, and countIf(total_tokens IS NOT NULL) tells you how many conversations have a measurement.

Example queries

Resolution and sentiment per agent, last 30 days

Token consumption per agent and version