{
  "name": "Nový lead → uvítací e-mail podľa typu",
  "flow": [
    {
      "id": 1,
      "module": "google-sheets:watchRows",
      "version": 2,
      "parameters": {
        "mode": "map",
        "spreadsheetId": "SEM_VLOZTE_ID_TABULKY",
        "sheetId": "Leady",
        "includesHeaders": true,
        "tableFirstRow": "A1:D1",
        "limit": 10
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Nový lead v tabuľke"
        }
      }
    },
    {
      "id": 2,
      "module": "builtin:BasicRouter",
      "version": 1,
      "mapper": null,
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "routes": [
        {
          "flow": [
            {
              "id": 3,
              "module": "google-email:sendAnEmail",
              "version": 4,
              "parameters": {},
              "mapper": {
                "to": [
                  "{{1.`1`}}"
                ],
                "subject": "Vitajte, {{1.`0`}} – spolupráca pre agentúry",
                "bodyType": "rawHtml",
                "content": "<p>Dobrý deň, {{1.`0`}},</p><p>ďakujeme za váš záujem. Posielame prehľad spolupráce pre agentúry.</p>"
              },
              "metadata": {
                "designer": {
                  "x": 600,
                  "y": -150,
                  "name": "Uvítací e-mail pre agentúru"
                }
              },
              "filter": {
                "name": "Agentúra",
                "conditions": [
                  [
                    {
                      "a": "{{1.`2`}}",
                      "o": "text:equal:ci",
                      "b": "agentúra"
                    }
                  ]
                ]
              }
            }
          ]
        },
        {
          "flow": [
            {
              "id": 4,
              "module": "google-email:sendAnEmail",
              "version": 4,
              "parameters": {},
              "mapper": {
                "to": [
                  "{{1.`1`}}"
                ],
                "subject": "Vitajte, {{1.`0`}} – ako vám pomôžeme s marketingom",
                "bodyType": "rawHtml",
                "content": "<p>Dobrý deň, {{1.`0`}},</p><p>ďakujeme za váš záujem. Ponúkame úvodnú konzultáciu zdarma.</p>"
              },
              "metadata": {
                "designer": {
                  "x": 600,
                  "y": 150,
                  "name": "Uvítací e-mail pre podnikateľa"
                }
              },
              "filter": {
                "name": "Podnikateľ",
                "conditions": [
                  [
                    {
                      "a": "{{1.`2`}}",
                      "o": "text:equal:ci",
                      "b": "podnikateľ"
                    }
                  ]
                ]
              }
            }
          ]
        }
      ]
    }
  ],
  "metadata": {
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "sequential": false
    }
  }
}