{
  "openruna_format": "flow-graph-v1",
  "title": "0201_Telegram_Executecommand_Process_Webhook",
  "slug": "0201-telegram-executecommand-process-webhook",
  "source_filename": "0201_Telegram_Executecommand_Process_Webhook.json",
  "nodes": [
    {
      "id": "Switch",
      "name": "Switch",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "msg_greet",
      "name": "msg_greet",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "msg_wrongcommand",
      "name": "msg_wrongcommand",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Telegram Trigger",
      "name": "Telegram Trigger",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "msg_getweather",
      "name": "msg_getweather",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "City List",
      "name": "City List",
      "integration": "function",
      "kind": "action"
    },
    {
      "id": "Convert API response",
      "name": "Convert API response",
      "integration": "function",
      "kind": "action"
    },
    {
      "id": "Get weather data",
      "name": "Get weather data",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Spreadsheet File",
      "name": "Spreadsheet File",
      "integration": "spreadsheetFile",
      "kind": "action"
    },
    {
      "id": "Write csv",
      "name": "Write csv",
      "integration": "writeBinaryFile",
      "kind": "action"
    },
    {
      "id": "Filename",
      "name": "Filename",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "msg_errorAPI",
      "name": "msg_errorAPI",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Any errors API?",
      "name": "Any errors API?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "msg_errorR",
      "name": "msg_errorR",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Read Binary File",
      "name": "Read Binary File",
      "integration": "readBinaryFile",
      "kind": "action"
    },
    {
      "id": "R successful?",
      "name": "R successful?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Merge1",
      "name": "Merge1",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "msg_pleasewait",
      "name": "msg_pleasewait",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Merge2",
      "name": "Merge2",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Run R script",
      "name": "Run R script",
      "integration": "executeCommand",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "msg_wrongcommand"
    },
    {
      "from": "Merge1",
      "to": "msg_greet"
    },
    {
      "from": "Merge2",
      "to": "Filename"
    },
    {
      "from": "Switch",
      "to": "Merge1",
      "label": "/start"
    },
    {
      "from": "Switch",
      "to": "msg_pleasewait",
      "label": "/getweather"
    },
    {
      "from": "Switch",
      "to": "Merge2",
      "label": "/getweather"
    },
    {
      "from": "Switch",
      "to": "Merge"
    },
    {
      "from": "Filename",
      "to": "City List"
    },
    {
      "from": "City List",
      "to": "Get weather data"
    },
    {
      "from": "Write csv",
      "to": "Run R script"
    },
    {
      "from": "Run R script",
      "to": "R successful?"
    },
    {
      "from": "R successful?",
      "to": "Read Binary File"
    },
    {
      "from": "R successful?",
      "to": "msg_errorR"
    },
    {
      "from": "msg_pleasewait",
      "to": "Merge2"
    },
    {
      "from": "Any errors API?",
      "to": "msg_errorAPI"
    },
    {
      "from": "Any errors API?",
      "to": "Convert API response"
    },
    {
      "from": "Get weather data",
      "to": "Any errors API?"
    },
    {
      "from": "Read Binary File",
      "to": "msg_getweather"
    },
    {
      "from": "Spreadsheet File",
      "to": "Write csv"
    },
    {
      "from": "Telegram Trigger",
      "to": "Switch"
    },
    {
      "from": "Convert API response",
      "to": "Spreadsheet File"
    }
  ]
}