Templates / Automate Shopify Product Posting to Social Media with GPT-4.1-Mini & Data Tracking

Automate Shopify Product Posting to Social Media with GPT-4.1-Mini & Data Tracking

Needs changes

by Avkash Kakdiya ✓ · 870 views · created 2025-11-14 · Social Media, Multimodal AI

Needs 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 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.

  1. parse product data (Function): runs custom JavaScript (legacy Function node)
  2. Generate caption and hashtags (OpenAI): uses OpenAI
  3. Set Configuration (Edit Fields (Set)): sets or maps fields
  4. Create Instagram Media Container (HTTP Request): calls an HTTP API (POST)
  5. Download Image for Facebook (HTTP Request): calls an HTTP API
  6. Wait: waits 5 seconds
  7. Post to Facebook Page (HTTP Request): calls an HTTP API (POST)
  8. Publish Instagram Media (HTTP Request): calls an HTTP API (POST)
  9. Merge: merges the data from its input branches
  10. Log Product Post Data (Google Sheets): append

…plus 1 more step. See the full node list below.

Services it uses

ShopifyOpenAIGoogle SheetsDiscord

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.0Replace with
Function (legacy)
parse product data
Code node, mode 'Run Once for All Items'

Nodes used (9)

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…

Excerpt from Avkash Kakdiya's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.