{
  "name": "Manage recipes with AI-powered Telegram bot and Google Sheets database",
  "nodes": [
    {
      "id": null,
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1920,
        128
      ]
    },
    {
      "id": null,
      "name": "Read Recipe Names",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        496,
        432
      ]
    },
    {
      "id": null,
      "name": "Format List Message",
      "type": "n8n-nodes-base.function",
      "position": [
        1088,
        432
      ]
    },
    {
      "id": null,
      "name": "Telegram Send Recipe List",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1744,
        432
      ]
    },
    {
      "id": null,
      "name": "Extract Select Param",
      "type": "n8n-nodes-base.function",
      "position": [
        -736,
        816
      ]
    },
    {
      "id": null,
      "name": "Lookup Recipe Row",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        496,
        1120
      ]
    },
    {
      "id": null,
      "name": "Format Full Recipe",
      "type": "n8n-nodes-base.function",
      "position": [
        1104,
        1120
      ]
    },
    {
      "id": null,
      "name": "Telegram Send Full Recipe",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1744,
        1120
      ]
    },
    {
      "id": null,
      "name": "Telegram Send AI Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1760,
        1600
      ]
    },
    {
      "id": null,
      "name": "Command Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1440,
        64
      ]
    },
    {
      "id": null,
      "name": "Recipe AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        848,
        1600
      ]
    },
    {
      "id": null,
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        400,
        2288
      ]
    },
    {
      "id": null,
      "name": "Conversation Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        688,
        2288
      ]
    },
    {
      "id": null,
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1040,
        2288
      ]
    },
    {
      "id": null,
      "name": "Read Recipes Sheet",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1440,
        2272
      ]
    },
    {
      "id": null,
      "name": "Update Recipes Sheet",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1792,
        2272
      ]
    },
    {
      "id": null,
      "name": "Telegram Send Menu",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1760,
        -64
      ]
    },
    {
      "id": null,
      "name": "Extract Search Term",
      "type": "n8n-nodes-base.function",
      "position": [
        -768,
        1296
      ]
    },
    {
      "id": null,
      "name": "Prepare Recipe Creation",
      "type": "n8n-nodes-base.function",
      "position": [
        -768,
        1824
      ]
    },
    {
      "id": null,
      "name": "Prepare Recipe Modification",
      "type": "n8n-nodes-base.function",
      "position": [
        -768,
        2304
      ]
    },
    {
      "id": null,
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        -240
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1696,
        912
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1712,
        1440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        912
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        912
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        608
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        1424
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        1168
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        2096
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        1632
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1712,
        2112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        2112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        176,
        2112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        224,
        2288
      ]
    },
    {
      "id": null,
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1504,
        -224
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        2112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        2112
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": null,
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Command Router": {
      "main": [
        [
          {
            "node": "Telegram Send Menu",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Read Recipe Names",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Select Param",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Recipe Modification",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Prepare Recipe Creation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Search Term",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recipe AI Agent": {
      "main": [
        [
          {
            "node": "Telegram Send AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Command Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lookup Recipe Row": {
      "main": [
        [
          {
            "node": "Format Full Recipe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Read Recipe Names": {
      "main": [
        [
          {
            "node": "Format List Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Full Recipe": {
      "main": [
        [
          {
            "node": "Telegram Send Full Recipe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Recipes Sheet": {
      "ai_tool": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Conversation Memory": {
      "ai_memory": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Extract Search Term": {
      "main": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format List Message": {
      "main": [
        [
          {
            "node": "Telegram Send Recipe List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Select Param": {
      "main": [
        [
          {
            "node": "Lookup Recipe Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Recipes Sheet": {
      "ai_tool": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Recipe Creation": {
      "main": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        []
      ]
    },
    "Prepare Recipe Modification": {
      "main": [
        [
          {
            "node": "Recipe AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}