> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://socialhead.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use Field Mapping to optimize your feed

Field mapping in Feed Center allows users to assign values to product fields, ensuring consistency across product listings. Additionally, implementing rules enables greater flexibility, allowing for automated modifications based on specific conditions.

### Table of Contents

[1. Understanding Field Mapping](#1-understanding-field-mapping)  
* [Inputting Values for a Field](#3-1-inputting-values-for-a-field)
* [Saving the Mapping Settings](#3-2-saving-the-mapping-settings)
[2. Adding Rules for Field Mapping](#1-adding-rules-for-field-mapping)
* [Types of Rules](#3-color0400fftypes-of-rules)
* [Benefits of Using Rules](#3-color0400ffbenefits-of-using-rules)
* [Setting Up Rules](#3-color0400ffsetting-up-rules)
[3. Default Rules in Feed Center](#1-default-rules-in-feed-center)
[4. Important Notes](#1-important-notes)
---

# Understanding Field Mapping

Field mapping allows you to assign specific values to product fields to maintain uniformity and improve data quality.

To get started, in Feed Center, click on the feed that you want to map value for products then you'll able to see list of feed field as below: 

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_o0peey.png)

### 1. Inputting Values for a Field

There are three methods to input a value for a field:

* **Choosing a Variant**

To ensure product titles display only the product name without the variant name:

1. Click on the feed to be edited.
2. Select **[P] Product Title** from the drop-down list.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_49gihu.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_bsof9t.png)

3. Save the changes.

The product now has the title of itself only, and do not include the variant's name

![](https://storage.crisp.chat/users/helpdesk/website/ab8a6f89b0a19000/image_1x9bxyg.png)

* **Combining Multiple Variants**

To include both the product name and variant name in the title:

1. Select **[P] Product Title** from the drop-down list.
2. Add a hyphen and choose **[P] Variant Title**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1kktyz5.png)

3. Save the changes.

The product now has the title that includes both its name and the variant's name

![](https://storage.crisp.chat/users/helpdesk/website/ab8a6f89b0a19000/image_1esnid4.png)

* **Typing Text or Numbers**

You can manually enter values for fields.

* __Text Example__: Set **identifier_exists** to **false** to indicate the absence of a GTIN.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_18233nh.png)

* __Number Example__: Assign a sale price effective date by inputting the date manually.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_5vihil.png)

### 2. Saving the Mapping Settings

Click **Save Settings** on the top right to apply the field mapping settings to all products in the feed.

Once you click it, your Mapping setting will be saved and applied for **all products** . This means that this Mapping setting will be applied for all existing products in your feed and all previous product's data will be overidden.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_t68pbr.png)

After pressing **Save Settings**, you are able to see the newly assigned value when you click on your current feed.

# Adding Rules for Field Mapping

Rules enable dynamic modifications to product data, allowing changes based on specific conditions.

### ${color}[#0400ff](Types of Rules)

* **Set To Rule**
Assigns a value to an attribute based on existing product attributes or static inputs.
* **Extract Rule**
Extracts specific terms from product data and assigns them to a defined attribute.

### ${color}[#0400ff](Benefits of Using Rules)

* **Adding missing required data**:

__For Example:__ Extracting **color** from the product title

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1t719yy.png)

* **Resolving errors**: Example: Assigning **identifier_exists = false** for products without GTIN.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_xih3do.png)

* **Optimizing feed**: Example: Enhancing **title** with additional attributes like **color** and **SKU**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_4yub68.png)

### ${color}[#0400ff](Setting Up Rules)

Navigate to **Feed Center** > Select a feed > **Field Mapping** > Click **Add Rule** to set up rules.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_13qnkle.png)

###### 1. Adding Missing Required Data

1. Click **Add Rule** next to the relevant field (e.g., color).
2. Choose **Rule Type: Extract**.
3. Set the source as **Product Title**.
4. Input the keywords to extract. You can input multiple words or phrases, and our app will find a matching value within the product title.

| By choosing **Whole words only**, our app only extracts the color if it matches with the entire keyword as entered (for example, it does not take the word "white" inside the word "off-white"). By choosing **Case sensitive**, our app only extracts the color if it matches exactly to the keyword entered (for example, it does not take the word "Purple" with a capital P).

5. Assign the extracted value to the **Color** field.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_sw0j5s.png)

6. Apply to relevant product groups and save.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_87y47r.png)

