Automate Shopify Product Posting to Social Media with GPT-4.1-Mini & Data Tracking
Needs changesWhat this workflow does
This AI workflow has 12 nodes and runs on Shopify events. Along the way it connects Shopify, OpenAI, Google Sheets and Discord.
How it runs
Trigger: On Shopify events.
- parse product data (Function): runs custom JavaScript (legacy Function node)
- Generate caption and hashtags (OpenAI): uses OpenAI
- Set Configuration (Edit Fields (Set)): sets or maps fields
- Create Instagram Media Container (HTTP Request): calls an HTTP API (POST)
- Download Image for Facebook (HTTP Request): calls an HTTP API
- Wait: waits 5 seconds
- Post to Facebook Page (HTTP Request): calls an HTTP API (POST)
- Publish Instagram Media (HTTP Request): calls an HTTP API (POST)
- Merge: merges the data from its input branches
- Log Product Post Data (Google Sheets): append
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in parse product data: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| 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
From the author
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…