{
  "name": "Make 自动多平台内容重构与分发矩阵",
  "version": "1.0.0",
  "description": "将一篇长博文或 YouTube 视频文字稿，自动重构为小红书图文、Twitter 线程及公众号草稿",
  "platform": "Make (Integromat)",
  "nodes": {
    "trigger": {
      "id": "notion-trigger",
      "name": "Notion - Watch Database",
      "module": "notion",
      "action": "watchDatabaseItems",
      "description": "监听 Notion 数据库中新创建/更新的文章条目",
      "config": {
        "databaseId": "{{NOTION_DATABASE_ID}}",
        "limit": 1,
        "filter": {
          "status": "ready_for_distribution"
        }
      }
    },
    "extractContent": {
      "id": "extract-content",
      "name": "Notion - Get Page Content",
      "module": "notion",
      "action": "getPage",
      "description": "提取文章完整内容，包括标题、正文、标签、封面图",
      "config": {
        "pageId": "{{trigger.pageId}}"
      }
    },
    "parseContent": {
      "id": "parse-content",
      "name": "Parse Content Fields",
      "module": "util",
      "action": "setVariables",
      "description": "解析并标准化文章字段",
      "config": {
        "variables": [
          {
            "name": "title",
            "value": "{{extractContent.properties.title.title[0].plain_text}}"
          },
          {
            "name": "body",
            "value": "{{extractContent.properties.body.rich_text}}"
          },
          {
            "name": "tags",
            "value": "{{extractContent.properties.tags.multi_select}}"
          },
          {
            "name": "coverImage",
            "value": "{{extractContent.cover.external.url}}"
          },
          {
            "name": "sourceUrl",
            "value": "{{extractContent.properties.sourceUrl.url}}"
          }
        ]
      }
    },
    "claudeXiaohongshu": {
      "id": "claude-xiaohongshu",
      "name": "Claude - 小红书重构",
      "module": "anthropic",
      "action": "createMessage",
      "description": "用 Claude 将长文重构为小红书风格的图文内容",
      "config": {
        "model": "claude-sonnet-4-20250514",
        "maxTokens": 2048,
        "temperature": 0.7,
        "systemPrompt": "你是一个资深的小红书内容运营。请将提供的长文内容重构为小红书风格的图文笔记。要求：\n1. 语气活泼、亲切，使用 emoji 增强表现力\n2. 开头用吸引人的钩子句\n3. 每段不超过 3 行，善用空行分隔\n4. 提取 3-5 个核心要点，用 emoji 列表呈现\n5. 结尾加上相关话题标签（#标签格式）\n6. 总字数控制在 800 字以内\n7. 如果是教程类内容，改为步骤式呈现",
        "userPrompt": "请将以下内容重构为小红书风格的笔记：\n\n标题：{{parseContent.title}}\n\n正文：\n{{parseContent.body}}"
      }
    },
    "claudeTwitter": {
      "id": "claude-twitter",
      "name": "Claude - Twitter 线程重构",
      "module": "anthropic",
      "action": "createMessage",
      "description": "用 Claude 将长文重构为 Twitter/X 线程",
      "config": {
        "model": "claude-sonnet-4-20250514",
        "maxTokens": 2048,
        "temperature": 0.5,
        "systemPrompt": "你是一个专业的 Twitter/X 内容创作者。请将提供的长文内容重构为 Twitter 线程（Thread）。要求：\n1. 第一条推文必须是最强钩子，让人忍不住点\"展开\"\n2. 每条推文不超过 280 字符\n3. 总线程 5-8 条推文\n4. 使用数字编号（1/8, 2/8...）标注每条推文\n5. 核心观点前置，支持性内容后置\n6. 最后一条带行动号召（CTA）\n7. 每条推文之间用 --- 分隔\n8. 保留原文中的关键数据/引用",
        "userPrompt": "请将以下内容重构为 Twitter 线程：\n\n标题：{{parseContent.title}}\n\n正文：\n{{parseContent.body}}"
      }
    },
    "claudeWechat": {
      "id": "claude-wechat",
      "name": "Claude - 公众号重构",
      "module": "anthropic",
      "action": "createMessage",
      "description": "用 Claude 将长文重构为公众号深度排版风格",
      "config": {
        "model": "claude-sonnet-4-20250514",
        "maxTokens": 3072,
        "temperature": 0.4,
        "systemPrompt": "你是一个专业的微信公众号编辑。请将提供的长文内容重构为公众号排版风格。要求：\n1. 使用公众号惯用的 Markdown 排版格式\n2. 开头用引导语 + 配图建议标记\n3. 正文分 3-4 个大段落，每段有小标题\n4. 关键数据用引用块（> ）突出显示\n5. 段落间穿插分隔线（---）\n6. 结尾添加\"推荐阅读\"引导\n7. 保持专业深度，但语言要通俗易懂\n8. 在适当位置添加 [此处建议配图] 标记\n9. 总字数可保持原文长度或稍长",
        "userPrompt": "请将以下内容重构为公众号文章格式：\n\n标题：{{parseContent.title}}\n\n正文：\n{{parseContent.body}}"
      }
    },
    "formatXiaohongshu": {
      "id": "format-xiaohongshu",
      "name": "Format 小红书 Output",
      "module": "util",
      "action": "setVariable",
      "description": "格式化小红书输出内容",
      "config": {
        "variable": {
          "platform": "xiaohongshu",
          "title": "{{parseContent.title}}",
          "content": "{{claudeXiaohongshu.content[0].text}}",
          "tags": "{{parseContent.tags}}",
          "charCount": "{{length(claudeXiaohongshu.content[0].text)}}",
          "status": "draft"
        }
      }
    },
    "formatTwitter": {
      "id": "format-twitter",
      "name": "Format Twitter Output",
      "module": "util",
      "action": "setVariable",
      "description": "格式化 Twitter 线程输出",
      "config": {
        "variable": {
          "platform": "twitter",
          "thread": "{{claudeTwitter.content[0].text}}",
          "tweetCount": "{{split(claudeTwitter.content[0].text, '---') | length}}",
          "status": "draft"
        }
      }
    },
    "formatWechat": {
      "id": "format-wechat",
      "name": "Format 公众号 Output",
      "module": "util",
      "action": "setVariable",
      "description": "格式化公众号输出",
      "config": {
        "variable": {
          "platform": "wechat",
          "title": "{{parseContent.title}}",
          "content": "{{claudeWechat.content[0].text}}",
          "charCount": "{{length(claudeWechat.content[0].text)}}",
          "status": "draft"
        }
      }
    },
    "saveToNotion": {
      "id": "save-to-notion",
      "name": "Notion - Save Drafts",
      "module": "notion",
      "action": "createPage",
      "description": "将三平台草稿保存回 Notion 数据库",
      "config": {
        "databaseId": "{{NOTION_DRAFTS_DATABASE_ID}}",
        "properties": {
          "title": "{{parseContent.title}} - 分发草稿",
          "platform": "multi",
          "xiaohongshu": "{{formatXiaohongshu.content}}",
          "twitter": "{{formatTwitter.thread}}",
          "wechat": "{{formatWechat.content}}",
          "sourceUrl": "{{parseContent.sourceUrl}}",
          "status": "pending_review",
          "generatedAt": "{{now}}"
        }
      }
    },
    "sendNotification": {
      "id": "send-notification",
      "name": "Send Notification",
      "module": "email",
      "action": "sendEmail",
      "description": "发送通知邮件告知内容已生成",
      "config": {
        "to": "{{NOTIFY_EMAIL}}",
        "subject": "📝 内容分发草稿已生成: {{parseContent.title}}",
        "body": "多平台内容草稿已生成完毕：\n\n📕 小红书: {{formatXiaohongshu.charCount}} 字\n🐦 Twitter: {{formatTwitter.tweetCount}} 条推文\n📱 公众号: {{formatWechat.charCount}} 字\n\n请前往 Notion 审核。"
      }
    }
  },
  "workflowFlow": [
    "trigger → extractContent → parseContent → [claudeXiaohongshu, claudeTwitter, claudeWechat] → [formatXiaohongshu, formatTwitter, formatWechat] → saveToNotion → sendNotification"
  ],
  "connections": {
    "trigger": { "next": ["extractContent"] },
    "extractContent": { "next": ["parseContent"] },
    "parseContent": { "next": ["claudeXiaohongshu", "claudeTwitter", "claudeWechat"] },
    "claudeXiaohongshu": { "next": ["formatXiaohongshu"] },
    "claudeTwitter": { "next": ["formatTwitter"] },
    "claudeWechat": { "next": ["formatWechat"] },
    "formatXiaohongshu": { "next": ["saveToNotion"] },
    "formatTwitter": { "next": ["saveToNotion"] },
    "formatWechat": { "next": ["saveToNotion"] },
    "saveToNotion": { "next": ["sendNotification"] }
  },
  "credentials": {
    "notion": {
      "type": "oauth2",
      "displayName": "Notion Integration",
      "scopes": ["read_content", "insert_content", "update_content"]
    },
    "anthropic": {
      "type": "apiKey",
      "displayName": "Anthropic API Key",
      "headerName": "x-api-key"
    },
    "email": {
      "type": "smtp",
      "displayName": "SMTP Email"
    }
  },
  "tags": ["Make", "Content", "Multi-Platform", "Claude", "Notion", "Automation", "Marketing"],
  "versionId": "1",
  "id": "multi-platform-content-sync",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "make-instance-id-placeholder"
  }
}