# Rule

Each [message](https://app.gitbook.com/@docs-en-yoctol-ai/s/yoctol/~/edit/drafts/-LnQJsTXatUDJ-slOjKr/v/master/term-translations/message) on YOCTOL.AI has its own “rule”. Each rule defines a certain situation for the chatbot to react to the chatbot users’ input.

**There can only be one message connected to each rule.** \
**However, a message can have multiple rules.**

If you apply the same rule to multiple messages, the chatbot might not be able to reply correctly.

### Example

Take the message “Order information” as an example. The following examples are possible rules for the message.

1. NLU: Select the intent for “Order Information”
2. Keyword matching: Select “When it matches any keyword: ‘place an order’, ‘order drinks’ or ‘order’
3. Regular expression: write a regular expression such as “.\*(order|buy).\*$”. For more information about regular expressions, please visit [Regular Expression](https://app.gitbook.com/@docs-en-yoctol-ai/s/yoctol/~/edit/drafts/-LnQJsTXatUDJ-slOjKr/v/master/term-translations/regular-expression).

   <br>


---

# 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-en.yoctol.ai/term-translations/rule.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.
