{
  "name": "Manage Jira issues with natural language via Telegram and GPT-4o",
  "nodes": [
    {
      "id": "87eb83d5-fad5-45d1-bc23-3adcff7c8842",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -240,
        192
      ]
    },
    {
      "id": "467060d3-80da-44c3-b52a-a1fb9d78fcd4",
      "name": "Try Again",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        48
      ]
    },
    {
      "id": "b223b489-de88-412d-92dc-5ce5b5fa9093",
      "name": "Delete an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        176,
        352
      ]
    },
    {
      "id": "9de0b6bf-bc56-4973-b8fd-35643034463d",
      "name": "Update an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        448,
        320
      ]
    },
    {
      "id": "282dd679-5d62-4b00-b9ab-5686da85fd9e",
      "name": "Jira Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        16,
        -80
      ]
    },
    {
      "id": "c17f65ec-96ba-48a1-abfa-47d6a11aa301",
      "name": "Get many issues in Jira Software1",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        16,
        352
      ]
    },
    {
      "id": "a47f63fb-6a84-4f04-bae8-c100a9c43494",
      "name": "Create an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        304,
        352
      ]
    },
    {
      "id": "963f8359-9548-4b17-b155-53b39855ae92",
      "name": "Get the status of an issue in Jira Software",
      "type": "n8n-nodes-base.jiraTool",
      "position": [
        592,
        240
      ]
    },
    {
      "id": "73c165c7-3014-41f1-8ed4-186d6efcd9a2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -512
      ],
      "parameters": {
        "width": 248,
        "height": 388,
        "content": "## Jira Agent\nA smart assistant that manages Jira directly from messages from Telegram. Messages are interpreted using Open AI's GPT-4o model.\n\n- Create issues (Story by default): tasks, bugs, epics\n-"
      }
    },
    {
      "id": "42805ff0-5bc1-446b-8510-55f63fc42059",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        528
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "## JIRA actions\n- Get all issues\n- Create new issues\n- Delete issues\n- Update issues\n- Get status of issues"
      }
    },
    {
      "id": "0d5fbde7-c305-46ec-ab26-a017743713b5",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1024,
        -112
      ]
    },
    {
      "id": "2502ad6c-98be-457c-ab58-8022d4a05c74",
      "name": "Set 'Text'",
      "type": "n8n-nodes-base.set",
      "position": [
        -864,
        -112
      ]
    },
    {
      "id": "337ac77d-3e8d-4bac-813b-0b5da3706d45",
      "name": "Extract Task",
      "type": "n8n-nodes-base.function",
      "position": [
        -704,
        -112
      ]
    },
    {
      "id": "965604d0-75c4-4e37-8b4e-7eb226eb587a",
      "name": "Send a text message1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -352,
        -256
      ]
    },
    {
      "id": "f0c799f8-751d-4d98-98c4-76ff67a0091b",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -544,
        -112
      ]
    },
    {
      "id": "7547894f-50d0-4ade-b816-b9a3699c3af7",
      "name": "Set 'Text'1",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        -80
      ]
    },
    {
      "id": "e6f05603-d69d-4241-b56c-7dc881e6a20e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -1872
      ],
      "parameters": {
        "width": 2468,
        "height": 396,
        "content": "# Manage Jira Issues with Natural Language via Telegram and GPT-4o'\n### Overview\nThe Jira Agent is an AI-powered assistant that allows users to interact with Jira directly through messaging platform T"
      }
    },
    {
      "id": "8ae99243-df7a-4279-b3c0-8af0f2c48da9",
      "name": "Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        672,
        -160
      ]
    },
    {
      "id": "f1639c04-f250-4517-b769-13a93ca257f6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        80
      ],
      "parameters": {
        "width": 384,
        "height": 288,
        "content": "## Telegram Messages\n### Normal interaction \nusing messages as \"Please give all my issues\".\n\n### Standardized process of creating stories: \n1. Message: \"create story\"\n2. Open the Form that telegrams r"
      }
    },
    {
      "id": "a8e099ed-c4aa-4e60-9b74-50012df4a686",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -1456
      ],
      "parameters": {
        "width": 816,
        "height": 848,
        "content": "## Configuring the Telegram bot\n### Step 1: Create a New Telegram Bot\n1. Open Telegram and search for @BotFather.\n2. Start a chat and type: /newbot\n3. Follow the prompts:\n    * Give your bot a name (t"
      }
    },
    {
      "id": "63704731-cba3-4123-9552-a9c6126dba80",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        -1456
      ],
      "parameters": {
        "width": 816,
        "height": 848,
        "content": "## Configuring Jira\n### Step 1: Generate Your Jira API Token (Jira Cloud only)\n1. Go to https://id.atlassian.com/manage/api-tokens\n2. Click Create API token\n3. Give your token a label (e.g., n8n integ"
      }
    },
    {
      "id": "b1d42508-5d94-4cec-9674-009412b6506e",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        -1456
      ],
      "parameters": {
        "width": 816,
        "height": 848,
        "content": "## Setting up OpenAI API access\n### Step 1: Get Your OpenAI API Key\n1. Go to https://platform.openai.com/account/api-keys\n2. Click “Create new secret key”\n3. Give it a name (e.g., n8n-access)\n4. Copy "
      }
    },
    {
      "id": "18fb581d-f779-4b58-b7c1-d441c8cdd5fa",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1200,
        -576
      ],
      "parameters": {
        "width": 2480,
        "height": 1296,
        "content": "\n# Workflow"
      }
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set 'Text'1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Jira Agent": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Try Again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set 'Text'": {
      "main": [
        [
          {
            "node": "Extract Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set 'Text'1": {
      "main": [
        [
          {
            "node": "Jira Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Task": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Set 'Text'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message1": {
      "main": [
        [
          {
            "node": "Set 'Text'1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many issues in Jira Software1": {
      "ai_tool": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get the status of an issue in Jira Software": {
      "ai_tool": [
        [
          {
            "node": "Jira Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}