{
  "name": "Automated property & restaurant bookings with AI voice calls via Telegram",
  "nodes": [
    {
      "id": "6c5d6cf8-0dfa-48a5-8872-cf5cc69e049b",
      "name": "Section: Webhook & Post-call Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        2320
      ],
      "parameters": {
        "width": 1080,
        "height": 576,
        "content": "**Webhook & Post-call Analysis**\n- Retell Webhook\n- Filter call_ended events\n- AI analyzes transcript"
      }
    },
    {
      "id": "9782dbb6-bae4-4888-8c90-232d1e64c3de",
      "name": "Gemini 2.0 Flash",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -768,
        1616
      ]
    },
    {
      "id": "996cc320-5576-4751-a5e0-bd8c0f562f4f",
      "name": "Retell Create Call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -224,
        1408
      ]
    },
    {
      "id": "a1aae24d-ec39-4545-b09a-07cc0e5c752e",
      "name": "Retell Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1648,
        2464
      ]
    },
    {
      "id": "f65ae764-312f-407e-9666-2b4b6ed93a62",
      "name": "AI Agent Parse Call",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1232,
        2464
      ]
    },
    {
      "id": "e7d4003b-97dc-4839-9886-021ff1f0f3e5",
      "name": "Gemini 2.0 Flash 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -1232,
        2688
      ]
    },
    {
      "id": "07d76d6b-97e0-44c3-aa6e-1de1b6be8a76",
      "name": "Notify Success",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -944,
        2448
      ]
    },
    {
      "id": "0394bc79-5900-43fb-a8f6-f26d6c31a9cb",
      "name": "Get an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -672,
        1648
      ]
    },
    {
      "id": "5bb4a072-bfa9-4769-a902-bbadf2e8e179",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -544,
        1552
      ]
    },
    {
      "id": "d2515717-c624-4eec-ab39-4bde25c452e1",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -544,
        1728
      ]
    },
    {
      "id": "c3887391-2f0f-4d7d-8ad1-dbcc6390f312",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1424,
        2464
      ]
    },
    {
      "id": "a9f6708f-7028-4a5f-9dfe-3e188a3b7d20",
      "name": "Create an event in Google Calendar",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -1088,
        2704
      ]
    },
    {
      "id": "4e18400a-65d1-4951-91b1-5cf142396ca6",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1696,
        1680
      ]
    },
    {
      "id": "ee853319-7d74-44c2-bde1-6d9be7ce3d33",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1488,
        1680
      ]
    },
    {
      "id": "be55dfc4-a7b5-483c-8701-9c8163ffb13f",
      "name": "Gemini 2.0 Flash1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -768,
        2144
      ]
    },
    {
      "id": "8d309cbf-b0b6-4598-a28b-024c5ff7154d",
      "name": "Retell Create Call1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -224,
        1904
      ]
    },
    {
      "id": "acaf744a-3e24-4e79-9d12-eb75b8f3eb9f",
      "name": "Get an event in Google Calendar1",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        -656,
        2176
      ]
    },
    {
      "id": "76c3d2af-9370-4614-8319-b733a0ffedb4",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -544,
        2160
      ]
    },
    {
      "id": "7d88c75e-a24c-4d31-9401-8192442e8780",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -544,
        2272
      ]
    },
    {
      "id": "d3abfa2a-6f9a-4ba6-bbfc-a93ab1b0d4db",
      "name": "AI Agent Reserva Restaurantes",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -704,
        2016
      ]
    },
    {
      "id": "e4308412-51fe-4f44-8fe3-5b3f5a0feb2f",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1280,
        1680
      ]
    },
    {
      "id": "199a1023-342c-48c9-9851-e313a22ac3f6",
      "name": "Setup Notes1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2464,
        1744
      ],
      "parameters": {
        "width": 608,
        "height": 624,
        "content": "**QUICK SETUP: RetellAI, Telegram & Google Calendar**\n\n**1. RetellAI (Voice Calling)**\n   - Create an agent at Retell.ai and get your API Key.\n   - In n8n, create \"HTTP Bearer YOUR_TOKEN_HERE\" credent"
      }
    },
    {
      "id": "cd2945c3-53e9-4abe-8e7b-0d2cba4b9037",
      "name": "Section: Triggers",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1728,
        1584
      ],
      "parameters": {
        "width": 200,
        "height": 288,
        "content": "**Triggers**\n- Telegram Trigger"
      }
    },
    {
      "id": "4079fb64-f95c-4227-a886-8e1a2bb7fa33",
      "name": "Section: Parsing & Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        1584
      ],
      "parameters": {
        "width": 420,
        "height": 288,
        "content": "**Parsing & Routing**\n- Switch routes commands\n- Initial Telegram reply"
      }
    },
    {
      "id": "d5831d91-7d57-45f6-9c2a-13f8f3cf1a09",
      "name": "Section: Agent – Property Viewings",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        1264
      ],
      "parameters": {
        "width": 516,
        "height": 608,
        "content": "**Agent: Property Viewings**\n- LLM generates call JSON\n- Calendar availability logic"
      }
    },
    {
      "id": "3d64406e-42e0-4e8f-8380-9475f267234a",
      "name": "AI Agent: Property Viewings",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -768,
        1408
      ]
    },
    {
      "id": "7b44caf1-1760-4b86-ac5c-111414917495",
      "name": "Section: Retell AI Calls1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -288,
        1264
      ],
      "parameters": {
        "width": 360,
        "height": 800,
        "content": "**Retell AI Calls**\n- Create outbound calls via HTTP"
      }
    },
    {
      "id": "7b9e4403-19f6-43e2-bb32-8cbb0428578a",
      "name": "Section: Agent – Restaurant Reservations1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        1872
      ],
      "parameters": {
        "width": 516,
        "height": 528,
        "content": "**Agent: Restaurant Reservations**\n- LLM prepares booking call\n- Collects party size and time"
      }
    }
  ],
  "connections": {
    "Filter": {
      "main": [
        [
          {
            "node": "AI Agent Parse Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "AI Agent: Property Viewings",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent Reserva Restaurantes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retell Webhook": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.0 Flash": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent: Property Viewings",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.0 Flash1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Reserva Restaurantes",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.0 Flash 2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Parse Call",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Parse Call": {
      "main": [
        [
          {
            "node": "Notify Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a text message": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent: Property Viewings",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent Reserva Restaurantes",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent: Property Viewings": {
      "main": [
        [
          {
            "node": "Retell Create Call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent Reserva Restaurantes": {
      "main": [
        [
          {
            "node": "Retell Create Call1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Property Viewings",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get an event in Google Calendar1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Reserva Restaurantes",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Parse Call",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}