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

# セグメント変数：注文履歴

### **注文回数**

訪問者の注文回数別にターゲティングします。

**時点**

* 過去：期間内の過去の注文履歴を照会し、注文回数が条件値を満たす訪問者
* 現在：現在のセッションで、条件値を満たす回数だけ商品を注文した訪問者

**変数の使用例**

注文回数 \[3]

* *以上*：過去に3回以上注文した訪問者をターゲティング
* *以下*：過去に3回以下注文した訪問者をターゲティング
* *と等しい*：過去に3回注文した訪問者をターゲティング
* *でない場合*：過去に3回注文した訪問者を除いてターゲティング

注文回数 \[3以上5以下]

* *範囲内*：過去に3回以上5回以下注文した訪問者をターゲティング
* *範囲外*：過去に3回以上5回以下注文した訪問者を除いてターゲティング

***

### **初回注文**

訪問者が初回注文かどうかでターゲティングします。

**時点**

* 過去：期間内に初回注文の履歴がある訪問者
* 現在：現在のセッションで初めて注文した訪問者

**変数の使用例**

初回注文

* *初回注文*：初めて注文した訪問者をターゲティング
* *初回注文以外*：今回の注文が再注文である訪問者（注文回数が1回以上の訪問者）をターゲティング

**Tip & Guide**

購入履歴のない訪問者が注文したときを初回注文とみなします。「過去」の時点で使う場合、期間内に初回注文の履歴があれば、注文回数が1回以上でもターゲティングされます。ご注意ください。

***

### **最終注文**

訪問者が最終注文かどうかでターゲティングします。

**時点**

* 過去：期間内に最終注文の履歴がある訪問者
* 現在：「現在」の時点では使用できない変数です。

**変数の使用例**

最終注文

* *最終注文*：期間内に最終注文の履歴がある訪問者をターゲティング
* *最終注文以外*：期間内に最終注文の履歴がある訪問者を除いてターゲティング

***

### **注文曜日**

訪問者が注文した曜日別にターゲティングします。

**時点**

* 過去：期間内に、ターゲティングした曜日に注文した履歴がある訪問者
* 現在：ターゲティングした曜日に商品を注文した訪問者

**変数の使用例**

注文曜日 \[月]

* *と等しい*：月曜日に注文した訪問者をターゲティング
* *でない場合*：月曜日に注文した訪問者を除いてターゲティング

***

### **注文時間帯**

訪問者が注文した時間帯別にターゲティングします。

**時点**

* 過去：期間内に、ターゲティングした時間帯に注文した履歴がある訪問者
* 現在：ターゲティングした時間帯に商品を注文した訪問者

**変数の使用例**

注文時間帯 \[13:00\~13:59]

* *と等しい*：13:00\~13:59に注文した訪問者をターゲティング
* *でない場合*：13:00\~13:59に注文した訪問者を除いてターゲティング


---

# 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.groobee.ai/ja/segments/segment/variable/order-record.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.
