{
  "name": "Create viral Instagram reel scenarios from ideas with GPT-4o and Telegram",
  "nodes": [
    {
      "id": null,
      "name": "Start: Receive Message on Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        320,
        -80
      ]
    },
    {
      "id": null,
      "name": "AI Model: GPT-4o",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1180,
        40
      ]
    },
    {
      "id": null,
      "name": "Memory for Chat Context",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1340,
        40
      ]
    },
    {
      "id": null,
      "name": "Optional: Log Ideas to Google Sheets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1500,
        40
      ]
    },
    {
      "id": null,
      "name": "Set Error Message",
      "type": "n8n-nodes-base.set",
      "position": [
        760,
        120
      ]
    },
    {
      "id": null,
      "name": "Generate Reels Scenario with AI",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1232,
        -180
      ]
    },
    {
      "id": null,
      "name": "Send Scenario to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1640,
        -180
      ]
    },
    {
      "id": null,
      "name": "Route by Input Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        540,
        -80
      ]
    },
    {
      "id": null,
      "name": "Set User Input",
      "type": "n8n-nodes-base.set",
      "position": [
        980,
        -80
      ]
    },
    {
      "id": null,
      "name": "Send Error Message to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        980,
        120
      ]
    },
    {
      "id": null,
      "name": "Get Voice Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        760,
        -280
      ]
    },
    {
      "id": null,
      "name": "Transcribe Voice to Text",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        980,
        -280
      ]
    },
    {
      "id": null,
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        -540
      ],
      "parameters": {
        "width": 540,
        "height": 420,
        "content": "## 🚀 Quick Start Guide\n\n1. 🔐 Connect Your Accounts:\n\t•\t🤖 Telegram: Link your Start & Send nodes to your bot (Use https://telegram.me/BotFather to create a new bot)\n\t•\t🧠 OpenAI: Paste your API key in G"
      }
    },
    {
      "id": null,
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1640,
        40
      ],
      "parameters": {
        "width": null,
        "height": 120,
        "content": "## Optional:\n💬 Ask your bot to store the generated scenario in your google sheet*"
      }
    }
  ],
  "connections": {
    "Set User Input": {
      "main": [
        [
          {
            "node": "Generate Reels Scenario with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Model: GPT-4o": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Reels Scenario with AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice Message": {
      "main": [
        [
          {
            "node": "Transcribe Voice to Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Error Message": {
      "main": [
        [
          {
            "node": "Send Error Message to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Input Type": {
      "main": [
        [
          {
            "node": "Get Voice Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set User Input",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Error Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Memory for Chat Context": {
      "ai_memory": [
        [
          {
            "node": "Generate Reels Scenario with AI",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe Voice to Text": {
      "main": [
        [
          {
            "node": "Generate Reels Scenario with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Reels Scenario with AI": {
      "main": [
        [
          {
            "node": "Send Scenario to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start: Receive Message on Telegram": {
      "main": [
        [
          {
            "node": "Route by Input Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optional: Log Ideas to Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "Generate Reels Scenario with AI",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}