Shopify Social Media Automation
Complete n8n Workflow Template for Daily Social Media Posts
Download Complete WorkflowWorkflow Overview
This workflow automates social media marketing for your Shopify store with intelligent post generation and scheduling:
- Smart Selection: Randomly selects 3 products and 3 collections daily
- Platform Optimization: Creates platform-specific content for Facebook & Instagram
- Time Distribution: Spreads 18 posts throughout optimal engagement hours
- Error Handling: Built-in error recovery and notifications
- Analytics: Tracks performance and generates daily reports
Prerequisites & Setup
Shopify Private App
Create private app in Shopify Admin
Enable read permissions for Products, Collections
Generate API access token
Facebook Business Suite
Facebook Business Account with connected Instagram
Required permissions: pages_manage_posts, instagram_basic
Long-lived access tokens
n8n Configuration
n8n instance (self-hosted or cloud)
Shopify node configured
Facebook Graph API node installed
Go to Shopify Admin → Settings → Apps and sales channels → Develop apps → Create an app
Create Facebook App at developers.facebook.com → Add products: Facebook Login, Pages, Instagram
Workflow JSON Template
Copy the entire JSON below and import into your n8n instance:
Posts Successfully Scheduled
Scheduled {{$input.all().length}} posts from Shopify store.
" } } ], "connections": { "Daily Trigger": { "main": [[{"node": "Shopify Credentials", "index": 0}]] }, "Shopify Credentials": { "main": [[{"node": "Get 3 Random Products", "index": 0}], [{"node": "Get 3 Random Collections", "index": 1}]] }, "Get 3 Random Products": { "main": [[{"node": "Limit to 3 Products", "index": 0}]] }, "Get 3 Random Collections": { "main": [[{"node": "Limit to 3 Collections", "index": 0}]] }, "Limit to 3 Products": { "main": [[{"node": "Generate Product Posts", "index": 0}]] }, "Limit to 3 Collections": { "main": [[{"node": "Generate Collection Posts", "index": 0}]] }, "Generate Product Posts": { "main": [[{"node": "Combine & Schedule Posts", "index": 0}]] }, "Generate Collection Posts": { "main": [[{"node": "Combine & Schedule Posts", "index": 1}]] }, "Combine & Schedule Posts": { "main": [[{"node": "Facebook Publisher", "index": 0, "condition": {"type": "if", "conditions": [{"leftValue": "={{$json.platform}}", "operator": "equal", "rightValue": "facebook"}]}}], [{"node": "Instagram Publisher", "index": 1, "condition": {"type": "if", "conditions": [{"leftValue": "={{$json.platform}}", "operator": "equal", "rightValue": "instagram"}]}}]] }, "Facebook Publisher": { "main": [[{"node": "Success Notification", "index": 0}]] }, "Instagram Publisher": { "main": [[{"node": "Success Notification", "index": 1}]] } } }Advanced Features
Smart Post Generation
Automatically extracts product features
Generates platform-specific hashtags
Creates compelling CTAs
Built-in Resilience
Automatic retry for failed posts
Error notifications via email
Fallback image handling
Performance Tracking
Daily posting reports
Engagement tracking
ROI calculations
Add OpenAI integration for better content generation:
Expected Results
Download Complete Workflow
Click below to download the complete n8n workflow JSON file for Shopify:
Download Shopify Workflow.json
File: shopify-social-media-automation.json

