> For the complete documentation index, see [llms.txt](https://design-packs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://design-packs.gitbook.io/docs/fundamentals/shopify-expertise/metafields.md).

# Metafields

With Online store 2.0, Shopify has provided a new way to use metafields. These new metafields have been made specifically for certain objects in your store.&#x20;

Metafields can now be added to the following objects:&#x20;

* Product
* Variant
* Collection
* Customer
* Order
* Pages
* Blogs
* Blog posts

Once set up and populated these metafields can be connected to your theme through the customization editor. When adding an image or title to a section, you'll now see a data icon that when hovered will say "connect dynamic source"

<div align="left"><figure><img src="https://p62.tr2.n0.cdn.getcloudapp.com/items/lluE6Z6o/42e323bd-57ca-4a26-b495-7e69004f35bf.png?v=e13ba2829f6d9db18515edcaf8cc7854" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Note**: The dynamic source option will only show up on pages where metafield objects are available (ie product page).
{% endhint %}

When you connect to the dynamic source, the value of that field will now be pulled from the metafield.

This means that the content for each section can be unique to each product.  For example, if you wanted to highlight unique features for your products, you could use the [value icons](/docs/fundamentals/sections-overview/icon-and-logos.md#value-icons) to illustrate each feature even if the features are different by product :tada:.

When you try to connect to a dynamic data source and you haven't previously set up any metafields, you'll be prompted to create a new metafield.

<div align="left"><figure><img src="https://p62.tr2.n0.cdn.getcloudapp.com/items/kpuJ4QJZ/2dc59135-665d-473f-b7a5-70e963c251e9.png?v=bff9071927d15fde139a0055bd5bb69a" alt="" width="375"><figcaption></figcaption></figure></div>

You can choose from a list of different data types:

<div align="left"><figure><img src="https://p62.tr2.n0.cdn.getcloudapp.com/items/4guKZzKJ/45b9813e-4a81-44e1-b34b-2234e6af4904.png?v=0f77931790afd69906a1d92597d5b9d1" alt="" width="375"><figcaption></figcaption></figure></div>

* **Color**, **Data and Time**, **File**, **JSON**, **Measurement**, **Number**, **Rating**, **Reference**, **Text**, **True or False**, and **URL**.
  * Note that images fall into the File type

{% embed url="<https://www.tiktok.com/@designpacksapp/video/7195585270308261125?is_from_webapp=1&sender_device=pc&web_id=7251590159971927557>" %}

{% embed url="<https://www.tiktok.com/@designpacksapp/video/7190375376130985221?is_from_webapp=1&sender_device=pc&web_id=7251590159971927557>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://design-packs.gitbook.io/docs/fundamentals/shopify-expertise/metafields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
