Docschannels
Instagram DM
Connect Simple Agent to Instagram Direct Messages and auto-reply to comments.
With the Instagram channel, your AI agent responds to direct messages (DMs) and can be configured to auto-reply to comments — all via the Meta Graph API.
Prerequisites
- Instagram Business or Creator account — personal profiles are not supported by the API
- Facebook Page linked to the Instagram account
- Meta App with the Instagram product configured
- Simple Agent Growth or Agency plan
Step-by-step setup
1. Link Instagram to the Facebook Page
- On Instagram → Settings → Account → Linked accounts → Facebook
- Select the correct Page
- Confirm you are an Administrator of the Page
2. Create the Meta App (if you haven't already)
- developers.facebook.com → Create App → Business
- Add the Instagram product
- Connect your Page → the Instagram account is detected automatically
3. Get credentials
In the Meta app panel → Instagram → Configuration:
| Field | Where to find it |
|---|---|
| Instagram Account ID | Instagram → Configuration → Instagram Account |
| Page Access Token | Tools → Graph API Explorer → Token with pages_messaging permission |
4. Connect in Simple Agent
- Dashboard → Channels → Instagram
- Paste the Instagram Account ID and Page Access Token
- Click Save and generate Webhook URL
5. Configure webhook in Meta
- Meta App → Webhooks
- Add the Simple Agent URL
- Subscribe to fields:
messages,messaging_postbacks - Verify and save
Features
DMs (Direct Messages)
The agent automatically responds to incoming Direct messages. The behavior is identical to the web widget — uses the same training, tone, and sources.
Comments (optional)
When enabled, the agent can:
- Reply to comments with a standard message (e.g., "Thanks! We sent details via DM")
- Automatically send a DM to anyone who comments with a keyword (e.g., "PRICE")
Configure in Channels → Instagram → Comment triggers.
Meta API limitations
- 24-hour window: After the user's last message, you have 24 hours to reply with any content. Outside that window, only Meta-approved Template Messages can be sent.
- No proactive messaging: The API doesn't allow starting conversations — only replying.
- Media: Images sent by users are analyzed via vision. Videos are not processed.
Troubleshooting
Agent doesn't respond to DMs:
- Confirm the Instagram account is in Business mode (not personal)
- Check that the Page Access Token has the
instagram_manage_messagespermission - User tokens expire in 60 days — use a System Token for production
Error "OAuthException 200":
- The
pages_messagingpermission has not been approved. Submit the app for review in Meta if the account is not a test account.
Webhook doesn't verify:
- The Simple Agent endpoint accepts any Verify Token you define — confirm you are pasting the same value in both fields.
Required permissions
For production (real account, not test), your Meta app needs review for:
instagram_manage_messagespages_messaginginstagram_basic
The review process takes 5–10 business days and requires a video demonstration.