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

# Custom Business Rules

Write rules in plain language to control your Zipchat AI agent: tone of voice, what to recommend, what never to promise, per channel. Examples included.

Rules tell your AI agent how to behave: tone of voice, what to recommend, what never to promise, when to hand over to your team. You write them in plain language.

![Rules and skills in Zipchat](https://2043605213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYpZDb6HsnLHFu8ZygCS%2Fuploads%2Fgit-blob-08aa5e0c5926ccdfefcb3a6706520030f3eacd6a%2Frules-and-skills-2026.png?alt=media)

## Knowledge base or rules?

|         | Knowledge base                     | Rules                                                       |
| ------- | ---------------------------------- | ----------------------------------------------------------- |
| Holds   | Facts: products, prices, policies  | Decisions: how to sell, how to answer, what to avoid        |
| Example | "Returns are free within 30 days." | "Ask for the customer's height before recommending a size." |

## Where rules live

Go to **Rules & skills**. You find:

* **Built-in behavior**, always on, which you can view.
* **Rules**, such as About your store, Tone of voice and Opt-out requests. Click **Manage** to edit one.
* **Skills**, covered in [Agentic Skills](https://docs.zipchat.ai/ai-training-and-rules/agentic-skills.md).

## Add a rule

* Describe it in the box at the top of **Rules & skills**, or
* click **Add** in the top-right corner and choose a rule.

![Add a rule or skill in Zipchat](https://2043605213-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvYpZDb6HsnLHFu8ZygCS%2Fuploads%2FY6bGyfY9tdt1Ujw0ykYY%2Fadd-rule-or-skill-2026-11.webp?alt=media)

You can apply a rule to all channels or to specific channels, for example WhatsApp only. Use the channel filter to see which rules apply where. All turned-on rules share one character limit, and one rule can use all of it; the rule editor shows what is left.

## How to write good rules

Say what to do and what never to do. Be specific.

```
When a shopper asks about sizing, ask for their height and preferred fit before recommending a size.
Suggest the matching joggers when a shopper buys a hoodie.
Never invent discount codes.
Never promise delivery dates that are not in our shipping policy.
```

```
Always ask the customer's skin type before recommending a serum. If their skin is sensitive, suggest fragrance-free options.
```

```
If a customer wants to order more than 50 units, collect their email and escalate the conversation to our wholesale team.
```

## FAQ

### Can a rule apply only on WhatsApp or Instagram?

Yes. Choose the channels when you add or edit the rule.

### Where are my Additional instructions?

In **Rules & skills**. They are a rule named Additional instructions, unless you renamed it. You can edit or turn it off like any other rule.

### Should I put facts in rules?

No. Keep facts in the knowledge base so they stay in one place, and use rules for behavior.

### Can I manage rules through the API?

Yes. The [Backend API](https://docs.zipchat.ai/developers-and-integrations/backend-api.md) lets you list, create, update and delete rules.


---

# 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.zipchat.ai/ai-training-and-rules/custom-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.
