# Amenities

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FENyFPJIspxbQOkNEwSfs%2Fimage.png?alt=media&#x26;token=fef0038a-8f0e-4aec-bcaa-cfe2077ca067" alt=""><figcaption></figcaption></figure>

## Step 1: Create metafield object.

1. From your Shopify admin, go to **Content** -> **Metaobjects**.

   <figure><img src="https://nouthemes-1.gitbook.io/~gitbook/image?url=https%3A%2F%2F3848569118-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAQ4fEPyV7SCBRuJIDpdT%252Fuploads%252FyT70h8TD6v2Jnz7OMBfd%252Fimage.png%3Falt%3Dmedia%26token%3Dfecf217f-b095-4ec3-9568-65473227a3d8&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a872c7f0&#x26;sv=1" alt=""><figcaption></figcaption></figure>
2. Click **Add definition**.

   <figure><img src="https://nouthemes-1.gitbook.io/~gitbook/image?url=https%3A%2F%2F3848569118-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAQ4fEPyV7SCBRuJIDpdT%252Fuploads%252FFRz16GQMs03YuZnMSLgQ%252Fimage.png%3Falt%3Dmedia%26token%3D036bbecf-a256-4c25-9599-d899aba5d628&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c1147e6c&#x26;sv=1" alt=""><figcaption></figcaption></figure>
3. Add metaobject definition.

> **Note:** The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

**Name:** Amenities

| Fields | Name          | Type             |
| ------ | ------------- | ---------------- |
| Field  | Name amenitie | Single line text |

After you have finished creating, you will have a result similar to the attached image below.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FoNwNhoOiYHcXVUsTnQqs%2Fimage.png?alt=media&#x26;token=8c013f37-e309-45ab-9e0d-964d0af00f1e" alt=""><figcaption></figcaption></figure>

## Step 2: Add content to the field.

After you have completed step 1, you will have a metaobject. Next, you will 'Add entry' and enter content for each field.

1. From your Shopify admin, navigate to '**Content'** -> '**Metaobjects'**.
2. Select the '**Definition name**' you wish to set up.
3. Click '**Add entry**'.
4. Add content to each created field.
5. Click '**Save**'.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2Fn8AJ2QZQfpc9F1Js67el%2Fimage.png?alt=media&#x26;token=2baa57af-b032-4bd3-845c-37c65d6062f6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2F5QJDUIzQQlX1FdYz9ki1%2Fimage.png?alt=media&#x26;token=679cd78a-b3b1-4aa2-9c85-2e58d0666e04" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FOHeNt9NISUhMrufuaIdR%2Fimage.png?alt=media&#x26;token=423a6f8f-cd16-4473-a16c-a4d13672e3f8" alt=""><figcaption></figcaption></figure>

## Step 3: Create metafield.

1. From your Shopify admin, go to **Settings** -> **Custom data**.
2. Click **Products → Add Definition.**

   <figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2Fq6OstdhRlDOzHSudewGs%2F3.gif?alt=media&#x26;token=85aabb75-c383-4ae3-b767-bdf37db57915" alt=""><figcaption></figcaption></figure>
3. Please enter correct **Namespace and Key** as we noted below.

> **Note:** The name of the metaobject and the names of the fields must exactly match the names specified in the setup guide below. If you name them incorrectly, the functionality will not work.

```
Name: Amenities
Namespace and key: custom.amenities
Select content type: Metaobject
Reference: List of entries
```

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2F4cbLH728R1B6M0QXz15E%2Fimage.png?alt=media&#x26;token=e4a1ae5e-ae37-4cf6-abb8-aa1c1f113fd6" alt=""><figcaption></figcaption></figure>

## Step 4: Add the metaobject to the product.

1. From your Shopify admin, go to **Products -> All products**.
2. Find and choose the product that you want to edit.
3. In the **Metafields**, please insert content for "**Amenities**" field.

<figure><img src="https://3878901611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEwt3moGlRvU11oa7qXGc%2Fuploads%2FlAZfqfSx8zOh3uRBbnIC%2F3.gif?alt=media&#x26;token=a16f053f-a931-4d0c-b4d6-55050d689205" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://nouthemes-1.gitbook.io/hotel-x-shopify/product-metafield-setup/amenities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
