Automate Shopify Product Posting to Social Media with GPT-4.1-Mini & Data Tracking
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) parse product data | Code node, mode 'Run Once for All Items' |
Nodes used (9)
- Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Shopify Trigger
n8n-nodes-base.shopifyTrigger - Function
n8n-nodes-base.function - OpenAI
@n8n/n8n-nodes-langchain.openAi - Google Sheets
n8n-nodes-base.googleSheets - Discord
n8n-nodes-base.discord - Merge
n8n-nodes-base.merge
What it does
How it works This workflow listens for new products in Shopify and transforms the product data into polished social media content. It generates captions and hashtags using an AI model, then posts the product to Instagram and Facebook using the Facebook Graph API. It logs every post to Google Sheets and sends a confirmation message to Discord. The flow ensures consistent publishing across all platforms with automated formatting and tracking. Step-by-step - Trigger on Shopify product creation - Shopify Trigger – Activates when a new product is added to the store. - Prepare product data - parse product data – Extracts product name, price, description, URL, image, and timestamp. - Generate caption and hashtags - Generate caption and hashtags – Uses an AI model to craft a caption and produce 10 relevant hashtags. - Configure posting parameters - Set Configuration – Stores access tokens, platform IDs, caption text, hashtags, and image URL. - Publish to Instagram - Create Instagram Media Container – Sends the image and caption to create a media container. - Wait for Processing – Waits for the container to finish processing. - Publish Instagram Media – Publishes the processed container to the Instagram feed. - Publish to Facebook - Download Image for Facebook – Downloads the product image from Shopify. - Post to Facebook Page – Uploads the image with the caption and hashtags to the Facebook Page. - Merge publishing results - Merge – Combines responses from Instagram and Facebook for unified logging. - Log post to Google Sheets - Log Product Post Data – Appends product info, caption, and hashtags to a spreadsheet. - Notify via Discord - Notify Discord About Post – Sends a message summarizing the published product. Why use this? - Ensures every new Shopify product is promoted instantly across major social platforms. - Eliminates manual posting and caption creation with reliable automation. - Maintains centralized logging for auditing, tracking, or analytics. - Provides real-time team notifications to confirm successful posts. - Reduces errors and keeps brand messaging consistent across channels.