{ "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
Estimated reading time: 5 minutes
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.