This workflow generates daily Instagram analytics reports at 8 AM, fetching data via the Facebook Graph API, logging to Airtable, and notifying via Slack and Mattermost. Key nodes include Daily 8 AM Trigger (schedules run), Get Instagram Profile Data (fetches profile), Get Instagram Insights (retrieves metrics), Process Instagram Stats (aggregates data), Log Stats to Airtable (stores data), Send Slack/Mattermost Report (notifies), and Log Success/Error (logs results). It uses Facebook Graph, Airtable, Slack, and Mattermost APIs.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Get a Facebook Graph API access token from developers.facebook.com (Meta for Developers > Create App > Business, add Instagram Graph API, get User Access Token with instagram_basic, instagram_manage_insights). Obtain an Airtable API token from airtable.com (Account > API). Create a Slack Webhook URL at slack.com (Apps > Incoming Webhooks, create in #analytics). Get Mattermost API credentials from mattermost.com (System Console > Integrations). In n8n, configure credentials: Facebook Graph API (Access Token), Airtable (API Token), Slack (Webhook URL), Mattermost (API Token, Channel ID). Update Airtable base and table IDs in Log Stats to Airtable. Handle errors like invalid token (401: Unauthorized) or missing permissions (403: Forbidden).\n\nTesting and Deployment: Import the JSON into n8n. Manually trigger Daily 8 AM Trigger. Verify that Get Instagram Profile Data retrieves username and followers, and Get Instagram Insights fetches reach and impressions. Confirm Process Instagram Stats calculates engagement rate, and Log Stats to Airtable stores data. Check Send Slack/Mattermost Report for notifications with metrics. Test with invalid credentials to trigger Send Error Notification (401). Monitor logs for rate limits (429: Too many requests) or missing data (partial/poor quality). If reports fail, verify the API token and Instagram Business Account ID. Activate the workflow in n8n for daily runs at 8 AM. Deploy for automated Instagram stats reporting and notifications.
$5.49
Workflow steps: 12
Integrated apps: scheduleTrigger, httpRequest, code