> For the complete documentation index, see [llms.txt](https://help.brickspacelab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brickspacelab.com/paper/guides/sitewide/dynamic-discount-popups.md).

# Dynamic discount popups

If you're already using automatic discounts. This is a neat little feature to ensure customers are aware of the discounts being applied to their cart. Take your automatic discount URL and append "?dt=Custom+text" to change the content that appears in the popup.

This will display a popup with your discount and the "Custom text" message

<figure><img src="/files/NiouQoNyUNbKbYqmjIYu" alt=""><figcaption></figcaption></figure>

{% stepper %}
{% step %}
In Admin, go to **Discounts** Shopify find the discount you want to share
{% endstep %}

{% step %}
Click into the discount you want to share
{% endstep %}

{% step %}
Click **Promote** > **Get a shareable link** > **Copy link**
{% endstep %}

{% step %}
Add "?dt=Custom+text" to the end of the link

* For example if you want to add "Save 10% storewide" to your popup your shareable link should look like this:
  * `https://paperthemedemo2.myshopify.com/discount/SAVE10?dt=Save+10%25+storewide`
* If you're using the `?redirect=` option in your discount URL you'll want to add the custom URL text like this:
  * `https://paperthemedemo2.myshopify.com/discount/SAVE10?redirect=%2Fcollections%2Fwallets&dt=Save+10%25+storewide`
    {% endstep %}

{% step %}
Use the link for Promotions
{% endstep %}
{% endstepper %}

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://help.brickspacelab.com/paper/guides/sitewide/dynamic-discount-popups.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
