Imagen astronómica diaria de NASA

Intermedio

Este es unPersonal Productivity, Multimodal AIflujo de automatización del dominio deautomatización que contiene 11 nodos.Utiliza principalmente nodos como Set, Filter, EmailSend, Summarize, RssFeedRead. Imagen astronómica diaria de NASA enviada a su bandeja de entrada por correo electrónico

Requisitos previos
  • No hay requisitos previos especiales, puede importar y usarlo directamente
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "UYpkraIlIwEP3v71",
  "meta": {
    "instanceId": "d62d7a3fb314923e2cdedec19423e9669591b9c9c87901bc9332b7c59c101257"
  },
  "name": "NASA APOD",
  "tags": [],
  "nodes": [
    {
      "id": "06ddfc69-ba89-48ee-a6fd-b244e7a8a35e",
      "name": "Enviar correo electrónico",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        688,
        336
      ],
      "webhookId": "5f65dfe3-f94e-4cbe-adc9-d2aeab8e6fb3",
      "parameters": {
        "html": "=<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Newsletter</title>\n</head>\n<body style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 20px; background-color: #f9f9f9;\">\n    <div style=\"max-width: 600px; margin: 0 auto; background-color: white; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);\">\n      \n        <div style=\"text-align: center; border-bottom: 2px solid #e9ecef; padding-bottom: 20px; margin-bottom: 30px;\">        \n        <div style=\"margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee;\">\n        {{ $json.appended_message }}\n        </div>\n    </div>\n</body>\n</html>",
        "options": {
          "appendAttribution": false
        },
        "subject": "Astronomy Picture of the Day",
        "toEmail": "destination@email.com",
        "fromEmail": "NASA @N8N <you@gmail.com>"
      },
      "credentials": {
        "smtp": {
          "id": "JiVIi5PpnPuXudnT",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "769bf971-1d99-46c6-a470-5a82ed416a11",
      "name": "Resumir",
      "type": "n8n-nodes-base.summarize",
      "position": [
        464,
        336
      ],
      "parameters": {
        "options": {},
        "fieldsToSummarize": {
          "values": [
            {
              "field": "message",
              "aggregation": "append"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "85a0f94f-60df-4496-9d3a-468925bf1aac",
      "name": "Establecer solo campos importantes",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        336
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "1b769a4e-e8a7-47ad-8e4a-fc1b67bf45e1",
              "name": "Titre",
              "type": "string",
              "value": "={{ $json.title }}"
            },
            {
              "id": "e6d2769b-1a49-4e68-a72d-744409ff465b",
              "name": "Contenu",
              "type": "string",
              "value": "={{ $json[\"content:encoded\"] }}"
            },
            {
              "id": "de4870fc-57e1-44c6-acc2-8bb97723bead",
              "name": "Lien",
              "type": "string",
              "value": "={{ $json.link }}"
            },
            {
              "id": "f40b11e8-f737-4bfd-95ee-2df27fbe1df0",
              "name": "Date",
              "type": "string",
              "value": "={{ $json.pubDate }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "afd2683f-62ca-40fc-bd5b-d0fccfd5cba3",
      "name": "Filtrar solo últimos 2 días",
      "type": "n8n-nodes-base.filter",
      "position": [
        16,
        336
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "33c627f6-98b2-48f9-9907-f53e7e0ddb73",
              "operator": {
                "type": "dateTime",
                "operation": "after"
              },
              "leftValue": "={{ $json.Date }}",
              "rightValue": "={{ $today.minus({ days: 2 }) }}"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "4a3e68ea-6632-4dae-9a50-4932ee930648",
      "name": "Activador programado",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -672,
        336
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 6,
              "triggerAtMinute": 21
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "4f72bd95-a7e8-4e6b-844e-f5f36bde52f9",
      "name": "Obtener datos APOD",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -448,
        336
      ],
      "parameters": {
        "url": "https://apod.com/feed.rss",
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "8b93b547-93c3-4582-b84c-2f0ea19c3e1d",
      "name": "Agregar datos",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        336
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ff3a65f7-679e-4501-b331-751eff73b337",
              "name": "message",
              "type": "string",
              "value": "=<article style=\"max-width: 600px; margin: 20px; padding: 20px; border: 1px solid #ddd; border-radius: 8px; font-family: Arial, sans-serif; background-color: #f9f9f9;\">\n  <h2 style=\"color: #333; margin: 0 0 15px 0; font-size: 1.4em; line-height: 1.3;\">\n    <a href=\"{{ $json.Lien }}\" \n       style=\"color: #0066cc; text-decoration: none;\" \n       target=\"_blank\">\n      {{ $json.Titre }}\n    </a>\n  </h2>\n  \n  <p style=\"color: #666; margin: 0 0 15px 0; line-height: 1.5; font-size: 1em;\">\n    {{ $json.Contenu }}\n  </p>\n  \n  <time style=\"color: #999; font-size: 0.9em; font-style: italic;\">\n    {{ $json.Date }}\n  </time>\n</article>"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "0aaed6d7-7f8d-41c9-be1a-18558d67dd99",
      "name": "Nota adhesiva16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        192
      ],
      "parameters": {
        "color": 4,
        "width": 224,
        "height": 304,
        "content": "## 1\n\nGet data from the official NASA APOD RSS Feed using the url\n"
      },
      "typeVersion": 1
    },
    {
      "id": "165bc6ce-83c5-400a-8991-279d5f8c2e64",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        192
      ],
      "parameters": {
        "color": 4,
        "width": 224,
        "height": 304,
        "content": "## 2\n\nFilter the pictures to only get the one from the last 2 days (or the last one)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ec74718c-e06b-4ffa-9835-cff75f09fa33",
      "name": "Nota adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        48
      ],
      "parameters": {
        "color": 4,
        "width": 224,
        "height": 448,
        "content": "## 3\n\nConfigure an email sender. You can use Gmail for that, you'll just have to create a SMTP account with the correct API Keys. Also, you can change the HTML code as you like, to customize your daily APOD email :)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "31cc085f-d273-49e6-99c5-3b1d6c74498c",
      "name": "Nota adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        48
      ],
      "parameters": {
        "color": 4,
        "width": 1104,
        "height": 112,
        "content": "## NASA Astronomy Picture of the Day\n\nGet the daily NASA APOD delivered by mail ! Simple workflow to understand RSS and Email automation. Customize the Schedule Trigger and the HTML Body of the email like you want !\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "319032bd-c00b-4c53-9d01-3ca24cfe3355",
  "connections": {
    "769bf971-1d99-46c6-a470-5a82ed416a11": {
      "main": [
        [
          {
            "node": "06ddfc69-ba89-48ee-a6fd-b244e7a8a35e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4f72bd95-a7e8-4e6b-844e-f5f36bde52f9": {
      "main": [
        [
          {
            "node": "85a0f94f-60df-4496-9d3a-468925bf1aac",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "8b93b547-93c3-4582-b84c-2f0ea19c3e1d": {
      "main": [
        [
          {
            "node": "769bf971-1d99-46c6-a470-5a82ed416a11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4a3e68ea-6632-4dae-9a50-4932ee930648": {
      "main": [
        [
          {
            "node": "4f72bd95-a7e8-4e6b-844e-f5f36bde52f9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "afd2683f-62ca-40fc-bd5b-d0fccfd5cba3": {
      "main": [
        [
          {
            "node": "8b93b547-93c3-4582-b84c-2f0ea19c3e1d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "85a0f94f-60df-4496-9d3a-468925bf1aac": {
      "main": [
        [
          {
            "node": "afd2683f-62ca-40fc-bd5b-d0fccfd5cba3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Productividad personal, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos11
Categoría2
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
sienna

sienna

@sienna

French's leading offline data preservation startup ! Cloud to Tape, Data Integrity assurance, multi-source backup, ... all automated with N8N ;)

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34