8
n8n 中文网amn8n.com

AI驱动的博客文章生成器

中级

这是一个AI领域的自动化工作流,包含 12 个节点。主要使用 GoogleDocs, Perplexity, PerplexityTool, Agent, ScheduleTrigger 等节点,结合人工智能技术实现智能自动化。 🧠 AI博客文章记者(使用Perplexity进行研究,Anthropic Claude撰写博客)

前置要求
  • Anthropic API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "91ODWr9EkSAETwX2",
  "meta": {
    "instanceId": "1c7b08fed4406d546caf4a44e8b942ca317e7e207bb9a5701955a1a6e1ce1843",
    "templateCredsSetupCompleted": true
  },
  "name": "AI-Powered Blog Post Generator",
  "tags": [],
  "nodes": [
    {
      "id": "bc282e38-6c6a-409c-b017-34cb852ff5b7",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -120,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e7e64550-2d73-4797-a0f7-58456e76642c",
      "name": "Perplexity - Blog Topic Research Node",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        160,
        0
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {
          "searchRecency": "week"
        },
        "messages": {
          "message": [
            {
              "content": "Research on the latest AI news that will be interesting to blog about. Choose and return only the most interesting news for the blog intended for non-technical audience trying to learn more about AI."
            }
          ]
        },
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "siBtNJfFZDULtMTv",
          "name": "Perplexity account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ce9a37b0-5fac-4cc6-8877-7a09d23467e1",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        480,
        200
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-20250514",
          "cachedResultName": "Claude 4 Sonnet"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "id": "Xwyc4eRrFeJRUxib",
          "name": "Anthropic account"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "2ac602fb-7cde-4cae-971d-c374ae429b1e",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        520,
        0
      ],
      "parameters": {
        "text": "={{ $json.choices[0].message.content }}",
        "options": {
          "systemMessage": "=You are a professional blog content writer for a tech news site that translates the latest AI breakthroughs and developments into engaging, non-technical blog posts.\n\nYour task is to write a clear, captivating, and SEO-optimized blog post based on the latest AI topic provided by the previous node (Perplexity AI Search output). The post should be easy to understand by general readers with no technical background, while still sounding informed, current, and exciting.\n\nINSTRUCTIONS:\n\nAudience: General readers, professionals, and business folks curious about AI—but not developers or engineers.\n\nTone & Style:\n\nFriendly, conversational, curious\n\nNot clickbait, but exciting and easy to read\n\nAvoid jargon unless necessary, and always explain it simply\n\nUse storytelling or a real-world metaphor/example when possible\n\nFormat:\n\nTitle (must include primary keywords related to the topic)\n\n1-paragraph Hook/Intro (make the reader want to read on)\n\n3–5 short sections with headers\n\nFinal Takeaway / What this means for the average reader\n\nSEO Meta Description (max 155 characters)\n\nInclude 3–5 SEO keywords naturally in the body\n\nUse bullet points or bolding to improve skimmability\n\nRules:\n\nDo not fabricate facts.\n\nIf additional context is needed, call the Perplexity Search Tool for clarification\n\nDo not overuse buzzwords or technical terms—explain them simply if used\n\nKeep paragraphs short and engaging\n\nExample Topics This Prompt Can Work For:\n\n“How Apple is using AI in its new products”\n\n“Why the EU is regulating AI and what it means for us”\n\n“OpenAI’s latest model and what it can do for small businesses”\n\n# [Catchy SEO Blog Title with Keyword]\n\n*[Optional Subtitle for clarity]*\n\n**Intro:**  \n[Compelling hook paragraph that introduces the topic with relevance and clarity.]\n\n## [Subheading 1]\n[Explain one key point from the research, in a simple, friendly way.]\n\n## [Subheading 2]\n[Another key aspect, ideally with a metaphor, stat, or quote.]\n\n## [Subheading 3]\n[Implications, opportunities, or what to look out for.]\n\n**Takeaway:**  \n[A 2–3 sentence wrap-up telling readers what they should remember or what action they might take.]\n\n**Meta Description:**  \n[Short, SEO-focused summary of the blog post. Max 155 characters.]\n\n**SEO Keywords:**  \n[Include a few relevant SEO keywords you naturally used in the blog.]\n"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "9f7883ed-c94d-4012-a7ab-df12d9b874ca",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        600,
        200
      ],
      "parameters": {
        "sessionKey": "={{ $('Perplexity - Blog Topic Research Node').item.json.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "e48b32af-4126-4afa-8d5b-680b95128b07",
      "name": "Perplexity Search Tool",
      "type": "n8n-nodes-base.perplexityTool",
      "position": [
        760,
        200
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {},
        "messages": {
          "message": [
            {
              "content": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('message0_Text', ``, 'string') }}"
            }
          ]
        },
        "simplify": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}",
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "siBtNJfFZDULtMTv",
          "name": "Perplexity account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "28023ef7-b506-4a24-94aa-d238dd934fb7",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1020,
        0
      ],
      "parameters": {
        "actionsUi": {
          "actionFields": [
            {
              "text": "={{ $json.output }}",
              "action": "insert"
            }
          ]
        },
        "operation": "update",
        "documentURL": ""
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "uTMixjQqDRyGwqj4",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1f08afc2-e82e-4299-a9d4-e5d22c61c77b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -200
      ],
      "parameters": {
        "width": 260,
        "height": 600,
        "content": "Schedule Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "3047e161-9da7-4dc3-97be-a80781bddf49",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -200
      ],
      "parameters": {
        "color": 3,
        "width": 300,
        "height": 600,
        "content": "Schedule Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "31e687c4-363f-49ee-abd2-93fc3d13ea59",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 500,
        "height": 600,
        "content": "Schedule Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "32b8771b-67cf-4521-8d79-c032e3d70f72",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -200
      ],
      "parameters": {
        "color": 6,
        "width": 300,
        "height": 600,
        "content": "Schedule Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "ac2f86cc-099f-4985-a780-7c06b605bf91",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -860,
        -200
      ],
      "parameters": {
        "width": 620,
        "height": 1020,
        "content": "🧠 AI-Powered Blog Post Generator\nCategory: Content Automation / AI Writing / Marketing\n\nDescription:\nThis automated workflow helps you generate fresh, SEO-optimized blog posts daily using AI tools—perfect for solo creators, marketers, and content teams looking to stay on top of the latest AI trends without manual research or writing.\n\nFor more of this build and step-by-step tutorials, check out:\nhttps://www.youtube.com/@Automatewithmarc\n\nHere’s how it works:\n\nSchedule Trigger kicks off the workflow daily (or at your preferred interval).\n\nPerplexity AI Node researches the most interesting recent AI news tailored for a non-technical audience.\n\nAI Agent (Claude via Anthropic) turns that news into a full-length blog post based on a structured prompt that includes title, intro, 3+ section headers, takeaway, and meta description—designed for clarity, engagement, and SEO.\n\nOptional Memory & Perplexity Tool Nodes enhance the agent's responses by allowing it to clarify facts or fetch more context.\n\nGoogle Docs Node automatically saves the final blog post to your selected document—ready for review, scheduling, or publishing.\n\nKey Features:\n\nCombines Perplexity AI + Claude AI (Anthropic) for research + writing\n\nBuilt-in memory and retrieval logic for deeper contextual accuracy\n\nNon-technical, friendly writing style ideal for general audiences\n\nOutput saved directly to Google Docs\n\nFully no-code, customizable, and extendable\n\nUse Cases:\n\nAutomate weekly blog content for your newsletter or site\n\nRepurpose content into social posts or scripts\n\nKeep your brand relevant in the fast-moving AI landscape\n\nSetup Requirements:\n\nPerplexity API Key\n\nAnthropic API Key\n\nGoogle Docs (OAuth2 connected)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "69254d17-147f-4e2a-9508-366be9ce75f2",
  "connections": {
    "2ac602fb-7cde-4cae-971d-c374ae429b1e": {
      "main": [
        [
          {
            "node": "28023ef7-b506-4a24-94aa-d238dd934fb7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9f7883ed-c94d-4012-a7ab-df12d9b874ca": {
      "ai_memory": [
        [
          {
            "node": "2ac602fb-7cde-4cae-971d-c374ae429b1e",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "bc282e38-6c6a-409c-b017-34cb852ff5b7": {
      "main": [
        [
          {
            "node": "e7e64550-2d73-4797-a0f7-58456e76642c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ce9a37b0-5fac-4cc6-8877-7a09d23467e1": {
      "ai_languageModel": [
        [
          {
            "node": "2ac602fb-7cde-4cae-971d-c374ae429b1e",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "e48b32af-4126-4afa-8d5b-680b95128b07": {
      "ai_tool": [
        [
          {
            "node": "2ac602fb-7cde-4cae-971d-c374ae429b1e",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "e7e64550-2d73-4797-a0f7-58456e76642c": {
      "main": [
        [
          {
            "node": "2ac602fb-7cde-4cae-971d-c374ae429b1e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量12
分类1
节点类型8
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34