# Rule templates

We’ve put together a list of rule templates that you can add to the **Rules** step of setting up a channel. These rules are commonly created for various channels.

### Popular rule templates <a href="#h_01k10bxf2xmtfwg2jrcvcak302" id="h_01k10bxf2xmtfwg2jrcvcak302"></a>

* **Remove HTML**
  * Removes HTML tags (\<p>, \<strong> etc.) from texts fields like titles and descriptions
* **Negative stock**
  * If the stock field is  negative number, it is changed to '0'
* **Add shipping cost**
  * Adds a set shipping cost to all items

### Use a rule template <a href="#h_01jqtpdak3p24yrbyewd80exqb" id="h_01jqtpdak3p24yrbyewd80exqb"></a>

To use one of these templates, follow these steps:&#x20;

1. Go to the **Rules** step for your channel.
2. In the **Rules** tab, click **+ Create rule**.
3. Click **Rules templates**.
4. Browse the templates and click on one to add it to your rules.
5. Once you’ve added a rule from the list, click the  **Options** dropdown to edit its title and description.
6. Make sure to click **Save rule** to apply this rule.&#x20;

<figure><img src="https://helpcenter.channable.com/hc/article_attachments/25416776871314" alt=""><figcaption></figcaption></figure>

### Add a new project field <a href="#h_01jpm4c1xm42my9qefeev00vtx" id="h_01jpm4c1xm42my9qefeev00vtx"></a>

When you use some of these templates, you may need to add a new project field.&#x20;

Once you’ve added a template, check if there are any field errors. If you have the errors, follow these steps to add a new field:

1. In **Rules**, click  **Add project field** to add a project field.
2. In the popup, type a name.\
   **Note:** You can’t use capital letters or spaces in project field names. We recommend using an underscore (\_) instead.
3. At **Type**, select a field type .
4. If the field contains multiple values, check the box at **List of values**.&#x20;
5. Click **Create**.&#x20;

#### Map the correct field <a href="#h_01jpm4cq329146ag5vdq96h1gh" id="h_01jpm4cq329146ag5vdq96h1gh"></a>

Depending on the fields that you have in your product data, you may just need to [map the correct field](/get-started/getting-started/fields-in-channable/map-and-add-fields.md) for your rule to work. &#x20;


---

# 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://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates.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.
