Post new Shopify products to Instagram, Facebook and X with OpenAI and Airtable

Go to Workflow
0 views
Built by Jitesh Dugar Jitesh Dugar
Created on June 12, 2026

Description

Automate your social media marketing by instantly promoting new Shopify products. This workflow polls your store for new arrivals, generates AI-powered captions, and publishes them across Instagram, Facebook, and Twitter/Xβ€”while maintaining a deduplication log in Airtable.

🎯 What This Workflow Does

This workflow acts as a 24/7 social media manager, ensuring every new product gets immediate visibility without manual effort.

⏱️ Step 1 β€” Poll, Fetch & Deduplicate

Schedule Trigger:** Polls Shopify every 10 minutes for products published in the last 15 minutes
Deduplication Logic:** Checks Airtable (ProductPostLog) to avoid reposting the same product

πŸ–ΌοΈ Step 2 β€” Data Enrichment & Media Hosting

Normalization:** Cleans and maps product fields (title, price, vendor)
CDN Hosting:** Downloads product image and uploads via UploadToURL to generate a public HTTPS URL

πŸ€– Step 3 β€” Platform-Specific AI Captions

Instagram:** Storytelling style, emojis, 10+ hashtags
Facebook:** Conversational, CTA-driven, link preview optimized
Twitter/X:** Short-form (under 260 chars), includes price and link

πŸ“€ Step 4 β€” Multi-Platform Publishing & Logging

Instagram:** Create container β†’ publish via Graph API
Facebook:** Post image + caption to Page
Twitter/X:** Publish tweet via native node
Airtable Log:** Store status, timestamp, and image URL for tracking

✨ Key Features

Intelligent Deduplication:** Prevents duplicate posts using Airtable log
Sequential Processing:** Handles products one-by-one to avoid rate limits
Custom AI Tones:** Tailored captions for each platform
Reliable Media Hosting:** UploadToURL ensures valid public image URLs

πŸ”§ Setup Requirements

Required Integrations

Shopify:** Admin API with read_products scope
Airtable:** Base with ProductPostLog table
OpenAI:** API credentials for caption generation
Facebook & Instagram:** Page token with posting permissions
Twitter/X:** OAuth1 credentials
UploadToURL:** CDN hosting for images

Environment Variables

SHOPIFY_STORE_DOMAIN
SHOPIFY_ACCESS_TOKEN
IG_ACCOUNT_ID
FB_ACCESS_TOKEN
FB_PAGE_ID

Ready to launch? Import this template and connect your Shopify store to turn every new product into a viral social media event!

Nodes Used (5)

Airtable
n8n-nodes-base.airtable
Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
X (Formerly Twitter)
n8n-nodes-base.twitter