How to Connect n8n to Instagram: Automate DMs, Comments & Posts (2025)
Automating Instagram with n8n unlocks real leverage — auto-replying to DMs, tracking mentions, and scheduling posts — but it comes with rules. Instagram only allows automation through the official Graph API, and only for Business or Creator accounts. Here’s how to set it up the right way and stay compliant.
Prerequisites: Business account + Meta app
You need three things: an Instagram Business or Creator account, a Facebook Page connected to it, and a Meta Developer app with Instagram Graph API access. Personal accounts cannot be automated — this is a hard Instagram rule, not an n8n limitation. Convert to a Business account in the Instagram app settings first.
Authenticating in n8n
In the Meta App Dashboard, generate a long-lived access token with the instagram_basic, instagram_manage_comments, and instagram_manage_messages permissions. In n8n, use the HTTP Request node with a Header Auth or query-param credential holding that token — there’s no dedicated Instagram node, so the Graph API endpoints are called directly.
⚙️ Skip the build: Apify Social Listening — Instagram & TikTok Trends
Monitor Instagram and TikTok every day and get AI content insights delivered automatically — without touching the API.
Get the ready-to-import template on Gumroad →
Automating comment replies and mentions
Set up a Meta webhook subscription for comments and mentions, pointed at an n8n Webhook node. When someone comments, n8n receives the payload, you can run it through an AI node to draft a reply, and POST it back to the /{comment-id}/replies endpoint. This is how brands run 24/7 engagement without staffing it.
Scheduling posts
Publishing is a two-step Graph API dance: first POST the media to /{ig-user-id}/media to create a container, then POST that container ID to /{ig-user-id}/media_publish. Trigger it with an n8n Schedule node reading your content calendar from Airtable or Google Sheets — fully hands-off publishing.
Staying within the rules
Respect rate limits (200 calls/hour/user is the rough ceiling) and never scrape or automate a personal account — that risks a ban. If you only need listening (mentions, hashtags, competitor tracking) rather than posting, a managed scraper is far less fragile than maintaining Graph API credentials yourself.
Ready to automate?
Get the Apify Social Listening — Instagram & TikTok Trends workflow — import the JSON, connect your accounts, and it runs on autopilot.