What This Agent Does
This powerful automation workflow transforms your Shopify store into a social media marketing machine. When a new product is created in Shopify, the agent automatically generates compelling social media captions using AI, posts them to your Facebook page, logs the activity to Google Sheets for tracking, and notifies your team via Slack—all without manual intervention.
Key benefits and time savings:
-
Eliminate manual copywriting: AI generates professional, engaging captions instantly
-
Maintain consistency: Every product gets posted with the same quality standards
-
Save 15-20 minutes per product: Automate what typically takes manual effort
-
Create an audit trail: Every post is logged automatically for compliance and analytics
-
Keep teams aligned: Instant Slack notifications ensure everyone knows when products go live
Target use cases:
- E-commerce businesses launching multiple products weekly
- Social media teams managing high-volume product catalogs
- Brands wanting consistent posting schedules across channels
- Companies requiring documented records of all social media activity
Who Is It For
This workflow is ideal for:
-
E-commerce managers running Shopify stores with active social media presence
-
Social media teams managing multiple product launches
-
Marketing departments seeking to scale content production
-
Small to mid-size businesses without dedicated copywriting resources
-
Agencies managing multiple client Shopify stores
You'll need basic familiarity with API keys and platform integrations, but no coding experience is required.
Required Integrations
Shopify
Why it's needed:
Shopify serves as your trigger source. When new products are created in your store, this integration detects the event and initiates the entire automation workflow.
Setup steps:
- Log into your Shopify admin dashboard
- Navigate to Settings → Apps and integrations → App and sales channel settings
- Click Develop apps (or Create an app if you haven't already)
- Select Create an app and name it "TaskAGI Automation"
- In the app settings, navigate to Configuration
- Under Admin API scopes, enable:
-
read:products
-
read:orders
-
write:products
- Click Save and then Install app
- Copy your API Key and API Secret from the Credentials tab
How to obtain credentials:
Your API credentials appear automatically after app installation in the Shopify admin under Apps → App and sales channel settings → Develop apps → Your app name → Credentials.
Configuration in TaskAGI:
- In TaskAGI, navigate to Integrations → Shopify
- Click Connect and select OAuth
- You'll be redirected to Shopify to authorize access
- Grant permissions and return to TaskAGI
- Verify the connection shows Connected status
OpenAI
Why it's needed:
OpenAI's GPT-4o-mini model generates intelligent, professional social media captions tailored to your products. This ensures every post is engaging and on-brand.
Setup steps:
- Visit platform.openai.com
- Sign up or log into your account
- Navigate to API keys in the left sidebar
- Click Create new secret key
- Name it "TaskAGI Social Media" for easy identification
- Copy the key immediately (it won't be shown again)
- Store it securely in your password manager
How to obtain credentials:
API keys are generated directly from your OpenAI account dashboard. Ensure you have an active OpenAI account with billing enabled (free trial credits work initially).
Configuration in TaskAGI:
- Go to Integrations → OpenAI
- Click Connect and select API Key
- Paste your secret key in the provided field
- Click Verify to test the connection
- The workflow uses gpt-4o-mini model (pre-configured for cost efficiency)
Facebook Graph API
Why it's needed:
This integration enables direct posting to your Facebook business page, ensuring your AI-generated captions reach your audience automatically.
Setup steps:
- Visit developers.facebook.com
- Click My Apps → Create App
- Select Business as the app type
- Fill in app details and click Create App
- In your app dashboard, click + Add Product
- Find Facebook Login and click Set Up
- Navigate to Settings → Basic and copy your App ID and App Secret
- Go to Tools → Graph API Explorer
- Select your app from the dropdown
- Generate a Page Access Token for your business page
- Store all three credentials securely
How to obtain credentials:
-
App ID & App Secret: Available in App Settings → Basic
-
Page Access Token: Generated via Graph API Explorer (valid for 60 days; use a long-lived token for production)
Configuration in TaskAGI:
- Navigate to Integrations → Facebook Graph API
- Click Connect and select Manual Configuration
- Enter your App ID, App Secret, and Page Access Token
- Click Verify Credentials
- Select your Facebook Page from the dropdown list
- Save configuration
Google Sheets
Why it's needed:
Google Sheets creates a permanent, searchable log of all posted products. This provides compliance documentation, performance tracking, and historical reference.
Setup steps:
- Open Google Sheets
- Create a new spreadsheet named "TaskAGI Product Posts"
- Add column headers:
Date, Product Name, Caption, Facebook Post ID, Status
- Share the sheet with your TaskAGI service account (or make it accessible)
- Copy the sheet URL from your browser address bar
- In Google Cloud Console, enable Google Sheets API
- Create a service account and download the JSON credentials file
How to obtain credentials:
- Visit console.cloud.google.com
- Create a new project
- Enable Google Sheets API
- Create a Service Account under Credentials
- Generate a JSON key file
- Share your Google Sheet with the service account email
Configuration in TaskAGI:
- Go to Integrations → Google Sheets
- Click Connect and upload your JSON credentials file
- Paste your Sheet URL in the workflow node configuration
- Specify the Sheet Name (default: "Sheet1")
- Test by clicking Verify Connection
Slack
Why it's needed:
Slack notifications keep your team informed in real-time when products are posted, enabling quick response to any issues and maintaining team alignment.
Setup steps:
- Open your Slack workspace
- Navigate to Settings & administration → Manage apps
- Click Build → Create New App → From scratch
- Name it "TaskAGI Notifications"
- Select your workspace
- Under OAuth & Permissions, add these scopes:
-
chat:write
-
chat:write.public
- Click Install to Workspace
- Copy your Bot User OAuth Token (starts with
xoxb-)
- In your Slack workspace, create a channel named
#taskagi-notifications
- Invite your bot to the channel
How to obtain credentials:
Your Bot User OAuth Token is available immediately after app installation under OAuth & Permissions → Bot User OAuth Token.
Configuration in TaskAGI:
- Navigate to Integrations → Slack
- Click Connect and select OAuth
- You'll be redirected to Slack to authorize
- Grant permissions and return to TaskAGI
- Select your #taskagi-notifications channel
- Verify connection status shows Connected
Configuration Steps
Step 1: Workflow Overview Node (7663)
This node documents your workflow purpose.
Configuration:
-
Title: "Shopify to Social Media Automation"
-
Description: "Automatically generates AI captions for new Shopify products and posts to Facebook with logging"
-
Purpose: Reference documentation for your team
Step 2: Shopify Trigger Node (7664)
This node detects new product creation events.
Configuration:
-
Event Type: Select Product Created
-
Filter (optional): Limit to specific product types or collections
-
Test Mode: Enable to test with sample data
Data output: Product object containing id, title, description, images, price
Step 3: Parse Product Data Node (7665)
This node extracts relevant information from the Shopify product object.
Configuration:
Input: Shopify product object
Extract fields:
- product_name: title
- product_description: body_html
- product_price: variants[0].price
- product_image: images[0].src
- product_url: handle
Example output:
{
"product_name": "Premium Wireless Headphones",
"product_description": "High-quality audio with noise cancellation",
"product_price": "$199.99",
"product_image": "https://example.com/image.jpg",
"product_url": "premium-wireless-headphones"
}
Step 4: Generate AI Caption Node (7666)
This node creates compelling social media copy.
Configuration:
-
Model:
gpt-4o-mini (pre-configured)
-
Prompt Template:
You are a professional social media copywriter specializing in e-commerce.
Create an engaging, concise Facebook post caption for this product:
Product Name: {{product_name}}
Description: {{product_description}}
Price: {{product_price}}
Requirements:
- 2-3 sentences maximum
- Include 2-3 relevant emojis
- Create urgency or curiosity
- Include a call-to-action
-
Temperature:
0.7 (balanced creativity)
-
Max Tokens:
150
Example output:
✨ Introducing our Premium Wireless Headphones! 🎧 Experience crystal-clear audio with advanced noise cancellation technology. Perfect for music lovers and professionals alike. Limited stock available—grab yours today at just $199.99! 🛒 Shop now in our store!
Step 5: Set Post Configuration Node (7667)
This node prepares the Facebook post parameters.
Configuration:
Set variables:
- caption: {{ai_caption}}
- image_url: {{product_image}}
- link: https://yourstore.com/products/{{product_url}}
- post_type: "FEED"
Data structure:
{
"message": "{{caption}}",
"link": "{{product_link}}",
"picture": "{{product_image}}"
}
Step 6: Post to Facebook Node (7668)
This node publishes to your Facebook page.
Configuration:
-
Page ID: Select your business page (auto-populated after Facebook connection)
-
Message:
{{message}}
-
Link:
{{product_link}}
-
Picture:
{{product_image}}
-
Published:
true (post immediately; set to false for scheduling)
Success indicator: Returns post_id for tracking
Step 7: Log to Google Sheets Node (7669)
This node records all activity for compliance and analytics.
Configuration:
-
Sheet URL:
YOUR_GOOGLE_SHEET_URL
-
Sheet Name:
Sheet1
-
Append Row with values:
- Column A (Date):
{{current_date}}
- Column B (Product Name):
{{product_name}}
- Column C (Caption):
{{ai_caption}}
- Column D (Facebook Post ID):
{{facebook_post_id}}
- Column E (Status):
Posted
Step 8: Notify Slack Node (7670)
This node alerts your team.
Configuration:
-
Channel:
#taskagi-notifications
-
Message Format:
✅ New Product Posted!
Product: {{product_name}}
Price: {{product_price}}
Facebook Post: {{facebook_post_url}}
Logged to: Google Sheets
-
Mention:
@channel (optional, for urgent posts)
Testing Your Agent
Pre-Launch Testing
Step 1: Verify All Connections
- Navigate to Integrations dashboard
- Confirm all five integrations show Connected status
- Test each connection by clicking Test Connection
- Verify no authentication errors appear
Step 2: Run Test Execution
- In the workflow editor, click Test Workflow
- Select Use Sample Data for Shopify trigger
- TaskAGI will execute the workflow with mock product data
- Monitor the execution progress in real-time
Step 3: Verify Each Node
-
Node 7664 (Shopify): Confirm sample product data loads
-
Node 7665 (Parse): Verify extracted fields appear correctly
-
Node 7666 (AI Caption): Review generated caption quality
-
Node 7667 (Config): Confirm all variables are populated
-
Node 7668 (Facebook): Check for post creation confirmation
-
Node 7669 (Sheets): Verify row appears in Google Sheet
-
Node 7670 (Slack): Confirm notification message in channel
Step 4: Expected Results
✅ AI caption is professional and engaging
✅ Facebook post appears on your page
✅ Google Sheets row is populated with all data
✅ Slack message arrives in notification channel
✅ No error messages in execution log
Production Launch
-
Create a test product in your Shopify store
-
Monitor the workflow execution (should complete in 30-60 seconds)
-
Verify Facebook post appears on your page
-
Check Google Sheets for logged entry
-
Review Slack notification for accuracy
-
Enable live mode once all tests pass
Success indicators:
- Workflow execution time: < 2 minutes
- Zero failed nodes
- All integrations responding
- Data accuracy: 100%
Your automation is now live and ready to scale your social media presence! 🚀