{
  "name": "AI appointment reminder calls with Ringee, Google Calendar and n8n",
  "nodes": [
    {
      "parameters": {
        "content": "## AI appointment reminder\nAn AI voice agent phones each person shortly before a meeting to **confirm they will attend**, then the meeting is colour-coded in Google Calendar.\n\n**Flow 1 (top)** finds meetings starting in about an hour and starts one call each.\n**Flow 2 (bottom)** waits for the call to end, reads the AI's result and updates the calendar.\n\nRingee only publishes a few outcomes as events, so this workflow reads the result with *Get Call Result* after the call ends. That is reliable for every outcome.\n\n[Ringee](https://ringee.io) · [Docs](https://docs.ringee.io)",
        "height": 360,
        "width": 470,
        "color": 4
      },
      "id": "6345dfb1-8531-53c5-baad-1963151c4442",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-260, -330]
    },
    {
      "parameters": {
        "content": "**Before you run this**\n1. In Ringee, create a **Custom Integration** (Integrations → Custom Integrations) and copy its **API key** and **Signing Secret**.\n2. In n8n, create a **Ringee API** credential with both.\n3. Pick your AI voice agent in the Ringee node.\n4. Activate the workflow, then paste the **Ringee Trigger's Production URL** into the integration's **Outbound URL** and tick *Call Completed* and *Call Failed*.\n\n**Calendar convention:** put the person's phone number in the event description, for example `Phone: +14155550123` and `Name: Ada Lovelace`. Use an agent of type **Reminders & Notifications**.",
        "height": 330,
        "width": 470,
        "color": 5
      },
      "id": "85b2a72c-3e2e-5788-bd2d-9d331cfa65d3",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-260, 60]
    },
    {
      "parameters": {
        "content": "**No double calls.** Each call uses the calendar event ID as its *Idempotency Key*, so even if two runs see the same meeting, Ringee places the call once. Only meetings that start 55 to 70 minutes after the run are called; all-day events and meetings already under way are skipped.",
        "height": 200,
        "width": 330,
        "color": 6
      },
      "id": "e5b8f9b9-32bb-51fc-bb33-692eea142650",
      "name": "Safe to run often",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [260, -330]
    },
    {
      "parameters": {
        "content": "**Consent and calling hours**\nOnly call people who agreed to be called, and only at reasonable hours. Ringee blocks numbers on your Do-Not-Call list and respects your plan's limits, but you are responsible for the permission to call. Every phone number in this template is fictional.",
        "height": 190,
        "width": 360,
        "color": 3
      },
      "id": "011c2953-6451-5d44-8031-dc71273ad396",
      "name": "Consent",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [610, -330]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "id": "e7b44c8e-4e8b-5c23-9651-5abe87d6f370",
      "name": "Every 15 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [260, -120]
    },
    {
      "parameters": {
        "resource": "event",
        "operation": "getAll",
        "calendar": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "returnAll": true,
        "timeMin": "={{ DateTime.fromISO($('Every 15 minutes').first().json.timestamp).startOf('minute').plus({ minutes: 55 }).toISO() }}",
        "timeMax": "={{ DateTime.fromISO($('Every 15 minutes').first().json.timestamp).startOf('minute').plus({ minutes: 70 }).toISO() }}",
        "options": {
          "recurringEventHandling": "expand",
          "orderBy": "startTime"
        }
      },
      "id": "430d62fc-2fac-55da-8e7e-930b570bb88a",
      "name": "Meetings in about an hour",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [500, -120]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "63630571-f671-5884-9df7-eeb89e3a3241",
              "leftValue": "={{ (() => { const start = DateTime.fromISO($json.start?.dateTime || ''); const run = DateTime.fromISO($('Every 15 minutes').first().json.timestamp).startOf('minute'); return start.isValid && start >= run.plus({ minutes: 55 }) && start < run.plus({ minutes: 70 }); })() }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "0de10282-6095-59f7-8d32-edf7a69aaff6",
      "name": "Starts in about an hour?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [740, -120]
    },
    {
      "parameters": {},
      "id": "6f07e5a8-ea3a-5ed1-a1cf-8b1b50c62baf",
      "name": "Skipped: does not start in this window",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [980, 40]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d8323019-fba2-5bcf-b36a-8df089200732",
              "name": "phone",
              "value": "={{ ($json.description || '').match(/Phone:[ \\t]*(\\+?[\\d \\t().-]{7,})/i)?.[1]?.trim() || '' }}",
              "type": "string"
            },
            {
              "id": "bf35c9a7-aee2-5481-a5c1-6a45eeefb28f",
              "name": "firstName",
              "value": "={{ (($json.description || '').match(/Name:\\s*([^\\n\\r]+)/i)?.[1] || $json.attendees?.find(a => !a.self)?.displayName || 'there').trim().split(' ')[0] }}",
              "type": "string"
            },
            {
              "id": "9e34c57b-e2dc-53c8-8db0-643d528738f7",
              "name": "eventId",
              "value": "={{ $json.id }}",
              "type": "string"
            },
            {
              "id": "ce84d1a8-ccd1-58ac-bcca-a2b2449628f0",
              "name": "title",
              "value": "={{ $json.summary }}",
              "type": "string"
            },
            {
              "id": "55f6d3a2-0a53-5e74-8027-071febe84c93",
              "name": "date",
              "value": "={{ DateTime.fromISO($json.start.dateTime || $json.start.date).setZone($now.zoneName).toFormat('LLLL d') }}",
              "type": "string"
            },
            {
              "id": "4e22411e-7e14-5377-8840-757c37cf4d0c",
              "name": "time",
              "value": "={{ DateTime.fromISO($json.start.dateTime || $json.start.date).setZone($now.zoneName).toFormat('h:mm a') }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "249ee492-ec46-55ea-abd0-f57aca49fdf3",
      "name": "Prepare reminder",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [980, -120]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "573dbe31-ea9d-5120-b4df-6600aa71ed5d",
              "leftValue": "={{ $json.phone }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "13f7c32e-a149-5c63-841a-fd6d1ee5e1cb",
      "name": "Has a phone number?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [1220, -120]
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "startCall",
        "agentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "phoneNumber": "={{ $json.phone }}",
        "variables": {
          "mappingMode": "defineBelow",
          "value": {
            "first_name": "={{ $json.firstName }}",
            "notification": "={{ $json.title }}",
            "appointment_date": "={{ $json.date }}",
            "appointment_time": "={{ $json.time }}"
          },
          "matchingColumns": [],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {
          "externalId": "={{ 'reminder-' + $json.eventId }}",
          "idempotencyKey": "={{ 'reminder-' + $json.eventId }}"
        }
      },
      "id": "c7ad3548-e94b-5b7a-8f3a-587d6bb1505e",
      "name": "Start reminder call",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [1460, -200],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {},
      "id": "70fb5d9c-b663-5677-b97a-5437f001abab",
      "name": "Skipped: no phone in the event",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [1460, -20]
    },
    {
      "parameters": {
        "events": ["call.completed", "call.failed"],
        "options": {
          "onlyAiAgentCalls": true,
          "externalIdPrefix": "reminder-"
        }
      },
      "id": "5581c3fa-4a11-59ab-a76b-85d0e85fa814",
      "name": "Reminder call ended",
      "type": "n8n-nodes-ringee.ringeeTrigger",
      "typeVersion": 1,
      "position": [260, 200],
      "webhookId": "ea8535f7-dd0e-5cc8-80e4-5a0a41aac322"
    },
    {
      "parameters": {
        "amount": 2,
        "unit": "minutes"
      },
      "id": "a7e51b78-69dc-5310-b43b-a155f69fc06a",
      "name": "Wait for the AI analysis",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [500, 200],
      "webhookId": "f2b21421-7537-5c4c-8f41-442bc9a571d1"
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "getCallResult",
        "callId": "={{ $('Reminder call ended').item.json.data.call?.voiceAgentCall?.id || $('Reminder call ended').item.json.data.agentCallId }}"
      },
      "id": "fded9ba1-a8a4-50d6-b383-16bab99fad23",
      "name": "Get call result",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [740, 200],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "9d6e0a74-54eb-55db-94d7-c255e489e5da",
              "leftValue": "={{ $json.outcome }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "5ce71ec6-a360-502e-a616-1cdd7b9c8ff1",
      "name": "Analysis ready?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [980, 200]
    },
    {
      "parameters": {
        "amount": 5,
        "unit": "minutes"
      },
      "id": "fe81f6db-1d32-5d50-9208-6f4d708acad9",
      "name": "Wait 5 more minutes",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [980, 400],
      "webhookId": "38e94088-e22d-5291-857d-d63f7f50578c"
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "getCallResult",
        "callId": "={{ $('Reminder call ended').item.json.data.call?.voiceAgentCall?.id || $('Reminder call ended').item.json.data.agentCallId }}"
      },
      "id": "5410b60c-add4-5f0e-b92c-49c76501d9f1",
      "name": "Get call result (second try)",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [1220, 400],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "9d6e0a74-54eb-55db-94d7-c255e489e5da",
              "leftValue": "={{ $json.outcome }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "7ec5f765-42dc-53fb-8c82-81bbae4db408",
      "name": "Ready now?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [1460, 400]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "7be514f0-5e62-5c28-9d50-d73f13ddabab",
              "name": "call_id",
              "value": "={{ $('Reminder call ended').item.json.data.call?.voiceAgentCall?.id || $('Reminder call ended').item.json.data.agentCallId || $('Reminder call ended').item.json.data.callId }}",
              "type": "string"
            },
            {
              "id": "05748499-ac89-53bd-bc0a-c0cc80a2b8d8",
              "name": "external_id",
              "value": "={{ $('Reminder call ended').item.json.data.externalId || '' }}",
              "type": "string"
            },
            {
              "id": "890edee2-cb9a-53d5-80b9-62aba81d0a03",
              "name": "reason",
              "value": "={{ $json.error ? 'The call result could not be read' : 'The AI analysis was not ready after seven minutes' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "8b36e7ac-b54f-5d23-8c2c-75f9d1ddce8a",
      "name": "Gave up: check the call in Ringee",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [1700, 480]
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "674722bc-514a-59a0-82db-73d7e1446a20",
                    "leftValue": "={{ $json.outcome }}",
                    "rightValue": "confirmed",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Will attend"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "85fb0fb0-b0d9-507f-9f30-0702e299b378",
                    "leftValue": "={{ $json.outcome }}",
                    "rightValue": "cannot_attend",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Can't attend"
            }
          ]
        },
        "options": {
          "fallbackOutput": "extra",
          "renameFallbackOutput": "Something else"
        }
      },
      "id": "1f96edec-fe23-50cf-9659-25f850ec4d5f",
      "name": "What did they say?",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.5,
      "position": [1460, 160]
    },
    {
      "parameters": {
        "resource": "event",
        "operation": "update",
        "calendar": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "eventId": "={{ $('Reminder call ended').item.json.data.externalId.replace('reminder-', '') }}",
        "useDefaultReminders": true,
        "updateFields": {
          "color": "10"
        }
      },
      "id": "f02bf726-ad40-5f2a-b322-a719cee47be1",
      "name": "Colour green: will attend",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [1720, 20]
    },
    {
      "parameters": {
        "resource": "event",
        "operation": "update",
        "calendar": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "eventId": "={{ $('Reminder call ended').item.json.data.externalId.replace('reminder-', '') }}",
        "useDefaultReminders": true,
        "updateFields": {
          "color": "11"
        }
      },
      "id": "8a346da4-7f28-51e2-9eb9-2058c060347a",
      "name": "Colour red: cannot attend",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [1720, 180]
    },
    {
      "parameters": {
        "resource": "event",
        "operation": "update",
        "calendar": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "eventId": "={{ $('Reminder call ended').item.json.data.externalId.replace('reminder-', '') }}",
        "useDefaultReminders": true,
        "updateFields": {
          "color": "5"
        }
      },
      "id": "1f56d5df-c005-5d95-9ef3-ae542f38cbac",
      "name": "Colour yellow: needs a person",
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [1720, 340]
    },
    {
      "parameters": {},
      "id": "3e0f7a48-6ebf-5f67-8b0b-d61f15dbbf77",
      "name": "Call not placed: see the error",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [1700, -120]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "36810fc4-f4e0-4c95-8ca9-624d77b4cbbc",
              "leftValue": "={{ $json.status }}",
              "rightValue": "queued",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "76eff2ca-510a-4030-97e6-ba2e10684a77",
      "name": "Was the operation queued?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [260, 840]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "835ba023-69b3-4a8e-abb8-d5feb906eea2",
              "name": "call_id",
              "value": "={{ $json.call_id }}",
              "type": "string"
            },
            {
              "id": "c8041731-134f-4f41-a825-f2c429d71f86",
              "name": "expires_at",
              "value": "={{ $json.expires_at || '' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "300daa28-0bba-4e6e-80c8-35bed7000104",
      "name": "Remember queued operation",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [480, 840]
    },
    {
      "parameters": {
        "amount": "={{ Math.max(1, Math.min(86401, Math.ceil((Math.max(Date.now(), ...$input.all().map(item => Date.parse(item.json.expires_at || '') || Date.now())) - Date.now()) / 1000) + 1)) }}",
        "unit": "seconds"
      },
      "id": "29c4ad9a-ec70-4c8a-a6ef-a1adbfb7fb42",
      "name": "Wait until queue deadline",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [700, 840],
      "webhookId": "935bbf00-7685-4d9d-82f1-2f5445a8b6f2"
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "getCallStatus",
        "callId": "={{ $json.call_id }}"
      },
      "id": "da7b2798-a6d5-4a4a-a795-b44c08bd4bb3",
      "name": "Check queued call status",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [920, 840],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "ab03a696-d8c3-43ff-aa0d-572a86a56022",
              "name": "call_id",
              "value": "={{ $json.call_id || $('Remember queued operation').item.json.call_id }}",
              "type": "string"
            },
            {
              "id": "0fb1ac3d-29a3-4562-a768-16281e13ddd4",
              "name": "expires_at",
              "value": "={{ $('Remember queued operation').item.json.expires_at }}",
              "type": "string"
            },
            {
              "id": "98f50511-722b-41cb-ab29-9ddb06311f56",
              "name": "status",
              "value": "={{ $json.status || 'unresolved' }}",
              "type": "string"
            },
            {
              "id": "11688a87-d3e1-4194-94af-5f8188308207",
              "name": "queue_check",
              "value": "={{ ['cancelled', 'expired'].includes($json.status) ? 'never_dialed' : $json.status === 'failed' ? 'failed' : ['completed', 'no_answer', 'busy', 'voicemail'].includes($json.status) ? 'ended_see_result_or_event' : 'unresolved_inspect_ringee' }}",
              "type": "string"
            },
            {
              "id": "b662749f-579c-4f11-af42-7f0f39147abe",
              "name": "needs_attention",
              "value": "={{ !['completed', 'no_answer', 'busy', 'voicemail'].includes($json.status) }}",
              "type": "boolean"
            }
          ]
        },
        "options": {}
      },
      "id": "484790f2-1f9a-4276-bec7-fe4221c91aa5",
      "name": "Queue check: inspect attention items",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [1140, 840]
    },
    {
      "parameters": {
        "content": "## Queued calls need a status path\nSelect your Ringee credential on **Check queued call status** too. This branch saves the operation ID and deadline in execution data, waits until the latest deadline in this batch (at most 24 hours plus one second) and reads status once, with bounded read retries. Expired/cancelled calls never dial; failed or unresolved operations need inspection. **Queue check: inspect attention items** retains the ID and marks `needs_attention`. Connect that output to your own idempotent follow-up if required. It does not create a call, retry Start Call, or write a second CRM result. The existing event/result branch still handles dialed calls. No event is expected for an operation that never dialed. Preserve n8n execution/Wait data and configure error notifications before production use.\n\n[Queue documentation](https://github.com/ringee-io/n8n-nodes-ringee/blob/main/docs/queue-and-capacity.md)",
        "height": 360,
        "width": 590,
        "color": 5
      },
      "id": "e5cb1a17-c4da-4f84-bb2d-6f466a208cff",
      "name": "Queued operations can end without an event",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-380, 840]
    }
  ],
  "connections": {
    "Every 15 minutes": {
      "main": [
        [
          {
            "node": "Meetings in about an hour",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Meetings in about an hour": {
      "main": [
        [
          {
            "node": "Starts in about an hour?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare reminder": {
      "main": [
        [
          {
            "node": "Has a phone number?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has a phone number?": {
      "main": [
        [
          {
            "node": "Start reminder call",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Skipped: no phone in the event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reminder call ended": {
      "main": [
        [
          {
            "node": "Wait for the AI analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for the AI analysis": {
      "main": [
        [
          {
            "node": "Get call result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get call result": {
      "main": [
        [
          {
            "node": "Analysis ready?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 more minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analysis ready?": {
      "main": [
        [
          {
            "node": "What did they say?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 more minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 more minutes": {
      "main": [
        [
          {
            "node": "Get call result (second try)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get call result (second try)": {
      "main": [
        [
          {
            "node": "Ready now?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gave up: check the call in Ringee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ready now?": {
      "main": [
        [
          {
            "node": "What did they say?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Gave up: check the call in Ringee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "What did they say?": {
      "main": [
        [
          {
            "node": "Colour green: will attend",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Colour red: cannot attend",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Colour yellow: needs a person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start reminder call": {
      "main": [
        [
          {
            "node": "Was the operation queued?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Call not placed: see the error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Was the operation queued?": {
      "main": [
        [
          {
            "node": "Remember queued operation",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Remember queued operation": {
      "main": [
        [
          {
            "node": "Wait until queue deadline",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait until queue deadline": {
      "main": [
        [
          {
            "node": "Check queued call status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check queued call status": {
      "main": [
        [
          {
            "node": "Queue check: inspect attention items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Queue check: inspect attention items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Starts in about an hour?": {
      "main": [
        [
          {
            "node": "Prepare reminder",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Skipped: does not start in this window",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {
    "Reminder call ended": [
      {
        "json": {
          "event": "call.completed",
          "eventId": "evt_sample_0001",
          "occurredAt": "2026-11-24T15:01:12.000Z",
          "workspaceId": "org_sample",
          "integrationId": "ci_sample",
          "data": {
            "callId": "6f1c2d3e-0000-4000-8000-000000000001",
            "externalId": "reminder-sampleEventId123",
            "fromNumber": "+14155550100",
            "toNumber": "+14155550123",
            "status": "completed",
            "direction": "outbound",
            "durationSeconds": 72,
            "agent": {
              "id": "8b3e4f50-0000-4000-8000-000000000003",
              "name": "Sofia"
            },
            "call": {
              "callId": "6f1c2d3e-0000-4000-8000-000000000001",
              "fromNumber": "+14155550100",
              "toNumber": "+14155550123",
              "status": "completed",
              "direction": "outbound",
              "source": "ai_voice_agent",
              "startedAt": "2026-11-24T15:00:00.000Z",
              "endedAt": "2026-11-24T15:01:12.000Z",
              "durationSeconds": 72,
              "contact": {
                "id": "c-sample",
                "phoneNumber": "+14155550123",
                "fullName": "Ada Lovelace"
              },
              "voiceAgentCall": {
                "id": "7a2d3e4f-0000-4000-8000-000000000002",
                "agent": {
                  "id": "8b3e4f50-0000-4000-8000-000000000003",
                  "name": "Sofia"
                },
                "status": "completed"
              }
            }
          }
        }
      }
    ]
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2ee43984-10ba-5199-8138-34024729247f",
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "ringee-n8n-template"
  },
  "tags": []
}
