Go worker hitting 400 on Cognigy.AI sentiment POST

Trying to wire up a Go worker for Cognigy.AI sentiment scores, but the NLP engine keeps rejecting payloads. Preferring general configs.

  • Using net/http for atomic POST /api/v2/analyze
  • Validates emotion dimension matrices against text caps
  • Checks LANGUAGE_DETECTION and CONTEXT_WINDOW
p := map[string]any{"text_ref": id, "NORM_FACTOR": 0.85}

It’s throwing a 400 on missing automatic polarity mapping triggers. Callback handlers are queued for dashboard sync, but analyze latency keeps spiking. Still waiting on the normalization factor directives to parse correctly.

Zendesk used to accept partial payloads for custom fields, but GC Workers don’t tolerate missing keys anymore. Try adding {"polarity": "auto"} to your map as a workaround since the API throws 400, and check which Cognigy version you’re running anyway? The worker will just crash if you don’t align the schema.