{
  "openruna_format": "flow-graph-v1",
  "title": "0916_Telegram_Gmail_Create_Triggered",
  "slug": "0916-telegram-gmail-create-triggered",
  "source_filename": "0916_Telegram_Gmail_Create_Triggered.json",
  "nodes": [
    {
      "id": "Structured Output Parser",
      "name": "Structured Output Parser",
      "integration": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Text Email",
      "name": "Text Email",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "OpenAI",
      "name": "OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "New Email Received",
      "name": "New Email Received",
      "integration": "gmail",
      "kind": "trigger"
    },
    {
      "id": "In the Inbox?",
      "name": "In the Inbox?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Needs a response?",
      "name": "Needs a response?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Telegram Bot Message Received",
      "name": "Telegram Bot Message Received",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "It needs to be an audio message + a reply!",
      "name": "It needs to be an audio message + a reply!",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Get Audio File",
      "name": "Get Audio File",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Create Email Draft",
      "name": "Create Email Draft",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Direct to Draft",
      "name": "Direct to Draft",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Does Email Need a Response?",
      "name": "Does Email Need a Response?",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Is Type Audio Message + Reply?",
      "name": "Is Type Audio Message + Reply?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "OpenAI Chat Model1",
      "name": "OpenAI Chat Model1",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Write Polished Reply",
      "name": "Write Polished Reply",
      "integration": "@n8n/n8n-nodes-langchain.chainLlm",
      "kind": "action"
    },
    {
      "id": "Set Chat ID",
      "name": "Set Chat ID",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "OpenAI",
      "to": "Write Polished Reply"
    },
    {
      "from": "Set Chat ID",
      "to": "Text Email"
    },
    {
      "from": "In the Inbox?",
      "to": "Does Email Need a Response?"
    },
    {
      "from": "Get Audio File",
      "to": "OpenAI"
    },
    {
      "from": "Needs a response?",
      "to": "Set Chat ID"
    },
    {
      "from": "Create Email Draft",
      "to": "Direct to Draft"
    },
    {
      "from": "New Email Received",
      "to": "In the Inbox?"
    },
    {
      "from": "Write Polished Reply",
      "to": "Create Email Draft"
    },
    {
      "from": "Does Email Need a Response?",
      "to": "Needs a response?"
    },
    {
      "from": "Telegram Bot Message Received",
      "to": "Is Type Audio Message + Reply?"
    },
    {
      "from": "Is Type Audio Message + Reply?",
      "to": "Get Audio File"
    },
    {
      "from": "Is Type Audio Message + Reply?",
      "to": "It needs to be an audio message + a reply!"
    }
  ]
}