> 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/messages/buttons.md).

# ボタンを設定する

メッセージにボタンを追加し、URLの表示などを設定する手順を紹介します。

押した相手をリンク先へ案内したり、続きのDMを送ったりしたいときに、メッセージにボタンを追加します。

## はじめる前に

* ボタンを追加するメッセージ（テキストかカルーセル）を作成していること

まだメッセージがない場合は、[メッセージを作成する](/how-to/messages.md)を確認してください。

## 手順

{% stepper %}
{% step %}
メッセージの編集画面で［＋ ボタンを追加］を選ぶ

* 1つのメッセージにつき、ボタンは3個まで追加できます
  {% endstep %}

{% step %}
［ボタンのテキスト］に、ボタンに表示する文言を入力する（20文字まで）
{% endstep %}

{% step %}
［相手がボタンを押すと］で、動作をどちらか1つ選ぶ

* **［指定のURLを表示］**: 「https\://」で始まるURLを入力します。ボタンを押すと、そのページが開きます
* **［次のDMを送る］**: ボタンを押した相手に続きのDMを送ります。DMの内容は、ボタンの設定を閉じたあとに設定します（[ボタンを押した人に次のDMを送る](/how-to/messages/next-dm.md)）
  {% endstep %}

{% step %}
［閉じる］を押す
{% endstep %}
{% endstepper %}

## 完了後の状態

［閉じる］を押すと、入力した内容はそのまま保存され、メッセージにボタンが表示されます。フォロワーがボタンを押すと、設定した動作（URLの表示か次のDMの送信）が起きます。

{% hint style="warning" %}

* PCのブラウザでInstagramを開いているフォロワーには、ボタンが動作しません。スマートフォンのアプリでは正常に動作します。
* ボタンのテキストに「.」（ピリオド）を含めると、Androidで正常に届かない場合があります。
  {% endhint %}

## 関連ガイド

* [メッセージを作成する](/how-to/messages.md)
* [ボタンを押した人に次のDMを送る](/how-to/messages/next-dm.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/how-to/messages/buttons.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.
