> For the complete documentation index, see [llms.txt](https://help.plusra.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.plusra.jp/reference/trigger-options/keywords.md).

# キーワードと一致条件

キーワードをすべてに返信するか特定の語だけにするかの指定と、部分一致・完全一致や大文字小文字・全角半角の扱いをまとめています。

キーワードは、どんなメッセージやコメントに返信するかを絞る設定です。DM・投稿コメント・ストーリーへの返信・ライブコメントのトリガーで設定できます。ストーリーメンションのトリガーにはありません。

## すべてに返信／特定のキーワードだけ

返信のしかたは2つから選べます。

| モード          | 返信する範囲                           |
| ------------ | -------------------------------- |
| **すべて**      | キーワードを問わず、届いたメッセージやコメントすべてに返信します |
| **特定のキーワード** | 指定したキーワードに当てはまるものだけに返信します        |

特定のキーワードを選ぶと、返信のきっかけになる言葉を登録できます。

## 部分一致と完全一致

特定のキーワードを選んだとき、一致のしかたを部分一致か完全一致から選べます。

* **部分一致**: 設定したキーワードを含むメッセージに返信します
* **完全一致**: 設定したキーワードと完全に同じメッセージだけに返信します

キーワードを「りんご」に設定した場合は、次のとおりです。

| メッセージ      | 部分一致 |  完全一致 |
| ---------- | :--: | :---: |
| りんご        | 返信する |  返信する |
| りんごください    | 返信する | 返信しない |
| 今日はりんごを食べた | 返信する | 返信しない |

## 表記のゆれ

大文字と小文字、全角と半角は区別しません。次の表記はすべて同じものとして扱われます。

* Apple / APPLE / ａｐｐｌｅ

ひらがなとカタカナは別の文字として扱われます。「りんご」と「リンゴ」は別のキーワードになるため、どちらにも返信させたいときは両方を登録してください。

## 複数のキーワードを設定したとき

1つの自動返信に複数のキーワードを設定した場合、いずれか1つでも当てはまれば返信します。

## 上限

キーワードは1つの自動返信につき最大20個まで、1個あたり30文字まで登録できます。

## 関連ガイド

* [トリガーの設定項目](/reference/trigger-options.md)
* [トリガー別に自動返信する](/how-to/triggers.md)
* [メッセージ・ボタン・画像の上限](/reference/limits.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.plusra.jp/reference/trigger-options/keywords.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
