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 →
{
"name": "Sistema Agendamentos - Exemplo Completo",
"nodes": [
{
"parameters": {
"httpMethod": "GET",
"path": "webhook-agendar",
"responseMode": "responseNode"
},
"id": "webhook-trigger",
"name": "Webhook - Receber Solicita\u00e7\u00e3o",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"url": "https://qxlvzbvzajibdtlzngdy.supabase.co/functions/v1/n8n-api/medicos",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": "={{$credentials.N8N_API_KEY}}",
"options": {}
},
"id": "listar-medicos",
"name": "1. Listar M\u00e9dicos",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
450,
300
]
},
{
"parameters": {
"url": "https://qxlvzbvzajibdtlzngdy.supabase.co/functions/v1/n8n-api/atendimentos",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": "={{$credentials.N8N_API_KEY}}",
"options": {}
},
"id": "listar-atendimentos",
"name": "2. Listar Atendimentos",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
650,
300
]
},
{
"parameters": {
"url": "=https://qxlvzbvzajibdtlzngdy.supabase.co/functions/v1/n8n-api/disponibilidade?medico_id={{$json.medico_id}}&data_inicio={{$json.data_inicio}}&data_fim={{$json.data_fim}}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": "={{$credentials.N8N_API_KEY}}",
"options": {}
},
"id": "verificar-disponibilidade",
"name": "3. Verificar Disponibilidade",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
850,
300
]
},
{
"parameters": {
"url": "https://qxlvzbvzajibdtlzngdy.supabase.co/functions/v1/n8n-api/agendamento",
"method": "POST",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"httpHeaderAuth": "={{$credentials.N8N_API_KEY}}",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "paciente_nome",
"value": "={{$json.paciente_nome}}"
},
{
"name": "paciente_data_nascimento",
"value": "={{$json.paciente_data_nascimento}}"
},
{
"name": "paciente_convenio",
"value": "={{$json.paciente_convenio}}"
},
{
"name": "paciente_telefone",
"value": "={{$json.paciente_telefone}}"
},
{
"name": "paciente_celular",
"value": "={{$json.paciente_celular}}"
},
{
"name": "medico_id",
"value": "={{$json.medico_id}}"
},
{
"name": "atendimento_id",
"value": "={{$json.atendimento_id}}"
},
{
"name": "data_agendamento",
"value": "={{$json.data_agendamento}}"
},
{
"name": "hora_agendamento",
"value": "={{$json.hora_agendamento}}"
},
{
"name": "observacoes",
"value": "={{$json.observacoes}}"
}
]
},
"options": {}
},
"id": "criar-agendamento",
"name": "4. Criar Agendamento",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
1050,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json }}"
},
"id": "responder-webhook",
"name": "Responder ao Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
1250,
300
]
}
],
"connections": {
"Webhook - Receber Solicita\u00e7\u00e3o": {
"main": [
[
{
"node": "1. Listar M\u00e9dicos",
"type": "main",
"index": 0
}
]
]
},
"1. Listar M\u00e9dicos": {
"main": [
[
{
"node": "2. Listar Atendimentos",
"type": "main",
"index": 0
}
]
]
},
"2. Listar Atendimentos": {
"main": [
[
{
"node": "3. Verificar Disponibilidade",
"type": "main",
"index": 0
}
]
]
},
"3. Verificar Disponibilidade": {
"main": [
[
{
"node": "4. Criar Agendamento",
"type": "main",
"index": 0
}
]
]
},
"4. Criar Agendamento": {
"main": [
[
{
"node": "Responder ao Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
"staticData": null,
"tags": [],
"triggerCount": 0,
"updatedAt": "2025-01-09T02:30:00.000Z",
"versionId": "1"
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Sistema Agendamentos - Exemplo Completo. Uses httpRequest. Webhook trigger; 6 nodes.
Source: https://github.com/moraisinovaia/agenda-clinic-sync/blob/9729a1116e76c7127c2d9f6535c59880e47eb01c/docs/integracoes/n8n-workflow-exemplo.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c
Sign PDF documents with legally-compliant digital signatures using X.509 certificates. Supports multiple PAdES signature levels (B, T, LT, LTA) with optional visible stamps.
📡 This workflow serves as the central Alpha Vantage API fetcher for Tesla trading indicators, delivering cleaned 20-point JSON outputs for three timeframes: , , and . It is required by the following a