Skip to main content
There are two ways to fetch knowledge gaps:
Knowledge gaps are in beta. The queries and fields on this page may change without a deprecation period.
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
These operations require the following permissions:
  • knowledgeGap:read
  • task:read to read the linked task

Get knowledge gaps

Filter with statuses, which takes any of TODO, DONE, and CANCELLED, and lastSeenAt, which takes ISO 8601 after and before timestamps. Set only after to get every gap a customer hit since then. Sort with sortBy: SIGNAL_COUNT orders by how many customer conversations hit the gap, LAST_SEEN_AT by when the most recent one did. The default is SIGNAL_COUNT descending. Without statuses, the list includes gaps with 1 signal, which have no task yet and return task as null. Pass all 3 statuses to list only the gaps shown in Plain.
Query
Variables

Get knowledge gap by ID

Query
Variables