PolyUtilities For PerfexCRM

Connect Messenger & Instagram DM with AI Chat in Perfex CRM

Handling Facebook Page messages and Instagram DMs inside Meta Business Suite cuts your support agents off from Perfex CRM invoices, tickets, and client histories. Worse, Meta CDN image and voice attachment URLs expire quickly, breaking ticket evidence weeks later.

PolyUtilities v3.7.0 bridges multiple Facebook Pages and Instagram Professional accounts straight into Perfex CRM Unified Inbox via Meta Graph API v21.0, enforcing HMAC-SHA256 webhooks, permanent local media caching, and AI Copilot replies.

Make sure OmniChat channels are enabled by checking the Guide to Install and Use PolyUtilities for Perfex CRM before binding your Meta App.

Channel FieldFacebook Messenger ValueInstagram DM Value
Account IDFacebook Page ID (from Messenger > Access Tokens)Instagram Business Account ID
Token / API KeyPage Access Token (pages_messaging)Page/IG Token (instagram_basic, instagram_manage_messages)
App Secret & Verify TokenMeta App Basic Secret + custom Verify TokenSame Meta App Basic Secret + custom Verify Token
Webhook Endpointpoly_utilities/omnichat/webhook/messengerpoly_utilities/omnichat/webhook/instagram

1. Configure Facebook Messenger Under Meta Graph API v21.0

Poly_omnichat_meta_adapter handles multi-Page Facebook Messenger routing under one Meta Business App while verifying X-Hub-Signature-256 on every webhook event. Echo messages from your own Page are filtered automatically so agent replies never duplicate into customer messages.

  • In Meta for Developers, add the Messenger product, link your Facebook Page under Access Tokens, and generate a Page Access Token.
  • In Perfex CRM > OmniChat Settings > Channels, add a Messenger channel with your Page ID, Page Access Token, Meta App Secret, and Verify Token, then save FIRST.
  • Under Messenger > Webhooks in Meta, paste poly_utilities/omnichat/webhook/messenger and your Verify Token, click Verify and Save, and subscribe the Page to messages and messaging_postbacks.

2. Connect Instagram Professional DM and Local Media Sync

Instagram DM shares the same Graph API security model but requires enabling Connected Tools inside the Instagram mobile app before webhooks deliver payloads. Once connected, inbound photos, audio clips, and attachments download automatically from .fbcdn.net and .cdninstagram.com into local storage, matching the omnichannel workflow of Zalo OA API v3 and Viber Business Bot.

  • Convert your Instagram profile to a Professional (Business) account and link it to your Facebook Page.
  • On the Instagram mobile app, open Settings > Messages and story replies > Message controls and turn ON Allow Access to Messages (Connected Tools).
  • Save the Instagram Account ID, Access Token, App Secret, and Verify Token in Perfex first, then subscribe the Instagram Webhooks object to messages using poly_utilities/omnichat/webhook/instagram.

Common Pitfalls and Quick Fixes

  • Public followers do not trigger webhooks: While your Meta App stays in Development Mode, only App Admins and Testers trigger events; submit pages_messaging and instagram_manage_messages for App Review before going Live.
  • Instagram DMs stay silent after webhook verification: Confirm Allow Access to Messages (Connected Tools) is toggled ON inside Instagram mobile Settings.
  • Old Messenger photos stop loading: Ensure Auto-Download Inbound Media is ON so PolyUtilities saves files locally before Meta CDN URLs expire.

Frequently Asked Questions

Can one Meta App route multiple Facebook Pages and Instagram accounts?

Yes. Add separate channel records in OmniChat Settings for each Facebook Page ID or Instagram Business Account ID. PolyUtilities inspects entry.id and object on every incoming Graph API webhook payload to route each conversation cleanly to the matching social account.

Why does PolyUtilities download Messenger and Instagram media locally?

Meta CDN links from fbcdn.net and cdninstagram.com expire rapidly, causing broken images and unplayable voice notes inside older tickets. Downloading inbound media into uploads/poly_utilities/omnichat/inbound/ preserves permanent local playback for your support team while unlocking AI Vision and Voice STT transcription.

Does outbound messaging support images, audio, and file attachments?

Yes. Poly_omnichat_meta_adapter formats Meta Graph API v21.0 outbound payloads for plain text as well as reusable image, audio, video, and file attachments, while automatically sanitizing internal CrossTag tokens into clean readable labels before external customers ever receive them.

How can I turn a Messenger or IG chat into a Perfex Ticket or Lead?

Inside Unified Inbox, open the right-hand Context Panel and click any 1-Click CRM Action to create a Perfex Support Ticket, Lead, Task, Calendar Event, Project, Proposal, or Estimate pre-filled automatically from the Messenger or Instagram social conversation transcript in one step.


Comments

Leave a Reply

Your email address will not be published.Required fields are marked *