Connect Messenger and Instagram to Klugon

Messenger and Instagram DM share one Facebook Page and one Meta app, so it makes sense to set them up together. The trickiest part isn't the webhook — it's telling Meta to actually hand conversations to Klugon instead of keeping them in its own native inbox.

Start 3-day free trial

Updated · 7 min read

When you connect Messenger and Instagram to Klugon, both run through the same Facebook Page, the same Meta app, and the same Page access token, so it's worth connecting them together. The webhook setup is routine browser work — create an app, set a callback URL, generate a token — and an AI coding agent with browser access can do nearly all of it. The part that actually catches people out is a setting Meta doesn't surface during setup at all: telling Meta which app should keep control of a conversation once a human has touched it.

This post covers what an agent can do, the one step it's easy to miss even when everything else looks connected, and the exact prompt to hand it.

What you need before you start

  • A Facebook Page, with an Instagram professional (business or creator) account linked to it if you want Instagram DM too.
  • Admin access to the Meta Business account that owns the Page.
  • Your Klugon dashboard open at Integrations.
  • Time set aside for Meta's App Review, if this is a brand-new Meta app — see the FAQ below. It's the step most setups get wrong, because everything looks "Connected" long before it's actually done.

What the agent can do for you

  1. Create or open a Meta app and add the Messenger product (Instagram DM uses the same product, routed through the linked Page).
  2. Set the webhook callback URL — https://klugon.ai/api/webhooks/messenger for Messenger, https://klugon.ai/api/webhooks/instagram for Instagram — with a verify token of its choosing, and subscribe to messages (Messenger also needs messaging_postbacks).
  3. Generate a Page access token and paste it, with your app secret and verify token, into Klugon's Messenger and Instagram integrations.
  4. If Klugon's own attempt to subscribe your Page to the app fails — Meta sometimes refuses this specific call for a System User token even with full permissions — walk you through subscribing manually instead: in the Meta app, Messenger → Webhooks → your Page → Add Subscriptions, or for Instagram, the app's Webhooks tab → Instagram → Verify and save, then toggle the messages field on.
  5. Tell you to turn on conversation control for the app — and exactly where to click, since this is the step that silently breaks replies days or weeks after everything looked fine:
    • Instagram: Facebook → Settings & privacy → Settings → Instagram → Conversation routing. If "Default routing app" shows "Set up" rather than your app's name, Instagram has no default owner for a conversation, and its own inbox can end up holding onto it instead of handing it to Klugon.
    • Messenger: Facebook → Settings & privacy → Settings → Page setup → Advanced messaging → find your app under Connected Apps → Edit → under Messenger Permissions, turn on Take control of conversations. This is off by default even when the app is otherwise fully connected.
  6. Send a real test message to confirm replies actually arrive, not just that the integration shows "Connected."

What it won't do, and why

  • Clicking "Set up" on Instagram's default routing app, or flipping "Take control of conversations" on for Messenger. Both hand a specific app standing control over how your Page's conversations are routed — a real permission decision, not a form field. The agent should tell you exactly where to click and what to pick.
  • Creating a System User or granting it access to anything, for the same reason as any other Meta integration: new standing access to your business is a decision for you to make, not something to wave through.
  • Typing your Meta account password, even into a field that auto-filled it.
  • Any one-time code sent to you.

If your agent does any of these without pausing to ask, treat that as a bug.

The prompt to connect Messenger and Instagram to Klugon

Paste this into your AI coding agent once it has browser access (Claude Code with the Chrome extension, or an equivalent setup).

If the agent hits a step it won't do, it should stop and tell you exactly what to click rather than finding a way around it.

Frequently asked questions

Everything shows "Connected" but customers aren't getting replies. What's wrong?

Check conversation routing first. Instagram's Default routing app and Messenger's "Take control of conversations" toggle both default to off or unset, and neither one is part of the connection flow Klugon's own form walks you through — Meta surfaces them as separate Page settings. A Page can show a fully connected, correctly subscribed integration and still never hand a conversation to Klugon if this is missing.

I tested by messaging my own Page from my own account and got nothing. Is the integration broken?

Probably not — this is a known Meta quirk, not a Klugon problem. Messaging your own Page as its own admin doesn't reliably trigger the same webhook path a genuine customer message does. Test from a second account, or ask someone else to send the message.

Routing is set up correctly, and my own test messages work — but real customers still get no reply. What's going on?

This is the gap the checklist above doesn't catch, and it's the one that costs people the most time: a brand-new Meta app's Messenger and Instagram permissions (pages_messaging, instagram_manage_messages, and a few supporting ones) start out in "Ready for testing" status, meaning development-only access. In that state, Meta only delivers a message — and lets your app reply — when the person messaging the Page already holds an App Role (Admin, Developer, or Tester) on your Meta app. A real customer with no role on your app can message the Page all day and Klugon will never see it, while your own messages, sent as the app's admin, go through fine. That's exactly why "it works when I test it myself" proves nothing about whether it'll work for actual customers.

The fix is Advanced Access, which Meta only grants after App Review — and this part is a genuinely involved process, not a toggle:

  • A written description of how your app uses each permission.
  • A screen recording of the real end-to-end flow for each one.
  • Confirmation that live API test calls have actually been made (send a real message through Klugon first).
  • A Data Handling questionnaire covering your data processors, the legal entity responsible for the data, and whether you've received any government data requests.
  • Review time from Meta afterward, which can run from a day to over a week.

An AI agent can draft most of this — the usage descriptions, a real screencast recorded from your own working integration, and the technical data-processor answers — but it can't invent your company's legal entity name, can't answer the government-request question for you, and won't (and shouldn't) check the "I agree to comply" boxes or hit Submit on its own; those are yours to do. If Messenger or Instagram DM matters for launch, start App Review early rather than assuming "Connected" means customers can actually reach you.

Why did my test messages suddenly stop showing up at all, even in Meta's own inbox?

Instagram and Messenger both rate-limit a sender who sends many messages in quick succession to the same unanswered thread. If you're testing repeatedly, space messages out, or have the business side send one reply first — that usually clears it.

Does Klugon need separate tokens for Messenger and Instagram?

No. Since Instagram DM is routed through the linked Facebook Page, the same Page access token, app secret, and app work for both — you'll just paste it into two separate integration forms with two separate webhook URLs.

What if my Page already has another chatbot or inbox tool connected?

Only one app can be Instagram's default routing app, or hold Messenger's "take control" permission, at a time. If another tool already has it, Klugon won't receive conversations until you switch it over in the same Page settings.

Try Klugon's AI receptionist on your own calls and messages

Seven days free, and you can cancel anytime before you're charged. Plans start at $99 a month.