# Setting Up Autobuy

This comprehensive guide covers setting up autobuy for all supported platforms with the Boost Bot.

> **Prerequisites:**
>
> * You have already downloaded the Boost Bot and completed the initial setup steps.\
>   If not, follow: [Boost Bot Setup Guide](/boost-bot.md)

## 📋 Supported Platforms

The Boost Bot supports the following autobuy platforms:

* **PAYLIX** - Paylix.io
* **SELLIX** - Sellix.io
* **SELLAUTH** - Sellauth.com
* **SELLAPP** - Sellapp.io
* **SELLHUB** - Sellhub.cx
* **SELLPASS** - Sellpass.io

## 🔧 Step 1: Configure Autobuy Settings

1. **Open your `config.yaml` file**
2. **Configure the autobuy section**:

```yaml
autobuy:
  autobuy_enabled: true
  store_type: "SELLIX"  # Choose from: PAYLIX, SELLIX, SELLAUTH, SELLAPP, SELLHUB, SELLPASS
  store_api_key: "YOUR_API_KEY"
  store_id: "YOUR_STORE_ID"
  status_page: true
  stock_page: true
  invite_field_name: "Permanent Server Invite Link"
```

## 🔑 Step 2: Get Your API Credentials

* If you haven’t created accounts or enabled API access on your store platform, please refer to the platform’s documentation.

### For SELLIX:

* Go to [Sellix Dashboard](https://dashboard.sellix.io/)
* Navigate to **Settings > API**
* Copy your API key

### For SELLPASS:

* Go to [Sellpass Dashboard](https://dashboard.sellpass.io/)
* Navigate to **Settings > API**
* Copy your API key and store ID

### For SELLHUB:

* Go to [SellHub Dashboard](https://dash.sellhub.cx)
* Navigate to **Developers > API Key**
* Create and copy your API key

### For SELLAPP:

* Go to [Sellapp Dashboard](https://sellapp.io/dashboard)
* Navigate to **Settings > API**
* Copy your API key

### For SELLAUTH:

* Go to [Sellauth Dashboard](https://dash.sellauth.com/dashboard)
* Navigate to **Settings > API**
* Copy your API key

### For PAYLIX:

* Go to [Paylix Dashboard](https://paylix.io/dashboard)
* Navigate to **Settings > API**
* Copy your API key

## 🛠️ Step 3: Set Up Products

1. **Launch your bot**
2. **Create a product** in your chosen platform (e.g., Sellix, Sellauth)
3. **Get the Product ID** from the platform:

   * Click on **Edit Product**
   * Look at the URL in your browser
   * Copy the product ID from the URL

   **Examples:**

   * Sellix: `https://dashboard.sellix.io/products/123456` → `123456`
   * Sellpass: `https://sellpass.io/dashboard/products/789012` → `789012`
   * SellHub: `https://dash.sellhub.cx/products/3a308e1f-7d54-410e-a295-96214ad3fc3f/` → `3a308e1f-7d54-410e-a295-96214ad3fc3f`
4. **Use the command** `/add-autobuy-product` in your bot's Discord server
5. **Fill in the options**:
   * **Product ID** – Paste the one you copied from your platform
   * **Boost Type** – Choose between `1 Month` or `3 Months`
   * **Quantity** – Number of boosts you want to attach to this product

✅ The bot will reply with a **success message** and a **"Reveal Dynamic Delivery URL"** button.

## 🌐 Step 4: Configure Dynamic Delivery

1. **Click the "Reveal Dynamic Delivery URL"** button and **copy the URL**
2. **Go back to your store dashboard** → Edit your product
3. **Set Delivery Type** to `Dynamic`
4. **Paste the dynamic delivery URL** in the input field
5. **Save changes**

## 📩 Step 5: Set Up Invite Link Field

1. **In your `config.yaml`**, locate the value of the `invite_field_name` setting (usually "Permanent Server Invite Link")
2. **Go back to your product edit page** in your store dashboard
3. **Create a custom field** with the **exact same name**
4. **Set the field type** to "Text" or "Textarea"
5. **Make it required** so buyers must provide their invite link

This is where your buyer will paste their **Discord Invite Link** when purchasing.

## ✅ Done! You're All Set!

Your product is now fully integrated with the autobuy system:

* Buyers will receive boosts automatically
* Delivery will be instant and dynamic
* No manual effort needed

## 🔍 Troubleshooting

### Common Issues

**"Product not found" error**:

* Double-check your Product ID from your platform
* Ensure the product exists and is active

**"Invalid API key" error**:

* Verify your API key in your platform dashboard
* Make sure you copied the full key without extra spaces

**"Dynamic delivery failed"**:

* Check that the bot is running and online
* Verify the dynamic delivery URL is correctly set in your platform

**"Store ID not found" error**:

* For platforms that require a store ID (like Sellpass), ensure it's correctly set
* Check your platform dashboard for the correct store ID

### Platform-Specific Notes

#### SELLIX

* Store ID is optional
* API key is found in Settings > API

#### SELLPASS

* Requires both API key and store ID
* Store ID can be found in your dashboard URL or settings

#### SELLHUB

* API key must be created in Developers > API Key section
* Product IDs are UUID format (longer than other platforms)

#### SELLAPP

* Store ID is optional
* API key is found in Settings > API

#### SELLAUTH

* Store ID is optional
* API key is found in Settings > API

#### PAYLIX

* Store ID is optional
* API key is found in Settings > API

## 📚 Additional Resources

* [Main Boost Bot Setup Guide](/boost-bot.md)
* [How to Download the Program](/general-guides/how-to-download-the-program.md)
* [How to Create Discord Bot](/general-guides/how-to-create-discord-bot.md)

***

Need help? Reach out in our Discord! 💬


---

# 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.xtremez.me/boost-bot/setting-up-autobuy.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.
