Automation library · Content

Add internal links to WordPress posts with OpenAI and Notion

Started by a clock, and works across Notion, Slack and WordPress. It hands the judgement calls to OpenAI. 17 steps, 3 branches, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

17 stepsMedium: a working afternoon
3Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 2Model 1Logic 8Service 6

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

  1. 1Manual TriggerManual triggerStarts it
  2. 2Weekly Monday 9AMSchedule triggerStarts it
  3. 3ConfigurationCodeLogic
  4. 4Fetch All PostsWordpressService
  5. 5Extract Post DataCodeLogic
  6. 6Loop EmbeddingsSplit In BatchesLogic
  7. 7OpenAI EmbeddingsHttp RequestService
  8. 8Build Link GraphCodeLogic
  9. 9Has Suggestions?IfLogic
  10. 10Pick Anchor TextOpen AiModel
  11. 11Build Update PayloadCodeLogic
  12. 12Update WP PostWordpressService
  13. 13Log Link UpdatesNotionService
  14. 14Is Orphan?IfLogic
  15. 15Orphan Page AlertSlackService
  16. 16Hub Candidate?IfLogic
  17. 17Hub Candidate AlertSlackService

How it's built

Starts on
A clock
Steps
17, with 3 branches, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Notion, Slack, WordPress
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Notion, Slack and WordPress 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. 17 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 17 steps before you point it at anything that matters.