{
  "schema_version": "1.0.0",
  "id": "content-calendar-to-buffer",
  "title": "Schedule approved rows from a content calendar sheet",
  "category": "social",
  "difficulty": "intermediate",
  "featured": false,
  "description": "When a content calendar row is added as approved, wait until its publish time, then add the copy to the right Buffer queue.",
  "tags": [
    "social",
    "google-sheets",
    "buffer",
    "content-calendar",
    "delay"
  ],
  "apps": [
    "Google Sheets",
    "Filter by Zapier",
    "Delay by Zapier",
    "Buffer"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "Filter by Zapier"
    ]
  },
  "tasks": {
    "typical": 1,
    "max": 1
  },
  "trigger": {
    "app": "Google Sheets",
    "event": "New Spreadsheet Row",
    "kind": "polling",
    "title": "New calendar row",
    "why": "Fires for each new row in the calendar. Add rows when the copy is final.",
    "config": {
      "Drive": "My Google Drive",
      "Spreadsheet": "Content calendar",
      "Worksheet": "Posts"
    },
    "outputs": [
      "row_number",
      "publish_at",
      "channel_profile",
      "copy",
      "status",
      "owner"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "approved",
      "kind": "filter",
      "app": "Filter by Zapier",
      "event": "Only continue if...",
      "title": "Only approved rows",
      "why": "Draft rows stop here; set status to approved before adding the row.",
      "conditions": [
        [
          {
            "field": "{{trigger.status}}",
            "operator": "(Text) Exactly matches",
            "value": "approved"
          }
        ]
      ],
      "usually": true
    },
    {
      "key": "wait",
      "kind": "delay",
      "app": "Delay by Zapier",
      "event": "Delay Until",
      "title": "Wait until the publish time",
      "why": "Holds the run until the row's publish time. A time in the past continues at once.",
      "fields": {
        "Date/Time Delay Until": "{{trigger.publish_at}}",
        "How should we handle dates in the past?": "Always continue"
      },
      "outputs": [
        "run_at"
      ]
    },
    {
      "key": "queue",
      "kind": "action",
      "app": "Buffer",
      "event": "Add to Queue",
      "title": "Add it to the Buffer queue",
      "why": "Uses the profile named in the row, so one Zap covers every channel.",
      "fields": {
        "Profile": "{{trigger.channel_profile}}",
        "Text": "{{trigger.copy}}",
        "Shorten Links?": "No",
        "Post Now?": "No"
      },
      "outputs": [
        "id",
        "due_at"
      ]
    }
  ]
}
