{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "11832A18-CEF2-4983-AF3C-71BBC4CEE6C8",
    "name": "Meirra: weekly ranking check from a sheet"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": 0,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "On a weekly schedule, reads the tracked keywords from a Google Sheet, checks where the site ranks for them with Meirra in one call, writes each position into the sheet next to last week's, and posts the keywords that moved most to the marketing channel in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "On a weekly schedule, reads the tracked keywords from a Google Sheet, checks where the site ranks for them with Meirra in one call, writes each position into the sheet next to last week's, and posts the keywords that moved most to the marketing channel in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pick the keywords Result"
          },
          "position": {
            "x": 457,
            "y": 49
          }
        },
        "flowElementId": "1282BA17-529D-432C-A4ED-DD4BE69302AB",
        "groupId": null,
        "id": "09F43CC3-75D1-4B6E-9A43-8B8D062D1C03",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "rows",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Keyword rows",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "7AEA7C91-24B5-4C76-979F-8D0406B44E6C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(rows) ? rows : [];\nconst seen = new Set();\nconst keywords = [];\nfor (const r of list) {\n  const data = r && r.rowData ? r.rowData : r;\n  const kw = String((data && (data.Keyword ?? data.keyword)) ?? '').trim();\n  if (!kw || seen.has(kw.toLowerCase())) continue;\n  seen.add(kw.toLowerCase());\n  keywords.push(kw);\n  if (keywords.length === 50) break;\n}\nif (!keywords.length) throw new Error('No keywords in the sheet: fill the Keyword column first');\nreturn { keywords, count: keywords.length, notChecked: Math.max(0, list.length - keywords.length) };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Keyword list",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pick the keywords",
        "nextElementIds": [
          "2138C4CE-7E6E-4B59-A5BB-F8514297C1E6"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Compare with last week Result"
          },
          "position": {
            "x": 1150,
            "y": 49
          }
        },
        "flowElementId": "1E45F725-628B-4A13-9074-A0084109448E",
        "groupId": null,
        "id": "E9549D26-F629-497A-9033-17A20969FA65",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Compare with last week', Error: The placeholder \"Site domain\" has no value",
            "valid": false
          },
          "codeArguments": [
            {
              "name": "rows",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Keyword rows",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "7AEA7C91-24B5-4C76-979F-8D0406B44E6C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "results",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rankings",
                    "subPathSegments": [
                      {
                        "key": "data",
                        "optional": false
                      },
                      {
                        "key": "results",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2138C4CE-7E6E-4B59-A5BB-F8514297C1E6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billing",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rankings",
                    "subPathSegments": [
                      {
                        "key": "billing",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "2138C4CE-7E6E-4B59-A5BB-F8514297C1E6"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "domain",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Site domain",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Site domain"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const today = new Date().toISOString().slice(0, 10);\nconst byKeyword = new Map();\nfor (const r of (Array.isArray(results) ? results : [])) {\n  if (r && r.keyword) byKeyword.set(String(r.keyword).trim().toLowerCase(), r);\n}\nconst toNum = (v) => { const n = Number(v); return v === '' || v == null || Number.isNaN(n) ? null : n; };\nconst updates = [];\nconst movers = [];\nconst failed = [];\nlet up = 0, down = 0, same = 0, fresh = 0, dropped = 0, checked = 0;\nfor (const row of (Array.isArray(rows) ? rows : [])) {\n  const data = row && row.rowData ? row.rowData : row;\n  const kw = String((data && (data.Keyword ?? data.keyword)) ?? '').trim();\n  if (!kw || !row || !row.rowNumber) continue;\n  const r = byKeyword.get(kw.toLowerCase());\n  if (!r || r.success === false) { failed.push(kw); continue; }\n  checked += 1;\n  const prev = toNum(data['Current position']);\n  const pos = r.domainPosition && r.domainPosition.found ? toNum(r.domainPosition.position) : null;\n  let change = '';\n  let weight = 0;\n  if (prev != null && pos != null) {\n    const d = prev - pos;\n    change = d > 0 ? `+${d}` : String(d);\n    weight = Math.abs(d);\n    if (d > 0) up += 1; else if (d < 0) down += 1; else same += 1;\n  } else if (prev == null && pos != null) { change = 'new'; weight = 1000; fresh += 1; }\n  else if (prev != null && pos == null) { change = 'dropped'; weight = 1000; dropped += 1; }\n  else { change = ''; same += 1; }\n  updates.push({ index: Number(row.rowNumber) - 1, values: {\n    'Previous position': prev == null ? '' : prev,\n    'Current position': pos == null ? 'not found' : pos,\n    'Change': change,\n    'Checked on': today,\n  } });\n  if (weight > 0) movers.push({ kw, prev, pos, change, weight });\n}\nmovers.sort((a, b) => b.weight - a.weight);\nconst top = movers.slice(0, 5);\nconst pence = billing && billing.costPence != null ? Number(billing.costPence) : null;\nconst cost = pence == null ? 'unknown' : `£${(pence / 100).toFixed(2)}`;\nconst left = billing && billing.balanceRemaining != null ? `£${Number(billing.balanceRemaining).toFixed(2)}` : 'unknown';\nconst text = `Weekly ranking check for ${domain}: ${checked} keywords checked, ${up} up, ${down} down, ${same} unchanged, ${fresh} new, ${dropped} dropped, ${failed.length} failed.`;\nconst lines = [`*Weekly ranking check for ${domain}*`, text];\nif (top.length) {\n  lines.push('Biggest moves:');\n  for (const m of top) lines.push(`• ${m.kw}: ${m.prev == null ? 'not ranked' : m.prev} to ${m.pos == null ? 'not found' : m.pos} (${m.change})`);\n} else {\n  lines.push('No keyword moved this week.');\n}\nif (failed.length) lines.push(`Not checked this week: ${failed.join(', ')}`);\nlines.push(`Meirra charged ${cost} for this check. Balance left: ${left}.`);\nreturn {\n  rows: updates,\n  text,\n  blocks: [{ type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } }],\n  failed,\n  checked,\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Comparison",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Compare with last week",
        "nextElementIds": [
          "84CB63CE-F0FC-4F8E-BF63-210B12868ADD"
        ],
        "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,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post the movers to marketing Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 757,
            "y": 210
          }
        },
        "flowElementId": "EAA7D8DC-E9A0-4F12-9093-B06FBB9D188C",
        "groupId": null,
        "id": "25555184-C948-4BCE-8256-2161FD0BFBCD",
        "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": "Comparison",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E9549D26-F629-497A-9033-17A20969FA65"
                  }
                ],
                "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": "Comparison",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E9549D26-F629-497A-9033-17A20969FA65"
                  }
                ],
                "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": "Movers post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the movers to marketing",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves data from Google Sheets for AI agents to analyze spreadsheet content, process existing data, or extract information for automated workflows. Perfect for reading user submissions, analyzing data trends, or importing data for further processing.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::getRows",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the tracked keywords Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::getRows",
          "legacyElementId": "JS###v1###GoogleSheets###getRows",
          "methodName": "getRows",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "FE8594BF-EFB5-4624-81EA-569D1134F013",
        "groupId": null,
        "id": "7AEA7C91-24B5-4C76-979F-8D0406B44E6C",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Keyword sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Keyword sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "offset",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "limit",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "withRowNumbers",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Read the tracked keywords', Error: The placeholder \"Keyword sheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getRows",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Keyword rows",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the tracked keywords",
        "nextElementIds": [
          "09F43CC3-75D1-4B6E-9A43-8B8D062D1C03"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Updates multiple rows in a specified sheet.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRows",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the positions into the sheet Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::updateRows",
          "legacyElementId": "JS###v1###GoogleSheets###updateRows",
          "methodName": "updateRows",
          "position": {
            "x": 1119,
            "y": 210
          }
        },
        "flowElementId": "B5690A01-3C8F-4F35-9F4D-EA24138B287A",
        "groupId": null,
        "id": "84CB63CE-F0FC-4F8E-BF63-210B12868ADD",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Keyword sheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Keyword sheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "rows",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Comparison",
                    "subPathSegments": [
                      {
                        "key": "rows",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E9549D26-F629-497A-9033-17A20969FA65"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Write the positions into the sheet', Error: The placeholder \"Keyword sheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "updateRows",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Sheet update",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Write the positions into the sheet",
        "nextElementIds": [
          "25555184-C948-4BCE-8256-2161FD0BFBCD"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Looks up where a domain ranks for up to 50 keywords in one call. Each keyword has its own success flag, so one failed keyword does not fail the call. Paid: list price £0.03 per keyword from your prepaid Meirra balance.",
          "elementId": "EXTENSION:::SHARED:::default:::meirra:::checkSearchRankings",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check where the site ranks Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::meirra:::checkSearchRankings",
          "legacyElementId": null,
          "methodName": "checkSearchRankings",
          "position": {
            "x": 765,
            "y": 40
          }
        },
        "flowElementId": "56BFF2A7-6898-4E6F-BFAC-EB244BBAC115",
        "groupId": null,
        "id": "2138C4CE-7E6E-4B59-A5BB-F8514297C1E6",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "keywords",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Keyword list",
                    "subPathSegments": [
                      {
                        "key": "keywords",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "09F43CC3-75D1-4B6E-9A43-8B8D062D1C03"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "domain",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Site domain",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Site domain"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "country",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Search country",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Search country"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "language",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "idempotencyKey",
              "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
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Check where the site ranks', Error: The placeholder \"Site domain\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "checkSearchRankings",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rankings",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "meirra",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check where the site ranks",
        "nextElementIds": [
          "E9549D26-F629-497A-9033-17A20969FA65"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "7AEA7C91-24B5-4C76-979F-8D0406B44E6C",
    "groups": [],
    "id": "0D0159EB-F47F-46E0-80ED-8DC6E1DD41B9",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Block 'Compare with last week' has an invalid configuration. Code Argument 'domain' has invalid value. Placeholder Data 'Site domain': value is required",
      "executionStaticData": [
        {
          "description": "The URL or ID of the Google Sheet that holds the tracked keywords. The first tab needs the columns Keyword, Previous position, Current position, Change and Checked on.",
          "error": null,
          "name": "Keyword sheet",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The domain whose rankings are checked, without https://, for example example.com.",
          "error": "Placeholder Data 'Site domain': value is required",
          "name": "Site domain",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "The country the search is run from, as an ISO code such as GB or US.",
          "error": null,
          "name": "Search country",
          "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:43:28.649Z"
}
