# 2. Create Your First Campaign

{% embed url="<https://www.youtube.com/watch?index=2&list=PLGASFo0vRDpks4cfL2V9D0z3Cm78A92Hq&v=vu95wwUfYkY>" %}

Once the app is enabled, let's create our first campaign. You can do this from the dashboard by selecting "Create Campaign," or you can navigate to the Campaigns page and click on "Create Campaign."

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

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

We need to name the campaign. You can also add an optional description. For this first campaign, we will choose the "Automatic" method. Additionally, we need to set the campaign's active dates. If we do not set an end date, it will be an ongoing campaign.

We can also add multiple discounts to this campaign, selecting from various discount types.

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

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

Let's add one discount with the "Amount of Product" type and another with the "Buy X, Get Y" type.

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

Click "Save".

If you go back to the Campaigns page, you will see the campaign we just added.

<figure><img src="/files/7Uky9DzXmrAjcP4zvPO4" alt=""><figcaption></figcaption></figure>

If you go to your admin discounts page, you can see that the new discount, "Stack Discount - Automatic," has been created by the app.

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


---

# 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://uniocode.gitbook.io/stack-discounts/2.-create-your-first-campaign.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.
