{"product_id":"telegram-to-facebook-multi-photo-posts-openrouter-ai-n8n","title":"Telegram to Facebook Multi-Photo Posts (OpenRouter AI) - n8n","description":"\u003ch3\u003eTurn Telegram photo albums into engaging Facebook multi-photo posts—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches for new \u003cstrong\u003eTelegram messages with photos\u003c\/strong\u003e, buffers album images, uses \u003cstrong\u003eOpenRouter AI\u003c\/strong\u003e to rewrite the caption, uploads \u003cstrong\u003emulti-photo attachments\u003c\/strong\u003e to Facebook, publishes the post, and sends your chat a \u003cstrong\u003eclickable link\u003c\/strong\u003e to the live Facebook URL.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on Telegram photo messages\u003c\/strong\u003e and extracts the best-resolution photo plus any caption text.\u003c\/li\u003e\n  \u003cli\u003eUses a \u003cstrong\u003emedia-group key\u003c\/strong\u003e to group images from the same Telegram album and stores each photo entry in an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e (buffering columns like \u003cem\u003emedia_group_id\u003c\/em\u003e, \u003cem\u003efile_id\u003c\/em\u003e, \u003cem\u003ecaption\u003c\/em\u003e, and \u003cem\u003edate\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWaits briefly\u003c\/strong\u003e so all album images arrive, then retrieves all stored records for that album.\u003c\/li\u003e\n  \u003cli\u003eCollects the \u003cstrong\u003efirst non-empty caption\u003c\/strong\u003e and builds a photo list for publishing.\u003c\/li\u003e\n  \u003cli\u003eCalls \u003cstrong\u003eOpenRouter\u003c\/strong\u003e to rewrite the caption into an engaging Facebook post with a \u003cstrong\u003ehook, CTA, and hashtags\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDownloads each Telegram photo\u003c\/strong\u003e and uploads it to the Facebook Graph API as unpublished media to obtain \u003cstrong\u003emedia IDs\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePublishes a Facebook Page feed post\u003c\/strong\u003e with the AI-generated message and aggregated \u003cstrong\u003eattached_media\u003c\/strong\u003e, then sends a Telegram notification containing the \u003cstrong\u003eFacebook post URL\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSocial teams that collect event and product photos in Telegram and want Facebook carousel-style (multi-photo) posts without manual editing.\u003c\/li\u003e\n  \u003cli\u003eOperators running an n8n-based media pipeline across Telegram → OpenRouter → Facebook with consistent caption formatting.\u003c\/li\u003e\n  \u003cli\u003eCommunity managers who want instant publishing plus a link back to the original chat for visibility and approvals.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram integration:\u003c\/strong\u003e new photo messages, album (media group) buffering.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Data Table:\u003c\/strong\u003e stores album items (media_group_id, file_id, caption, date).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI captioning:\u003c\/strong\u003e OpenRouter AI for Facebook caption rewriting.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFacebook publishing:\u003c\/strong\u003e Facebook Graph API uploads (unpublished media) + feed post with attached_media.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCore nodes mentioned:\u003c\/strong\u003e set, code, wait, merge, telegram, aggregate.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46154068066483,"sku":"N8N-20061","price":59.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/TZ6Ms_3mvH3cZQFWNGcU1_iz2fzUDq.png?v=1790933306","url":"https:\/\/buyflowscripts.com\/products\/telegram-to-facebook-multi-photo-posts-openrouter-ai-n8n","provider":"N8N Commerce","version":"1.0","type":"link"}