{
  "schema_version": "1.0.0",
  "id": "feed-item-three-queued-posts",
  "title": "Repurpose a feed item into three queued posts",
  "category": "social",
  "difficulty": "intermediate",
  "featured": true,
  "description": "Each new blog post in your RSS feed becomes a LinkedIn post, an X post that fits 280 characters, and a Facebook post, all queued in Buffer for review.",
  "tags": [
    "social",
    "rss",
    "buffer",
    "repurpose",
    "ai-writing"
  ],
  "apps": [
    "RSS by Zapier",
    "AI by Zapier",
    "Code by Zapier",
    "Buffer"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 5 steps after the trigger",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 5,
    "max": 5
  },
  "trigger": {
    "app": "RSS by Zapier",
    "event": "New Item in Feed",
    "kind": "polling",
    "title": "New blog post in the feed",
    "why": "Fires for each new item in your blog's RSS feed. Most blog platforms publish one at /feed or /rss.xml.",
    "config": {
      "Feed URL": "https://www.example.com/blog/feed.xml"
    },
    "outputs": [
      "title",
      "link",
      "summary",
      "pub_date",
      "author",
      "categories"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "angle",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Write the summary and hashtags",
      "why": "The AI writes the substance once; the code step below does the per-channel fitting, which a model is unreliable at.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "You write social copy for a small business. From the article below, return summary (two or three plain sentences that give the reader one concrete takeaway, no hype, no emoji) and hashtags (two or three relevant hashtags, comma-separated, without the # sign).",
        "Input data": "Title: {{trigger.title}}\nCategories: {{trigger.categories}}\n\n{{trigger.summary}}",
        "Output fields": "summary, hashtags"
      },
      "outputs": [
        "summary",
        "hashtags"
      ]
    },
    {
      "key": "fit",
      "kind": "code",
      "app": "Code by Zapier",
      "event": "Run JavaScript",
      "title": "Fit the copy to each channel",
      "why": "Builds the three versions and counts the link as 23 characters on X, the way X does.",
      "code": {
        "language": "javascript",
        "module": "fit-channels",
        "file": "code/fit-channels.js"
      },
      "input_data": {
        "title": "{{trigger.title}}",
        "summary": "{{angle.summary}}",
        "link": "{{trigger.link}}",
        "hashtags": "{{angle.hashtags}}"
      },
      "outputs": [
        "linkedin",
        "x",
        "facebook",
        "x_length"
      ]
    },
    {
      "key": "linkedin",
      "kind": "action",
      "app": "Buffer",
      "event": "Add to Queue",
      "title": "Queue the LinkedIn post",
      "why": "Goes into the Buffer queue, not straight out, so someone can edit before it publishes.",
      "fields": {
        "Profile": "YOUR_LINKEDIN_PAGE_PROFILE",
        "Text": "{{fit.linkedin}}",
        "Shorten Links?": "No",
        "Post Now?": "No"
      },
      "outputs": [
        "id",
        "due_at"
      ]
    },
    {
      "key": "x_post",
      "kind": "action",
      "app": "Buffer",
      "event": "Add to Queue",
      "title": "Queue the X post",
      "why": "Already under 280 characters, link included.",
      "fields": {
        "Profile": "YOUR_X_PROFILE",
        "Text": "{{fit.x}}",
        "Shorten Links?": "No",
        "Post Now?": "No"
      },
      "outputs": [
        "id",
        "due_at"
      ]
    },
    {
      "key": "facebook",
      "kind": "action",
      "app": "Buffer",
      "event": "Add to Queue",
      "title": "Queue the Facebook post",
      "why": "Facebook gets the title, the summary, and the link.",
      "fields": {
        "Profile": "YOUR_FACEBOOK_PAGE_PROFILE",
        "Text": "{{fit.facebook}}",
        "Shorten Links?": "No",
        "Post Now?": "No"
      },
      "outputs": [
        "id",
        "due_at"
      ]
    }
  ]
}
