{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "42F28C3D-C07D-4C21-ABD9-5F23E1523D4E",
    "name": "Taplio: article to approved LinkedIn draft"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -55.032397408207345,
        "y": 5.442764578833696,
        "zoom": 0.86
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When WordPress publishes an article, OpenAI writes a LinkedIn post from it and Taplio holds it as a draft with the article's featured image. The author chooses in Slack: schedule it for the next posting time, edit it in Taplio first, or skip it. Nothing is published until the author says so.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When WordPress publishes an article, OpenAI writes a LinkedIn post from it, Taplio holds it as a draft with the article's image, and the author chooses in Slack: schedule it for the next posting time, edit it in Taplio first, or skip it. Nothing is published until the author says so.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Fetches a single media library item by numeric ID, including source URL, mime type, alt text, caption, and rendered metadata.",
          "elementId": "EXTENSION:::SHARED:::default:::wordpress:::getMedia",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the featured image Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::wordpress:::getMedia",
          "legacyElementId": "JS###v1###WordPress###getMedia",
          "methodName": "getMedia",
          "position": {
            "x": 1246,
            "y": 210
          }
        },
        "flowElementId": "AF51CA4D-F5C1-41F2-AB01-44FB2A2027F3",
        "groupId": null,
        "id": "FF9ED4EE-9C1E-40FE-B484-5287A21FD952",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "mediaId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New article",
                    "subPathSegments": [
                      {
                        "key": "featured_media",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getMedia",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Featured image",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "wordpress",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the featured image",
        "nextElementIds": [
          "7AC917AC-94DA-424B-9F02-062248D2F529"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the LinkedIn post Result"
          },
          "tools": {},
          "position": {
            "x": 496,
            "y": 49
          }
        },
        "flowElementId": "B07935F3-A209-40AC-BBD8-2A839C6EF45D",
        "groupId": null,
        "id": "03D63DC2-CCAA-473E-8F33-DC2AFB15F924",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "gpt-5.5",
          "aiProvider": "OPEN_AI",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "OpenAI key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "OpenAI key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "LinkedIn post",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You write LinkedIn posts for the author of a blog, from their newly published articles. Reply with JSON only, with one field:\npost: the LinkedIn post as plain text with a blank line between paragraphs.\n\nThe post opens with a one-line hook that stands on its own, then three to six short paragraphs that give the reader the article's main point and one concrete detail from it, and ends with the article link on its own line. Under 1800 characters. No hashtags, no emojis, no sales pitch, nothing like 'excited to share' or 'new blog post'. Ignore HTML tags and HTML entities in the article; write clean text.\n\nHow the author writes: "
              },
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Voice notes",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Voice notes"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Title: "
              },
              {
                "id": "RESULT",
                "label": "New article",
                "subPathSegments": [
                  {
                    "key": "title",
                    "optional": false
                  },
                  {
                    "key": "rendered",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nLink: "
              },
              {
                "id": "RESULT",
                "label": "New article",
                "subPathSegments": [
                  {
                    "key": "link",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\nExcerpt: "
              },
              {
                "id": "RESULT",
                "label": "New article",
                "subPathSegments": [
                  {
                    "key": "excerpt",
                    "optional": false
                  },
                  {
                    "key": "rendered",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nArticle:\n"
              },
              {
                "id": "RESULT",
                "label": "New article",
                "subPathSegments": [
                  {
                    "key": "content",
                    "optional": false
                  },
                  {
                    "key": "rendered",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Write the LinkedIn post",
        "nextElementIds": [
          "AF7CA47B-060C-40D6-A10C-134BF3809073"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the author Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 137,
            "y": 210
          }
        },
        "flowElementId": "48918762-6FEA-42C0-914D-7429BE06A4AA",
        "groupId": null,
        "id": "A3A371B5-3E6F-4D2A-9989-3AA340DD184B",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "569BE081-539A-4E95-8A2D-F4720C8A013F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "569BE081-539A-4E95-8A2D-F4720C8A013F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to author",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the author",
        "nextElementIds": [
          "0ABD2CBA-8AC5-48FB-8906-B19DC528F72D"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Discards a post draft.",
          "elementId": "EXTENSION:::SHARED:::default:::taplio:::deletePostDraft",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Delete the draft Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::taplio:::deletePostDraft",
          "legacyElementId": null,
          "methodName": "deletePostDraft",
          "position": {
            "x": 886,
            "y": 380
          }
        },
        "flowElementId": "548B3093-E41C-4562-9357-41C0FC446349",
        "groupId": null,
        "id": "3063EB21-2458-4A71-85F2-93936E43CCEC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "draftId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Taplio draft",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AF7CA47B-060C-40D6-A10C-134BF3809073"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "deletePostDraft",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Deleted draft",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "taplio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Delete the draft",
        "nextElementIds": [
          "A62211B9-7F7D-48A9-82F6-0918CF8D492A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm it was skipped Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1246,
            "y": 380
          }
        },
        "flowElementId": "2ABD5DED-6D1B-4AE2-97EE-AB57B8721707",
        "groupId": null,
        "id": "A62211B9-7F7D-48A9-82F6-0918CF8D492A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Skipped. The draft was deleted from Taplio and nothing was published."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to author",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "A3A371B5-3E6F-4D2A-9989-3AA340DD184B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Skip confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm it was skipped",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the author Result"
          },
          "position": {
            "x": 464,
            "y": 219
          }
        },
        "flowElementId": "5998971C-FD41-4EDA-8C77-920EC8654D3C",
        "groupId": null,
        "id": "569BE081-539A-4E95-8A2D-F4720C8A013F",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "title",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New article",
                    "subPathSegments": [
                      {
                        "key": "title",
                        "optional": false
                      },
                      {
                        "key": "rendered",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "articleLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "New article",
                    "subPathSegments": [
                      {
                        "key": "link",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "post",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "LinkedIn post",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "post",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "03D63DC2-CCAA-473E-8F33-DC2AFB15F924"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Featured image",
                    "subPathSegments": [
                      {
                        "key": "source_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FF9ED4EE-9C1E-40FE-B484-5287A21FD952"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postingTime",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Posting time",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Posting time"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeZone",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Time zone",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Time zone"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst decode = (s) => String(s || '')\n  .replace(/&#(\\d+);/g, (m, n) => String.fromCharCode(Number(n)))\n  .replace(/&amp;/g, '&').replace(/&quot;/g, '\"').replace(/&#039;|&apos;/g, \"'\").replace(/&lt;/g, '<').replace(/&gt;/g, '>');\nconst clip = (s, n) => { s = String(s || ''); return s.length > n ? s.slice(0, n - 3) + '...' : s; };\nconst heading = decode(title);\nconst lines = [\n  `*LinkedIn draft ready: ${heading}*`,\n  `<${articleLink}|Open the article>`,\n  '',\n  clip(post, 2300),\n  '',\n  imageUrl ? `The article's featured image is attached to the draft. <${imageUrl}|See it>` : 'The article has no featured image, so the draft is text only.',\n  `Schedule it queues the post in Taplio for the next ${postingTime} (${timeZone}). I'll edit it in Taplio leaves it in your drafts. Skip it deletes the draft. Nothing is published until you choose.`,\n];\nreturn {\n  text: `LinkedIn draft ready: ${heading}`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Schedule it' }, url: link('schedule') },\n      { type: 'button', text: { type: 'plain_text', text: \"I'll edit it in Taplio\" }, url: link('edit') },\n      { type: 'button', style: 'danger', text: { type: 'plain_text', text: 'Skip it' }, url: link('skip') },\n    ] },\n  ],\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the author",
        "nextElementIds": [
          "A3A371B5-3E6F-4D2A-9989-3AA340DD184B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1225,
            "y": 49
          }
        },
        "flowElementId": "E24E6AEC-9EA6-466E-826D-BB310F0113BD",
        "groupId": null,
        "id": "BAE3F8A2-4D55-45D9-8B55-D7488A3620F1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "e06c6678-ed7c-45b4-bdd9-c281084ecac5",
                "nestedOperation": null,
                "operation": ">",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "New article",
                      "subPathSegments": [
                        {
                          "key": "featured_media",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 0
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "e06c6678-ed7c-45b4-bdd9-c281084ecac5"
            ]
          },
          "elseComponent": {
            "componentId": "569BE081-539A-4E95-8A2D-F4720C8A013F",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Has image",
          "storeResult": false,
          "thenComponent": {
            "componentId": "FF9ED4EE-9C1E-40FE-B484-5287A21FD952",
            "componentType": "ELEMENT"
          }
        },
        "name": "Article has a featured image?",
        "nextElementIds": [
          "FF9ED4EE-9C1E-40FE-B484-5287A21FD952",
          "569BE081-539A-4E95-8A2D-F4720C8A013F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Triggers when a new post is published on the WordPress site. Optionally filter by category to react only to posts in a specific topic. Polling interval can be customized (minimum 30 seconds).",
          "elementId": "EXTENSION:::SHARED:::default:::wordpress:::onNewPublishedPost",
          "isFirstElement": true,
          "blockDefinitionId": "EXTENSION:::SHARED:::default:::wordpress:::onNewPublishedPost",
          "newElementId": "EXTENSION:::SHARED:::default:::wordpress:::onNewPublishedPost",
          "legacyElementId": "JS###v1###WordPress###onNewPublishedPost",
          "methodName": "onNewPublishedPost",
          "position": {
            "x": 133,
            "y": 40
          }
        },
        "flowElementId": "F6D6A378-B891-41F8-8F12-FADAD5070575",
        "groupId": null,
        "id": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "dynamicData": [],
          "eventName": "onNewPublishedPost",
          "frequency": {
            "repeat": {
              "every": 900
            },
            "schedule": "custom"
          },
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New article",
          "serviceId": "wordpress",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "POLLING",
          "type": "CUSTOM"
        },
        "name": "New article published",
        "nextElementIds": [
          "03D63DC2-CCAA-473E-8F33-DC2AFB15F924"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 110,
            "y": 519
          }
        },
        "flowElementId": "3778A70F-C6BF-4889-AE8E-88D9D240A5A5",
        "groupId": null,
        "id": "0ABD2CBA-8AC5-48FB-8906-B19DC528F72D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Author decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the author's answer",
        "nextElementIds": [
          "94C3C55E-C9AE-452B-925E-C34528615121"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Creates a LinkedIn post draft in Taplio, with text, uploaded media, or both. Attach a file afterwards with Attach Media from URL or Upload Media File, then schedule or publish the draft.",
          "elementId": "EXTENSION:::SHARED:::default:::taplio:::createPostDraft",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the draft in Taplio Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::taplio:::createPostDraft",
          "legacyElementId": null,
          "methodName": "createPostDraft",
          "position": {
            "x": 871,
            "y": 40
          }
        },
        "flowElementId": "7F826233-D0E9-4EE2-B2DB-869A786DEDBC",
        "groupId": null,
        "id": "AF7CA47B-060C-40D6-A10C-134BF3809073",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "content",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "LinkedIn post",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "post",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "03D63DC2-CCAA-473E-8F33-DC2AFB15F924"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentTitle",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createPostDraft",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Taplio draft",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "taplio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the draft in Taplio",
        "nextElementIds": [
          "BAE3F8A2-4D55-45D9-8B55-D7488A3620F1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "router",
          "isFirstElement": false,
          "blockDefinitionId": "router",
          "casesViewMode": {
            "ed7a2132-79b9-45bb-a239-85935743c984": "SIMPLE",
            "fcb0f361-19d2-49b5-9cf9-30e04f87d11c": "SIMPLE"
          },
          "position": {
            "x": 506,
            "y": 519
          }
        },
        "flowElementId": "557DF791-F1D2-4BA0-A3BA-BFAC4A40A40F",
        "groupId": null,
        "id": "94C3C55E-C9AE-452B-925E-C34528615121",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Decision",
          "storeResult": true,
          "switchCases": [
            {
              "defaultCase": false,
              "id": "ed7a2132-79b9-45bb-a239-85935743c984",
              "label": "Schedule it",
              "nextComponents": [
                {
                  "componentId": "D7A3DB42-37CD-42E9-A532-CEF1F90A83B4",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "schedule"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": false,
              "id": "fcb0f361-19d2-49b5-9cf9-30e04f87d11c",
              "label": "Skip it",
              "nextComponents": [
                {
                  "componentId": "3063EB21-2458-4A71-85F2-93936E43CCEC",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "skip"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "defaultCase": true,
              "id": "278b2269-0dae-4e53-bab6-a2ed819cc77d",
              "label": "Everything Else",
              "nextComponents": [
                {
                  "componentId": "241483A3-81EA-4A31-A33D-AB7EE29F6CCB",
                  "componentType": "ELEMENT"
                }
              ],
              "type": "SIMPLE",
              "value": null
            }
          ],
          "switchExpression": {
            "expression": [
              {
                "id": "RESULT",
                "label": "Author decision",
                "subPathSegments": [
                  {
                    "key": "decision",
                    "optional": false
                  }
                ],
                "type": "TRIGGER_DATA",
                "value": "0ABD2CBA-8AC5-48FB-8906-B19DC528F72D"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Author's decision?",
        "nextElementIds": [
          "241483A3-81EA-4A31-A33D-AB7EE29F6CCB",
          "3063EB21-2458-4A71-85F2-93936E43CCEC",
          "D7A3DB42-37CD-42E9-A532-CEF1F90A83B4"
        ],
        "nextGroupIds": [],
        "type": "VALUE_ROUTER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm the schedule Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1251,
            "y": 810
          }
        },
        "flowElementId": "4E7A2441-00E4-4F7D-A9F8-B35F2D55F662",
        "groupId": null,
        "id": "CDD4EDF1-6746-413B-9311-F6FA103B279C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Scheduled in Taplio for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posting slot",
                    "subPathSegments": [
                      {
                        "key": "label",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D7A3DB42-37CD-42E9-A532-CEF1F90A83B4"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ". Change the time or the text in Taplio before then if you want."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to author",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "A3A371B5-3E6F-4D2A-9989-3AA340DD184B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Schedule confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the schedule",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Say the draft is waiting in Taplio Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 847,
            "y": 640
          }
        },
        "flowElementId": "20C88562-FE9F-4D10-8CF8-FC466EDBBAC7",
        "groupId": null,
        "id": "241483A3-81EA-4A31-A33D-AB7EE29F6CCB",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Left in your Taplio drafts. Edit it there and schedule it when you're ready."
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to author",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "A3A371B5-3E6F-4D2A-9989-3AA340DD184B"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Edit confirmation",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Say the draft is waiting in Taplio",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Taplio fetches a file from a public https URL and attaches it to a post draft (an image, a video, a GIF or a PDF). An unreachable URL, an unsupported type or an oversized file is refused.",
          "elementId": "EXTENSION:::SHARED:::default:::taplio:::attachMediaFromUrl",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Attach the image to the draft Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::taplio:::attachMediaFromUrl",
          "legacyElementId": null,
          "methodName": "attachMediaFromUrl",
          "position": {
            "x": 858,
            "y": 210
          }
        },
        "flowElementId": "888DDD4B-8360-4E45-81B7-EED44DA6FDEE",
        "groupId": null,
        "id": "7AC917AC-94DA-424B-9F02-062248D2F529",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "draftId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Taplio draft",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AF7CA47B-060C-40D6-A10C-134BF3809073"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "url",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Featured image",
                    "subPathSegments": [
                      {
                        "key": "source_url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FF9ED4EE-9C1E-40FE-B484-5287A21FD952"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentTitle",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "attachMediaFromUrl",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Draft with image",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "taplio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Attach the image to the draft",
        "nextElementIds": [
          "569BE081-539A-4E95-8A2D-F4720C8A013F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Work out the next posting time Result"
          },
          "position": {
            "x": 851,
            "y": 519
          }
        },
        "flowElementId": "5C3F7A07-DFEC-4120-AACC-D9627DD66673",
        "groupId": null,
        "id": "D7A3DB42-37CD-42E9-A532-CEF1F90A83B4",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "postingTime",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Posting time",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Posting time"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "timeZone",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Time zone",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Time zone"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const [hh, mm] = String(postingTime || '08:00').split(':').map(Number);\nconst tz = timeZone || 'UTC';\nconst now = new Date();\nconst parts = (date) => {\n  const out = {};\n  for (const p of new Intl.DateTimeFormat('en-US', { timeZone: tz, hourCycle: 'h23', year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit' }).formatToParts(date)) out[p.type] = Number(p.value);\n  return out;\n};\nconst atWallTime = (y, mo, d) => {\n  const wanted = Date.UTC(y, mo - 1, d, hh, mm, 0);\n  let guess = new Date(wanted);\n  for (let i = 0; i < 3; i++) {\n    const z = parts(guess);\n    const seen = Date.UTC(z.year, z.month - 1, z.day, z.hour, z.minute, z.second);\n    guess = new Date(guess.getTime() + (wanted - seen));\n  }\n  return guess;\n};\nlet z = parts(now);\nlet slot = atWallTime(z.year, z.month, z.day);\nwhile (slot.getTime() < now.getTime() + 60 * 60 * 1000) {\n  z = parts(new Date(slot.getTime() + 24 * 60 * 60 * 1000));\n  slot = atWallTime(z.year, z.month, z.day);\n}\nconst label = slot.toLocaleString('en-US', { timeZone: tz, weekday: 'long', month: 'long', day: 'numeric', hour: 'numeric', minute: '2-digit', timeZoneName: 'short' });\nreturn { iso: slot.toISOString(), label };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Posting slot",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Work out the next posting time",
        "nextElementIds": [
          "3862A4A5-55A1-4DA8-96EF-8C471A39A1A9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Schedules a post draft to be published on LinkedIn at a given time. A time in the past is refused.",
          "elementId": "EXTENSION:::SHARED:::default:::taplio:::schedulePostDraft",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Schedule the post Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::taplio:::schedulePostDraft",
          "legacyElementId": null,
          "methodName": "schedulePostDraft",
          "position": {
            "x": 1255,
            "y": 510
          }
        },
        "flowElementId": "4AEB6427-98EF-43C3-943A-0521567F0A20",
        "groupId": null,
        "id": "3862A4A5-55A1-4DA8-96EF-8C471A39A1A9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "draftId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Taplio draft",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AF7CA47B-060C-40D6-A10C-134BF3809073"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "scheduledFor",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Posting slot",
                    "subPathSegments": [
                      {
                        "key": "iso",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "D7A3DB42-37CD-42E9-A532-CEF1F90A83B4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "schedulePostDraft",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Scheduled post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "taplio",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Schedule the post",
        "nextElementIds": [
          "CDD4EDF1-6746-413B-9311-F6FA103B279C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "DA75356D-B815-4DDC-A6AD-7768ABE36B9B",
    "groups": [],
    "id": "BD051575-3735-472B-B36B-C717B1D6747E",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "The OpenAI key the writing step uses.",
          "error": null,
          "name": "OpenAI key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the author's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The time of day, as HH:MM, that Schedule it queues a post for. The next one at least an hour away is used.",
          "error": null,
          "name": "Posting time",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The time zone Posting time is in, as an IANA name such as America/New_York or Europe/Paris.",
          "error": null,
          "name": "Time zone",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "How the author writes on LinkedIn. The writing step follows these notes.",
          "error": null,
          "name": "Voice notes",
          "type": "STRING",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-12-02T08:34:27.747Z"
}
