AutomationFlowsAI & RAG › (tool) Verificar Disponibilidade

(tool) Verificar Disponibilidade

(TOOL) Verificar Disponibilidade. Uses executeWorkflowTrigger, googleCalendar, openAi. Event-driven trigger; 5 nodes.

Event trigger★★★★☆ complexityAI-powered5 nodesExecute Workflow TriggerGoogle CalendarOpenAI
AI & RAG Trigger: Event Nodes: 5 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Execute Workflow Trigger → OpenAI recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "(TOOL) Verificar Disponibilidade",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "e5f010fd-0706-4d6c-9caa-4fd649b334fa",
      "name": "Execute Workflow Trigger"
    },
    {
      "parameters": {
        "resource": "calendar",
        "calendar": {
          "__rl": true,
          "value": "addept.ia@gmail.com",
          "mode": "list",
          "cachedResultName": "addept.ia@gmail.com"
        },
        "timeMin": "={{ $json[\"query\"][\"startTime\"] }}",
        "timeMax": "={{ $json[\"query\"][\"endTime\"] }}",
        "options": {
          "outputFormat": "bookedSlots",
          "timezone": {
            "__rl": true,
            "value": "America/Sao_Paulo",
            "mode": "list",
            "cachedResultName": "America/Sao_Paulo"
          }
        }
      },
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.2,
      "position": [
        220,
        0
      ],
      "id": "2d088d72-fe20-4880-876e-71565c2e2024",
      "name": "Google Calendar",
      "alwaysOutputData": true,
      "credentials": {
        "googleCalendarOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "aaa1a5b5-586e-48e4-85ff-3efc7f4559d9",
              "name": "horariosOcupados",
              "value": "={{ $json.start }} - {{ $json.end }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        440,
        0
      ],
      "id": "816f0580-e26a-463b-92cc-e3d3a52dd821",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "horariosOcupados"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        660,
        0
      ],
      "id": "494b8770-e948-490f-bc36-6348f87e15e3",
      "name": "Aggregate"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o-mini-2024-07-18",
          "mode": "list",
          "cachedResultName": "GPT-4O-MINI-2024-07-18"
        },
        "messages": {
          "values": [
            {
              "content": "=# Tarefa:\nAnalise os hor\u00e1rios ocupados e retorne uma lista contendo os hor\u00e1rios dispon\u00edveis para agendamento, sendo que nosso hor\u00e1rio de funcionamento \u00e9 das 08 \u00e0s 12, e das 13 \u00e0s 17. N\u00e3o adicione contexto ou informa\u00e7\u00f5es adicionais na sua resposta.\n\n## Exemplo de Resposta:\nHor\u00e1rios dispon\u00edveis para agendamento:\n08:00 - 09:00\n09:00 - 10:00\n13:00 - 14:00\n\n## Lista de hor\u00e1rios ocupados:\n{{ $json.horariosOcupados }}"
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.7,
      "position": [
        880,
        0
      ],
      "id": "bbdfacaf-e653-4edc-9c75-d2e71ed509e6",
      "name": "OpenAI",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Google Calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5f8fd9b0-4b7c-4c17-9f01-7001be9413c8",
  "id": "C5DmE2ofShi1Ruxp",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

(TOOL) Verificar Disponibilidade. Uses executeWorkflowTrigger, googleCalendar, openAi. Event-driven trigger; 5 nodes.

Source: https://github.com/waldirborbajr/n8n-workflow/blob/31a9e79987f44ce578808acc2280c1f1e3425144/clinic/_TOOL__Verificar_Disponibilidade.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

BoomerBobBot.TP. Uses agent, telegramTrigger, telegram, memoryBufferWindow. Event-driven trigger; 95 nodes.

Agent, Telegram Trigger, Telegram +10
AI & RAG

How it Works

Memory Buffer Window, Agent, Output Parser Structured +9
AI & RAG

AI Agent Workflow. Uses telegramTrigger, chatTrigger, telegram, openAi. Event-driven trigger; 82 nodes.

Telegram Trigger, Chat Trigger, Telegram +7
AI & RAG

The best content automation template in the market is now even better—with “deep research” on time-sensitive topics\! Unlike most n8n content automation templates that are mainly for “demo purposes,”

OpenAI, HTTP Request, XML +11
AI & RAG

My workflow 7. Uses openAi, redis, httpRequest, agent. Webhook trigger; 77 nodes.

OpenAI, Redis, HTTP Request +8