What is the Data Agent?
The Data Agent is a conversational AI API that lets you query your Moda analytics data using natural language. Instead of writing SQL or navigating dashboards, you can ask questions like:- “What are my top 5 clusters by conversation count?”
- “Show me the quality score trend for the last 7 days”
- “Which conversations failed in cluster X?”
Integration Guide
Add the Data Agent to your dashboard or internal tools.
How it works
- Send a question to the Data Agent API
- Agent reasons about what data to fetch
- Executes tools to query clusters, conversations, quality scores
- Returns an answer with supporting context
Key features
Natural language queries
Ask questions in plain English. No SQL required.
Real-time streaming
Get live status updates as the agent analyzes your data.
Multi-step reasoning
Complex queries are broken into steps, with each step building context.
Tool-based analysis
Access to cluster stats, conversation lookup, quality metrics, and more.
Available tools
The agent has access to these analysis capabilities:| Tool Category | Description |
|---|---|
cluster/stats | Cluster counts, sizes, and distributions |
cluster/detail | Detailed information about specific clusters |
conversation/count | Conversation volumes and trends |
conversation/lookup | Retrieve specific conversations |
analytics/evaluation | Quality scores and metrics |
sql/query | Direct SQL queries (advanced) |
Example queries
Cluster analysis
Cluster analysis
- “What are my most popular clusters?”
- “List all clusters with their sizes”
- “Which cluster has the lowest quality score?”
- “Show me clusters created this week”
Conversation insights
Conversation insights
- “How many conversations did I have today?”
- “Show me the conversation trend for the last 30 days”
- “Find conversations mentioning refunds”
- “What’s the average conversation length?”
Quality metrics
Quality metrics
- “What’s my average quality score?”
- “Show me low quality conversations”
- “Compare quality scores across clusters”
- “Which cluster has the most failed conversations?”
API endpoints
| Endpoint | Method | Description |
|---|---|---|
/health | GET | Health check |
/v1/agent/analyze | POST | Full analysis (blocking) |
/v1/agent/stream | POST | Streaming analysis with SSE |
/v1/agent/tools | GET | List available tools |
Next steps
Integration Guide
Learn how to integrate the Data Agent into your application.