Leads
Lead details
Accounts
Connect the Facebook Pages and Instagram accounts the assistant should answer for.
Connect with Facebook
Log in with Facebook, choose your Pages, and the linked Instagram accounts are added automatically. The Page is then subscribed to webhooks.
Connect with a Page token
Quick option for testing: copy a Page ID and Page access token from Graph API Explorer (GET /me/accounts).
Connected accounts
Test & setup
Try the whole flow locally, then plug in Meta.
1 · Simulate a customer (no Meta needed)
Sends a fake comment or DM through the real pipeline: it is stored, sent to n8n, and the reply shows in the Inbox. Nothing is posted to Facebook or Instagram.
2 · Configuration
3 · What n8n receives and returns
The app POSTs every new comment/DM (while the lead is in AI mode) to your n8n webhook. Reply in the same request with Respond to Webhook:
{
"reply": "Lovely! Which dates are you looking at, and how many adults and children?",
"public_reply": "Please check your inbox for more information. Thanks, Team Dukes.",
"details": { "departure_city": "Manchester", "adults": 2 },
"handover": false
}
reply = the DM text · public_reply = comment reply (comments only; a default is used if missing) · details = fields collected so far · handover: true = AI stops, a human takes over. An AI Agent's plain {"output": "..."} also works as reply.
Or answer n8n immediately and POST the same JSON (plus lead_id) to the callback URL with header x-api-key. The callback needs a public URL.