| You can create more than one sub-condition to filter a product group. Simply click on **Sub-condition** to create a AND condition.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_c2tczx.png)

| You can also create more than one condition. Simply click on **Condition(s)** to create an entire **IF** condition.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_it4v40.png)

7. Click **Save** for the Rules to be applied.

Afterwards, you will be able to see the Rules next to the field **brand**. Moreover, all the Rules you created are also displayed on the top right of the **Field Mapping** tab.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1tcdva4.png)

###### 2. Resolving Errors

Presumably, some of your products are custom and they do not have the field **gtin**. As a result, these products are disapproved by Google. You want to indicate Google that gtins are not available for your product using the attribute **identifier exists**. 

1. Click **Add Rule** next to **gtin**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_r8xm7r.png)

2. Choose **Rule Type: Set To**.
3. Assign **identifier_exists = false**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_i28lnd.png)

4. Apply only to products missing a GTIN.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_7reysj.png)

5. Save the rule.

###### 3. Optimizing Your Feed

Having a qualified product feed is not enough to maximize your reach and sales. To achieve it, you need to [optimize your feed](https://socialhead.io/knowledge/optimize-product-feeds-on-google-shopping/), and one of the fields that needs to be prioritized is your **product title**. 

1. Click **Add Rule** next to **title**.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_gulwt3.png)

2. Choose **Rule Type: Set To**.
3. Include relevant attributes.

__For example:__ If you are selling electronics and you want to include more information such as **color** and **SKU** in your title, you can choose these fields from the drop down list and type the punctuation to organize the title neatly (e.g. you can add a dash, or parentheses)

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1bsxbny.png)

4. Apply the rule to specific product categories such as products having "Apple" as its brand

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1pge4vj.png)

6. Save the changes.

# Default Rules in Feed Center

**Feed Center provides 6 default rules:** 3 rules for Availability, 1 rule for Price, 1 rule for Shipping Weight and 1 Rule for Image Link

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_y1mnnq.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1prilm3.png)

__For example:__ 

**Availability**: Sets items as "in stock" or "out of stock" based on inventory levels.

* Out of Stock: If [P] Inventory < 0, [F] Availability = “out of stock”

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_8qv0ww.png)

* In Stock: If [P] Inventory > 0, [F] Availability = “in stock”

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_nxiwif.png)

These default rules can be turned off or customized based on user needs.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_9lfqrr.png)

# Important Notes

* If a product satisfies many Rules, the Rule that has the highest ranking will be applied. You can also drag and drop to change the Rules ranking. In this example, the Rule 1 will be applied for this product.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/b/9/2/cb92164b6e8ef000/image_1gkhlg1.png)

* When you set Rules for your feed, it will be more powerful than [Mapping](https://socialhead.crisp.help/en/article/how-to-use-field-mapping-to-optimize-your-feed-z24btd/?bust=1713354622353). An attribute set by Rules will always override its value set by Mapping, regardless of whether you enter the value of Rules first or Mapping first.
* If both the Rules and Mapping are not applicable to an attribute (no product meets the conditions or the Rules are set incorrectly, there is no value assigned by Mapping), the value of that attribute will be null.
---

Field mapping and rules in Feed Center provide powerful tools to manage product data efficiently. By leveraging mapping settings and dynamic rules, you can enhance product visibility, comply with platform requirements, and optimize your feed for better performance.

If you have any further question about the Category, don't hesitate to contact us via in-app live chat or email at [support@socialhead.io](support@socialhead.io)