> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/conversations/fb.md).

# 対話プラットフォーム連携：FB Messenger

## <mark style="color:blue;">連携前の確認</mark> <a href="#pre-integration-checklist" id="pre-integration-checklist"></a>

**MaiAgent 側の準備**

* [MaiAgent プラットフォーム](https://admin.maiagent.ai/)上で「AI アシスタント」を1つ作成済みであること

**Facebook 権限の準備**

* Facebook アカウントがビジネスアセット管理ポートフォリオに招待済み、または作成済みであること
* 該当のビジネスアセット管理ポートフォリオに対する「フルコントロール権限」を保有していること

**Facebook ページ権限の確認**

* ページがすでにビジネスアセット管理ポートフォリオに含まれている場合：追加の調整は不要です
* ページがビジネスアセット管理ポートフォリオに含まれていない場合：該当の Facebook ページの管理者であり、かつフルコントロール権限を保有している必要があります

<div><figure><img src="/files/CfQxMTh2fZ2NdcM53Dmp" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/oVpuT6zsl1DH50S6SHDN" alt="" width="298"><figcaption></figcaption></figure></div>

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

## <mark style="color:blue;">連携を開始する</mark> <a href="#start-integration" id="start-integration"></a>

### 1. MaiAgent の対話プラットフォームページで「対話プラットフォームを連携」をクリックします <a href="#step-go-to-maiagent-channel-page" id="step-go-to-maiagent-channel-page"></a>

a. 右上の<mark style="color:blue;">対話プラットフォームを連携</mark>をクリックします

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

b. Messenger を選択します

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

c. 該当ページの Facebook アカウントでログインします。

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

### 2. ビジネスを選択し、ページを選択（取得）します。 <a href="#step-select-business-and-page" id="step-select-business-and-page"></a>

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

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

承認を確定し、作成が成功すると管理委託が完了します。

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

### 3. AI アシスタントの設定 <a href="#step-ai-agent-settings" id="step-ai-agent-settings"></a>

対話プラットフォーム名を入力し、AI アシスタントと Messenger チャネル（先ほど取得した Facebook ページ）を選択します

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

### 4. 連携結果を確認する <a href="#step-verify-integration" id="step-verify-integration"></a>

続いて、MaiAgent の内部対話画面から該当の対話プラットフォームに向けてテストメッセージを送信してみてください。AI アシスタントが正常に返信できれば、連携は成功しています。

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

また、該当の Facebook ページで AI アシスタントとの対話を開始し、テストメッセージを送信することもできます。ボットが正常に返信できれば、連携は成功しています。

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


---

# 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://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-ja/conversations/fb.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.
