> ## 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.

# SupportAiLookupTrace

> What the AI looked up before a message, as the help desk shows it above the message.

**steps** `[\[SupportAiLookupStep!\]!](/docs/api-reference/v3/reference/support/support-ai-lookup-step)` *required*

Each lookup, oldest first: at most the 200 newest before the message.

**fields**

**kind** `[SupportAiLookupKind!](/docs/api-reference/v3/reference/support/support-ai-lookup-kind)` *required*

What it looked up.

**knowledge** `[\[SupportAiLookupKnowledge!\]!](/docs/api-reference/v3/reference/support/support-ai-lookup-knowledge)` *required*

The knowledge entries the reply was given. Only the last knowledge step before a reply lists them; empty on the others. Readable with `support_tickets_read`, as the help desk shows them to anyone who can view the ticket; reading an entry as a `KnowledgeArticle` needs `commerce_agent_knowledge_read`.

**fields**

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

The entry's id: a `KnowledgeArticle` id for the store's own articles, or an FAQ article's id.

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

The entry's title.

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

When the AI looked it up.

**query** `String`

What a knowledge or product search asked for. Null for other steps, and when it wasn't recorded.

**resultCount** `Int`

How many results a knowledge or product search returned. Null for other steps.

**url** `String`

The link the AI followed. Null unless the step followed one.


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