Skip to main content
When a user rates an Ari reply or another Plain AI feature with a thumbs up or down, Plain stores the vote and any comment. aiFeedback lists that feedback, newest first.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
The API is read-only. Feedback is submitted from the Plain app. This operation requires the following permission:
  • aiFeatureFeedback:read

Get AI feedback

details depends on the feature, so select its fields with fragments:
  • AI_AGENT: an Ari reply, with threadId and timelineEntryId
  • THREAD_CATCHUP: a thread summary, with threadId
  • THREAD_CLUSTERS: a cluster of related threads, with clusterId
  • TONE_RULE: a tone of voice rule, with toneRuleId
  • KNOWLEDGE_GAP: a knowledge gap, with knowledgeGapId
Every details type has a sentiment, a reason, and an optional comment. Filter with features, sentiments, and a createdAt window. Feedback submitted before Plain captured sentiment has none, so sentiments excludes it.
Query
Variables