{
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      },
      "parameters": {
        "hook": null
      }
    },
    {
      "id": 2,
      "mapper": {
        "qs": [
          {
            "name": "q",
            "value": "findByProjectId"
          },
          {
            "name": "projectId",
            "value": "{{1.projectId}}"
          }
        ],
        "url": "https://api.opus.pro/api/exportable-clips",
        "data": "",
        "gzip": true,
        "method": "get",
        "headers": [],
        "useMtls": false,
        "bodyType": "raw",
        "contentType": "application/json",
        "serializeUrl": false,
        "shareCookies": false,
        "parseResponse": true,
        "followRedirect": true,
        "useQuerystring": false,
        "followAllRedirects": false,
        "rejectUnauthorized": true
      },
      "module": "http:ActionSendDataAPIKeyAuth",
      "onerror": [
        {
          "id": 20,
          "mapper": {
            "text": "\u26a0\ufe0f Error in \"Clip Chain \u2014 Process Clips\" \u2014 Get Exportable Clips failed: {{2.error.message}}. This run has been saved for automatic retry.",
            "chatId": "YOUR_TELEGRAM_CHAT_ID"
          },
          "module": "telegram:SendReplyMessage",
          "version": 1,
          "metadata": {
            "designer": {
              "x": 300,
              "y": 150
            }
          },
          "parameters": {
            "__IMTCONN__": null
          }
        },
        {
          "id": 21,
          "mapper": {
            "count": 3,
            "retry": true,
            "interval": 15
          },
          "module": "builtin:Break",
          "version": 1,
          "metadata": {
            "designer": {
              "x": 300,
              "y": 300
            }
          }
        }
      ],
      "version": 3,
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "parameters": {
        "auth": null,
        "handleErrors": false
      }
    },
    {
      "id": 3,
      "mapper": {
        "array": "{{2.data}}"
      },
      "module": "builtin:BasicFeeder",
      "version": 1,
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      }
    },
    {
      "id": 4,
      "mapper": {
        "base": "YOUR_AIRTABLE_BASE_ID",
        "table": "YOUR_AIRTABLE_TABLE_ID",
        "record": {
          "YOUR_FIELD_1": [
            "LinkedIn"
          ],
          "YOUR_FIELD_2": "{{3.title}}",
          "YOUR_FIELD_3": "{{3.uriForExport}}",
          "YOUR_FIELD_4": "Video",
          "YOUR_FIELD_5": "Idea"
        },
        "typecast": true,
        "useColumnId": false
      },
      "module": "airtable:ActionCreateRecord",
      "version": 3,
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0
        }
      },
      "parameters": {
        "__IMTCONN__": null
      }
    },
    {
      "id": 5,
      "mapper": {
        "text": "\ud83c\udfac New clip ready for review:\n\n{{3.title}}\n{{3.description}}\nDuration: {{3.duration}}s\n\nPreview: {{3.uriForPreview}}\n\nCheck the virality score in your OpusClip dashboard before deciding \u2014 tap a button below when you're ready.",
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "replyMarkup": "{\"inline_keyboard\":[[{\"text\":\"\u2705 Approve\",\"callback_data\":\"approve:{{4.id}}\"},{\"text\":\"\u274c Reject\",\"callback_data\":\"reject:{{4.id}}\"}]]}",
        "replyMarkupAssembleType": "reply_markup_enter"
      },
      "module": "telegram:SendReplyMessage",
      "version": 1,
      "metadata": {
        "designer": {
          "x": 1200,
          "y": 0
        }
      },
      "parameters": {
        "__IMTCONN__": null
      }
    }
  ],
  "name": "Clip Chain \u2014 Process Clips",
  "metadata": {
    "instant": true,
    "version": 1,
    "designer": {
      "orphans": []
    },
    "scenario": {
      "dlq": true
    }
  },
  "scheduling": {
    "type": "immediately",
    "maximum_runs_per_minute": 100
  }
}