# How to Create Buy 1 Get 1 Free Offer?🤔

### Step 1: Start Creating the Discount Function

* Go to **Nexus dashboard** and click on **Create Function.**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWTS7TLaiRafEVQ4ZndzcDW1ZjpIejj6eytgaD1LhzMcHTgoGHK1NXxIlAqRVgAnvDYIztFxGPzkPp9q5cI6xw1jVfwBDyfCts-jx_pCiSQ8zy41a79F4L1GXbGE4xfySO6Mw32w?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

* Choose **Discount Functions** from the available list.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfrVMP0eP6ymgHo9BjoGm-LtsuEx-bH97UrS9-YhSiLPx4HNyiHCH1YCF4KmFJ-9shTseTEXdaHFQqmkZbywszV3qTOCtHMqMHfn8qiRtJR1kTU7DCAlCr_C4B6uFW0foe-etVfmA?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

* Select **Amount Off Product** as your function type.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfG28BOqNfMLFurwuaRteJaeth2ywv2jp4J8zB4YjuHpiGkHaIc3ndlvu_zYZHKJnP2Hc0RPY3To4vWaajeGTYKlWH4dnhAnj7IEBfn-gW4iPKdhuFSWtpG24noT5mHviijbLvmxA?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

### Step 2: Configure the Campaign Details

* Set **Campaign Type** to **Buy X Get Y Discounted.**
* Use the **Buy Item Selector** to define **qualifying product** based on:
* **Product ID, Product Type, Vendor, Price, or Variant**
* Use the **Get Item Selector** to specify the **discounted products** using similar filters.
* Enter the required **Buy Quantity** and the **Get Quantity** **( Buy1Get1).**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcRych2-EvQwChatQtIubiEpqSJUjimAm9BsVylYg-KT-hTaTDRn-o2EUyD1lgkDKM9n517ZDxeRx7-OGocbC10WwCk9__b7cfKU3fNHAHoA603jnnu_IAjRqvtM_OitxRnOyiDrg?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

### Step 3: Apply Discount and Save Function

* Apply **100% Percentage Discount**
* Click **Save** to publish your campaign.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcZFtpZy4k3ER4iHr5i4KdgnyzueMSQB5Ngn4ChTGwDFpABTduHkcZabVbBLLm65DJR0j-ZnzonN4d2VSKNAKbG8L6fVEBygyttGDI5muAGm31QtnvX8x1BMRNfRYp821ukszl5?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

**🎉 Your discount function** has been **published successfully** — it’s now live and ready to **boost your sales!**

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcdkQyZe2aYqRJ0VXoKMio0DzDjqwFlNnJiL6HLc0WCXE7V4Nohq7XE2TD9fTY41ISvzlw8S0qG-mMv7u4gGQhjRCUwZiFW42rTwRHzn8Z-y0opLwo7uUozjue7PgMRI0E-1ojL?key=XHBNr_XRasDLQzq5MfrM2Q" alt=""><figcaption></figcaption></figure>

{% embed url="<https://www.youtube.com/watch?v=oJdPbk-VlMo>" %}

\ <br>


---

# 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://nexus-functions-creator-and-disc.gitbook.io/nexus-functions-creator-and-discounts/faqs/how-to-create-buy-1-get-1-free-offer.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.
