> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# knowledgeSuggestionsSearch

> Search the store's pending knowledge suggestions by text, best match first, as the Suggestions tab's search does. It reads a search index, so a suggestion made or reviewed in the last few seconds can be missing or still listed; `knowledgeSuggestions` is the list to sync from. One page only: raise `first` for more.

**Required scopes:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

## Arguments

**first** `Int`

How many to return, 1 to 50 (default 25).

**text** `String!` *required*

What to look for in the suggestions' titles and text. At most 200 characters; longer fails with QUERY\_TOO\_LONG.

## Returns

**knowledgeSuggestionsSearch** `[KnowledgeSuggestionConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of KnowledgeSuggestion items.

**fields**

**edges** `[\[KnowledgeSuggestionEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[KnowledgeSuggestion!](/docs/api-reference/v3/reference/commerce-agent/knowledge-suggestion)` *required*

The item at this edge.

**fields**

**acceptedArticle** `[KnowledgeArticle](/docs/api-reference/v3/reference/commerce-agent/knowledge-article)`

The knowledge article it became. Null unless ACCEPTED, or once that article is deleted.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**content** `String!` *required*

The proposed body. When `needsMerchantAnswer` is true it is the shoppers' question, not an answer.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When it was suggested.

**id** `ID!` *required*

The id of this suggestion.

**needsMerchantAnswer** `Boolean!` *required*

Whether no one has answered it yet: accepting it then needs `content` with the answer.

**reviewedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When it was added or dismissed. Null while pending.

**sourceCount** `Int!` *required*

How many support tickets this suggestion was drawn from, as the Suggestions tab's Cited by column counts them. Deleted tickets aren't counted.

**sources** `[SupportTicketConnection!](/docs/api-reference/v3/pagination)` *required*

The support tickets this suggestion was drawn from, oldest first, as the Suggestions tab's Cited by list shows them. Tickets the help desk doesn't show are left out.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tickets after it.

**before** `String`

Backward pagination cursor — returns tickets before it.

**first** `Int`

Forward pagination: returns the first N tickets (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tickets (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**status** `[KnowledgeSuggestionStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-suggestion-status)` *required*

Where it stands in review.

**title** `String!` *required*

The proposed title.

**nodes** `[\[KnowledgeSuggestion!\]!](/docs/api-reference/v3/reference/commerce-agent/knowledge-suggestion)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**acceptedArticle** `[KnowledgeArticle](/docs/api-reference/v3/reference/commerce-agent/knowledge-article)`

The knowledge article it became. Null unless ACCEPTED, or once that article is deleted.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**changes** `[KnowledgeArticleChangeConnection!](/docs/api-reference/v3/pagination)` *required*

Every change to this article and who made it, newest first, including staged drafts and removals.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns changes after it.

**before** `String`

Backward pagination cursor — returns changes before it.

**first** `Int`

Forward pagination: returns the first N changes (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N changes (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**content** `String!` *required*

The live article body as authored.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the article was created.

**draft** `[KnowledgeArticleDraft](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-draft)`

Changes staged by the API and not yet published. Null when nothing is staged. Reading it needs a token with `commerce_agent_knowledge_read`.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the live article stops being retrievable. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the live article becomes retrievable, if `status` is ACTIVE. Null means immediately.

**id** `ID!` *required*

The id of this knowledge article.

**origin** `[KnowledgeArticleOrigin!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-origin)` *required*

How this article was created. Immutable after create.

**productFamilies** `[ProductFamilyConnection!](/docs/api-reference/v3/pagination)` *required*

Product families this article cites.

**Requires:** [`products_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-products_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**referencedArticles** `[KnowledgeArticleConnection!](/docs/api-reference/v3/pagination)` *required*

Other knowledge articles this article cites.

**Requires:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

Whether Commerce Agent may retrieve this live article. Combine with the effective window.

**title** `String!` *required*

The live merchant-facing title of the article.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the live article body was last edited.

**usageCount** `Int!` *required*

How many messages Commerce Agent used this article in. Unsent draft replies don't count. This is the number the merchant app's Knowledge page shows as Uses.

**whenToUse** `String!` *required*

The text Commerce Agent matches a shopper's question against to pick this article. It is generated from the live title and content, so it is read-only. A new article starts with its title. After an edit, the previous text stays until it is regenerated.

**content** `String!` *required*

The proposed body. When `needsMerchantAnswer` is true it is the shoppers' question, not an answer.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When it was suggested.

**id** `ID!` *required*

The id of this suggestion.

**needsMerchantAnswer** `Boolean!` *required*

Whether no one has answered it yet: accepting it then needs `content` with the answer.

**reviewedAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When it was added or dismissed. Null while pending.

**sourceCount** `Int!` *required*

How many support tickets this suggestion was drawn from, as the Suggestions tab's Cited by column counts them. Deleted tickets aren't counted.

**sources** `[SupportTicketConnection!](/docs/api-reference/v3/pagination)` *required*

The support tickets this suggestion was drawn from, oldest first, as the Suggestions tab's Cited by list shows them. Tickets the help desk doesn't show are left out.

**Requires:** [`support_tickets_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-support_tickets_read)

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns tickets after it.

**before** `String`

Backward pagination cursor — returns tickets before it.

**first** `Int`

Forward pagination: returns the first N tickets (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N tickets (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**Fields**

**edges** `[\[SupportTicketEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**nodes** `[\[SupportTicket!\]!](/docs/api-reference/v3/reference/support/support-ticket)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**status** `[KnowledgeSuggestionStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-suggestion-status)` *required*

Where it stands in review.

**title** `String!` *required*

The proposed title.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

## Example

```graphql theme={null}
query {
  knowledgeSuggestionsSearch(first: 10, text: "...") {
    nodes {
      content
      createdAt
      id
      needsMerchantAnswer
      reviewedAt
      sourceCount
      status
      title
    }
    pageInfo { hasNextPage endCursor }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.