# Rule: Plan Selection & Deactivation

### Deactivating a Product Example

When the Bronze plan is chosen as the primary product, automatically disable the Silver and Gold Support products in the secondary options.

* Event to Trigger the Rule: Plan Selected

{% code lineNumbers="true" %}

```
IF:
    Id = [Insert ID] (or Name = [Insert Name])

AND 
    Selected = True

THEN:
    Deactivate Plans: Choose all Silver and Gold products from the drop-down list.
```

{% endcode %}

### Automatically Selecting a Plan Example

When the Silver plan is chosen as the primary product, automatically include the Silver Support product in the secondary options.

* Event to Trigger the Rule: Plan Selected

{% code lineNumbers="true" %}

```
IF:
    Id = [Insert ID] (or Name = [Insert Name])

AND 
    Selected = True

THEN:
    Select Plans: Choose the Silver Support product from the drop-down list.
```

{% endcode %}


---

# 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.peakcommerce.com/developers/logic-and-rules/rule-plan-selection-and-deactivation.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.
