Generate Social Analytics Insights
aidelly_generate_analytics_insightsGenerate and save AI analytics insights for workspace_id, optionally limited to platforms. regenerate=true forces a fresh analysis even when insights already exist. Default is free rule-based insights; opt in with coach: true for AI patterns across the period (optional date_from, date_to up to 90 days, platform); coach costs 12 credits, and with too little data it falls back to rule-based with a coachUnavailable reason and no charge. aidelly_get_analytics_insights reads saved insights without generating new ones. Retry-safe: a repeat call with the same idempotency_key returns the original result and is not charged again. Coach runs are limited to 5 a minute per API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional body override for endpoints with sparse parameter schemas. | |
| coach | No | Opt in to the AI period coach: patterns across the period's posts (what to repeat, change, and test next). Costs 12 AI credits per run, charged to the API key's user. Default false keeps the free rule-based insights. Needs enough published posts; with too little data, or while the coach is not enabled, the response is the rule-based insights plus `coachUnavailable` and nothing is charged. | |
| query | No | Optional query overrides for endpoints with sparse parameter schemas. | |
| date_to | No | Coach only. Last day (YYYY-MM-DD, not in the future). Defaults to today (UTC). | |
| brand_id | No | ||
| platform | No | Coach only. Limit the coach to one platform (e.g. instagram, x). When omitted and `platforms` has exactly one entry, that entry is used; otherwise the coach runs across all platforms. | |
| date_from | No | Coach only. First day (YYYY-MM-DD). Defaults to 30 days before date_to; the range is at most 90 days. | |
| platforms | No | Platforms to analyze for insights. | |
| regenerate | No | If true, force regeneration even if insights exist. | |
| workspace_id | No | Workspace to operate in: the `id` of a workspace returned by aidelly_list_workspaces. Optional for read operations; required when creating content. | |
| idempotency_key | Yes |