# Variables

&#x20;Variables are values written for the construction of actions. For example, PageType is a variable that holds the values of pages on a website; some of these values may return results like product, home, category. We can design actions to run on specific pages based on these page types and use that value to filter according to it.

&#x20;In CollectAction, after clicking on 'Variable' in the left panel, we say create a variable, and then we create a new variable.

![Variable Panel](https://content.gitbook.com/content/jQ8ZQ8GsTwDYJqiYNDyI/blobs/SJTgjLVEGlTrsRUG2eVA/Ekran%20Resmi%202022-03-02%2008.49.09.png)

![random\_show](https://content.gitbook.com/content/jQ8ZQ8GsTwDYJqiYNDyI/blobs/I2OgtoCj2mkVNfCLHCoM/image.png)

![When you want to use the random\_show variable that you have written, using Advanced Parameters allows you to filter based on the result of this variable.](https://content.gitbook.com/content/jQ8ZQ8GsTwDYJqiYNDyI/blobs/fHso9jWfq7QqouLFJVfM/Ekran%20Resmi%202022-03-02%2008.55.13.png)

### How to Add a Variable?

{% embed url="<https://www.youtube.com/watch?v=_O0T1S8cg9Y>" %}
How to Trigger an Action with a Custom Variable?
{% endembed %}


---

# 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://yapaytech.gitbook.io/collectaction-app-store/filter-settings/advanced-settings/variables.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.
