# Creating Rules

You can also create rules that would enable you to include or exclude specific clauses if a certain condition is met.

Suppose there is a clause in the contract which states that support will only be offered if the contract value is above a certain amount, say $10,000.

To include this conditional rule, select the text of the relevant clause.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2F1WgIvjkUz8bH1oGZqIQV%2Fimage.png?alt=media&#x26;token=371add10-5578-43ac-aa5b-ce67ac14a281" alt=""><figcaption></figcaption></figure>

Right click the selected text and click the “Rules” option. Then select the “Create and Use Rule” option.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fvfqrbw5MDY5yzUYfoPTK%2Fimage.png?alt=media&#x26;token=5aa29810-6acd-413f-8833-59efd179b94b" alt=""><figcaption></figcaption></figure>

Enter the name of the rule.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2F9gBA7kCad9rxqChVagzz%2Fimage.png?alt=media&#x26;token=55f4ee01-4f7d-4365-beea-5012090a1a6c" alt=""><figcaption></figcaption></figure>

Change the rule as needed to match your requirements. In this example, as the rule is being defined by contract value, the “Contract Value” option must be selected.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2Fy9oWtdxd1dLcdcf3uqtT%2Fimage.png?alt=media&#x26;token=53a445f0-50c4-48ef-8dc8-2a3400ea699a" alt=""><figcaption></figcaption></figure>

Enter the contract value that sets the limit, which in this example is $10,000.

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FSfNY9Ljq4GbVSRzECxGm%2Fimage.png?alt=media&#x26;token=80f5591d-1c8c-4ad7-a52d-46901175674e" alt=""><figcaption></figcaption></figure>

Click the “Save” button to save your rule. The rule will be incorporated into your contract.&#x20;

<figure><img src="https://990055713-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpzhcJuh5qEG7uLa8k3LR%2Fuploads%2FRCkTItoO0ucN53k6oPs8%2Fimage.png?alt=media&#x26;token=65206195-ae59-4d75-ba0d-4012122ad0ce" alt=""><figcaption></figcaption></figure>

When you have finished automating any terms and creating any rules, scroll to the bottom of the page and click on the “Next” button.


---

# 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://adminguidesgitbook.aerofiler.com.au/approvals/workflow-setup/contract-workflow-settings/creating-rules.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.
