feat: add folder support for workflows (fixes #70)

This commit is contained in:
Praveen Mudalgeri
2025-08-05 09:40:47 +05:30
parent 307d530f9b
commit c4885eee92
2057 changed files with 985290 additions and 974268 deletions

View File

@@ -0,0 +1,640 @@
{
"meta": {
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
},
"nodes": [
{
"id": "92ffb384-849f-411b-981f-e324190eaae4",
"name": "Post on Wordpress",
"type": "n8n-nodes-base.wordpress",
"position": [
1340,
700
],
"parameters": {
"title": "={{ $json.Title }}",
"additionalFields": {
"status": "draft",
"content": "={{ $json['Blog Body'] }}"
}
},
"typeVersion": 1
},
{
"id": "b3148c02-8088-4b81-afa8-1d57bef570e5",
"name": "Upload Media",
"type": "n8n-nodes-base.httpRequest",
"position": [
1840,
700
],
"parameters": {
"url": "=https://effibotics.com/wp-json/wp/v2/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "binaryData",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "content-disposition",
"value": "=attachment; filename={{ $binary.data.fileName }}.{{ $binary.data.fileExtension }}"
},
{
"name": "content-type",
"value": "={{ $binary.data.mimeType }}"
}
]
},
"inputDataFieldName": "data",
"nodeCredentialType": "wordpressApi"
},
"typeVersion": 4.1
},
{
"id": "d81ab003-fb36-4570-ab58-65b9a5db38be",
"name": "Set Featured Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
2000,
700
],
"parameters": {
"url": "={{ $('Settings').item.json.wordpress_url }}wp-json/wp/v2/posts/{{ $('Post on Wordpress').item.json.id }}",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "featured_media",
"value": "={{ $json.id }}"
}
]
},
"nodeCredentialType": "wordpressApi"
},
"typeVersion": 4.1
},
{
"id": "176ed2b0-2e27-4c04-a3fb-94842a82d3ab",
"name": "Edit Fields",
"type": "n8n-nodes-base.set",
"position": [
1040,
700
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "66db867d-e056-4713-8877-14c60775738a",
"name": "id",
"type": "string",
"value": "={{ $json.id }}"
},
{
"id": "c2e3724a-1406-48a7-b15c-1cda06dd44e9",
"name": "Title",
"type": "string",
"value": "={{ $json.Title }}"
},
{
"id": "d47d0436-ae61-4c68-a57f-273e77354050",
"name": "Keyword",
"type": "string",
"value": "={{ $json.Keyword }}"
},
{
"id": "34d8bc1f-77f6-496e-a36f-faa06d5cd6dd",
"name": "Blog Body",
"type": "string",
"value": "={{ $json[\"Blog Post\"].replace($json[\"Title\"],'') }}"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "ff8d11c0-a604-4959-8dbd-56a5265a0559",
"name": "Get content to post",
"type": "n8n-nodes-base.airtable",
"position": [
680,
700
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appEanjsKFnMPZZz3",
"cachedResultUrl": "https://airtable.com/appEanjsKFnMPZZz3",
"cachedResultName": "SEO Doctor"
},
"limit": 3,
"table": {
"__rl": true,
"mode": "list",
"value": "tblkWGFcUJ2WVyL9f",
"cachedResultUrl": "https://airtable.com/appEanjsKFnMPZZz3/tblkWGFcUJ2WVyL9f",
"cachedResultName": "AI Generated Blog Posts"
},
"options": {},
"operation": "search",
"returnAll": false,
"filterByFormula": "SEARCH(\"To Post\", {Status})"
},
"typeVersion": 2
},
{
"id": "43f99839-2690-4324-8d26-201fc55f7b02",
"name": "Filter by existing Blogs",
"type": "n8n-nodes-base.filter",
"position": [
860,
700
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "d31b3381-dc99-41ae-b309-40e270ebf714",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json['Blog Post'] }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2
},
{
"id": "924eeb0a-ee5d-40f1-915c-19e34018c619",
"name": "Markdown to HTML",
"type": "n8n-nodes-base.markdown",
"position": [
1180,
700
],
"parameters": {
"mode": "markdownToHtml",
"options": {},
"markdown": "={{ $json['Blog Body'] }} {{ $json['Blog Body'] }} {{ $json['Blog Body'] }}",
"destinationKey": "Blog Body"
},
"typeVersion": 1
},
{
"id": "3aed566c-04bc-4164-85d7-1f13a7862f5a",
"name": "Get Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
1500,
700
],
"parameters": {
"url": "=https://api.pexels.com/v1/search?query= {{ $('Edit Fields').item.json.Keyword }}&per_page=1&width=1200&height=675&format=webp",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "lFlHMbYfTkSZ2HupBHDggMucIq38GQ5QICPstDPVdaHVxn9afY983qnS"
},
{
"name": "content",
"value": "= {{ $('Edit Fields').item.json.Keyword }}"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "2729c11b-0c94-4e05-9d98-80d70eac1c2d",
"name": "Download the image",
"type": "n8n-nodes-base.httpRequest",
"position": [
1660,
700
],
"parameters": {
"url": "={{ $json.photos[0].src.landscape }}",
"options": {},
"responseFormat": "file"
},
"typeVersion": 2
},
{
"id": "9b31f00c-dad3-403c-953e-21df2cd3af65",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
760,
340
],
"parameters": {
"color": 7,
"width": 662.5970350404314,
"height": 321.75,
"content": "## Automating Posting content to WordPress and setting up the featured Image\nThis workflow aims to simplify the process by which we share content on Wordpress sites with n8n from airtable\n\n### Usage\n1. Get the content from AirTable. SInce we have this as a markdown, we will have to convert it to a html format to make it easier to publish and manage on WordPress\n2. Upload the blog post with the content, title and all other relevant information needed for an optimized blog\n3. Once the post is posted, we need to upload the image and set it as a features image for the blogs"
},
"typeVersion": 1
},
{
"id": "ca838f99-39f7-4641-9293-502a7e0be912",
"name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
520,
700
],
"parameters": {
"rule": {
"interval": [
{}
]
}
},
"typeVersion": 1.2
},
{
"id": "7eb92d69-3815-45d3-9da9-63a28b15f661",
"name": "Update POST on Airtable",
"type": "n8n-nodes-base.airtable",
"position": [
2180,
700
],
"parameters": {
"base": {
"__rl": true,
"mode": "list",
"value": "appEanjsKFnMPZZz3",
"cachedResultUrl": "https://airtable.com/appEanjsKFnMPZZz3",
"cachedResultName": "SEO Doctor"
},
"table": {
"__rl": true,
"mode": "list",
"value": "tblkWGFcUJ2WVyL9f",
"cachedResultUrl": "https://airtable.com/appEanjsKFnMPZZz3/tblkWGFcUJ2WVyL9f",
"cachedResultName": "AI Generated Blog Posts"
},
"columns": {
"value": {
"id": "={{ $('Edit Fields').item.json.id }}",
"Status": "Posted"
},
"schema": [
{
"id": "id",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "id",
"defaultMatch": true
},
{
"id": "Title",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Title",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Blog Post",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Blog Post",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Star",
"type": "number",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Star",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Intent",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Intent",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Status",
"type": "options",
"display": true,
"options": [
{
"name": "Draft",
"value": "Draft"
},
{
"name": "First Copy",
"value": "First Copy"
},
{
"name": "Second Copy",
"value": "Second Copy"
},
{
"name": "To Post",
"value": "To Post"
},
{
"name": "Posted",
"value": "Posted"
},
{
"name": "Review",
"value": "Review"
},
{
"name": "Tracking",
"value": "Tracking"
}
],
"removed": false,
"readOnly": false,
"required": false,
"displayName": "Status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Keyword",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Keyword",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "count",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "count",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Word count",
"type": "number",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Word count",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Last Modified",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "Last Modified",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Image",
"type": "array",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Image",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Images",
"type": "string",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Images",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "All keyword Data and Tracking",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "All keyword Data and Tracking",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Search Volume",
"type": "number",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Search Volume",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Frequency",
"type": "number",
"display": true,
"removed": true,
"readOnly": false,
"required": false,
"displayName": "Frequency",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"id"
]
},
"options": {},
"operation": "update"
},
"typeVersion": 2
},
{
"id": "536659ab-ca94-420f-8110-e277676b939a",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
500,
340
],
"parameters": {
"height": 323,
"content": "## SETUP\n1. Create a wordpress application and set up the password\n\n2. Have an airtable with the columns \nKeyword | Title | Blog content\n\n3. The blog content in this canse is a markdown format generated by AI"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Get Image": {
"main": [
[
{
"node": "Download the image",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[
{
"node": "Markdown to HTML",
"type": "main",
"index": 0
}
]
]
},
"Upload Media": {
"main": [
[
{
"node": "Set Featured Image",
"type": "main",
"index": 0
}
]
]
},
"Markdown to HTML": {
"main": [
[
{
"node": "Post on Wordpress",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get content to post",
"type": "main",
"index": 0
}
]
]
},
"Post on Wordpress": {
"main": [
[
{
"node": "Get Image",
"type": "main",
"index": 0
}
]
]
},
"Download the image": {
"main": [
[
{
"node": "Upload Media",
"type": "main",
"index": 0
}
]
]
},
"Set Featured Image": {
"main": [
[
{
"node": "Update POST on Airtable",
"type": "main",
"index": 0
}
]
]
},
"Get content to post": {
"main": [
[
{
"node": "Filter by existing Blogs",
"type": "main",
"index": 0
}
]
]
},
"Filter by existing Blogs": {
"main": [
[
{
"node": "Edit Fields",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,204 @@
{
"meta": {
"instanceId": "e122e4b90b0dc212c47b42e306cb84c993d082784105d7fe578eca9a9d068de0",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "c3f63a01-1450-4f97-ab2d-16414613f50c",
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"position": [
400,
320
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bc725e33-353d-4b3d-b65f-eb295053e5cc",
"name": "Get Wordpress Posts",
"type": "n8n-nodes-base.wordpress",
"position": [
640,
320
],
"parameters": {
"options": {
"status": "publish"
},
"operation": "getAll",
"returnAll": true
},
"credentials": {
"wordpressApi": {
"id": "xIzhb0T5dm53dkod",
"name": "Wordpress account"
}
},
"typeVersion": 1
},
{
"id": "07ed3f2a-c2b6-4e3c-80d7-425adc6ad36d",
"name": "Adjust Fields",
"type": "n8n-nodes-base.set",
"position": [
860,
320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "39ade710-ebe5-4c4d-9bc8-5ad86a3c76b5",
"name": "id",
"type": "number",
"value": "={{ $json.id }}"
},
{
"id": "2714c21d-5ad3-408b-b91d-aa4513f384f3",
"name": "title",
"type": "string",
"value": "={{ $json.title.rendered }}"
},
{
"id": "71194450-c5c6-4bf0-8a33-5aa88d02ddf4",
"name": "link",
"type": "string",
"value": "={{ $json.link }}"
},
{
"id": "69b5c680-965e-4078-809d-74b10da1a29f",
"name": "content",
"type": "string",
"value": "={{ $json.content.rendered }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "234d6755-e862-4277-b0b7-1ac65cd87c12",
"name": "Convert to CSV File",
"type": "n8n-nodes-base.convertToFile",
"position": [
1080,
320
],
"parameters": {
"options": {}
},
"typeVersion": 1.1
},
{
"id": "49901cd8-5ef5-41b5-87c3-a5979cf11644",
"name": "Upload to Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
1300,
320
],
"parameters": {
"name": "Wordpress-Posts.csv",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "root",
"cachedResultUrl": "https://drive.google.com/drive",
"cachedResultName": "/ (Root folder)"
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "1",
"name": "Google Account"
}
},
"typeVersion": 3
},
{
"id": "a36bccd7-9298-4c96-8f4e-83b9096e53dd",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
160
],
"parameters": {
"height": 140,
"content": "### Adjust fields\nYou can add more fields to the CSV file by editing this node"
},
"typeVersion": 1
},
{
"id": "5d86d3be-dd69-454a-b739-17ded5636ee1",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
220
],
"parameters": {
"height": 260,
"content": "### Export WordPress Posts to CSV and Upload to Google Drive\n\nSteps:\n- Set your WordPress credentials in the \"Get WordPress Posts\" node\n- Set your Google Drive access in the Drive node\n- Click Test workflow"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Adjust Fields": {
"main": [
[
{
"node": "Convert to CSV File",
"type": "main",
"index": 0
}
]
]
},
"Convert to CSV File": {
"main": [
[
{
"node": "Upload to Google Drive",
"type": "main",
"index": 0
}
]
]
},
"Get Wordpress Posts": {
"main": [
[
{
"node": "Adjust Fields",
"type": "main",
"index": 0
}
]
]
},
"When clicking Test workflow": {
"main": [
[
{
"node": "Get Wordpress Posts",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,568 @@
{
"id": "p5bfwpcRy6LK33Io",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "Automate Content Generator for WordPress with DeepSeek R1",
"tags": [],
"nodes": [
{
"id": "c4a6995f-7769-4b77-80ca-1e6bccef77c1",
"name": "When clicking \u2018Test workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-20,
200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c76b1458-5130-41e7-b2f2-1cfe22eab536",
"name": "Get Ideas",
"type": "n8n-nodes-base.googleSheets",
"position": [
200,
200
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "id",
"value": "=Sheet1"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOURDOCUMENT"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "8d17a640-3e15-42e9-9481-e3291d395ccd",
"name": "Set your prompt",
"type": "n8n-nodes-base.set",
"position": [
420,
200
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3e8d2523-66aa-46fe-adcc-39dc78b9161e",
"name": "prompt",
"type": "string",
"value": "={{ $json.PROMPT }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "4f0e9065-b331-49ed-acd9-77c7c43e89a5",
"name": "Create post on Wordpress",
"type": "n8n-nodes-base.wordpress",
"position": [
0,
500
],
"parameters": {
"title": "={{ $json.message.content }}",
"additionalFields": {
"status": "draft",
"content": "={{ $('Generate article with DeepSeek').item.json.message.content }}"
}
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 1
},
{
"id": "cb85d980-9d60-4c85-8574-b46e4cc14341",
"name": "Upload image",
"type": "n8n-nodes-base.httpRequest",
"position": [
420,
500
],
"parameters": {
"url": "https://YOURSITE.com/wp-json/wp/v2/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "binaryData",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Content-Disposition",
"value": "=attachment; filename=\"copertina-{{ $('Create post on Wordpress').item.json.id }}.jpg\""
}
]
},
"inputDataFieldName": "data",
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
},
"wooCommerceApi": {
"id": "vYYrjB5kgHQ0XByZ",
"name": "WooCommerce (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "bc71ed8a-fe35-487a-b4cd-6b8c1b256763",
"name": "Set Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
640,
500
],
"parameters": {
"url": "=https://wp.test.7hype.com/wp-json/wp/v2/posts/{{ $('Create post on Wordpress').item.json.id }}",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "predefinedCredentialType",
"queryParameters": {
"parameters": [
{
"name": "featured_media",
"value": "={{ $json.id }}"
}
]
},
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "fbed2813-cc64-42a2-994f-3696e9d8d8fe",
"name": "Update Sheet",
"type": "n8n-nodes-base.googleSheets",
"position": [
880,
500
],
"parameters": {
"columns": {
"value": {
"DATA": "={{ $now.format('dd/LL/yyyy') }}",
"TITOLO": "={{ $('Generate title with DeepSeek').item.json.message.content }}",
"ID POST": "={{ $('Create post on Wordpress').item.json.id }}",
"row_number": "={{ $('Get Ideas').item.json.row_number }}"
},
"schema": [
{
"id": "DATA",
"type": "string",
"display": true,
"required": false,
"displayName": "DATA",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PROMPT",
"type": "string",
"display": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "TITOLO",
"type": "string",
"display": true,
"required": false,
"displayName": "TITOLO",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "ID POST",
"type": "string",
"display": true,
"required": false,
"displayName": "ID POST",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI/edit?usp=drivesdk",
"cachedResultName": "Plan Blog wp.test.7hype.com"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "8db2b0cb-6d61-4e2d-bfac-e25a0385296d",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-60,
-360
],
"parameters": {
"color": 3,
"width": 800,
"height": 380,
"content": "## Target\nThis workflow is designed to automatically generate seo-friendly content for wordpress through DeepSeek R1 by giving input ideas on how to structure the article. A cover image is also generated and uploaded with OpenAI DALL-E 3. This flow is designed to be executed automatically (ad \"On a schedule\" node) and thus have a complete editorial plan.\n\nThis process is useful for blog managers who want to automate content creation and publishing.\n\n## Preliminary step\nCreate a google sheet with the following columns:\n- Date\n- Prompt\n- Title\n- Post ID\n\nFill in only the \"Prompt\" column with basic ideas that DeepSeek will work on to generate the content."
},
"typeVersion": 1
},
{
"id": "ab620659-558d-46f0-ab85-e061af99b743",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
100
],
"parameters": {
"height": 260,
"content": "Connect with your Google Sheet. This node select only rows for which no content has been generated yet in WordPress"
},
"typeVersion": 1
},
{
"id": "73b0e640-8ccf-4e29-a0cd-6340db907bbd",
"name": "Generate article with DeepSeek",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
200
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-reasoner"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=You are an SEO expert, write an article based on this topic:\n{{ $json.prompt }}\n\nInstructions:\n- In the introduction, introduce the topic that will be explored in the rest of the text\n- The introduction should be about 120 words\n- The conclusions should be about 120 words\n- Use the conclusions to summarize everything said in the article and offer a conclusion to the reader\n- Write a maximum of 4-5 chapters and argue them.\n- The chapters should follow a logical flow and not repeat the same concepts.\n- The chapters should be related to each other and not isolated blocks of text. The text should flow and follow a linear logic.\n- Do not start chapters with \"Chapter 1\", \"Chapter 2\", \"Chapter 3\" ... write only the chapter title\n- For the text, use HTML for formatting, but limit yourself to bold, italics, paragraphs and lists.\n- Don't put the output in ```html but only text\n- Don't use markdown for formatting.\n- Go deeper into the topic you're talking about, don't just throw superficial information there\n- In output I want only the HTML format"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "6ef4e0d1-6123-4f47-94fb-c06c785ddd92",
"name": "Generate title with DeepSeek",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
880,
200
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-reasoner"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=You are an SEO Copywriter and you need to think of a title of maximum 60 characters for the following article:\n{{ $json.message.content }}\n\nInstructions:\n- Use keywords contained in the article\n- Do not use any HTML characters\n- Output only the string containing the title.\n- Do not use quotation marks. The only special characters allowed are \":\" and \",\""
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "2ecc8514-c04e-4f8b-9ab3-560f2cf910b0",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
100
],
"parameters": {
"width": 420,
"height": 260,
"content": "Add your DeepSeek API credential. If you want you can change the model with \"deepseek-chat\""
},
"typeVersion": 1
},
{
"id": "196f7799-a6ab-429b-afd3-bcbcbd65da3b",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
420
],
"parameters": {
"width": 160,
"height": 260,
"content": "Add your WordPress API credential\n"
},
"typeVersion": 1
},
{
"id": "93c2d359-531a-4cc9-8a18-870c2d6ec62c",
"name": "Generate Image with DALL-E",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
200,
500
],
"parameters": {
"prompt": "=Generate a real photographic image used as a cover for a blog post:\n\nImage prompt:\n{{ $('Generate title with DeepSeek').item.json.message.content }}, photography, realistic, sigma 85mm f/1.4",
"options": {
"size": "1792x1024",
"style": "natural",
"quality": "hd"
},
"resource": "image"
},
"credentials": {
"openAiApi": {
"id": "CDX6QM4gLYanh0P4",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "eec14cd7-fb2b-4f7d-ad94-bcffc1249353",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
180,
420
],
"parameters": {
"width": 160,
"height": 260,
"content": "Add your OpenAI API credential\n"
},
"typeVersion": 1
},
{
"id": "4f15679b-bc8f-45b8-b3c4-8b43d7f9bb6f",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
420
],
"parameters": {
"width": 180,
"height": 260,
"content": "Upload the image on your WordPress via APIs\n"
},
"typeVersion": 1
},
{
"id": "abe32434-671a-4ac3-a788-fcf5fd0e9435",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
600,
420
],
"parameters": {
"width": 180,
"height": 260,
"content": "Set the uploaded image with the newly created article\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "315cc8df-bca2-4180-806e-a01407dccc79",
"connections": {
"Get Ideas": {
"main": [
[
{
"node": "Set your prompt",
"type": "main",
"index": 0
}
]
]
},
"Set Image": {
"main": [
[
{
"node": "Update Sheet",
"type": "main",
"index": 0
}
]
]
},
"Upload image": {
"main": [
[
{
"node": "Set Image",
"type": "main",
"index": 0
}
]
]
},
"Set your prompt": {
"main": [
[
{
"node": "Generate article with DeepSeek",
"type": "main",
"index": 0
}
]
]
},
"Create post on Wordpress": {
"main": [
[
{
"node": "Generate Image with DALL-E",
"type": "main",
"index": 0
}
]
]
},
"Generate Image with DALL-E": {
"main": [
[
{
"node": "Upload image",
"type": "main",
"index": 0
}
]
]
},
"Generate title with DeepSeek": {
"main": [
[
{
"node": "Create post on Wordpress",
"type": "main",
"index": 0
}
]
]
},
"Generate article with DeepSeek": {
"main": [
[
{
"node": "Generate title with DeepSeek",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Get Ideas",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,882 @@
{
"id": "Mbuax8L8jEmBBYkz",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "The Ultimate Guide to Optimize WordPress Blog Posts with AI",
"tags": [
{
"id": "2VG6RbmUdJ2VZbrj",
"name": "Google Drive",
"createdAt": "2024-12-04T16:50:56.177Z",
"updatedAt": "2024-12-04T16:50:56.177Z"
},
{
"id": "kH2Zf266Nh4c1aga",
"name": "DeepSeek",
"createdAt": "2025-01-02T15:24:47.534Z",
"updatedAt": "2025-01-02T15:24:47.534Z"
},
{
"id": "sAbYDJMthctD4UVJ",
"name": "Wordpress",
"createdAt": "2024-12-17T17:37:24.345Z",
"updatedAt": "2024-12-17T17:37:24.345Z"
}
],
"nodes": [
{
"id": "5c88bf7d-cd9d-4b76-8233-6e5927692e7a",
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-540,
-80
],
"parameters": {},
"typeVersion": 1
},
{
"id": "d3fc9ed5-9ddc-480d-9fa8-f0a66bb69520",
"name": "Get context",
"type": "n8n-nodes-base.googleSheets",
"position": [
-320,
-80
],
"parameters": {
"options": {
"returnFirstMatch": true
},
"filtersUI": {
"values": [
{
"lookupColumn": "ID POST"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit?usp=drivesdk",
"cachedResultName": "Complete Plan Blog post"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "27a1aaf2-435f-4fcc-b7be-f88f2e51a6c7",
"name": "Set context",
"type": "n8n-nodes-base.set",
"position": [
-100,
-80
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3e8d2523-66aa-46fe-adcc-39dc78b9161e",
"name": "prompt",
"type": "string",
"value": "={{ $json.PROMPT }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "b2f0a242-ef9f-42d9-974b-e823f23bf37f",
"name": "Generate title",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
360,
-80
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-chat"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=You are an SEO Copywriter and you need to find a title of maximum 60 characters for the following article:\n{{ $json.message.content }}\n\nInstructions:\n- Use keywords contained in the article\n- Do not use any HTML characters\n- Output only the string containing the title.\n- Do not use quotes. The only characters allowed are: and ,"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "b3b30328-0dfe-4471-9195-d411e737df5e",
"name": "Generate article",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
140,
-80
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-chat"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=an SEO-friendly article on these topics:\n{{ $json.prompt }}\n\nInstructions:\n- In the introduction, introduce the topic that will be covered in more detail in the rest of the text\n- The introduction should be about 60 words\n- The conclusion should be about 60 words\n- Use the conclusion to summarize everything said in the article and offer a conclusion to the reader\n- Write a maximum of 2-3 chapters.\n- Chapters should follow a logical flow and not repeat the same ideas.\n- Chapters should be related to each other and not isolated blocks of text. The text should flow and follow a linear logic.\n- Do not start chapters with \"Chapter 1\", \"Chapter 2\", \"Chapter 3\" ... write only the chapter title\n- For the text, use HTML for formatting, but limit yourself to bold, italics, paragraphs and lists.\n- Do not put the output between ```html but only the text\n- Do not use markdown for formatting.\n- Go deeper into the topic you are talking about, don't just throw superficial information out there\n- I only want HTML format in output"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "e3f7d28b-ac23-4192-bd46-127491240ee2",
"name": "Add draft to WP",
"type": "n8n-nodes-base.wordpress",
"position": [
620,
-80
],
"parameters": {
"title": "={{ $json.message.content }}",
"additionalFields": {
"status": "draft",
"content": "={{ $('Generate article').item.json.message.content }}"
}
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 1
},
{
"id": "3ebcf40b-7a3b-43fa-a075-0e6dfaa2665e",
"name": "Generate image",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
-540,
200
],
"parameters": {
"prompt": "=Generate a real photo image used as a blog post cover:\n\nImage prompt:\n{{ $('Generate title').item.json.message.content }}, photography, realistic, sigma 85mm f/1.4",
"options": {
"size": "1024x1024",
"style": "natural",
"quality": "hd"
},
"resource": "image"
},
"credentials": {
"openAiApi": {
"id": "CDX6QM4gLYanh0P4",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "2eedf2db-660b-4e1e-a38d-34ad2ddb1314",
"name": "Upload image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-320,
200
],
"parameters": {
"url": "https://URL/wp-json/wp/v2/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "binaryData",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Content-Disposition",
"value": "=attachment; filename=\"copertina-{{ $('Add draft to WP').item.json.id }}.jpg\""
}
]
},
"inputDataFieldName": "data",
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "58e3aa00-a1d7-4b19-916e-4d07dd7c2009",
"name": "Set image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-120,
200
],
"parameters": {
"url": "=https://URL/wp-json/wp/v2/posts/{{ $('Add draft to WP').item.json.id }}",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "predefinedCredentialType",
"queryParameters": {
"parameters": [
{
"name": "featured_media",
"value": "={{ $json.id }}"
}
]
},
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "6f9277be-26c4-4d01-9e61-acf3ab90739d",
"name": "Update Sheet",
"type": "n8n-nodes-base.googleSheets",
"position": [
140,
200
],
"parameters": {
"columns": {
"value": {
"URL": "={{ $('Add draft to WP').item.json.guid.rendered }}",
"DATA": "={{ $now.format('dd/LL/yyyy') }}",
"TITLE": "={{ $('Add draft to WP').item.json.title.rendered }}",
"ID POST": "={{ $('Add draft to WP').item.json.id }}",
"row_number": "={{ $('Get context').item.json.row_number }}"
},
"schema": [
{
"id": "DATA",
"type": "string",
"display": true,
"required": false,
"displayName": "DATA",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PROMPT",
"type": "string",
"display": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "TITLE",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "TITLE",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "ID POST",
"type": "string",
"display": true,
"required": false,
"displayName": "ID POST",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "METATITLE",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "METATITLE",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "METADESCRIPTION",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "METADESCRIPTION",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit?usp=drivesdk",
"cachedResultName": "Complete Plan Blog post"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "1d880c40-af32-4c78-9fa2-fb6b120039d3",
"name": "SEO Expert",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
500,
200
],
"parameters": {
"text": "=Create metatitle and metadescription in the language of the following product:\n- Title: {{ $('Add draft to WP').item.json.title.rendered }}\n- Content: {{ $('Add draft to WP').item.json.content.rendered }}\n- Excerpt: {{ $('Add draft to WP').item.json.excerpt.rendered }}",
"messages": {
"messageValues": [
{
"message": "=You are an expert SEO content optimizer specialized in creating meta tags for both web pages and blog articles. Your task is to analyze the provided content and generate optimized meta tags based on the content type.\n\nMETA TAG REQUIREMENTS:\n\n1. Meta Title (max 60 characters):\n - Include primary keyword near the beginning\n - State the main value proposition\n - Include brand name when relevant\n - Use action-oriented language for commercial pages\n - Format: Primary Keyword | Main Benefit | Brand (if applicable)\n\n2. Meta Description (max 160 characters):\n - Lead with unique selling proposition\n - Include primary and secondary keywords naturally\n - Add clear call-to-action\n - Highlight key benefits or features\n - Address user pain points\n - Tease the main insights or findings\n - Mention key topics covered\n - Use engaging question or statement\n - Include expertise indicators\n - Promise value or solution\n\nANALYSIS PROCESS:\n1. Content Assessment:\n - Identify content type and purpose\n - Extract main topic and keywords\n - Determine search intent\n - Identify target audience\n - Note key differentiators\n\n2. Optimization Strategy:\n - Align with search intent\n - Consider competition level\n - Factor in brand guidelines\n - Account for content freshness\n - Optimize for click-through rate\n\nOUTPUT FORMAT:\nPlease provide meta tags in the required format\n\nVALIDATION CHECKLIST:\n- Title length ≤ 60 characters\n- Description length ≤ 160 characters\n- Primary keyword included in both\n- Matches identified search intent\n- Appropriate for content type\n- Clear value proposition\n- Compelling call-to-action\n- Natural keyword placement\n- Proper grammar and spelling\n- Mobile display optimized\n- Don't use placeholder\n\nBEST PRACTICES:\n- Avoid clickbait or misleading content\n- Use power words appropriately\n- Maintain brand voice and tone\n- Ensure mobile snippet optimization\n- Consider local SEO when relevant\n- Keep seasonal content timely\n- Use numbers and data when available\n- Include price/offers if applicable\n- Add emotional triggers when appropriate\n- Consider SERP feature optimization\n\nTECHNICAL GUIDELINES:\n- No double quotes in meta description\n- Avoid unnecessary special characters\n- Use UTF-8 encoding\n- Capitalize properly\n- Avoid keyword cannibalization\n- Respect brand guidelines\n- Consider local market variations\n- Update meta tags for seasonal content\n- Monitor CTR performance\n- A/B test when possible\n\nRemember: The goal is to create meta tags that serve both search engines and users effectively while maintaining specificity for the content type and maximizing organic click-through rates."
}
]
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.5
},
{
"id": "d26e13c4-e26d-4f3c-9977-82d32879530e",
"name": "OpenRouter Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"position": [
480,
440
],
"parameters": {
"model": "google/gemini-2.0-flash-exp:free",
"options": {}
},
"credentials": {
"openRouterApi": {
"id": "pb06rfB4xmxzVe3Q",
"name": "OpenRouter"
}
},
"typeVersion": 1
},
{
"id": "c4833efe-1b43-42e7-a5ec-cca1908f327b",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
700,
440
],
"parameters": {
"schemaType": "manual",
"inputSchema": "{\n\t\"type\": \"object\",\n\t\"properties\": {\n\t\t\"metatitle\": {\n\t\t\t\"type\": \"string\"\n\t\t},\n\t\t\"metadescription\": {\n\t\t\t\"type\": \"string\"\n\t\t}\n\t}\n}"
},
"typeVersion": 1.2
},
{
"id": "962e5d6f-df35-4e5c-b46e-9c2164a3648d",
"name": "Set metatag",
"type": "n8n-nodes-base.httpRequest",
"position": [
-540,
480
],
"parameters": {
"url": "=https://URL/wp-json/wp/v2/posts/{{ $('Add draft to WP').item.json.id }}",
"method": "PUT",
"options": {},
"jsonBody": "={\n \"meta\":{\n \"_yoast_wpseo_title\":\"{{ $json.output.metatitle }}\",\n \"_yoast_wpseo_metadesc\":\"{{ $json.output.metadescription }}\"\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpBasicAuth": {
"id": "WCjOvm7HOMwGEMWs",
"name": "WP (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "55e8e3c3-2270-4227-863c-e7cf1337c13b",
"name": "Finish work",
"type": "n8n-nodes-base.googleSheets",
"position": [
-320,
480
],
"parameters": {
"columns": {
"value": {
"METATITLE": "={{ $('SEO Expert').item.json.output.metatitle }}",
"row_number": "={{ $('Update Sheet').item.json.row_number }}",
"METADESCRIPTION": "={{ $('SEO Expert').item.json.output.metadescription }}"
},
"schema": [
{
"id": "DATA",
"type": "string",
"display": true,
"required": false,
"displayName": "DATA",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PROMPT",
"type": "string",
"display": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "TITLE",
"type": "string",
"display": true,
"required": false,
"displayName": "TITLE",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "ID POST",
"type": "string",
"display": true,
"required": false,
"displayName": "ID POST",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "URL",
"type": "string",
"display": true,
"required": false,
"displayName": "URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "METATITLE",
"type": "string",
"display": true,
"required": false,
"displayName": "METATITLE",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "METADESCRIPTION",
"type": "string",
"display": true,
"required": false,
"displayName": "METADESCRIPTION",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit?usp=drivesdk",
"cachedResultName": "Complete Plan Blog post"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "f50be61f-7502-4186-9952-22e740de896e",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
-160
],
"parameters": {
"width": 180,
"height": 240,
"content": "Fetches the context of the article you want to generate via AI"
},
"typeVersion": 1
},
{
"id": "149e3535-60fb-4547-8dad-567a47f9bc4b",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
-160
],
"parameters": {
"width": 280,
"height": 240,
"content": "Create the draft post on Wordpress with the article text and the title that were previously generated"
},
"typeVersion": 1
},
{
"id": "779e3a0d-1429-4973-9757-fa1645796cbd",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-360,
140
],
"parameters": {
"width": 400,
"height": 220,
"content": "Upload the generated image to Wordpress media and then associate it with the newly created article"
},
"typeVersion": 1
},
{
"id": "9b375c3e-3c3a-44e9-b234-2538e6f33d32",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
140
],
"parameters": {
"width": 420,
"height": 220,
"content": "The SEO expert analyzes the created article and generates the appropriate meta title and meta description"
},
"typeVersion": 1
},
{
"id": "d4c503c9-9d0f-4411-a3a6-bdd77f782a77",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-600,
420
],
"parameters": {
"width": 220,
"height": 200,
"content": "The generated metadata is associated with the post"
},
"typeVersion": 1
},
{
"id": "8d7a1d61-3fbe-4d76-9f2d-68b4c9de23bb",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-560,
-460
],
"parameters": {
"color": 3,
"width": 820,
"content": "## Optimize WordPress Blog Posts with AI\n\nThis is a powerful tool for automating the creation and optimization of blog posts, saving time and ensuring high-quality, SEO-friendly content for Wordpress with Yoast plugin. \n\n[Clone this Sheet](https://docs.google.com/spreadsheets/d/1WlmjnObleBuHRno_axjc-GjV7Wg9gCoIsOK1PD4TxGU/edit?usp=sharing) and in the \"Prompt\" column write the topic that will then be developed by the AI"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "8d701d17-18ae-478c-881d-eedb422e9700",
"connections": {
"Set image": {
"main": [
[
{
"node": "Update Sheet",
"type": "main",
"index": 0
}
]
]
},
"SEO Expert": {
"main": [
[
{
"node": "Set metatag",
"type": "main",
"index": 0
}
]
]
},
"Get context": {
"main": [
[
{
"node": "Set context",
"type": "main",
"index": 0
}
]
]
},
"Set context": {
"main": [
[
{
"node": "Generate article",
"type": "main",
"index": 0
}
]
]
},
"Set metatag": {
"main": [
[
{
"node": "Finish work",
"type": "main",
"index": 0
}
]
]
},
"Update Sheet": {
"main": [
[
{
"node": "SEO Expert",
"type": "main",
"index": 0
}
]
]
},
"Upload image": {
"main": [
[
{
"node": "Set image",
"type": "main",
"index": 0
}
]
]
},
"Generate image": {
"main": [
[
{
"node": "Upload image",
"type": "main",
"index": 0
}
]
]
},
"Generate title": {
"main": [
[
{
"node": "Add draft to WP",
"type": "main",
"index": 0
}
]
]
},
"Add draft to WP": {
"main": [
[
{
"node": "Generate image",
"type": "main",
"index": 0
}
]
]
},
"Generate article": {
"main": [
[
{
"node": "Generate title",
"type": "main",
"index": 0
}
]
]
},
"OpenRouter Chat Model": {
"ai_languageModel": [
[
{
"node": "SEO Expert",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "SEO Expert",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"When clicking Test workflow": {
"main": [
[
{
"node": "Get context",
"type": "main",
"index": 0
}
]
]
}
}
}

View File

@@ -0,0 +1,568 @@
{
"id": "p5bfwpcRy6LK33Io",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "Automate Content Generator for WordPress with DeepSeek R1",
"tags": [],
"nodes": [
{
"id": "c4a6995f-7769-4b77-80ca-1e6bccef77c1",
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-20,
200
],
"parameters": {},
"typeVersion": 1
},
{
"id": "c76b1458-5130-41e7-b2f2-1cfe22eab536",
"name": "Get Ideas",
"type": "n8n-nodes-base.googleSheets",
"position": [
200,
200
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "id",
"value": "=Sheet1"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOURDOCUMENT"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "8d17a640-3e15-42e9-9481-e3291d395ccd",
"name": "Set your prompt",
"type": "n8n-nodes-base.set",
"position": [
420,
200
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3e8d2523-66aa-46fe-adcc-39dc78b9161e",
"name": "prompt",
"type": "string",
"value": "={{ $json.PROMPT }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "4f0e9065-b331-49ed-acd9-77c7c43e89a5",
"name": "Create post on Wordpress",
"type": "n8n-nodes-base.wordpress",
"position": [
0,
500
],
"parameters": {
"title": "={{ $json.message.content }}",
"additionalFields": {
"status": "draft",
"content": "={{ $('Generate article with DeepSeek').item.json.message.content }}"
}
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 1
},
{
"id": "cb85d980-9d60-4c85-8574-b46e4cc14341",
"name": "Upload image",
"type": "n8n-nodes-base.httpRequest",
"position": [
420,
500
],
"parameters": {
"url": "https://YOURSITE.com/wp-json/wp/v2/media",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "binaryData",
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"headerParameters": {
"parameters": [
{
"name": "Content-Disposition",
"value": "=attachment; filename=\"copertina-{{ $('Create post on Wordpress').item.json.id }}.jpg\""
}
]
},
"inputDataFieldName": "data",
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
},
"wooCommerceApi": {
"id": "vYYrjB5kgHQ0XByZ",
"name": "WooCommerce (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "bc71ed8a-fe35-487a-b4cd-6b8c1b256763",
"name": "Set Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
640,
500
],
"parameters": {
"url": "=https://wp.test.7hype.com/wp-json/wp/v2/posts/{{ $('Create post on Wordpress').item.json.id }}",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "predefinedCredentialType",
"queryParameters": {
"parameters": [
{
"name": "featured_media",
"value": "={{ $json.id }}"
}
]
},
"nodeCredentialType": "wordpressApi"
},
"credentials": {
"wordpressApi": {
"id": "OE4AgquSkMWydRqn",
"name": "Wordpress (wp.test.7hype.com)"
}
},
"typeVersion": 4.2
},
{
"id": "fbed2813-cc64-42a2-994f-3696e9d8d8fe",
"name": "Update Sheet",
"type": "n8n-nodes-base.googleSheets",
"position": [
880,
500
],
"parameters": {
"columns": {
"value": {
"DATA": "={{ $now.format('dd/LL/yyyy') }}",
"TITOLO": "={{ $('Generate title with DeepSeek').item.json.message.content }}",
"ID POST": "={{ $('Create post on Wordpress').item.json.id }}",
"row_number": "={{ $('Get Ideas').item.json.row_number }}"
},
"schema": [
{
"id": "DATA",
"type": "string",
"display": true,
"required": false,
"displayName": "DATA",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "PROMPT",
"type": "string",
"display": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "TITOLO",
"type": "string",
"display": true,
"required": false,
"displayName": "TITOLO",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "ID POST",
"type": "string",
"display": true,
"required": false,
"displayName": "ID POST",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/16VFeCrE5BkMBoA_S5HD-9v7C0sxcXAUiDbq5JvkDqnI/edit?usp=drivesdk",
"cachedResultName": "Plan Blog wp.test.7hype.com"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "8db2b0cb-6d61-4e2d-bfac-e25a0385296d",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-60,
-360
],
"parameters": {
"color": 3,
"width": 800,
"height": 380,
"content": "## Target\nThis workflow is designed to automatically generate seo-friendly content for wordpress through DeepSeek R1 by giving input ideas on how to structure the article. A cover image is also generated and uploaded with OpenAI DALL-E 3. This flow is designed to be executed automatically (ad \"On a schedule\" node) and thus have a complete editorial plan.\n\nThis process is useful for blog managers who want to automate content creation and publishing.\n\n## Preliminary step\nCreate a google sheet with the following columns:\n- Date\n- Prompt\n- Title\n- Post ID\n\nFill in only the \"Prompt\" column with basic ideas that DeepSeek will work on to generate the content."
},
"typeVersion": 1
},
{
"id": "ab620659-558d-46f0-ab85-e061af99b743",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
100
],
"parameters": {
"height": 260,
"content": "Connect with your Google Sheet. This node select only rows for which no content has been generated yet in WordPress"
},
"typeVersion": 1
},
{
"id": "73b0e640-8ccf-4e29-a0cd-6340db907bbd",
"name": "Generate article with DeepSeek",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
640,
200
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-reasoner"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=You are an SEO expert, write an article based on this topic:\n{{ $json.prompt }}\n\nInstructions:\n- In the introduction, introduce the topic that will be explored in the rest of the text\n- The introduction should be about 120 words\n- The conclusions should be about 120 words\n- Use the conclusions to summarize everything said in the article and offer a conclusion to the reader\n- Write a maximum of 4-5 chapters and argue them.\n- The chapters should follow a logical flow and not repeat the same concepts.\n- The chapters should be related to each other and not isolated blocks of text. The text should flow and follow a linear logic.\n- Do not start chapters with \"Chapter 1\", \"Chapter 2\", \"Chapter 3\" ... write only the chapter title\n- For the text, use HTML for formatting, but limit yourself to bold, italics, paragraphs and lists.\n- Don't put the output in ```html but only text\n- Don't use markdown for formatting.\n- Go deeper into the topic you're talking about, don't just throw superficial information there\n- In output I want only the HTML format"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "6ef4e0d1-6123-4f47-94fb-c06c785ddd92",
"name": "Generate title with DeepSeek",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
880,
200
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "=deepseek-reasoner"
},
"options": {
"maxTokens": 2048
},
"messages": {
"values": [
{
"content": "=You are an SEO Copywriter and you need to think of a title of maximum 60 characters for the following article:\n{{ $json.message.content }}\n\nInstructions:\n- Use keywords contained in the article\n- Do not use any HTML characters\n- Output only the string containing the title.\n- Do not use quotation marks. The only special characters allowed are \":\" and \",\""
}
]
}
},
"credentials": {
"openAiApi": {
"id": "97Cz4cqyiy1RdcQL",
"name": "DeepSeek"
}
},
"typeVersion": 1.8
},
{
"id": "2ecc8514-c04e-4f8b-9ab3-560f2cf910b0",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
100
],
"parameters": {
"width": 420,
"height": 260,
"content": "Add your DeepSeek API credential. If you want you can change the model with \"deepseek-chat\""
},
"typeVersion": 1
},
{
"id": "196f7799-a6ab-429b-afd3-bcbcbd65da3b",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-20,
420
],
"parameters": {
"width": 160,
"height": 260,
"content": "Add your WordPress API credential\n"
},
"typeVersion": 1
},
{
"id": "93c2d359-531a-4cc9-8a18-870c2d6ec62c",
"name": "Generate Image with DALL-E",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
200,
500
],
"parameters": {
"prompt": "=Generate a real photographic image used as a cover for a blog post:\n\nImage prompt:\n{{ $('Generate title with DeepSeek').item.json.message.content }}, photography, realistic, sigma 85mm f/1.4",
"options": {
"size": "1792x1024",
"style": "natural",
"quality": "hd"
},
"resource": "image"
},
"credentials": {
"openAiApi": {
"id": "CDX6QM4gLYanh0P4",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "eec14cd7-fb2b-4f7d-ad94-bcffc1249353",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
180,
420
],
"parameters": {
"width": 160,
"height": 260,
"content": "Add your OpenAI API credential\n"
},
"typeVersion": 1
},
{
"id": "4f15679b-bc8f-45b8-b3c4-8b43d7f9bb6f",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
420
],
"parameters": {
"width": 180,
"height": 260,
"content": "Upload the image on your WordPress via APIs\n"
},
"typeVersion": 1
},
{
"id": "abe32434-671a-4ac3-a788-fcf5fd0e9435",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
600,
420
],
"parameters": {
"width": 180,
"height": 260,
"content": "Set the uploaded image with the newly created article\n"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "315cc8df-bca2-4180-806e-a01407dccc79",
"connections": {
"Get Ideas": {
"main": [
[
{
"node": "Set your prompt",
"type": "main",
"index": 0
}
]
]
},
"Set Image": {
"main": [
[
{
"node": "Update Sheet",
"type": "main",
"index": 0
}
]
]
},
"Upload image": {
"main": [
[
{
"node": "Set Image",
"type": "main",
"index": 0
}
]
]
},
"Set your prompt": {
"main": [
[
{
"node": "Generate article with DeepSeek",
"type": "main",
"index": 0
}
]
]
},
"Create post on Wordpress": {
"main": [
[
{
"node": "Generate Image with DALL-E",
"type": "main",
"index": 0
}
]
]
},
"Generate Image with DALL-E": {
"main": [
[
{
"node": "Upload image",
"type": "main",
"index": 0
}
]
]
},
"Generate title with DeepSeek": {
"main": [
[
{
"node": "Create post on Wordpress",
"type": "main",
"index": 0
}
]
]
},
"Generate article with DeepSeek": {
"main": [
[
{
"node": "Generate title with DeepSeek",
"type": "main",
"index": 0
}
]
]
},
"When clicking Test workflow": {
"main": [
[
{
"node": "Get Ideas",
"type": "main",
"index": 0
}
]
]
}
}
}