{
  "openruna_format": "flow-graph-v1",
  "title": "0782_Telegram_Redis_Create_Webhook",
  "slug": "0782-telegram-redis-create-webhook",
  "source_filename": "0782_Telegram_Redis_Create_Webhook.json",
  "nodes": [
    {
      "id": "Telegram Trigger",
      "name": "Telegram Trigger",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "Send Next Question",
      "name": "Send Next Question",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send Response",
      "name": "Send Response",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Has No Record?",
      "name": "Has No Record?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Is Survey Continue?",
      "name": "Is Survey Continue?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get State2",
      "name": "Get State2",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Get Columns1",
      "name": "Get Columns1",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Set Variables1",
      "name": "Set Variables1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Message Type1",
      "name": "Message Type1",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Get Command1",
      "name": "Get Command1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Bot Actions1",
      "name": "Bot Actions1",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Memory3",
      "name": "Memory3",
      "integration": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "kind": "action"
    },
    {
      "id": "Get Survey State1",
      "name": "Get Survey State1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Reset Agent Memory1",
      "name": "Reset Agent Memory1",
      "integration": "@n8n/n8n-nodes-langchain.memoryManager",
      "kind": "action"
    },
    {
      "id": "Memory4",
      "name": "Memory4",
      "integration": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "kind": "action"
    },
    {
      "id": "Start Session1",
      "name": "Start Session1",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Get State3",
      "name": "Get State3",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Increment Index1",
      "name": "Increment Index1",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Interview Agent1",
      "name": "Interview Agent1",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Get Record1",
      "name": "Get Record1",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Append Responses1",
      "name": "Append Responses1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Update Answer2",
      "name": "Update Answer2",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Get Last Bot Message1",
      "name": "Get Last Bot Message1",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Update Answer3",
      "name": "Update Answer3",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Model2",
      "name": "Model2",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Model3",
      "name": "Model3",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Should Follow Up?1",
      "name": "Should Follow Up?1",
      "integration": "@n8n/n8n-nodes-langchain.textClassifier",
      "kind": "action"
    },
    {
      "id": "Execution Data2",
      "name": "Execution Data2",
      "integration": "executionData",
      "kind": "action"
    },
    {
      "id": "Create Record2",
      "name": "Create Record2",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Send Start",
      "name": "Send Start",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send Start1",
      "name": "Send Start1",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Completed Survey",
      "name": "Completed Survey",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Create Record1",
      "name": "Create Record1",
      "integration": "googleSheets",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Get State2",
      "to": "Message Type1"
    },
    {
      "from": "Get State3",
      "to": "Get Columns1"
    },
    {
      "from": "Get Record1",
      "to": "Has No Record?"
    },
    {
      "from": "Bot Actions1",
      "to": "Create Record1"
    },
    {
      "from": "Bot Actions1",
      "to": "Get State3"
    },
    {
      "from": "Bot Actions1",
      "to": "Send Start1"
    },
    {
      "from": "Get Columns1",
      "to": "Get Survey State1"
    },
    {
      "from": "Get Command1",
      "to": "Bot Actions1"
    },
    {
      "from": "Message Type1",
      "to": "Get Command1"
    },
    {
      "from": "Message Type1",
      "to": "Get Record1"
    },
    {
      "from": "Create Record1",
      "to": "Start Session1"
    },
    {
      "from": "Create Record2",
      "to": "Get State3"
    },
    {
      "from": "Has No Record?",
      "to": "Create Record2"
    },
    {
      "from": "Has No Record?",
      "to": "Get Last Bot Message1"
    },
    {
      "from": "Set Variables1",
      "to": "Execution Data2"
    },
    {
      "from": "Start Session1",
      "to": "Send Start"
    },
    {
      "from": "Update Answer2",
      "to": "Send Response"
    },
    {
      "from": "Update Answer3",
      "to": "Get State3"
    },
    {
      "from": "Execution Data2",
      "to": "Get State2"
    },
    {
      "from": "Increment Index1",
      "to": "Is Survey Continue?"
    },
    {
      "from": "Interview Agent1",
      "to": "Update Answer2"
    },
    {
      "from": "Telegram Trigger",
      "to": "Set Variables1"
    },
    {
      "from": "Append Responses1",
      "to": "Should Follow Up?1"
    },
    {
      "from": "Get Survey State1",
      "to": "Increment Index1"
    },
    {
      "from": "Should Follow Up?1",
      "to": "Update Answer3"
    },
    {
      "from": "Should Follow Up?1",
      "to": "Interview Agent1"
    },
    {
      "from": "Is Survey Continue?",
      "to": "Reset Agent Memory1"
    },
    {
      "from": "Is Survey Continue?",
      "to": "Completed Survey"
    },
    {
      "from": "Reset Agent Memory1",
      "to": "Send Next Question"
    },
    {
      "from": "Get Last Bot Message1",
      "to": "Append Responses1"
    }
  ]
}