{
  "name": "11labs - calendar booking agent",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "6ef9da93-a474-43f3-9bae-3e3f775114de",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -448,
        -96
      ],
      "id": "63dda6b6-6de9-4c17-ab26-43115d94a49e",
      "name": "Webhook",
      "webhookId": "6ef9da93-a474-43f3-9bae-3e3f775114de"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Service: {{ $json.body.service }}\nDate: {{ $json.body.date }}\nTime: {{ $json.body.time }}\nName: {{ $json.body.name }}",
        "options": {
          "systemMessage": "You are a booking ai agent - you are in AEDT timezone.\n\nYour job is to make bookings on google calendar.\n\nYou must first check the availabilities at that time\n\nif available create a calendar event with the service and name at the requested time and date.\n\nif not, return 2 other available times near to the requested date."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        -224,
        -96
      ],
      "id": "7b372644-49c5-4694-90ae-6332bafdfb63",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        112,
        -96
      ],
      "id": "4f9e9922-f175-434c-b404-86d6e466d538",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        -368,
        112
      ],
      "id": "4fa06e02-ca16-4aa8-92a2-6f40e0f9236c",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "EaHAE2NZa2gYhEPa",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "calendar": {
          "__rl": true,
          "value": "kris@kristorrington.com",
          "mode": "list",
          "cachedResultName": "kris@kristorrington.com"
        },
        "start": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Start', ``, 'string') }}",
        "end": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('End', ``, 'string') }}",
        "additionalFields": {
          "attendees": [],
          "description": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Description', ``, 'string') }}",
          "summary": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Summary', ``, 'string') }}"
        }
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        96,
        112
      ],
      "id": "65d49a2e-34ec-4945-880d-ede700422027",
      "name": "Create an event in Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "pXOHCxjtp0SJlQU5",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "value": "kris@kristorrington.com",
          "mode": "list",
          "cachedResultName": "kris@kristorrington.com"
        },
        "timeMin": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('After', ``, 'string') }}",
        "timeMax": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Before', ``, 'string') }}",
        "options": {}
      },
      "type": "n8n-nodes-base.googleCalendarTool",
      "typeVersion": 1.3,
      "position": [
        -112,
        144
      ],
      "id": "5c833721-0fe1-46f9-b45f-72d7a046adc8",
      "name": "Get many events in Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "pXOHCxjtp0SJlQU5",
          "name": "Google Calendar account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create an event in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get many events in Google Calendar": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9ef3301a-6f15-42e3-8784-aedba56b49f0",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "7425b88d6f52190dec1f6e67c1b6cffa1a87557717f26de52e85eaddcf276948"
  },
  "id": "Q47wyjziDYdxxRVw",
  "tags": []
}