# Meta setup checklist: Messenger AI agent

Monica Academy, Episode 3: "Why do Messenger AI agents make up prices?"
The full episode: https://immonica.com/academy/messenger-ai-agent

Every step you take in Meta for Developers, in order, for the n8n workflow in this kit (`messenger-ai-agent.json`).
Checked against the Meta for Developers screens on November 29, 2026, and Meta's public Messenger Platform documentation. Meta renames buttons from time to time: if a label on your screen is slightly different, pick the closest one.

---

## Before you start

- [ ] A Facebook Page you manage, published, with the access to manage its messages.
- [ ] A Meta developer account: sign in at developers.facebook.com with your Facebook account and register as a developer.
- [ ] n8n and the tunnel running (`messenger-ai-agent-commands.txt`), with the workflow imported and published in n8n.
- [ ] Your production webhook address. It looks like this (your tunnel's address, then `/webhook/messenger`):
  `https://<your-tunnel>.trycloudflare.com/webhook/messenger`
  Use the production address, not the one n8n shows for manual runs.
- [ ] A verify token: any word you choose. Put it in the n8n node "Is it Meta's check?" in place of `YOUR_VERIFY_TOKEN`. You'll paste the same word into Meta.

---

## 1. Create the app (step 2)

- [ ] Go to developers.facebook.com/apps and click **Create App** (or open developers.facebook.com/apps/creation/).
- [ ] **App details:** an app name and a contact email. Click **Next**.
- [ ] **Use cases:** choose **Engage with customers on Messenger from Meta**. Click **Next**.
  On an older dashboard that asks for an app type instead, choose **Business**, then add the **Messenger** product from the dashboard.
- [ ] **Business:** connect your business portfolio, or choose **I don't want to connect a business portfolio yet**. Click **Next**.
- [ ] **Requirements:** read them (App Review comes later, in section 7). Click **Next**.
- [ ] **Overview:** check the details and click **Go to dashboard**.
- [ ] The new app is in **development mode** (see the app mode toggle in the dashboard toolbar). Leave it there until section 7.

## 2. Decide who can reach the agent (step 2)

- [ ] Open **App roles > Roles** in the App Dashboard.
- [ ] Give a role (Administrator or Developer) to yourself, or to one colleague, and nobody else.
- [ ] If someone gets an invitation, they accept it from their own Facebook account before the agent answers them.
- [ ] If the app is connected to a business portfolio, Meta may send you to the business settings to manage its people.

In development mode, the page token only lets your page talk to Facebook accounts with a role on the app. Everyone else gets nothing from the agent.

## 3. Connect the webhook (step 3)

- [ ] In the left menu, click **Dashboard**, then **Customize the Engage with customers on Messenger from Meta use case**, and open **Messenger API Settings**.
  On an older dashboard: **Products > Messenger > Settings**.
- [ ] In **Configure webhooks**:
  - **Callback URL:** your production webhook address.
  - **Verify token:** your word, exactly as it is in n8n.
- [ ] Click **Verify and save**.
- [ ] What happens: Meta sends a GET request with `hub.mode=subscribe`, `hub.verify_token` and `hub.challenge`. The workflow sends the challenge back only when the mode is `subscribe` and the token is yours; anything else gets a 403.
- [ ] If Meta says it can't validate the address, check in this order:
  1. The workflow is published in n8n.
  2. The address ends in `/webhook/messenger` and starts with your current tunnel address (a quick tunnel gets a new address every time it starts).
  3. The tunnel and n8n are still running, each in its own terminal.
  4. The verify token is the same word in Meta and in n8n.
  Still stuck? Paste the error into Claude and ask: "What's the first thing I should check?"

## 4. Connect your page and subscribe it only to "messages" (steps 3 and 4)

- [ ] In **Generate access tokens**, click **Connect**.
- [ ] In the window that opens, click **Continue**, select your page and click **Continue** again. Then **Save** and **Got it**.
- [ ] Back in **Generate access tokens**, next to your page, click **Add Subscriptions**.
- [ ] Check only **messages**. Click **Confirm**.
- [ ] Leave everything else unchecked, especially **message_reads** and **message_echoes**: read receipts wake the agent up with nothing to answer, and echoes make it answer its own replies.

## 5. Generate the page token and keep it in an n8n credential (step 3)

- [ ] In **Generate access tokens**, next to your page, click **Generate**.
- [ ] In the **Token Generation** window, check **I understand**, click **Copy** and then **Done**. Meta shows the token only once, so paste it into n8n (next step) right away.
- [ ] In n8n: **Credentials > Create credential > Header Auth**. Call it `Facebook page token` (the name the workflow expects).
  - **Name:** `Authorization`
  - **Value:** `Bearer ` followed by your page token
- [ ] Open "Send the reply" and "Tell them a person will follow up" and check that each one uses that credential.
- [ ] Never paste the token inside a node, and never share a workflow export with a token in it.

Permissions behind this: `pages_messaging` (to send messages as the page) and `pages_manage_metadata` (to subscribe the page to the webhook). In development mode they work for the people with a role on the app.

## 6. Run it on a real message, from your own account (steps 6 to 10)

- [ ] From the account with a role on the app, message your page in Messenger. The reply shows up in Messenger, and the run shows up in n8n under **Executions**.
- [ ] Ask for a price your page doesn't publish. The reply says it will check with the team.
- [ ] Ask to book an appointment. The agent asks for your name and a phone number or email, and confirms nothing yet.
- [ ] Write "human, please". You get one line saying a person will follow up, the team gets the email, and your next message gets no automatic reply.
- [ ] From an account with no role on the app, message the page. Nothing comes back while the app is in development mode.

## 7. Open the door to the public: App Review (step 10)

Only after the price, contact and handoff rules all work on your own page.

- [ ] To answer people with no role on the app, the app needs advanced access to `pages_messaging`, and that goes through Meta's App Review.
- [ ] In **Messenger API Settings**, under **3. Complete App Review**, click **Request permission** next to `pages_messaging`. (In the use case's **Permissions and features**, the same thing is **Actions > + Add to App Review**.)
- [ ] In the left menu, open **Review > App Review** and click **Edit**.
- [ ] Complete **Review your app settings**.
- [ ] Click **Provide reviewer instructions**, answer the questions and click **Done**. Tell the reviewers how to reach the agent (for example: message the page).
- [ ] Open each permission you requested, check the box that you'll use it as allowed, and remove the ones you don't need.
- [ ] Click **Submit for Review**.
- [ ] To publish the app, Meta asks for an app icon (512 x 512 to 1024 x 1024 px), a privacy policy URL, a data deletion URL or callback, and, if you operate in the EU, a data protection officer contact. Meta may also ask you to verify your business.
- [ ] Meta's checks for messaging apps include a published Facebook Page and a webhook that answers every event with `200 OK` quickly. The workflow already answers Meta before the agent thinks.
- [ ] After approval: **Publish** in the left menu, or switch the app mode toggle to live.

---

## The 24-hour clock

A page can reply freely within 24 hours of the person's last message (the workflow sends `messaging_type: RESPONSE`). After that, Meta doesn't allow standard messages, so your team picks up a handoff the same day. Meta also has a Human Agent tag with a separate 7-day window for replies written by a person; it goes through App Review too.

## Meta's documentation used for this checklist

- Messenger Platform: https://developers.facebook.com/docs/messenger-platform
- Create an app: https://developers.facebook.com/docs/development/create-an-app
- Customize the Messenger use case: https://developers.facebook.com/documentation/business-messaging/messenger-platform/create-an-app
- Webhooks: https://developers.facebook.com/docs/messenger-platform/webhooks
- Messaging policy (24-hour window): https://developers.facebook.com/documentation/business-messaging/messenger-platform/policy

Not affiliated with Meta, n8n or Google. Free, from Monica Academy: https://immonica.com/academy
