Send asteroid alerts from NASA to LINE using OpenAI and DeepL
Turn your n8n instance into a personal "Planetary Defense System." This workflow monitors NASA's data daily for hazardous asteroids, generates sci-fi style warnings using OpenAI, translates them via DeepL, and notifies you through LINE.
Who is it for This template is perfect for space enthusiasts, sci-fi fans, or anyone interested in learning how to combine data analysis with AI text generation and translation services in n8n.
What it does Fetches Data: Retrieves the daily "Near Earth Objects" list from the NASA NeoWs API. Analyzes Threats: A Code node filters for "potentially hazardous" asteroids and calculates their distance relative to the Moon. Smart Branching: If a threat exists: OpenAI generates a dramatic, sci-fi style warning based on the asteroid's size and distance. DeepL translates this alert into your preferred language (default: Japanese). If no threat exists: A pre-set "Peace Report" is prepared. Notifies: Sends the final message to your LINE account via LINE Notify.
How to set up NASA API: Sign up for a free API key at api.nasa.gov and configure the Get Asteroid Data node credential. OpenAI & DeepL: Add your API keys to the respective nodes. LINE Notify: Generate an access token from the LINE Notify website and add it to the Send Danger Alert and Send Peace Report nodes. Configure Language: In the Translate Alert node, set the "Translate To" field to your desired language code (e.g., JA, EN, DE).
Requirements n8n version 1.0 or later NASA API Key (Free) OpenAI API Key (Paid) DeepL API Key (Free or Pro) LINE Account & Notify Token
How to customize Change the Vibe:* Edit the System Prompt in the Generate SF Alert* node to change the persona (e.g., "Scientific Analyst" instead of "Sci-Fi System"). Switch Messenger:** Replace the LINE nodes with Slack, Discord, or Email nodes to receive alerts on your preferred platform. Adjust Thresholds:* Modify the JavaScript in the Filter & Calculate Distance* node to change the definition of a "threat" (e.g., closer than 10 lunar distances).
Related Templates
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
🤖 Build Resilient AI Workflows with Automatic GPT and Gemini Failover Chain
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. How it works This...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments