> 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-en/conversations/fb.md).

# Integrate with Platform: FB Messenger

## <mark style="color:blue;">Pre-Connection Checklist</mark>

**MaiAgent Preparation**

* An "AI Assistant" has been created on the [MaiAgent platform](https://admin.maiagent.ai/)

**Facebook Permission Preparation**

* Your Facebook account has been invited to or has created a Business Asset Group
* You have "Full Control" permission for the Business Asset Group

**Page Permission Confirmation**

* If the page is already under a Business Asset Group: No additional adjustments needed
* If the page is not under a Business Asset Group: You must be an administrator of the page with full control permission

<div><figure><img src="/files/tS8cNZcRt1Yt135awyIY" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/1mSnSckRLmOM8yjZlmas" alt="" width="298"><figcaption></figcaption></figure></div>

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

## <mark style="color:blue;">Start Connection</mark>

### 1. Go to the MaiAgent Chat Platforms page and click "Connect Chat Platform"

a. Click <mark style="color:blue;">Connect Chat Platform</mark> in the upper right corner

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

b. Select Messenger

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

c. Log in with the Facebook account associated with the page.

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

### 2. Select the business and select (claim) the page.

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

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

Confirm the authorization. Once successfully created, the setup is complete.

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

### 3. AI Assistant Settings

Enter the chat platform name, select the AI Assistant, and choose the Messenger channel (the page you just claimed)

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

### 4. Verify the Connection

Next, you can try sending a test message to the chat platform through MaiAgent's Internal Q\&A. If the AI Assistant responds normally, the connection is successful.

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

You can also go to the page and start a conversation with the AI Assistant by sending a test message. If the bot responds normally, the connection is successful.

<figure><img src="/files/gZJYGf48JBv4zRgQPzbh" 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-en/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.
