# Temporarily available content

{% hint style="warning" %}
**Important to remember:**

* Links are generated in the calculator;
* Each link is unique to a specific dialogue and cannot be forwarded;
* Variables work inside the links.
  {% endhint %}

To restrict access to your links based on time, you can use proxy links by adding them to the buttons in blocks.

**Step 1.** To do this, add a variable in the calculator—for example, `link`—in which you'll store the proxy link (see example in Figure 2).

**Step 2.** Add a button in the block, and in the button settings, insert the variable into the URL field:

<figure><img src="/files/x8aMNLo0yFd5Xb1qzbMN" alt="" width="563"><figcaption></figcaption></figure>

## Short links with click notification

**One-time links**\
If you pass an additional parameter (other than zero) to the "proxy", "proxy\_date", or "proxy\_timeout" function, the link will become one-time use.

<figure><img src="/files/u3LL0RvWipdUqMvkSjMe" alt="" width="392"><figcaption><p>Fig. 2</p></figcaption></figure>

On the second attempt to open the link, the user will see the following message:

![Fig. 3](/files/-MKAiV8wC_o1meiwT8W4)

### Links with timer

**proxy\_date()** — this function takes a link as its first parameter and returns a link with click notification.\
The second and third parameters specify the date and time when the link will expire.<br>

If you pass an additional parameter after the minutes (that is not zero), the link will become one-time use.&#x20;

<figure><img src="/files/AyddhMB2DHsXRtsHDOgl" alt="" width="563"><figcaption><p>Fig. 4</p></figcaption></figure>

After the link expires, the person will see this message when they try to open it.

![Fig. 5](/files/-MKAiIdzpKoo9E86GEpH)

### **Time-limited links**<br>

`proxy_timeout()` — this function takes a link as its parameter and returns a link with click notification.\
An additional parameter specifies the number of minutes the link is valid.\
If you pass another parameter after the minutes that is not zero, the link will become one-time use.

<figure><img src="/files/vn4hrcFOwwIUnm6NuZWW" alt="" width="563"><figcaption><p>Fig. 6</p></figcaption></figure>

![Рис. 7](/files/-MKAiHy53qHKlIhkyNFJ)

### Short links without click notifications

All short links can be created without a callback—that is, as classic short links.\
For this, there are functions with the same parameters that do not trigger a callback.

<table><thead><tr><th width="358">With callback</th><th>Without callback</th></tr></thead><tbody><tr><td><strong>proxy</strong> </td><td><strong>short</strong> </td></tr><tr><td><strong>proxy_timeout</strong></td><td><strong>short_timeout</strong> </td></tr><tr><td><strong>proxy_date</strong></td><td><strong>short_date</strong> </td></tr></tbody></table>

Accordingly, if you need to use short links without a callback, use a variable to store the link, just like with the proxy link functions:

<figure><img src="/files/1X9B2450Vj3n6vK4Ry7m" alt="" width="496"><figcaption><p>Fig. 8</p></figcaption></figure>

### Smart proxy links

These are regular proxy links but called "smart" because they allow passing parameters using `#{}`. When someone clicks such a link, the placeholders are replaced with the client’s corresponding variable values. This way, you can direct the user to the right section of the site without changing the link itself:

<figure><img src="/files/EwDxEtqiCYW5RuuvukhT" alt=""><figcaption><p>Fig. 9</p></figcaption></figure>

`url = proxy('https://yandex.ru/search/?clid=9582&text=salebot&lr=53&p=#{page}')`&#x20;

`page = 0`&#x20;

In this example (Figure 8), we create a link with one parameter, but there can be any number of parameters.&#x20;

{% hint style="warning" %}
Please note!

It’s important to plan parameter values in the funnel in advance so that the “smart” proxy link works smoothly. Each parameter must be assigned a value before the link is provided to the client.
{% endhint %}

With a well-designed funnel, you only need to update the necessary client variables, and when the client clicks the same link, they’ll be directed exactly where needed.

## Link deletion

`remove_links()` — deactivates all short links sent to the client\
`remove_one_time_links()` — deactivates all one-time links sent to the client\
`remove_timer_links()` — deactivates all time-limited links sent to the client

## Example of use

<figure><img src="/files/GWnDjE8C1zFSYDLBdThc" alt="" width="494"><figcaption><p>Fig. 10 Add the resulting link variable to the button.</p></figcaption></figure>

<figure><img src="/files/C67Bht7XuHaa0og78thg" alt="" width="537"><figcaption><p>Fig.11 Button settings</p></figcaption></figure>

Live stream on the functionality:

{% embed url="<https://youtu.be/3sZudxCYuZQ>" %}


---

# 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://docs.mavibot.ai/how-to-do.../temporarily-available-content.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.
