Back to Templates

Create & Share AI-Enhanced NASA Space Postcards to Slack

Created by

Created by: koichi nagino || nagi

koichi nagino

Last update

Last update 6 hours ago

Share


Description
Ever wanted to share the beauty of space with a unique, artistic touch? This workflow automatically generates a stunning "space postcard" and shares it in your Slack channel. It fetches a random image from NASA's Astronomy Picture of the Day (APOD) archive, uses an AI to write a short, poetic message inspired by the image, and overlays this text directly onto the picture before posting.
Who’s it for
Space lovers who want a daily dose of cosmic beauty in their Slack channels.
Community managers looking for engaging, automated content to keep their workspace active.
Creative teams who appreciate the fusion of technology, art, and science.
Anyone looking for a fun, impressive demonstration of AI-powered image manipulation.
What it does / How it works
Fetches a Random Image: The workflow triggers and fetches a random image from the last 10 years of NASA's 'Astronomy Picture of the Day' (APOD) collection. It checks to ensure the content is an image, not a video.
Engages AI for Creativity: It sends the image's title and official explanation to an AI model. The AI is prompted to generate a short, poetic message (under 50 characters) and to calculate the precise coordinates to place this text in the bottom-left corner of the image.
Creates the Postcard: The workflow then takes the poetic text and coordinates from the AI and dynamically writes the message onto the NASA image, creating a unique digital postcard.
Shares to Slack: Finally, it uploads the newly created postcard image to your specified Slack channel and posts a follow-up message.
Requirements
An n8n instance.
A NASA API Key.
An OpenAI API Key (or credentials for another compatible AI model).
A Slack workspace and the permissions to connect an app.
How to set up
NASA Credentials: Add your NASA API key credentials to the Get NASA APOD node.
OpenAI Credentials: Add your OpenAI API key credentials to the OpenAI Chat Model node.
Slack Configuration:
Add your Slack credentials to both the Upload a file and Send a message nodes.
IMPORTANT: In both Slack nodes, you must select the channel where you want the postcard to be posted.
How to customize the workflow
Automate It: Replace the Manual Trigger with a Schedule Trigger to have a new postcard sent automatically every day.
Change the AI's Personality: Edit the prompt in the AI Agent node. You can ask it to generate a funny caption, a haiku, or place the text in a different corner—the possibilities are endless!
Use a Different Platform: Swap the Slack nodes for Discord, Telegram, or Email nodes to share the postcard on your platform of choice.