> 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/how-to/triggers/dm.md).

# DMに自動返信する

DMの受信をトリガーに自動返信する設定の手順を紹介します。

受け取ったDMに自動で返信したいときに使うのが、DM受信のトリガーです。キーワードと実行回数を決めるだけで設定できます。

自動返信を作る流れ全体は、[トリガー別に自動返信する](/how-to/triggers.md)を確認してください。

## はじめる前に

* Instagramと連携していること
* 自動返信を新規作成し、編集画面を開いていること

連携がまだの場合は、[Instagramと連携する](/get-started/instagram-connection.md)を確認してください。

## 手順

DM受信のトリガーは、3つのステップで設定します。各ステップで内容を決めて［次へ］で進み、最後に［メッセージ作成へ］を押します。

{% stepper %}
{% step %}
トリガーを選ぶ画面で「DM受信」を選ぶ
{% endstep %}

{% step %}
［キーワード］で、どのDMに返信するかを選ぶ

* キーワードを設定しなければ、すべてのDMに返信します。特定の言葉にだけ返信するときは、キーワードと一致条件（部分一致・完全一致）を設定します。詳しくは[キーワードと一致条件](/reference/trigger-options/keywords.md)を確認してください
  {% endstep %}

{% step %}
［実行回数］で、同じ人へ返信する回数を選ぶ

* 「毎回反応する」か「同じ人には1回だけ」かを選べます。詳しくは[同じ人への返信回数](/reference/trigger-options/reply-frequency.md)を確認してください
  {% endstep %}

{% step %}
［メッセージ作成へ］を押す
{% endstep %}
{% endstepper %}

## 完了後の状態

トリガーの設定が終わり、送るメッセージを作る画面（「メッセージの種類を選択」）に進みます。\
メッセージの作り方は[メッセージを作成する](/how-to/messages.md)を確認してください。

{% hint style="info" %}
キーワードを「すべて」のままにすると、届いたすべてのDMに自動返信します。特定の問い合わせにだけ返したいときは、キーワードを設定してください。
{% endhint %}

## 公開して動かす

メッセージを作成後、自動返信を公開します。公開すると、DMを受信したときに自動で返信が始まります。

{% stepper %}
{% step %}
（任意）[テスト送信する](/how-to/manage/test-send.md)で、実際の届き方を確認する
{% endstep %}

{% step %}
[自動返信を公開する](/how-to/manage/publish.md)
{% endstep %}
{% endstepper %}

## 関連ガイド

* [トリガーの設定項目](/reference/trigger-options.md)
* [メッセージを作成する](/how-to/messages.md)
* [自動返信を公開する](/how-to/manage/publish.md)
* [自動返信が動かない](/troubleshooting/auto-reply-issues.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/how-to/triggers/dm.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.
