Project Overview
Google Sheets-এ content calendar রেখে, AI দিয়ে caption লিখিয়ে, image তৈরি করে Facebook ও Instagram-এ auto-post করার সম্পূর্ণ system।
Content Calendar Sheet Structure
| Topic | Date | Platform | Status | Post ID | |----------------|------------|-----------|---------|---------| | HTML tutorial | 2025-01-15 | facebook | pending | | | CSS tips | 2025-01-16 | instagram | pending | | | n8n tutorial | 2025-01-17 | both | pending | |
সম্পূর্ণ Automation Workflow
[Schedule Trigger — প্রতিদিন সকাল ৮টায়]
↓
[Google Sheets — আজকের pending posts পড়া]
Filter: Date === today AND Status === "pending"
↓
[Loop Over Items — প্রতিটি post-এর জন্য]
↓
[OpenAI — Caption লেখা]
Prompt: "{{ $json.topic }} বিষয়ে একটি engaging
বাংলা caption লিখুন Facebook-এর জন্য।
Hashtags সহ, Max 200 words।"
↓
[OpenAI DALL-E — Image তৈরি]
Prompt: "{{ $json.topic }} এর educational infographic,
modern design, blue and white color scheme"
↓
[HTTP Request — Image download করা (binary)]
↓
[Switch — Platform]
facebook → [Facebook Graph API — Photo Post]
instagram → [Instagram Graph API — Media Post]
both → [Merge ও দুটো API-তেই post]
↓
[Google Sheets — Status "posted" ও Post ID update]
↓
[Telegram — "আজকের posts সফলভাবে পোস্ট হয়েছে!" notify]
Facebook Graph API Post
Node: HTTP Request
Method: POST
URL: https://graph.facebook.com/v18.0/{{ $vars.FB_PAGE_ID }}/photos
Body:
{
"message": "{{ $json.caption }}",
"url": "{{ $json.imageUrl }}",
"access_token": "{{ $vars.FB_PAGE_TOKEN }}"
}