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

# productMetafieldKnowledge

> The product and variant metafields Commerce Agent reads, with their guidance, as the Knowledge page's Products tab lists them.

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

## Returns

**productMetafieldKnowledge** `[\[ProductMetafieldKnowledge!\]!](/docs/api-reference/v3/reference/commerce-agent/product-metafield-knowledge)` *required*

A metafield Commerce Agent reads when it looks up a product, with the merchant's guidance, as the Products tab configures it.

**fields**

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

When it was added.

**definition** `[ProductMetafieldDefinition!](/docs/api-reference/v3/reference/commerce-agent/product-metafield-definition)` *required*

The metafield.

**fields**

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

The metafield definition's id, which `productMetafieldKnowledgeReplace` takes.

**key** `String!` *required*

Its Shopify key.

**name** `String!` *required*

Its Shopify name.

**namespace** `String!` *required*

Its Shopify namespace.

**owner** `[ProductMetafieldOwner!](/docs/api-reference/v3/reference/commerce-agent/product-metafield-owner)` *required*

Whether it's a product or a variant metafield.

**displayName** `String`

The merchant's name for it. Null when Commerce Agent uses its Shopify name.

**instructions** `String!` *required*

How Commerce Agent should use the value.

**name** `String!` *required*

What Commerce Agent calls it: `displayName`, else the metafield's Shopify name.

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

When it last changed.

## Example

```graphql theme={null}
query {
  productMetafieldKnowledge {
    createdAt
    displayName
    instructions
    name
    updatedAt
  }
}
```


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