Add internal links to WordPress posts with OpenAI, Notion, and Slack
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Wordpress, OpenAI, Notion and Slack. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Configuration (Code): runs custom JavaScript code
- Fetch All Posts (Wordpress): get many (post)
- Extract Post Data (Code): runs custom JavaScript code
- Loop Embeddings (Loop Over Items (Split in Batches)): loops over the items in batches
- OpenAI Embeddings (HTTP Request): calls api.openai.com (POST)
- Build Link Graph (Code): runs custom JavaScript code
- Has Suggestions? (If): checks a condition and branches into true / false
- Pick Anchor Text (OpenAI): uses OpenAI
- Build Update Payload (Code): runs custom JavaScript code
- Update WP Post (Wordpress): update (post)
…plus 5 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - Wordpress
n8n-nodes-base.wordpress - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Notion
n8n-nodes-base.notion - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs manually or every Monday at 9AM to analyze published WordPress posts with OpenAI embeddings, injects semantically relevant internal links using AI-selected anchor text, logs link updates to Notion, and posts Slack alerts for…