# Message personalization

Notification contents such as message body, title and link can be personalized. They can be substituted with tag values for each user. Read more about tagging:

{% content-ref url="/pages/-LkUFG2Gsh\_-kP6KqPTf" %}
[Tagging a subscriber using library](/installation/how-to-tag-a-user-using-library-on-a-website.md)
{% endcontent-ref %}

#### Basic message personalization

{% code title="Example message title" %}

```
Hello {{name}}
```

{% endcode %}

{% code title="Example message body" %}

```
We have promotion for {{last_visit_product}}
```

{% endcode %}

{% code title="Example message url " %}

```
your_shop.p?product_id={{last_visit_product_id}}
```

{% endcode %}

![Personalization example in dashboard](/files/-Lm5qmAlcb1YLhzJzAhR)

#### Message personalization with default values

{% code title="Example message title with default value" %}

```
Hello {{name|default('subscriber!')}}
```

{% endcode %}

{% code title="Example message body with default value" %}

```
We have promotion for {{last_visit_product|default('t shirts')}}
```

{% endcode %}

{% code title="Example message url with default value" %}

```
your_shop.pl?product_id={{last_visit_product_id|default(99)}}
```

{% endcode %}

![Personalization example with default values in dashboard](/files/-LmikpgL_2RKGFoaYWYt)

#### Send message to subscriber with tag

It is obvious that not everyone will include tags. In this case, the campaign can be prepared only for subscribers who contain the tag.

![Send to particular tags](/files/-Ln8WBQWI7PGDuRtORrN)


---

# 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://push-help.sare.pl/campaigns/personalization.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.
