> For the complete documentation index, see [llms.txt](https://docs.rulecube.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rulecube.com/v2.5/how-to-guides/ruleset-development/create-a-ruleset.md).

# Create a Ruleset

{% hint style="info" %}
If you just want to create a Ruleset as fast as possible, please read the chapter "[Quick Start](/v2.5/quick-start.md)".&#x20;
{% endhint %}

## Introduction

This guide explains how to create a ruleset in every detail.&#x20;

**Rulesets** are the foundation of Rulecube. You can think of them as the general container that contains all elements to implement a set of rules that calculates a result that you process in external software such as a web app. This way, rulesets enable you to implement your business rules software-wise and apply them to your software or data engineering pipeline via an API.&#x20;

## Before you begin

* Think of a self-explanatory and specific name for your ruleset. For example, `Loan discount calculation` is clearer than `LoanCalculation`.

## Procedure

There are two ways to create a ruleset:

* From scratch.
* By copying an existing ruleset.

Next, you'll find procedures for both ways.

### Create a ruleset from scratch

1. Navigate to the *Service* page.
2. Click **+Ruleset** and select **Blank ruleset** to create a ruleset.\
   ↳ The **Add new ruleset** pop-up opens.
3. In the **Ruleset name** field, enter the name you want to give the ruleset.
4. Click **OK**.\
   ↳ Rulecube creates the ruleset and shows the **General settings** page for the ruleset:<br>

   <figure><img src="/files/VMNF9M33n5Oyc4qlFLeK" alt=""><figcaption></figcaption></figure>
5. If you want to change the automatically generated endpoint URL, in the **Endpoint URL** field, enter your endpoint.
6. If you want to store a description of your ruleset for later reference or colleagues, in the **Description field**, enter your description.
7. If you changed the endpoint, description, or both, click **Save**.

### Create a ruleset by copying an existing ruleset

1. Navigate to the *Service* page.
2. Click **+Ruleset** and select **From existing...** to create a copy of an existing ruleset.\
   ↳ The **Copy ruleset** pop-up opens.
3. In the **Existing ruleset** list, select the ruleset you want to copy.
4. In the **Ruleset name** field, enter the name you want to give the ruleset.
5. Click **OK**.\
   ↳ Rulecube creates the ruleset and shows the **General settings** page for the ruleset:\ <br>

   <figure><img src="/files/Dmd1ixkyFg5ZzhR8iJDb" alt=""><figcaption></figcaption></figure>
6. If you want to change the automatically generated endpoint URL, in the **Endpoint URL** field, enter your endpoint.
7. If you want to store a description of your ruleset for later reference or colleagues, in the **Description field**, enter your description.
8. If you changed the endpoint, description, or both, click **Save**.

## Additional resources

* How-to Guide: [Set the Input for a Ruleset](/v2.5/how-to-guides/ruleset-development/set-the-input-for-a-ruleset.md).
* How-to Guide: [Create a Rule](/v2.5/how-to-guides/ruleset-development/create-a-rule.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.rulecube.com/v2.5/how-to-guides/ruleset-development/create-a-ruleset.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.
