{
  "openruna_format": "flow-graph-v1",
  "title": "Telegram-bot AI Da Nang",
  "slug": "telegram-bot-ai-da-nang",
  "source_filename": "1380_Telegram_Code_Automate_Triggered.json",
  "nodes": [
    {
      "id": "SendTyping",
      "name": "SendTyping",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "SetResponse",
      "name": "SetResponse",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Settings",
      "name": "Settings",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Schedule",
      "name": "Schedule",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "ScheduleToMarkdown",
      "name": "ScheduleToMarkdown",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "ScheduleBot",
      "name": "ScheduleBot",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "n8nChatSettings",
      "name": "n8nChatSettings",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "telegramChatSettings",
      "name": "telegramChatSettings",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "telegramInput",
      "name": "telegramInput",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "n8nInput",
      "name": "n8nInput",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "Switch",
      "name": "Switch",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "telegramResponse",
      "name": "telegramResponse",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "n8nResponse",
      "name": "n8nResponse",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "LLM",
      "name": "LLM",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "kind": "action"
    },
    {
      "id": "Memory",
      "name": "Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Switch",
      "to": "n8nResponse"
    },
    {
      "from": "Switch",
      "to": "telegramResponse"
    },
    {
      "from": "Schedule",
      "to": "ScheduleToMarkdown"
    },
    {
      "from": "Settings",
      "to": "Schedule"
    },
    {
      "from": "n8nInput",
      "to": "n8nChatSettings"
    },
    {
      "from": "SendTyping",
      "to": "telegramChatSettings"
    },
    {
      "from": "ScheduleBot",
      "to": "SetResponse"
    },
    {
      "from": "SetResponse",
      "to": "Switch"
    },
    {
      "from": "telegramInput",
      "to": "SendTyping"
    },
    {
      "from": "n8nChatSettings",
      "to": "Settings"
    },
    {
      "from": "ScheduleToMarkdown",
      "to": "ScheduleBot"
    },
    {
      "from": "telegramChatSettings",
      "to": "Settings"
    }
  ]
}