> For the complete documentation index, see [llms.txt](https://docs.openg2p.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openg2p.org/products/pbms/design/rule-definitions.md).

# Rule definitions

### Eligibility rules

<figure><img src="https://3034178245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZcdob2emEcLMvLyIxqT%2Fuploads%2FLnrQGBYcpu4uFYoR7Eax%2FProgram-Eligibility-Rules.png?alt=media&amp;token=2d723c11-a906-4d76-b23f-2f35b1b16a70" alt=""><figcaption><p>Screen showing Program associated with a list of Eligibility rules</p></figcaption></figure>

<figure><img src="https://3034178245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZcdob2emEcLMvLyIxqT%2Fuploads%2FUzDo0t7LWCacoycWF6Bq%2FProgram-Eligibility-Rule-Detail.png?alt=media&amp;token=9eac45f8-0ab9-4dd8-851e-9665caa912c3" alt=""><figcaption><p>Screen showing an Eligibility rule definition</p></figcaption></figure>

### Entitlement rules

<figure><img src="https://3034178245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZcdob2emEcLMvLyIxqT%2Fuploads%2FXJzdHtruScCkkzk6z3Cq%2FProgram-Entitlement-Rules.png?alt=media&amp;token=d043afbf-840b-4d88-b002-b9d7ded50f48" alt=""><figcaption><p>Screen showing a benefit program associated with an Entitlement rule</p></figcaption></figure>

### Disbursement rules

<figure><img src="https://3034178245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZcdob2emEcLMvLyIxqT%2Fuploads%2F6W5CXrPQEf7ZwYwdj37y%2FProgram-Disbursement-Rules.png?alt=media&amp;token=601c12a2-eb8c-476f-a80d-4d2c8bac9575" alt=""><figcaption><p>Screen showing Disbursement Rules for a Benefit Program - Disbursement Cycle</p></figcaption></figure>

<figure><img src="https://3034178245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJZcdob2emEcLMvLyIxqT%2Fuploads%2FaxVhso1KqRa13ugYiqbi%2FProgram-Disbursement-Rules-Detail.png?alt=media&amp;token=6beae98c-6254-40e7-a8a2-7965117a8911" alt=""><figcaption><p>Screen showing Disbursement rule definition</p></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openg2p.org/products/pbms/design/rule-definitions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
