Bot Analytics Query 500 Error on AI Deflection

Struggling to understand why the analytics query fails.

Resource: genesyscloud_analytics_query. Provider: 1.42.0. Error: HTTP 500. Endpoint: /api/v2/analytics/query.

Metric: ai.deflection.count. Flow: Architect v2. Env: Prod. Dev works. Prod fails consistently.

Snippet:
resource “genesyscloud_analytics_query” “bot” {
metric { id = “ai.deflection.count” }
}

Logs show internal server error. No 400s. Any ideas?

The root of the issue is likely a backend indexing delay for the new AI deflection metric in production, not a Terraform configuration error.

  • Check metric availability date
  • Verify data latency settings
  • Review analytics query limits