# The rule for adding a gift

In the following example, we will add a gift to Nike brand products for the period 10.5.2019 - 17.5.2019.&#x20;

To add a GIFT (gift) element, first choose Export -> Edit

![](/files/iIu1w57qDfNHw3GExhVQ)

Then go to Rules -> New rule&#x20;

![](/files/5cCvtBehVRuSQxgp7iLt)

Next, select Add Element.

![](/files/LpvBHU4DptSI4v79WQ0I)

Then we will add a GIFT element (gift). Element names must be named exactly according to the XML specification of the comparison shopping site. You will need to name the rule first. As the gift will be available only for the period 10.5. - 17.5., It is necessary to enter the option active from-to and v to select the date. Outside this selected period, the rule will not be active and will not be copied into XML. So you don't have to watch it manually, the rule is activated and deactivated.

The gift will only be for Nike brand products. In the condition, it is necessary to select the variable Manufacturer - it is equal to - Nike. Next, add the name of the new element - ie GIFT and add a description of the gift, ie the content of the element.

![](/files/pDNwkJSUgQUuzJiDtr9C)

![](/files/VzSmCVJB2AnRmO7uji3m)

If you want to add a gift ID to the gift, you can set the rule as follow:

![](/files/EbuMefMefgjScii83Bnz)

![](/files/JVjDOjppbOSj3cz62grC)


---

# 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://help.conviu.com/data-editing-xml-and-csv/the-rule-for-adding-a-gift.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.
