{
  "name": "Movie release calendar: Add TMDB films to Google Calendar via Telegram Bot",
  "nodes": [
    {
      "id": "192657dc-e1b7-418f-b6ef-712dc451d890",
      "name": "Every Noon",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -112,
        0
      ]
    },
    {
      "id": "50b6fd5f-22d1-4db9-b89e-7842f68da353",
      "name": "Get movies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        256,
        0
      ]
    },
    {
      "id": "ad76f3f2-0439-41ee-b859-7130e3fb622f",
      "name": "Config TMDB token and Telegram chat ID",
      "type": "n8n-nodes-base.set",
      "position": [
        48,
        0
      ]
    },
    {
      "id": "cd808f89-2d09-4f12-9852-faad7a5bb287",
      "name": "Separate movies",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        400,
        0
      ]
    },
    {
      "id": "9bbe381d-1d9d-49f5-ae07-0a45267b12bb",
      "name": "If new",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        528,
        0
      ]
    },
    {
      "id": "9e659731-523f-496e-8097-2a6b53e740c6",
      "name": "Add movie data to table",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        672,
        0
      ]
    },
    {
      "id": "fb0432dd-8840-4574-9b5e-371366ab6421",
      "name": "Ask to add to calendar",
      "type": "n8n-nodes-base.telegram",
      "position": [
        864,
        0
      ]
    },
    {
      "id": "66224a7a-3734-4e9f-b385-26084a94bff5",
      "name": "Create an event",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        288,
        304
      ]
    },
    {
      "id": "ef4e2bf5-0e7a-40f2-a85a-f7500dda6cff",
      "name": "Add to calendar button pressed",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -112,
        304
      ]
    },
    {
      "id": "7ed88af6-751e-48d5-8ae7-348a3d809eb6",
      "name": "Get movie from callback data",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        112,
        304
      ]
    },
    {
      "id": "6496f0aa-5a3d-46b0-8c63-8a4a5b03e2d9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -640,
        -112
      ],
      "parameters": {
        "width": 480,
        "height": 608,
        "content": "**Add Upcoming Movies to Your Google Calendar**\n\nThis n8n template demonstrates how to automatically fetch upcoming movie releases from TMDB and let users add selected movies to their Google Calendar "
      }
    },
    {
      "id": "90a4b518-a534-45ee-8f9d-83985233937b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -112
      ],
      "parameters": {
        "width": 360,
        "height": 316,
        "content": "**1. Add your TMDB token and Telegram ID to the config.**"
      }
    },
    {
      "id": "3bc0bc60-98a5-41d2-8e52-a2620af7424c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -112
      ],
      "parameters": {
        "width": 792,
        "height": 316,
        "content": "**2. Upcoming movies are requested from TMDB, saved, and each movie is sent separately to Telegram with callback button.**"
      }
    },
    {
      "id": "b2eae768-9bd4-453e-ad5c-6548e7e84d08",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        224
      ],
      "parameters": {
        "width": 568,
        "height": 268,
        "content": "**3. Bot receives callbacks from buttons to add selected movie to calendar**"
      }
    }
  ],
  "connections": {
    "If new": {
      "main": [
        [
          {
            "node": "Add movie data to table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every Noon": {
      "main": [
        [
          {
            "node": "Config TMDB token and Telegram chat ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get movies": {
      "main": [
        [
          {
            "node": "Separate movies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Separate movies": {
      "main": [
        [
          {
            "node": "If new",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add movie data to table": {
      "main": [
        [
          {
            "node": "Ask to add to calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get movie from callback data": {
      "main": [
        [
          {
            "node": "Create an event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to calendar button pressed": {
      "main": [
        [
          {
            "node": "Get movie from callback data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config TMDB token and Telegram chat ID": {
      "main": [
        [
          {
            "node": "Get movies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}