{
  "openruna_format": "flow-graph-v1",
  "title": "Telegram AI-bot",
  "slug": "telegram-ai-bot-2",
  "source_filename": "1685_Openai_Telegram_Automate_Triggered.json",
  "nodes": [
    {
      "id": "Telegram Trigger",
      "name": "Telegram Trigger",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "CheckCommand",
      "name": "CheckCommand",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Settings",
      "name": "Settings",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Chat_mode",
      "name": "Chat_mode",
      "integration": "openAi",
      "kind": "action"
    },
    {
      "id": "Greeting",
      "name": "Greeting",
      "integration": "openAi",
      "kind": "action"
    },
    {
      "id": "Text reply",
      "name": "Text reply",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send Typing action",
      "name": "Send Typing action",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Create an image",
      "name": "Create an image",
      "integration": "openAi",
      "kind": "action"
    },
    {
      "id": "Send error message",
      "name": "Send error message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send image",
      "name": "Send image",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "PreProcessing",
      "name": "PreProcessing",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "CheckCommand"
    },
    {
      "from": "Greeting",
      "to": "Text reply"
    },
    {
      "from": "Settings",
      "to": "Send Typing action"
    },
    {
      "from": "Settings",
      "to": "Merge"
    },
    {
      "from": "Chat_mode",
      "to": "Text reply"
    },
    {
      "from": "CheckCommand",
      "to": "Chat_mode",
      "label": "/"
    },
    {
      "from": "CheckCommand",
      "to": "Greeting",
      "label": "/start"
    },
    {
      "from": "CheckCommand",
      "to": "Create an image",
      "label": "=/image"
    },
    {
      "from": "CheckCommand",
      "to": "Send error message"
    },
    {
      "from": "PreProcessing",
      "to": "Settings"
    },
    {
      "from": "Create an image",
      "to": "Send image"
    },
    {
      "from": "Telegram Trigger",
      "to": "PreProcessing"
    },
    {
      "from": "Send Typing action",
      "to": "Merge"
    }
  ]
}