{
  "name": "Follow up on missed meetings with an AI voice call and HubSpot",
  "nodes": [
    {
      "parameters": {
        "content": "## Missed meeting follow-up\nWhen a prospect does not show up, an AI voice agent phones them within minutes, apologises, and offers a new time. If a new meeting is booked, HubSpot is updated.\n\n**What starts it:** a webhook. Ringee has no “no-show” event, so send one from your scheduling tool (Calendly, Cal.com, Zoom, your CRM) with this JSON:\n`{ \"name\": \"Ada Lovelace\", \"phone\": \"+14155550123\", \"email\": \"ada@example.com\", \"meeting\": \"Product demo\", \"meetingId\": \"mtg_123\" }`\n\n*Depends on a no-show signal from another tool.* [Ringee](https://ringee.io) · [Docs](https://docs.ringee.io)",
        "height": 320,
        "width": 500,
        "color": 4
      },
      "id": "bc5bb8be-0415-5908-a06d-adc1598c4114",
      "name": "About this workflow",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-260, -360]
    },
    {
      "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 *Meeting Created*.\n\nUse an **Appointment Booking** agent: it can offer slots from your Ringee calendar and book the new meeting itself. Connect **HubSpot** on the three HubSpot nodes. The meeting is logged on the contact with the attendee's email when Ringee has it, otherwise their phone, and only when exactly one HubSpot contact matches.\n\n**Protect the webhook.** The *Meeting was missed* node starts a paid call for whatever number it receives, so it requires authentication and will not activate until you choose a credential. In n8n create a **Header Auth** credential (any header name, for example `X-Webhook-Secret`, and a long random value), select it on that node, and make your scheduling tool send the same header. Never share the URL without it. A request without `meetingId` and `phone` is refused with a 400 and places no call.",
        "height": 560,
        "width": 500,
        "color": 5
      },
      "id": "cd7906c0-3055-598e-a803-bdd359498f70",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-260, 0]
    },
    {
      "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": "e0f47a00-68ab-5efa-a90b-c1d01b90e3a0",
      "name": "Consent",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [270, -360]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "ringee-missed-meeting",
        "responseMode": "responseNode",
        "options": {},
        "authentication": "headerAuth"
      },
      "id": "292643aa-2393-5858-a003-c912f6541a41",
      "name": "Meeting was missed",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.2,
      "position": [270, -100],
      "webhookId": "ec2cc406-7e66-521a-b41c-2da5cdb3eea5"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "91fad4f7-fff0-5cb2-bff1-9e30c0b42c64",
              "leftValue": "={{ String($json.body?.meetingId ?? '').trim() }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            },
            {
              "id": "1869dd65-a869-5710-a76a-3b6de0e2f888",
              "leftValue": "={{ String($json.body?.phone ?? '').trim() }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "2916c0ff-d9cd-545e-a720-919bd16961c1",
      "name": "Has a meeting ID and a phone?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [510, -100]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "{\n  \"received\": true\n}",
        "options": {
          "responseCode": 202
        }
      },
      "id": "b9565fa5-dc31-5365-9cf4-f87b7dd59146",
      "name": "Accepted",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.5,
      "position": [750, -180]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "{\n  \"received\": false,\n  \"error\": \"meetingId and phone are required\"\n}",
        "options": {
          "responseCode": 400
        }
      },
      "id": "29ea3be3-bfcc-54dd-97ff-155b3cb80184",
      "name": "Refused: meetingId and phone are required",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.5,
      "position": [750, -20]
    },
    {
      "parameters": {
        "amount": 10,
        "unit": "minutes"
      },
      "id": "3b5df867-1836-5d54-98b0-416320bacf9d",
      "name": "Wait 10 minutes",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [990, -180],
      "webhookId": "0eb6b1c8-da51-53c9-ae4f-7f81aa9098bf"
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "startCall",
        "agentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "phoneNumber": "={{ $json.body.phone }}",
        "variables": {
          "mappingMode": "defineBelow",
          "value": {
            "first_name": "={{ String($json.body.name || '').split(' ')[0] }}",
            "last_name": "={{ String($json.body.name || '').split(' ').slice(1).join(' ') }}",
            "email": "={{ $json.body.email || \"\" }}",
            "reason": "={{ \"You missed \" + $json.body.meeting + \". Offer to book a new time.\" }}"
          },
          "matchingColumns": [],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {
          "externalId": "={{ 'noshow-' + $json.body.meetingId }}",
          "idempotencyKey": "={{ 'noshow-' + $json.body.meetingId }}"
        }
      },
      "id": "cff63be6-2db3-5956-ac86-3825f118f9c6",
      "name": "Offer a new time by phone",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [1230, -180]
    },
    {
      "parameters": {
        "events": ["meeting.created"],
        "options": {
          "onlyAiAgentCalls": true,
          "externalIdPrefix": "noshow-"
        }
      },
      "id": "6ec40a9f-8fe1-5e90-ba17-2adb44ed3cda",
      "name": "New meeting booked",
      "type": "n8n-nodes-ringee.ringeeTrigger",
      "typeVersion": 1,
      "position": [270, 240],
      "webhookId": "cc7271f8-0e7a-5ff1-b906-7f6444cb6fed"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "5948d972-db6a-500c-aef5-c59517331ab2",
              "leftValue": "={{ String($json.data.contact?.email || $json.data.call?.contact?.email || '').trim() }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "94984836-162b-5ae2-9fdc-1f3bb5f8ddff",
      "name": "Ringee has their email?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [510, 240]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "resource": "contact",
        "operation": "search",
        "returnAll": false,
        "limit": 2,
        "filterGroupsUi": {
          "filterGroupsValues": [
            {
              "filtersUi": {
                "filterValues": [
                  {
                    "propertyName": "email|string",
                    "operator": "EQ",
                    "value": "={{ $json.data.contact?.email || $json.data.call?.contact?.email }}"
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "id": "069f60db-be3a-5286-9ca1-f251f2aba3f9",
      "name": "Find the contact by email",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.3,
      "position": [750, 160]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "resource": "contact",
        "operation": "search",
        "returnAll": false,
        "limit": 2,
        "filterGroupsUi": {
          "filterGroupsValues": [
            {
              "filtersUi": {
                "filterValues": [
                  {
                    "propertyName": "phone|string",
                    "operator": "EQ",
                    "value": "={{ $json.data.contact?.phoneNumber || $json.data.call?.contact?.phoneNumber || $json.data.toNumber }}"
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {}
      },
      "id": "19a7c9b2-b422-54e1-95df-730b0e019c0a",
      "name": "Find the contact by phone",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.3,
      "position": [750, 320]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "dc8daf40-2a01-5cc4-9045-31a01b72733a",
              "leftValue": "={{ $input.all().length }}",
              "rightValue": 1,
              "operator": {
                "type": "number",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "6756423a-7156-571b-94a4-5989e6c09c48",
      "name": "Exactly one contact?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [990, 240]
    },
    {
      "parameters": {},
      "id": "e2c9a1ef-bea9-57b9-b1af-bef88b51fc49",
      "name": "No single contact matched: log it by hand",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [1230, 320]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "resource": "engagement",
        "operation": "create",
        "type": "meeting",
        "metadata": {
          "body": "={{ 'Rescheduled by Ringee AI voice agent: ' + ($('New meeting booked').item.json.data.title || 'meeting') }}",
          "startTime": "={{ $('New meeting booked').item.json.data.scheduledAt }}"
        },
        "additionalFields": {
          "associations": {
            "contactIds": "={{ $json.id }}"
          }
        }
      },
      "id": "f30f52dc-9d68-5796-bad5-5cc3d0b499e2",
      "name": "Log the new meeting in HubSpot",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.3,
      "position": [1230, 160]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "36bb9fbe-fb8a-4edd-a899-a7a418507710",
              "leftValue": "={{ $json.status }}",
              "rightValue": "queued",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a0b6955a-6bc7-40d5-9a87-074db514fb24",
      "name": "Was the operation queued?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [260, 600]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "8f6c6cbd-b258-4244-98c8-4376deccf4e8",
              "name": "call_id",
              "value": "={{ $json.call_id }}",
              "type": "string"
            },
            {
              "id": "4448ae62-482e-46b5-9b7f-eeadc6f848f4",
              "name": "expires_at",
              "value": "={{ $json.expires_at || '' }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a226eba9-22e4-4c91-9c1a-7b396b723413",
      "name": "Remember queued operation",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [480, 600]
    },
    {
      "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": "2a603ae3-6da7-4338-bc72-1252d703ff77",
      "name": "Wait until queue deadline",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [700, 600],
      "webhookId": "a9a2c666-b99e-4867-ae28-cf5aaa125268"
    },
    {
      "parameters": {
        "resource": "aiAgent",
        "operation": "getCallStatus",
        "callId": "={{ $json.call_id }}"
      },
      "id": "eccbcb78-271a-46b5-ab6e-9074b3b179af",
      "name": "Check queued call status",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [920, 600],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "f06cdf2e-3946-48bf-b508-1719b8f6902f",
              "name": "call_id",
              "value": "={{ $json.call_id || $('Remember queued operation').item.json.call_id }}",
              "type": "string"
            },
            {
              "id": "52cf80cc-f5a8-4486-ac7d-aaa3afeac95a",
              "name": "expires_at",
              "value": "={{ $('Remember queued operation').item.json.expires_at }}",
              "type": "string"
            },
            {
              "id": "a18ffa6c-f630-4141-a9ea-dedbc604caa2",
              "name": "status",
              "value": "={{ $json.status || 'unresolved' }}",
              "type": "string"
            },
            {
              "id": "81e7d201-4242-4c41-93b6-f76656854b72",
              "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": "0d9a8903-011e-40e9-929c-dc46d6bd98d6",
              "name": "needs_attention",
              "value": "={{ !['completed', 'no_answer', 'busy', 'voicemail'].includes($json.status) }}",
              "type": "boolean"
            }
          ]
        },
        "options": {}
      },
      "id": "a263e22e-0130-4c39-9524-7d7e076be157",
      "name": "Queue check: inspect attention items",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [1140, 600]
    },
    {
      "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": "244c6dda-8146-4b1d-a097-2020d3e76569",
      "name": "Queued operations can end without an event",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-380, 600]
    }
  ],
  "connections": {
    "Meeting was missed": {
      "main": [
        [
          {
            "node": "Has a meeting ID and a phone?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 10 minutes": {
      "main": [
        [
          {
            "node": "Offer a new time by phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New meeting booked": {
      "main": [
        [
          {
            "node": "Ringee has their email?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Offer a new time by phone": {
      "main": [
        [
          {
            "node": "Was the operation queued?",
            "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
          }
        ]
      ]
    },
    "Has a meeting ID and a phone?": {
      "main": [
        [
          {
            "node": "Accepted",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Refused: meetingId and phone are required",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accepted": {
      "main": [
        [
          {
            "node": "Wait 10 minutes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find the contact by phone": {
      "main": [
        [
          {
            "node": "Exactly one contact?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ringee has their email?": {
      "main": [
        [
          {
            "node": "Find the contact by email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Find the contact by phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find the contact by email": {
      "main": [
        [
          {
            "node": "Exactly one contact?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Exactly one contact?": {
      "main": [
        [
          {
            "node": "Log the new meeting in HubSpot",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No single contact matched: log it by hand",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {
    "New meeting booked": [
      {
        "json": {
          "event": "meeting.created",
          "eventId": "evt_sample_0002",
          "occurredAt": "2026-11-24T15:03:00.000Z",
          "workspaceId": "org_sample",
          "integrationId": "ci_sample",
          "data": {
            "meetingId": "m_sample",
            "scheduledAt": "2026-11-27T16:00:00.000Z",
            "status": "scheduled",
            "title": "Product demo (rescheduled)",
            "duration": 30,
            "externalId": "noshow-mtg_123",
            "toNumber": "+14155550123",
            "agent": {
              "id": "8b3e4f50-0000-4000-8000-000000000003",
              "name": "Sofia"
            },
            "call": {
              "toNumber": "+14155550123",
              "contact": {
                "phoneNumber": "+14155550123",
                "fullName": "Ada Lovelace"
              }
            },
            "contact": {
              "phoneNumber": "+14155550123",
              "fullName": "Ada Lovelace",
              "email": "ada@example.com"
            }
          }
        }
      }
    ]
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a2f36194-e264-54ba-9d22-f5e831299085",
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "ringee-n8n-template"
  },
  "tags": []
}
