get_visit_trends
Analyze visit and usage trends over time with daily, weekly, or monthly intervals. Group data by subscription, account, or group to track engagement patterns and unique user counts.
Instructions
Get visit/usage count trends over time (daily, weekly, or monthly intervals) with optional grouping by subscription, account, or group. Returns time series data points with visit counts and unique counts (accounts, providers, patients) per period.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interval | Yes | Time interval for trends: "weekly"(recommended max 12 weeks), or "monthly" (recommended max 12 months) | |
| startDate | No | Start date in ISO format (YYYY-MM-DD) or date math (e.g., "now-14d", "now-12w", "now-12M"). Recommended: "now-14d" for daily, "now-12w" for weekly, "now-12M" for monthly. Defaults to "now-180d" (6 months). | |
| endDate | No | End date in ISO format (YYYY-MM-DD) or date math (e.g., "now"). Defaults to "now" | |
| groupBy | No | Optional grouping dimension (default: none) | none |
| account | No | Optional account name to filter by | |
| group | No | Optional group name to filter by | |
| subscription | No | Optional subscription tier to filter by |