Examples of what you can ask your agent
- “How many roulette spins were there this week vs last week?”
- “Which products had the most withdrawals last month? Give me the top 5”
- “Compare how many people enrolled in courses in January vs February”
- “How many attendees did each center have this quarter?”
- “Show me the daily evolution of redeemed prizes in May”
What data can you query?
You can ask about these areas of your business:
Your agent knows exactly which data corresponds to each area. Just ask your question and it chooses the right source.
Tools
analytics_execute_pipeline
Ask a question about your data and get the results. Use it for direct queries like “how many prizes were redeemed this month?”.
string
required
Data area to query. Your agent picks the right one automatically.
array
required
The query itself. Your agent builds it automatically from your question. It’s an array of steps that transform and filter data to answer exactly what you need.
analytics_execute_pipelines
Compare two or more periods or segments at once. Use it for questions like “compare April vs May spins” or “Q1 vs Q2 enrollments”.
array
required
List of 2 to 5 queries. Each with:
label(string): descriptive name for the segment, e.g."April 2026"collection(string): data area (your agent picks it)pipeline(array): the query (your agent builds it)
Technical details (advanced)
Technical details (advanced)
If you want to write queries manually or need the exact names, here are the details:Data areas and their identifiers:
Allowed operations:
$match, $group, $sort, $limit, $project, $unwind, $lookup, $addFields, $countDisallowed operations: $out, $merge, $function, $accumulator, $where, $facetLimit: maximum 100 results. Dates: use ISO 8601 format ("2026-01-01" or "2026-01-01T00:00:00Z").Important: do not include businessId in any query. The server injects it automatically.
