# 通过规则进行自动打标签

{% hint style="info" %}
本帮助文档详细说明了如何在交易数据自动化模块中创建、执行、编辑和删除自动化记账规则。包括如何通过多种条件筛选交易数据，设置规则优先级，以及管理生成的记账凭证。
{% endhint %}

## 1. 进入交易数据自动化模块

1. 在项目首页，导航到项目&#x7684;**“交易管理”**&#x9875;面。
2. &#x5728;**“交易管理”**&#x9875;面中，找到并点击&#x4FA7;**“自动化规则”**&#x9009;项。
3. 选&#x62E9;**“转账记录-记账凭证”**&#x9009;项卡。

   <figure><img src="/files/tps4f0DBgvAIIXKQOVqg" alt=""><figcaption></figcaption></figure>

## 2. 新增自动化记账规则

1. 点击页面右上&#x89D2;**“新增规则”**&#x6309;钮。

   <figure><img src="/files/x2vbTHCKxbUYJWHkeYo2" alt=""><figcaption></figcaption></figure>
2. 输入规则名称。
3. 配置规则应用的数据范围，可以通过条件筛选出要应用该规则的交易数据。
   1. 支持基于交易方向、平台、币种、金额、时间等多种条件筛选数据。
4. 选择符合条件的交易数据要创建的记账凭证类型。

   <figure><img src="/files/rBqtyrHjvzdJUV8sk3Tp" alt=""><figcaption></figcaption></figure>
5. 保存自动化记账规则。

## &#x20;3. 执行自动化记账规则

1. 点击页面右上&#x89D2;**“手动执行所有规则”**&#x5373;可执行全部规则。

   <figure><img src="/files/RX3e0NN5dbmdmZKOVDwL" alt="" width="375"><figcaption></figcaption></figure>
2. 交易数据自动化规则不支持单条执行，每次都需要执行全部规则，按照优先级从前到后，交易符合哪条规则就按照哪条规则生成记账凭证。

## 4. 编辑自动化记账规则

1. 点击规则后的“编辑”按钮，弹出编辑规则弹窗。
2. 更改规则后，重新运行规则，将会依照新的规则生成记账凭证，替换原有记账凭证。
3. 可以通过拖动规则名称前的拉手调整规则的优先级。

## 5. 删除自动化记账规则

1. 点击规则后的“删除”按钮，可以触发删除规则。
2. 删除规则并不会删除基于规则生成的记账凭证。


---

# 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.elven.com/v3/chinese/bookkeeping/tong-guo-jiao-yi-shu-ju-ji-zhang/tong-guo-gui-ze-jin-xing-zi-dong-da-biao-qian.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.
