Install
openclaw skills install postai-automationAutomate TikTok and Instagram video creation and scheduled posting from one product image using POST AI with customizable styles, captions, and performance t...
openclaw skills install postai-automationAutomate TikTok/Instagram video creation and posting using POST AI platform.
POST AI is an AI-powered tool that turns 1 product image into dozens of TikTok FYP videos with auto-caption and voice-over.
config.example.json to config.json{
"postai": {
"api_key": "your_api_key",
"account_id": "your_account_id",
"endpoint": "https://api.postai.com/v1"
},
"tiktok": {
"account": "@youraccount",
"cookie_file": "/path/to/cookies.json",
"session_id": "your_session_id"
},
"instagram": {
"account": "@youraccount",
"cookie_file": "/path/to/cookies.json"
}
}
Generate multiple video variants from a single product image:
python scripts/generate_videos.py \
--image products/shirt.jpg \
--count 10 \
--platform tiktok \
--style hype \
--language id \
--output videos/shirt/
Options:
--image: Path to product image--count: Number of videos to generate (default: 5)--platform: Target platform (tiktok, instagram, threads)--style: Video style (hype, calm, energetic, professional)--language: Language for voice-over (id, en)--output: Output directoryUpload generated videos with automatic scheduling:
python scripts/auto_upload.py \
--source videos/shirt/*.mp4 \
--platform tiktok \
--caption-file captions/shirt.txt \
--schedule "2026-03-05 08:00,14:00,20:00"
Options:
--source: Glob pattern for video files--platform: Target platform--caption-file: Text file with captions (one per line)--schedule: Comma-separated schedule (YYYY-MM-DD HH:MM)--hashtags: Custom hashtags (comma-separated)Process multiple products from CSV:
python scripts/batch_process.py \
--input products.csv \
--platforms tiktok,instagram \
--videos-per-product 10 \
--schedule "08:00,14:00,20:00"
CSV Format (products.csv):
product_name,image_url,price,affiliate_link,caption_template
T-Shirt Merah,https://example.com/shirt.jpg,150000,https://aff.link/shirt,Promo {price}!
Kemeja Hijau,https://example.com/shirt2.jpg,200000,https://aff.link/shirt2,Fashion terbaru!
# 1. Generate videos
python scripts/generate_videos.py --image produk.jpg --count 10 --platform tiktok
# 2. Preview before upload
python scripts/previews.py --source videos/produk/
# 3. Upload manually or scheduled
python scripts/auto_upload.py --source videos/produk/*.mp4 --platform tiktok
Add to crontab for daily 3x posting:
# Post at 8 AM, 2 PM, 8 PM every day
0 8,14,20 * * * cd ~/.openclaw/workspace/skills/postai-automation && python scripts/daily_post.py
Generate multiple styles for the same product:
python scripts/generate_videos.py \
--image produk.jpg \
--styles hype,calm,professional \
--count 5 \
--platform tiktok
Then upload all variants and track performance to find best-performing style.
Track which videos generate the most engagement/sales:
python scripts/track_performance.py \
--days 7 \
--metrics views,likes,comments,sales
Output:
Video Views Likes Comments Sales Conversion Rate
produk_v1.mp4 15.2K 2.3K 156 23 0.15%
produk_v2.mp4 8.5K 1.2K 89 12 0.14%
produk_v3.mp4 22.1K 4.5K 234 67 0.30% ⭐ Best
Use placeholders in caption templates:
{product_name}: Product name{price}: Price (formatted: Rp 150.000){affiliate_link}: Your affiliate link{hashtag}: Auto-generated hashtags{emoji}: Relevant emojis based on productExample template:
🔥 {product_name} - {price}
Jangan sampai kehabisan! Order sekarang:
{affiliate_link}
{hashtag}
#fyp #affiliatemarketing #promotion
Videos not uploading to TikTok:
POST AI API errors:
Caption generation issues:
For POST AI platform issues: Contact their support via https://postai.myscalev.com/
For skill issues: Open issue at BerkahKarya or contact Veris directly.