Use this powerful n8n workflow to automatically fetch NASA photos, generate poetic AI captions using OpenAI, edit the image with text overlay, and share the unique space postcard instantly via Slack.
Download this n8n workflow template and start using it instantly.
Content Curators seeking unique, automated content for social media or internal channels.
Developers and Hobbyists interested in combining public APIs, image processing, and AI in a single n8n workflow.
Automation Specialists looking for advanced n8n templates involving dynamic data manipulation and conditional logic.
Users needing a scheduled n8n trigger to post daily unique content.
This automation solves the problem of generating visually engaging, personalized content using publicly available data and artificial intelligence. By utilizing a specific n8n workflow, you can fetch high-quality space images from the NASA Astronomy Picture of the Day (APOD) API. Instead of simply posting the raw image, this n8n automation passes the data to an AI Agent (powered by OpenAI) to craft a short, poetic caption and calculate its optimal placement on the image. The resulting 'postcard' is a unique asset, automatically edited with a text overlay, and immediately shared with your team or community via Slack. This advanced n8n workflow demonstrates complex integration between external APIs, image manipulation, and generative AI.
The process begins with the When clicking 'Test workflow' n8n trigger. While currently manual, this could easily be converted to a schedule n8n trigger for daily runs.
mediatype equals 'image'), skipping videos to maintain workflow integrity.imagefile) for subsequent image processing n8n nodes.To import and run this n8n workflow successfully, follow these steps:
When clicking 'Test workflow' (Manual Trigger): The starting n8n trigger point for this automation.
Get NASA APOD (NASA n8n node): Fetches Astronomy Picture of the Day data, using a complex expression to randomly select a date within the last decade.
Check if Media Type is Image (If n8n node): Essential flow control. Ensures the workflow only proceeds if the NASA response contains an image (mediatype equals 'image').
Edit Image1 (Edit Image n8n node): Used purely for metadata extraction (operation: information), providing the image dimensions required by the AI agent for coordinate calculation.
OpenAI Chat Model (Language Model n8n node): The language model component, configured to use gpt-4.1-mini for fast and accurate response generation within the n8n workflow.
AI Agent (Langchain Agent n8n node): The core intelligence. It utilizes contextual information from previous n8n nodes (image dimensions and description) and instructs the OpenAI model to produce a poetic caption and precise text placement coordinates in a structured JSON output.
Edit Image (Edit Image n8n node): The critical image manipulation n8n node. It applies the 'text' operation, dynamically pulling the text and calculated X/Y coordinates from the AI Agent's parsed JSON output, overlaying the caption onto the image.
Upload a file (Slack n8n node): Posts the final, edited image file (binaryPropertyName: imagefile) to the designated Slack channel.
Automate short-form video creation using the Gemini model, triggered by Telegram. This n8n workflow handles AI dialogue, video generation, and simultaneous posting to major social platforms using Blotato.

Automate client communication and CRM updates. This n8n workflow processes Zoom or AI meeting summary emails, extracts key data, updates Airtable, and sends summaries via Gmail.

Generate automated GA4 reports with AI insights, trend analysis, and actionable recommendations. Use this powerful n8n workflow to send polished HTML emails via Gmail.

Use this powerful n8n workflow to automatically generate lip-synced avatar videos using Infinitalk AI, optimize titles with OpenAI, and publish simultaneously to YouTube and TikTok.

Use this comprehensive n8n workflow to automate the entire process of creating and uploading social media video shorts, leveraging OpenAI for content generation and external APIs like ElevenLabs and Creatomate for media processing.









































