> For the complete documentation index, see [llms.txt](https://docs.storylane.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.storylane.io/repx-chat/training-repx/rules.md). Agents can also search and read this documentation through its [MCP server](https://docs.storylane.io/~gitbook/mcp).

# Rules

Add instructions RepX always follows.

Rules let you control how RepX behaves in specific situations, whatever your website or training content says. Use them for topics RepX should stay away from, situations where it should hand off to your team, or answers it should never give. Find them under **Training → Rules**.

<figure><img src="https://2714158815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5THBKNFo5kBfDJULy3RM%2Fuploads%2FCSoeDU8u5zrN6OAQnqb5%2FScreenshot%202026-11-23%20at%204.55.43%E2%80%AFPM.png?alt=media&amp;token=bbaf591d-ad00-4148-85c7-a8d517e6c456" alt=""><figcaption></figcaption></figure>

**Adding a rule**

1. Go to **Training → Rules** and click **Add a rule**.
2. Write the rule in plain language.
3. Click **Save changes**.

To change a rule, click **Edit**. To remove it, click the trash icon.

Rules are set per agent, so each agent can follow its own.

**Examples**

* *Never quote custom pricing or discounts. Offer a meeting instead.*
* *Point existing customers asking for support to our help center.*
* *Stay on topics related to our product. Politely decline anything else.*
* *If a visitor asks about security reviews or legal terms, offer to connect them with our team.*
* *Never promise features or timelines that aren't live yet.*

**Writing good rules**

* **One instruction per rule:** short, specific rules are easier for RepX to follow and easier for you to update.
* **Say what to do instead:** "Offer a meeting instead" works better than "Don't discuss pricing" alone.
* **Test after you add one:** run your [Evals](https://docs.storylane.io/repx-chat/setting-up-repx/testing-your-agent) to check the rule works and hasn't changed other answers.


---

# 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.storylane.io/repx-chat/training-repx/rules.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.
