> This page is for Docs.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://zuora.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server.

# Create a decision tree

> Learn how to create a decision tree.

Learn how to create a decision tree.

Navigate to **Custom logic entry** in the left navigation menu.

Click **Create Logic** and then click **Create from Blank**.

In the displayed Create New Logic dialog, complete the following information:

* **Type**: Select **Decision Tree**.
* **Name**: Enter the decision tree name. The name must be unique across all custom logics.
* **Object**: Select the related object.
* **Effective Start Date**: Specify the date and time when this decision tree becomes effective.
* **Effective End Date**: Specify the date and time when this decision tree becomes ineffective.
* **Description**: Enter the decision tree description.

Click **Create**. The decision tree editor opens.

Edit conditions and results in the if-then-else statements in the editor:

1. Select a field from the dropdown list. Available fields vary depending on the object you selected in step 3. For more information, see [Objects and fields supported by Custom Logic](/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic).
2. Specify the operator by clicking the operator icon .
3. Specify the value in the value field.
4. (Optional) Add more rules by clicking **+ Rule** or add groups by clicking **+ Group** as needed.

(Optional) Add more if-then-else statements as needed:

1. Click **Add If** to add an if-then statement.
2. Click **Add Else** to add an else statement. You can add at most one else statement in a decision tree.
3. Repeat step 5 to edit the conditions and results in the statements you added.

Click **Activate** to create a decision tree and activate it immediately. Alternatively, click **Save** to create a draft decision tree.