{
  "flow": [
    {
      "id": 1,
      "module": "airtable:TriggerWatchRecords",
      "version": 3,
      "metadata": {
        "name": "Watch 'Ready to Publish' Rows",
        "designer": {
          "x": 0,
          "y": 0
        }
      },
      "parameters": {
        "base": "YOUR_AIRTABLE_BASE_ID",
        "view": "YOUR_AIRTABLE_VIEW_ID",
        "table": "YOUR_AIRTABLE_TABLE_ID",
        "maxRecords": 10,
        "__IMTCONN__": null,
        "useColumnId": false
      }
    },
    {
      "id": 2,
      "mapper": {
        "postType": "post",
        "postTitle": "{{1.Title}}",
        "postStatus": "publish",
        "postContent": "{{1.Source Asset}}"
      },
      "module": "wordpress:ActionCreatePost",
      "onerror": [
        {
          "id": 20,
          "mapper": {
            "text": "\u26a0\ufe0f Error in \"Article Chain \u2014 Publish\" \u2014 Publish to WordPress failed for {{1.Title}}: {{2.error.message}}. This run has been saved for automatic retry.",
            "chatId": "YOUR_TELEGRAM_CHAT_ID"
          },
          "module": "telegram:SendReplyMessage",
          "version": 1,
          "metadata": {
            "name": "Alert on Error",
            "designer": {
              "x": 300,
              "y": 150
            }
          },
          "parameters": {
            "__IMTCONN__": null
          }
        },
        {
          "id": 21,
          "mapper": {
            "count": 3,
            "retry": true,
            "interval": 15
          },
          "module": "builtin:Break",
          "version": 1,
          "metadata": {
            "name": "Save for Retry",
            "designer": {
              "x": 300,
              "y": 300
            }
          }
        }
      ],
      "version": 1,
      "metadata": {
        "name": "Publish to WordPress",
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "parameters": {
        "account": null
      }
    },
    {
      "id": 3,
      "mapper": {
        "id": "{{1.id}}",
        "base": "YOUR_AIRTABLE_BASE_ID",
        "table": "YOUR_AIRTABLE_TABLE_ID",
        "record": {
          "YOUR_FIELD_1": "{{formatDate(now; \"YYYY-MM-DD\")}}",
          "YOUR_FIELD_2": "Published"
        },
        "typecast": true,
        "useColumnId": false
      },
      "module": "airtable:ActionUpdateRecords",
      "onerror": [
        {
          "id": 30,
          "mapper": {
            "text": "\u26a0\ufe0f Error in \"Article Chain \u2014 Publish\" \u2014 Mark as Published failed for {{1.Title}}: {{3.error.message}}. This run has been saved for automatic retry.",
            "chatId": "YOUR_TELEGRAM_CHAT_ID"
          },
          "module": "telegram:SendReplyMessage",
          "version": 1,
          "metadata": {
            "name": "Alert on Error",
            "designer": {
              "x": 600,
              "y": 150
            }
          },
          "parameters": {
            "__IMTCONN__": null
          }
        },
        {
          "id": 31,
          "mapper": {
            "count": 3,
            "retry": true,
            "interval": 15
          },
          "module": "builtin:Break",
          "version": 1,
          "metadata": {
            "name": "Save for Retry",
            "designer": {
              "x": 600,
              "y": 300
            }
          }
        }
      ],
      "version": 3,
      "metadata": {
        "name": "Mark as Published",
        "designer": {
          "x": 600,
          "y": 0
        }
      },
      "parameters": {
        "__IMTCONN__": null
      }
    },
    {
      "id": 4,
      "mapper": {
        "text": "\ud83d\udcf0 Published to WordPress: {{1.Title}} (post ID {{2.id}}). One manual step left: open Search Console and request indexing for the new URL \u2014 Google's API doesn't allow automating that request for normal blog posts, so this is the one place the chain still needs you.",
        "chatId": "YOUR_TELEGRAM_CHAT_ID"
      },
      "module": "telegram:SendReplyMessage",
      "version": 1,
      "metadata": {
        "name": "Confirm Published",
        "designer": {
          "x": 900,
          "y": 0
        }
      },
      "parameters": {
        "__IMTCONN__": null
      }
    }
  ],
  "name": "Article Chain \u2014 Airtable to WordPress",
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "dlq": true
    }
  },
  "scheduling": {
    "type": "indefinitely",
    "interval": 900
  }
}