{ "name": "ZZ_auto_blogger_workflow", "nodes": [ { "parameters": { "documentId": { "__rl": true, "value": "17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc", "mode": "list", "cachedResultName": "Cluster Template", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": 1281006823, "mode": "list", "cachedResultName": "Pillar #1", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc/edit#gid=1281006823" }, "filtersUI": { "values": [ { "lookupColumn": "Status", "lookupValue": "no" } ] }, "options": { "returnFirstMatch": true } }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 320, 500 ], "id": "7d5168e8-627c-4a8e-b92f-525060bbd7b8", "name": "Grab New Cluster", "credentials": { "googleSheetsOAuth2Api": { "id": "hYWAsZKxwadxEltt", "name": "Google Sheets account 2" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "23b8e8c4-9191-415a-9661-1b60d413528a", "name": "research", "value": "={{ $json.choices[0].message.content.replaceAll(\"[1]\", \" - source: \" +$json.citations[0]).replaceAll(\"[2]\",\" source:\" +$json.citations[1]).replaceAll(\"[3]\",\" - source: \" +$json.citations[2]).replaceAll(\"[4]\",\" - source: \"+$json.citations[3]).replaceAll(\"[5]\",\" - source: \"+$json.citations[4]).replaceAll(\"[6]\",\" - source: \"+$json.citations[5]).replaceAll(\"[7]\",\" - source: \"+$json.citations[6]).replaceAll(\"[8]\",\" - source: \"+$json.citations[7]).replaceAll(\"[9]\",\" - source: \"+$json.citations[8]).replaceAll(\"[10]\",\" - source: \"+$json.citations[9]) }}", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1060, 500 ], "id": "8b7b68a5-7c40-408e-ad25-9c849a4e1322", "name": "Fix Links" }, { "parameters": { "modelId": { "__rl": true, "value": "o1-preview", "mode": "list", "cachedResultName": "O1-PREVIEW" }, "messages": { "values": [ { "content": "=You are part of a team that creates world class blog posts. \n\nFor each new blog post project, you are provided with a list of keywords, a primary keyword, search intent, research findings and a preliminary blog post plan. Here's a definition of each of the inputs: \n\n- Keywords: These are the keywordswhich the blog post is meant to rank for on SEO. They should be scattered throughout the blog post intelligently to help with SEO. \n\n- Search intent: The search intent recognises the intent of the user when searching up the keyword. Our goal is to optimise the blog post to be highly relevant and valuable to the user, as such the search intent should be satisfied within the blog post. \n\n- Research findings: This is research found from very reputable resources in relation to the blog post. You must intelligently use this research to make your blog post more reputable. \n\n- Preliminary plan: Very basic plan set out by your colleague to kick off the blog post. \n\n- Primary keyword: Out of the keywords, there is one keyword known as the primary keyword. The primary keyword is the keyword which has the highest SEO importance and as such must go in the title and first few sentences of the blog post. It is important that the blog post is highly relevant to the primary keyword, so that it could be placed naturally into the title and introduction sections. \n\n\nGiven the said info, you must create a detailed plan for the blog post. \n \nYour output must: \n\n- Include a plan for the blog post.\n\n- Be in dot point format. \n\n- In each part of the blog post, you must mention which keywords should be placed. \n\nHere are the other things you must consider: \n\n- All keywords must be placed inside the blog post. For each section, mention which keywords to include. The keyword placement must feel natural and must make sense. \n\n- You must include all research points in the blog post. When including the research points, make sure to also include their source URL so that the copywriter can use them as hyperlinks. \n\n- You must ensure that the plan created satisfies the search intent and revolves directly around the given keywords. \n\n- Your plan must be very detailed. \n\n- Keep in mind the copywriter that will use your plan to write the blog post is not an expert in the topic of the blog post. So you should give them all the detail required so they can just turn it into nicely formatted paragraphs. So your plan should include all technical detail regarding each point to be in the blog post. For example instead of saying \"define X\", you must have \"define X as ...\". \n\n- The plan you create must have a flow that makes sense. \n\n- You must ensure the bog post will be highly detailed and satisfy the most important concepts regarding the topic. \n\nA new project has just came across your desk with below details:\n\nKeywords: \n{{ $('Grab New Cluster').item.json.Keywords }} \n\nSearch intent: \n{{ $('Grab New Cluster').item.json.Intent }}\n\nPreliminary plan: \n{{ $('AI Agent').item.json.output }}\n\nResearch findings: \n{{ $json.research }}\n\nPrimary keyword: \n{{ $('Grab New Cluster').item.json['Primary Keyword'] }}\n\nCreate the detailed plan. \n\nYour output must only be the plan and nothing else. \n" } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 1260, 340 ], "id": "f27b622a-2b34-45cb-bcdb-1b39b9582353", "name": "Create plan", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "__rl": true, "value": "anthropic/claude-3.5-sonnet:beta", "mode": "id" }, "messages": { "values": [ { "content": "=You are part of a team that creates world class blog posts. \n\nYou are the teams best copywriter and are responsible for writing out the actual blog post. \n\nFor each new blog post project you are provided with a detailed plan and research findings. \n\nYour job is to create the blog post by closely following the detailed plan. \n\nThe blog post you create must: \n\n- Follow the plan bit by bit. \n\n- Use short paragraphs. \n\n- Use bullet points and subheadings with keywords where appropriate. \n\n- Not have any fluff. The content of the blog must be value dense and direct. \n\n- Be very detailed. \n\n- Include the keywords mentioned in each section within that section. \n\n- Use the research as advised by the plan. Make sure to include the link associated with each point you extract from the research at the end of that section in the form of a URL. \n\n- Place the primary keyword in the blog title, H1 header and early in the introduction. \n\n- Place one keyword for each section in the heading of that section. \n\n- When possible pepper synonyms of the keywords throughout each section. \n\n- When possible use Latent Semantic Indexing (LSI) keywords and related terms to enhance context (e.g., “robotic process automation” for RPA). \n\n- Be at minimum 2000 to 2500 words long. \n\n- Be suitable for a year 5 reading level. \n\nMake sure to create the entire blog post draft in your first output. Don't stop or cut it short. \n\nHere are the details of your next blog post project: \n\nDetailed Plan: \n{{ $json.message.content }}\n\nDetailed Research: \n{{ $('Fix Links').item.json.research }}\n\n\nWrite the blog post." } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 1560, 340 ], "id": "9d123969-dd00-4e3c-936d-f878fcb4391a", "name": "Write Blog" }, { "parameters": { "aggregate": "aggregateAllItemData", "destinationFieldName": "previous-posts", "options": {} }, "type": "n8n-nodes-base.aggregate", "typeVersion": 1, "position": [ 2040, 560 ], "id": "64e6c0ac-1b87-4084-9b38-ff97353e9097", "name": "Aggregate" }, { "parameters": { "documentId": { "__rl": true, "value": "1CL0L4V288SEygm0BieMRM8t8h7MbcV9bYyzkDc0zInU", "mode": "list", "cachedResultName": "Completed Keywords - Template", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CL0L4V288SEygm0BieMRM8t8h7MbcV9bYyzkDc0zInU/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": 2094827997, "mode": "list", "cachedResultName": "Sheet1", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1CL0L4V288SEygm0BieMRM8t8h7MbcV9bYyzkDc0zInU/edit#gid=2094827997" }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 1880, 560 ], "id": "d7d5d589-fe19-4000-a485-8e9aaa9b9bf2", "name": "Previous Posts", "credentials": { "googleSheetsOAuth2Api": { "id": "hYWAsZKxwadxEltt", "name": "Google Sheets account 2" } } }, { "parameters": { "modelId": { "__rl": true, "value": "o1-mini-2024-09-12", "mode": "list", "cachedResultName": "O1-MINI-2024-09-12" }, "messages": { "values": [ { "content": "=You are part of a team that creates world class blog posts. \n\nYou are in charge of internal linking between blog posts. \n\nFor each new blog post that comes across your desk, your job is to look through previously posted blogs and make atleast 5 internal links. \n\nTo choose the best internal linking opportunities you must: \n\n- Read the previous blog post summaries and look through their keywords. If there is a match where the previous blog post is highly relevant, then this is an internal linking opportunity. \n\n- Do not link if it is not highly relevant. Only make a link if it makes sense and adds value for the reader. \n\nOnce you've found the best linking opportunities, you must update the blog post with the internal links. To do this you must: \n\n- Add the link of the previous blog post at the relevant section of the new blog post. Drop the URL at the place which makes most sense. Later we will hyperlink the URL to the word in the blog post which it is placed next to. So your placing is very important. \n\nMake sure to not delete any existing URLs or change anything about the blog post provided to you. You must only add new internal linking URLs and output the revised blog post. \n\nYour output must be the blog post given to you plus the new urls. Don't remove any info. \n\nDon't return the previous blog posts. Only return the current blog post with the internal links added.\n\nCurrent blog Post: \n{{ $('write blog').item.json.output }}\n\nPrevious Blog Posts: \n{{ $json['previous-posts'].toJsonString().split() }}\n\n" } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 2160, 400 ], "id": "7db6c59e-8fc9-4220-88ae-b991ea6f0ad3", "name": "Add internal links", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "__rl": true, "value": "gpt-4o-mini", "mode": "list", "cachedResultName": "GPT-4O-MINI" }, "messages": { "values": [ { "content": "=Create a slug for the following blog post: \n{{ $('Add internal links').item.json.message.content }}\n\nA slug in a blog post is the part of the URL that comes after the domain name and identifies a specific page. It is typically a short, descriptive phrase that summarizes the content of the post, making it easier for users and search engines to understand what the page is about. For example, in the URL www.example.com/intelligent-agents, the slug is intelligent-agents. A good slug is concise, contains relevant keywords, and avoids unnecessary words to improve readability and SEO. \n\nThe slug must be 4 or 5 words max and must include the primary keyword of the blog post which is {{ $('Grab New Cluster').last().json['Primary Keyword'] }}.\n\nYour output must be the slug and nothing else so that I can copy and paste your output and put it at the end of my blog post URL to post it right away. " } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 2820, 560 ], "id": "5defb2d1-ed32-4dc7-a8cc-a0281589421f", "name": "Slug", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "__rl": true, "value": "gpt-4o-2024-11-20", "mode": "list", "cachedResultName": "GPT-4O-2024-11-20" }, "messages": { "values": [ { "content": "=Extract the blog post title from the following blog post: \n{{ $('Add internal links').item.json.message.content }}\n\n\n\nThe blog post title must include the primary keyword {{ $('Grab New Cluster').last().json['Primary Keyword'] }} and must inform the users right away of what they can expect from reading the blog post. \n\n- Don't put the output in \"\". The output should just text with no markdown or formatting. \n\nYour output must only be the blog post title and nothing else. " } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 3120, 560 ], "id": "bebffc20-05dd-4d47-b4b6-a1b2210035da", "name": "Title", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "__rl": true, "value": "gpt-4o-2024-11-20", "mode": "list", "cachedResultName": "GPT-4O-2024-11-20" }, "messages": { "values": [ { "content": "=Create a proper meta description for the following blog post: \n\n{{ $('Add internal links').item.json.message.content }}\n\nA good meta description for a blog post that is SEO-optimized should:\n- Be Concise: Stick to 150-160 characters to ensure the full description displays in search results. \n- Include Keywords: Incorporate primary keywords naturally to improve visibility and relevance to search queries.\n\nPrimary keyword = {{ $('Grab New Cluster').last().json['Primary Keyword'] }}\n\nMore keywords to include if possible = [{{ $('Grab New Cluster').last().json.Keywords }}]\n\n- Provide Value: Clearly describe what the reader will learn or gain by clicking the link. \n\n- Be Engaging: Use persuasive language, such as action verbs or a question, to encourage clicks. \n\n- Align with Content: Ensure the description accurately reflects the blog post to meet user expectations and reduce bounce rates. \n\nYour output must only be the meta description and nothing else. \n" } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 3420, 560 ], "id": "b47c137a-41ff-4741-88a0-15752627cc5d", "name": "Meta description", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "modelId": { "__rl": true, "value": "o1-preview", "mode": "list", "cachedResultName": "O1-PREVIEW" }, "messages": { "values": [ { "content": "=DO NOT OUTPUT ANYTHING OTHER THAN THE CODE. I want you to follow the layout of the template as a guide to generate the WordPress code for a blog post. Here are the rules to follow:\n\nThe blog post should have a title, estimated reading time, key takeaways, table of contents, body, and FAQ in this order.\nMake it engaging by using italics, dot points, quotes, bold, spaces, and sometimes new lines. Never use emojis.\nThe blog post will have some URLs referenced next to certain keyphrases to show where the info came from. You must hyperlink the keyphrase with the provided URL so that the reader can click on the referenced URL. It is critical you get this right.\nWrap the entire content in a container
with inline CSS that sets the text color to white (#ffffff), uses a legible font such as Arial, sans-serif, and sets line-height to 1.6.\nEnsure that all non-heading text elements (e.g., paragraphs, list items) have an inline style or embedded style that sets their font size to 20px and color to white (#ffffff) using !important to override theme styles.\nHyperlinks, points in the table of contents, and FAQ questions must be styled in blue (#00c2ff).\nAll headings and subheadings should have an underline implemented via a bottom border in blue (#00c2ff) with appropriate padding.\nPlace a double break (

) between each section to improve readability.\nDo not output any extra text or mention code tags like HTML''' around the output; just output the HTML code.\nBlog post: \n\n{{ $json.message.content }}\n\nHere's an example of a well formatted output:\n\n

Devin AI: The Hype and Reality of an AI Software Engineer



Estimated reading time: 5 minutes



Key Takeaways







Devin AI has burst onto the tech scene, promising to revolutionize software development as we know it. But does this AI-powered coding assistant live up to the hype? Let's dive into what Devin AI really is, what it can do, and what developers are saying after putting it to the test.



\n" } ] }, "options": {} }, "type": "@n8n/n8n-nodes-langchain.openAi", "typeVersion": 1.8, "position": [ 2500, 400 ], "id": "23500c58-54c0-4ded-bae8-4819e8af1cde", "name": "HTML version", "credentials": { "openAiApi": { "id": "EF5N3ckj25m5tqQ1", "name": "OpenAi account" } } }, { "parameters": { "url": "https://serpapi.com/search?engine=google_images", "authentication": "genericCredentialType", "genericAuthType": "httpQueryAuth", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "q", "value": "={{ $('Title').item.json.message.content }}" }, { "name": "gl", "value": "us" } ] }, "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 3740, 560 ], "id": "50308aaf-b6e3-4e5e-9e9d-d1fa7d2e1cb3", "name": "Image Covers", "credentials": { "httpQueryAuth": { "id": "1NakbreMhEpbJspl", "name": "SerpAPI" } } }, { "parameters": { "assignments": { "assignments": [ { "id": "1f0541df-05ab-4e3d-a5d8-3904579fc8a9", "name": "image-url", "value": "={{ $json.images_results[1].original }}", "type": "string" } ] }, "options": {} }, "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 3900, 560 ], "id": "b6f5e04b-841b-4ade-94f6-8213a2370939", "name": "Edit Fields" }, { "parameters": { "operation": "appendOrUpdate", "documentId": { "__rl": true, "value": "17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc", "mode": "list", "cachedResultName": "Cluster Template", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": 1281006823, "mode": "list", "cachedResultName": "Pillar #1", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/17gUjLgjmJpXHcwsYPkZRG3salzsFLw3ZC3l4GT9liEc/edit#gid=1281006823" }, "columns": { "mappingMode": "defineBelow", "value": {}, "matchingColumns": [ "Status" ], "schema": [ { "id": "Cluster", "displayName": "Cluster", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Intent", "displayName": "Intent", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Keywords", "displayName": "Keywords", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Primary Keyword", "displayName": "Primary Keyword", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Status", "displayName": "Status", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true, "removed": false }, { "id": "row_number", "displayName": "row_number", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true, "readOnly": true, "removed": true } ], "attemptToConvertTypes": false, "convertFieldsToString": false }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 4380, 560 ], "id": "7caa939e-eca3-4a03-8673-383fab605b6f", "name": "Check as completed on Sheets", "credentials": { "googleSheetsOAuth2Api": { "id": "hYWAsZKxwadxEltt", "name": "Google Sheets account 2" } } }, { "parameters": { "operation": "append", "documentId": { "__rl": true, "value": "1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU", "mode": "list", "cachedResultName": "Completed Keywords", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit?usp=drivesdk" }, "sheetName": { "__rl": true, "value": "gid=0", "mode": "list", "cachedResultName": "Sheet1", "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1t-J2x22lsG6TpktQLBkwaS-ewuJI2WQvB-g4vQspbYU/edit#gid=0" }, "columns": { "mappingMode": "defineBelow", "value": { "Blog Title ": "={{ $('Title').item.json.message.content }}", "Keywords": "={{ $('Grab New Cluster').last().json.Keywords }}", "Summary ": "={{ $('Meta description').item.json.message.content }}", "URL": "=https://YourURL/{{ $('Slug').item.json.message.content }}" }, "matchingColumns": [], "schema": [ { "id": "Blog Title ", "displayName": "Blog Title ", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Keywords", "displayName": "Keywords", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "Summary ", "displayName": "Summary ", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true }, { "id": "URL", "displayName": "URL", "required": false, "defaultMatch": false, "display": true, "type": "string", "canBeUsedToMatch": true } ], "attemptToConvertTypes": false, "convertFieldsToString": false }, "options": {} }, "type": "n8n-nodes-base.googleSheets", "typeVersion": 4.5, "position": [ 4580, 560 ], "id": "e64ef24c-f842-4349-a021-b225a523013d", "name": "Google Sheets" }, { "parameters": { "content": "## Schedule a trigger\n \n", "height": 240, "width": 260 }, "type": "n8n-nodes-base.stickyNote", "position": [ 20, 400 ], "typeVersion": 1, "id": "4a45ccd8-70ef-4637-9e59-e2377d098956", "name": "Sticky Note" }, { "parameters": { "content": "## New Post Info\n \n", "height": 240 }, "type": "n8n-nodes-base.stickyNote", "position": [ 280, 400 ], "typeVersion": 1, "id": "d6d3858c-05ef-40f1-ab03-e1d7cad7222a", "name": "Sticky Note1" }, { "parameters": { "content": "## Preliminary Post Plan \n \n", "height": 680, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 520, 400 ], "typeVersion": 1, "id": "effc3813-a919-4a5b-816e-bb669a296276", "name": "Sticky Note2" }, { "parameters": { "content": "## Research\n \n \n", "height": 240, "width": 180 }, "type": "n8n-nodes-base.stickyNote", "position": [ 820, 400 ], "typeVersion": 1, "id": "43e9adff-1cfd-41a6-ab0f-e4063759259d", "name": "Sticky Note3" }, { "parameters": { "content": "## Post Plan \n \n", "height": 580, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 1240, 260 ], "typeVersion": 1, "id": "ce402266-f43d-41ad-a7bc-b249ce1753f2", "name": "Sticky Note4" }, { "parameters": { "content": "## Writing Blog\n \n \n", "height": 580, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 1540, 260 ], "typeVersion": 1, "id": "b0e13017-ca7d-4f1a-8fac-c0f0857f1bd1", "name": "Sticky Note5" }, { "parameters": { "method": "POST", "url": "https://api.perplexity.ai/chat/completions", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={\n \"model\": \"sonar-pro\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"Act as a professional news researcher who is capable of finding detailed summaries about a news topic from highly reputable sources.\"\n },\n {\n \"role\": \"user\",\n \"content\": \" You are helping research for a blog article. Please provide in depth research for each of the titles of the following blog plan:{{ $json.output.split(/\\n+/).join(' ')}}\"\n }\n ]\n}", "options": {} }, "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 860, 500 ], "id": "d6256dfe-516e-441d-b426-beaa68cd0796", "name": "Research", "credentials": { "httpHeaderAuth": { "id": "oEBlGZGtMD64v00n", "name": "Perplexity Auth" } } }, { "parameters": { "content": "## Internal Links\n \n \n", "height": 240, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 2140, 320 ], "typeVersion": 1, "id": "a658fcbd-cd00-4734-a456-2ec888238a8e", "name": "Sticky Note6" }, { "parameters": { "content": "## HTML\n\n \n \n", "height": 240, "width": 340 }, "type": "n8n-nodes-base.stickyNote", "position": [ 2440, 320 ], "typeVersion": 1, "id": "55806213-1d1b-4d82-96df-a8be158f63b6", "name": "Sticky Note7" }, { "parameters": { "content": "## Slug\n\n\n \n \n", "height": 240, "width": 320 }, "type": "n8n-nodes-base.stickyNote", "position": [ 2780, 480 ], "typeVersion": 1, "id": "8c5f22e8-b48c-41c9-a153-69d6a39d6d23", "name": "Sticky Note8" }, { "parameters": { "content": "## Post Title\n\n\n \n \n", "height": 240, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 3100, 480 ], "typeVersion": 1, "id": "01441f93-8e77-42c8-9e29-3d65963bf6e5", "name": "Sticky Note9" }, { "parameters": { "content": "## Meta Description\n\n\n \n \n", "height": 240, "width": 300 }, "type": "n8n-nodes-base.stickyNote", "position": [ 3400, 480 ], "typeVersion": 1, "id": "1b422deb-65fa-4b14-a23d-aed00321c077", "name": "Sticky Note10" }, { "parameters": { "content": "## Get Image\n\n\n\n \n \n", "height": 240, "width": 360 }, "type": "n8n-nodes-base.stickyNote", "position": [ 3700, 480 ], "typeVersion": 1, "id": "74113fdc-bd62-4f4e-8b9e-46c7f25d431b", "name": "Sticky Note11" }, { "parameters": { "content": "## Post\n\n\n\n\n \n \n", "height": 240, "width": 220 }, "type": "n8n-nodes-base.stickyNote", "position": [ 4060, 480 ], "typeVersion": 1, "id": "c9ac7046-4d1c-4731-81cf-7a452b1c0d93", "name": "Sticky Note12" }, { "parameters": { "title": "={{ $('Title').item.json.message.content }}", "additionalFields": { "authorId": 2, "content": "=\"Cover\n{{ $('HTML version').item.json.message.content }}", "slug": "={{ $('Slug').item.json.message.content }}", "status": "draft", "commentStatus": "closed", "sticky": false, "categories": [ 280 ], "tags": [ 281 ], "postTemplate": { "values": {} } } }, "type": "n8n-nodes-base.wordpress", "typeVersion": 1, "position": [ 4140, 560 ], "id": "7c623a61-bffa-4a08-b2ed-5b01535c963b", "name": "Wordpress", "credentials": { "wordpressApi": { "id": "apQBpnJI8R7EgZZ4", "name": "Wordpress account" } } }, { "parameters": { "content": "## Completion\n\n\n\n\n\n \n \n", "height": 240, "width": 480 }, "type": "n8n-nodes-base.stickyNote", "position": [ 4300, 480 ], "typeVersion": 1, "id": "4ae2ad80-3597-4941-80ee-e5e0b2fdc313", "name": "Sticky Note13" }, { "parameters": { "content": "# CLUSTER SEO POST\n\n \n \n", "height": 100, "width": 500, "color": 4 }, "type": "n8n-nodes-base.stickyNote", "position": [ 0, 0 ], "typeVersion": 1, "id": "76007e96-7941-40d5-8760-4464c189f067", "name": "Sticky Note14" }, { "parameters": {}, "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [ 100, 500 ], "id": "ba79c1f5-a3e3-4af0-a7c3-6435b5160743", "name": "When clicking ‘Test workflow’" }, { "parameters": { "model": "deepseek/deepseek-r1:free", "options": {} }, "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", "typeVersion": 1, "position": [ 600, 720 ], "id": "2f3c3ba8-04f0-4380-a7d3-b8b86026f82f", "name": "OpenRouter Chat Model", "credentials": { "openRouterApi": { "id": "vujYaSViYHNMVXm9", "name": "OpenRouter account" } } }, { "parameters": { "promptType": "define", "text": "=You are part of a team that creates world class blog posts. \n\nFor each new blog post project, you are provided with a list of keywords and search intent. \n\n- Keywords: The keywords are to what the blog post is meant to rank for. They are scattered throughout the blog and define the topic of the blog post. \n\n- Search intent: The search intent recognises the intent of the user when searching up the keyword which defines be the theme of the blog post, so they click on our blog to satisfy their search. \n\n- Primary keyword: Out of the keywords, there is one keyword known as the primary keyword. The primary keyword will go in the title and first few sentences. It is important that the topic of the blog post is related to the primary keyword so that you can place it into the title and introduction naturally. \n\nGiven a list of keywords and search intent, your job is to understand the goal of th e blog post, identify the thought process behind the flow of the blog post and come up with a preliminary plan for the post. \n\nYour output must: \n\n- Recognise the discussion points of the blog post.\n\n- Be in dot point format.\n\nYou must ensure that the plan created satisfies the search intent and revolves directly around the given keywords. \n\nWhen making the plan keep in mind that all keywords must be used in the final blog post. \n\nThe final goal of the project is to create a high quality, high value, highly relevant blog post that will satisfy the users search intent and give them everything they need to know about the topic. \n\nA new project just came across your desk with below keywords and search intent:\n\nKeywords: \n{{ $json.Keywords }}\n\nSearch intent: \n{{ $json.Intent }}\n\nPrimary keyword: \n{{ $json['Primary Keyword'] }}\n\nCreate the preliminary plan.", "options": {} }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 1.7, "position": [ 560, 520 ], "id": "e091badf-8a0d-464a-a4bb-7bce60c270cb", "name": "AI Agent" }, { "parameters": { "model": "deepseek/deepseek-r1:free", "options": {} }, "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", "typeVersion": 1, "position": [ 1300, 700 ], "id": "a4f3a398-20d2-425c-9a87-1d2b98e72171", "name": "OpenRouter Chat Model1", "credentials": { "openRouterApi": { "id": "vujYaSViYHNMVXm9", "name": "OpenRouter account" } } }, { "parameters": { "promptType": "define", "text": "=You are part of a team that creates world class blog posts. \n\nFor each new blog post project, you are provided with a list of keywords, a primary keyword, search intent, research findings and a preliminary blog post plan. Here's a definition of each of the inputs: \n\n- Keywords: These are the keywordswhich the blog post is meant to rank for on SEO. They should be scattered throughout the blog post intelligently to help with SEO. \n\n- Search intent: The search intent recognises the intent of the user when searching up the keyword. Our goal is to optimise the blog post to be highly relevant and valuable to the user, as such the search intent should be satisfied within the blog post. \n\n- Research findings: This is research found from very reputable resources in relation to the blog post. You must intelligently use this research to make your blog post more reputable. \n\n- Preliminary plan: Very basic plan set out by your colleague to kick off the blog post. \n\n- Primary keyword: Out of the keywords, there is one keyword known as the primary keyword. The primary keyword is the keyword which has the highest SEO importance and as such must go in the title and first few sentences of the blog post. It is important that the blog post is highly relevant to the primary keyword, so that it could be placed naturally into the title and introduction sections. \n\n\nGiven the said info, you must create a detailed plan for the blog post. \n \nYour output must: \n\n- Include a plan for the blog post.\n\n- Be in dot point format. \n\n- In each part of the blog post, you must mention which keywords should be placed. \n\nHere are the other things you must consider: \n\n- All keywords must be placed inside the blog post. For each section, mention which keywords to include. The keyword placement must feel natural and must make sense. \n\n- You must include all research points in the blog post. When including the research points, make sure to also include their source URL so that the copywriter can use them as hyperlinks. \n\n- You must ensure that the plan created satisfies the search intent and revolves directly around the given keywords. \n\n- Your plan must be very detailed. \n\n- Keep in mind the copywriter that will use your plan to write the blog post is not an expert in the topic of the blog post. So you should give them all the detail required so they can just turn it into nicely formatted paragraphs. So your plan should include all technical detail regarding each point to be in the blog post. For example instead of saying \"define X\", you must have \"define X as ...\". \n\n- The plan you create must have a flow that makes sense. \n\n- You must ensure the bog post will be highly detailed and satisfy the most important concepts regarding the topic. \n\nA new project has just came across your desk with below details:\n\nKeywords: \n{{ $('Grab New Cluster').item.json.Keywords }} \n\nSearch intent: \n{{ $('Grab New Cluster').item.json.Intent }}\n\nPreliminary plan: \n{{ $('AI Agent').item.json.output }}\n\nResearch findings: \n{{ $json.research }}\n\nPrimary keyword: \n{{ $('Grab New Cluster').item.json['Primary Keyword'] }}\n\nCreate the detailed plan. \n\nYour output must only be the plan and nothing else. \n", "options": {} }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 1.7, "position": [ 1260, 540 ], "id": "e5a5cea2-3426-40f0-8d90-ddf87b7cc92a", "name": "create plan" }, { "parameters": { "model": "google/gemini-2.0-pro-exp-02-05:free", "options": {} }, "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter", "typeVersion": 1, "position": [ 1580, 700 ], "id": "2371f47b-8cf1-4003-988e-0d057caf9120", "name": "OpenRouter Chat Model2", "credentials": { "openRouterApi": { "id": "vujYaSViYHNMVXm9", "name": "OpenRouter account" } } }, { "parameters": { "promptType": "define", "text": "=You are part of a team that creates world class blog posts. \n\nFor each new blog post project, you are provided with a list of keywords, a primary keyword, search intent, research findings and a preliminary blog post plan. Here's a definition of each of the inputs: \n\n- Keywords: These are the keywordswhich the blog post is meant to rank for on SEO. They should be scattered throughout the blog post intelligently to help with SEO. \n\n- Search intent: The search intent recognises the intent of the user when searching up the keyword. Our goal is to optimise the blog post to be highly relevant and valuable to the user, as such the search intent should be satisfied within the blog post. \n\n- Research findings: This is research found from very reputable resources in relation to the blog post. You must intelligently use this research to make your blog post more reputable. \n\n- Preliminary plan: Very basic plan set out by your colleague to kick off the blog post. \n\n- Primary keyword: Out of the keywords, there is one keyword known as the primary keyword. The primary keyword is the keyword which has the highest SEO importance and as such must go in the title and first few sentences of the blog post. It is important that the blog post is highly relevant to the primary keyword, so that it could be placed naturally into the title and introduction sections. \n\n\nGiven the said info, you must create a detailed plan for the blog post. \n \nYour output must: \n\n- Include a plan for the blog post.\n\n- Be in dot point format. \n\n- In each part of the blog post, you must mention which keywords should be placed. \n\nHere are the other things you must consider: \n\n- All keywords must be placed inside the blog post. For each section, mention which keywords to include. The keyword placement must feel natural and must make sense. \n\n- You must include all research points in the blog post. When including the research points, make sure to also include their source URL so that the copywriter can use them as hyperlinks. \n\n- You must ensure that the plan created satisfies the search intent and revolves directly around the given keywords. \n\n- Your plan must be very detailed. \n\n- Keep in mind the copywriter that will use your plan to write the blog post is not an expert in the topic of the blog post. So you should give them all the detail required so they can just turn it into nicely formatted paragraphs. So your plan should include all technical detail regarding each point to be in the blog post. For example instead of saying \"define X\", you must have \"define X as ...\". \n\n- The plan you create must have a flow that makes sense. \n\n- You must ensure the bog post will be highly detailed and satisfy the most important concepts regarding the topic. \n\nA new project has just came across your desk with below details:\n\nKeywords: \n{{ $('Grab New Cluster').item.json.Keywords }} \n\nSearch intent: \n{{ $('Grab New Cluster').item.json.Intent }}\n\nPreliminary plan: \n{{ $('AI Agent').item.json.output }}\n\nResearch findings: {{ $('Fix Links').item.json.research }}\n\nPrimary keyword: \n{{ $('Grab New Cluster').item.json['Primary Keyword'] }}\n\nCreate the detailed plan. \n\nYour output must only be the plan and nothing else. \n", "options": {} }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 1.7, "position": [ 1560, 540 ], "id": "eb8811f8-d821-45b3-9807-472c6d7a2b00", "name": "write blog" } ], "pinData": {}, "connections": { "Grab New Cluster": { "main": [ [ { "node": "AI Agent", "type": "main", "index": 0 } ] ] }, "Fix Links": { "main": [ [ { "node": "create plan", "type": "main", "index": 0 } ] ] }, "Create plan": { "main": [ [ { "node": "Write Blog", "type": "main", "index": 0 } ] ] }, "Write Blog": { "main": [ [] ] }, "Previous Posts": { "main": [ [ { "node": "Aggregate", "type": "main", "index": 0 } ] ] }, "Aggregate": { "main": [ [ { "node": "Add internal links", "type": "main", "index": 0 } ] ] }, "Add internal links": { "main": [ [ { "node": "HTML version", "type": "main", "index": 0 } ] ] }, "Slug": { "main": [ [ { "node": "Title", "type": "main", "index": 0 } ] ] }, "Title": { "main": [ [ { "node": "Meta description", "type": "main", "index": 0 } ] ] }, "HTML version": { "main": [ [ { "node": "Slug", "type": "main", "index": 0 } ] ] }, "Meta description": { "main": [ [ { "node": "Image Covers", "type": "main", "index": 0 } ] ] }, "Image Covers": { "main": [ [ { "node": "Edit Fields", "type": "main", "index": 0 } ] ] }, "Edit Fields": { "main": [ [ { "node": "Wordpress", "type": "main", "index": 0 } ] ] }, "Check as completed on Sheets": { "main": [ [ { "node": "Google Sheets", "type": "main", "index": 0 } ] ] }, "Research": { "main": [ [ { "node": "Fix Links", "type": "main", "index": 0 } ] ] }, "Wordpress": { "main": [ [ { "node": "Check as completed on Sheets", "type": "main", "index": 0 } ] ] }, "When clicking ‘Test workflow’": { "main": [ [ { "node": "Grab New Cluster", "type": "main", "index": 0 } ] ] }, "OpenRouter Chat Model": { "ai_languageModel": [ [ { "node": "AI Agent", "type": "ai_languageModel", "index": 0 } ] ] }, "AI Agent": { "main": [ [ { "node": "Research", "type": "main", "index": 0 } ] ] }, "OpenRouter Chat Model1": { "ai_languageModel": [ [ { "node": "create plan", "type": "ai_languageModel", "index": 0 } ] ] }, "create plan": { "main": [ [ { "node": "write blog", "type": "main", "index": 0 } ] ] }, "OpenRouter Chat Model2": { "ai_languageModel": [ [ { "node": "write blog", "type": "ai_languageModel", "index": 0 } ] ] }, "write blog": { "main": [ [ { "node": "Previous Posts", "type": "main", "index": 0 } ] ] } }, "active": false, "settings": { "executionOrder": "v1" }, "versionId": "9675df72-5405-47aa-aa5f-bd92f445cb59", "meta": { "instanceId": "56bde12b420ee12a1a73bd1e14e7f4194c37cc35508d2c95d81da646ef78f5b4" }, "id": "9xOE18PxbY5Yqgo1", "tags": [ { "createdAt": "2025-02-11T11:45:04.228Z", "updatedAt": "2025-02-11T11:45:04.228Z", "id": "1v5wgolm1yGcSkAA", "name": "marketing-automation" } ] }