Automation library · Content

Create weekly space newsletter with NASA APIs and OpenAI

Started by a clock, and works across Gmail, Google Docs, Google Drive, Notion and one other. It hands the judgement calls to OpenAI. 14 steps: a working afternoon to understand properly.

MediumCalls a model: OpenAI

14 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
5Services it connects to

The flow

Starts it 1Model 1Logic 4Service 8

The steps in the order they run, from what starts it.

  1. 1Weekly Monday TriggerSchedule triggerStarts it
  2. 2Prepare NASA API URLsCodeLogic
  3. 3Fetch Astronomy PictureHttp RequestService
  4. 4Fetch Space WeatherHttp RequestService
  5. 5Combine NASA DataMergeLogic
  6. 6Limit API ResultsLimitLogic
  7. 7Generate Newsletter with AIOpen AiModel
  8. 8Create Google DocGoogle DocsService
  9. 9Insert Newsletter ContentGoogle DocsService
  10. 10Convert to PDFGoogle DriveService
  11. 11Send Newsletter EmailGmailService
  12. 12Archive to NotionNotionService
  13. 13Wait for DistributionMergeLogic
  14. 14Notify Success on SlackSlackService

How it's built

Starts on
A clock
Steps
14
Size
Medium: a working afternoon
Connects to
Gmail, Google Docs, Google Drive, Notion, Slack
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Docs, Google Drive, Notion and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 14 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 14 steps before you point it at anything that matters.