{
  "name": "Connect your Ringee AI receptionist to Slack and HubSpot",
  "nodes": [
    {
      "parameters": {
        "errorMessage": "A service step failed. Inspect the failed execution and the source record. Reconcile any accepted Ringee call before retrying; never change its call key to bypass an ambiguous failure."
      },
      "id": "9bbacf90-92f9-4804-81fd-0bbe2d07d53e",
      "name": "Failure requires reconciliation",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        2300,
        1700
      ]
    },
    {
      "parameters": {
        "content": "### How it works\nThe receptionist already running in Ringee answers the phone. n8n verifies a signed completion event, confirms inbound AI direction, retrieves delayed analysis and upserts the CRM contact when an email exists. Slack receives the call reference and outcome, with review required for incomplete analysis.\n\nThis template is for Reception teams, local services, clinics and client-facing agencies. A team handoff backed by the actual receptionist conversation. Ringee runs the voice conversation; n8n manages the surrounding records and decisions.\n\n### Setup\nInstall the verified **n8n-nodes-ringee 0.1.2** package. Create a Ringee account and a workspace Custom Integration, then select its API key in an n8n credential. Connect Ringee Trigger, HubSpot, Google Sheets, Slack and select every blank destination. Signed triggers also need the Signing Secret and the integration Outbound URL. Import into a new inactive workflow and test dedicated demonstration records before activation.\n\n### Customization\nKeep the bounded analysis waits and explicit pending states. Read the companion setup guide for column names, field mappings and limitations. [Create your Ringee account](https://ringee.io/integrations/n8n?utm_source=n8n&utm_medium=template&utm_campaign=ringee_workflows&utm_content=08-ai-receptionist-handoff).",
        "width": 570,
        "height": 700,
        "color": 1
      },
      "id": "3d8568f2-46f7-4cd5-8174-f3d5f93fe010",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -600,
        -320
      ]
    },
    {
      "parameters": {
        "content": "## Configure the source\nSelect credentials and destinations. Calling workflows require trusted permission evidence and an IANA timezone for each recipient.",
        "width": 740,
        "height": 400,
        "color": 7
      },
      "id": "808d7755-e520-48f1-863a-fe582155f271",
      "name": "1. Configure and admit records",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        80
      ]
    },
    {
      "parameters": {
        "content": "## Wait for real results\nCompletion and analysis are separate. Two bounded reads preserve pending or missing-analysis states. Failures require inspection; a result read never starts a call.",
        "width": 2120,
        "height": 470,
        "color": 7
      },
      "id": "51a5aabc-a934-4b2a-845a-0c1cf3f68e39",
      "name": "3. Reconcile the result",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        740,
        80
      ]
    },
    {
      "parameters": {
        "content": "## Update the destination\nSelect the private result sheet and team channel. Results retain the existing call ID. This branch does not create CRM tasks.",
        "width": 2050,
        "height": 470,
        "color": 7
      },
      "id": "e1d8e019-44b2-4ea4-87dd-10435f8f66f9",
      "name": "4. Deliver the business outcome",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        2900,
        80
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "be6d4cbc-6e9c-46a7-8cd6-8b1269fa31a7",
              "name": "sendTranscriptsToCrm",
              "value": false,
              "type": "boolean"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "a25ed9fa-69d2-49dd-8063-3eee5ddb3c3e",
      "name": "Configuration",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {},
      "id": "148261e9-940b-4184-8aa2-be3692d99dc8",
      "name": "Held for manual review",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1800,
        700
      ]
    },
    {
      "parameters": {
        "events": [
          "call.completed"
        ],
        "options": {
          "onlyAiAgentCalls": false
        }
      },
      "id": "cdcf67a2-da8a-4a25-829f-dbb2a7f01d3d",
      "name": "Completed conversation",
      "type": "n8n-nodes-ringee.ringeeTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "webhookId": "5cd138c8-7692-4d07-8f00-515a5cb3d4c4"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "21dde606-e91e-4ec3-8c42-6c2db3b86e76",
              "leftValue": "={{ Boolean($('Completed conversation').item.json.data?.callId) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "aaa73c86-aca2-4baa-8ee8-5c1ce0ca5de2",
      "name": "Has a supported call reference?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        520,
        300
      ]
    },
    {
      "parameters": {
        "amount": 2,
        "unit": "minutes"
      },
      "id": "37d09870-0069-4fd5-8056-f2888786f9f1",
      "name": "Allow analysis to arrive",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        780,
        300
      ],
      "webhookId": "cfbfaea1-d218-4559-82b0-9715ba95396c"
    },
    {
      "parameters": {
        "resource": "call",
        "operation": "get",
        "callId": "={{ $('Completed conversation').item.json.data.callId }}",
        "simplify": false
      },
      "id": "360a3cda-2f3b-43e5-826b-b070ce0d0dd6",
      "name": "Read completed call detail",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [
        1020,
        300
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "57ac3c1e-0134-430f-8196-381c43185f8b",
              "leftValue": "={{ Boolean($json.voiceAgentCall?.outcome && $json.voiceAgentCall?.summary) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "414b2df5-1fe7-4fbe-8f04-71e6d3352fee",
      "name": "Analysis available?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1260,
        300
      ]
    },
    {
      "parameters": {
        "amount": 5,
        "unit": "minutes"
      },
      "id": "4949b901-12eb-4d80-8592-6286a6c92abf",
      "name": "One final analysis wait",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1260,
        680
      ],
      "webhookId": "f02c72a8-7453-44b7-8723-64629dea942d"
    },
    {
      "parameters": {
        "resource": "call",
        "operation": "get",
        "callId": "={{ $('Completed conversation').item.json.data.callId }}",
        "simplify": false
      },
      "id": "a48b305f-bfb0-4324-80a0-304dc683e57d",
      "name": "Read completed call detail again",
      "type": "n8n-nodes-ringee.ringee",
      "typeVersion": 1,
      "position": [
        1500,
        680
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "function shapeCallDetail(call, event, mode) {\n\tconst ai = call.voiceAgentCall ?? {};\n\tconst ready = Boolean(ai.outcome && ai.summary);\n\tconst contact = call.contact ?? {};\n\treturn {\n\t\tcallId: call.callId ?? event.data?.callId ?? '',\n\t\teventId: event.eventId ?? '',\n\t\temail: contact.email ?? '',\n\t\tname: contact.fullName ?? '',\n\t\tphone: contact.phoneNumber ?? '',\n\t\tdirection: call.direction ?? '',\n\t\tisAi: Boolean(ai.id || call.source === 'ai_voice_agent'),\n\t\tstatus: call.status ?? ai.status ?? 'unresolved',\n\t\tready,\n\t\toutcome: ai.outcome ?? call.outcome ?? '',\n\t\tsummary: ai.summary ?? '',\n\t\tsentiment: ai.sentiment ?? '',\n\t\ttranscript: call.transcription?.text ?? '',\n\t\ttranscriptReady: Boolean(call.transcription?.text),\n\t\textractedData: ai.extractedData ?? {},\n\t\tneedsFollowUp: !ready || ['callback_requested', 'callback_scheduled'].includes(ai.outcome),\n\t\tnotification:\n\t\t\t'Ringee ' +\n\t\t\tmode +\n\t\t\t': ' +\n\t\t\t(ready ? 'conversation ready' : 'analysis pending; review in Ringee') +\n\t\t\t'. Call ' +\n\t\t\tString(call.callId ?? '') +\n\t\t\t'. Outcome: ' +\n\t\t\tString(ai.outcome ?? call.outcome ?? 'not available') +\n\t\t\t'.',\n\t};\n}\nreturn $input.all().map((item,index)=>({json:shapeCallDetail(item.json,$('Completed conversation').item.json,\"receptionist\"),pairedItem:{item:index}}));"
      },
      "id": "d2e82384-eb40-490b-8212-2f222c7af5c6",
      "name": "Conversation record",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1760,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "959abd9d-a6d4-4717-8503-d0ecf54b597f",
              "leftValue": "={{ $json.direction === 'inbound' && $json.isAi === true }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "eaa6df82-02fe-431f-8b0e-ff31a7ccde09",
      "name": "Conversation belongs to this use case?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        2000,
        300
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const row=$('Business result').item.json; const key=row.call_id+':'+(row.ready?'ready':'pending'); const cache=$getWorkflowStaticData('global').ringeeConfirmedNotifications ?? {}; return cache[key] ? [] : $input.all();"
      },
      "id": "2edc9567-b31d-492b-8e93-fa8473216d36",
      "name": "Notify each conversation state once",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        4460,
        300
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "return $input.all().map((item,index)=>({json:{...item.json,call_id:item.json.callId,recordId:item.json.callId,sourceRecordId:item.json.callId,status:item.json.status,route:item.json.ready?'conversation_ready':'analysis_pending',needsAttention:item.json.needsFollowUp},pairedItem:{item:index}}));"
      },
      "id": "2ab060f0-3a47-4920-8a30-026774b11394",
      "name": "Business result",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2480,
        300
      ]
    },
    {
      "parameters": {
        "resource": "sheet",
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "sheetName": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "options": {
          "cellFormat": "RAW",
          "useAppend": true
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "recordId": "={{ $('Business result').item.json.call_id + ':' + ($('Business result').item.json.ready ? 'ready' : 'pending') }}",
            "call_id": "={{ $('Business result').item.json.call_id }}",
            "status": "={{ $('Business result').item.json.status }}",
            "outcome": "={{ $('Business result').item.json.outcome }}",
            "summary": "={{ $('Business result').item.json.summary }}",
            "sentiment": "={{ $('Business result').item.json.sentiment }}",
            "route": "={{ $('Business result').item.json.route }}",
            "attemptCount": 1,
            "sourceRecordId": "={{ $('Business result').item.json.call_id }}"
          },
          "matchingColumns": [
            "recordId"
          ],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "id": "0002d6e8-0110-4414-8fac-61f4afcadc41",
      "name": "Save actual call result",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2720,
        300
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "a9e45739-7151-4ed2-8ba9-6c3ef4ac9d65",
              "leftValue": "={{ Boolean($('Business result').item.json.email && /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test($('Business result').item.json.email)) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "c62bdda3-f8dd-4698-816d-6093c7159dba",
      "name": "Has a CRM email?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        3000,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "resource": "contact",
        "operation": "upsert",
        "email": "={{ $('Business result').item.json.email }}",
        "additionalFields": {
          "customPropertiesUi": {
            "customPropertiesValues": [
              {
                "property": "ringee_last_call_id",
                "value": "={{ $('Business result').item.json.call_id }}"
              },
              {
                "property": "ringee_last_outcome",
                "value": "={{ $('Business result').item.json.outcome }}"
              },
              {
                "property": "ringee_last_summary",
                "value": "={{ $('Business result').item.json.summary }}"
              },
              {
                "property": "ringee_last_route",
                "value": "={{ $('Business result').item.json.route }}"
              }
            ]
          }
        }
      },
      "id": "48409793-8e63-4ef2-8d9a-62166727e599",
      "name": "Update HubSpot call properties",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.3,
      "position": [
        3240,
        180
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {},
      "id": "34d25303-3786-4566-895e-128ee94228c1",
      "name": "CRM result handled",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        3480,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "text": "={{ $('Business result').item.json.notification }}",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "id": "4e1f26b0-1ed4-446b-8323-9f910cfac1cd",
      "name": "Notify the receiving team",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.7,
      "position": [
        4700,
        300
      ],
      "onError": "continueErrorOutput"
    },
    {
      "id": "5940ec2a-6fde-492f-80b1-f9c3760c205c",
      "name": "Remember accepted Slack notification",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        520,
        2200
      ],
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const row=$('Business result').item.json; const key=row.call_id+':'+(row.ready?'ready':'pending'); const sent=$getWorkflowStaticData('global'); const cache=sent.ringeeConfirmedNotifications ??= {}; cache[key]=true; const keys=Object.keys(cache); for(const k of keys.slice(0,Math.max(0,keys.length-10000))) delete cache[k]; return $input.all();"
      }
    }
  ],
  "connections": {
    "Completed conversation": {
      "main": [
        [
          {
            "node": "Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configuration": {
      "main": [
        [
          {
            "node": "Has a supported call reference?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has a supported call reference?": {
      "main": [
        [
          {
            "node": "Allow analysis to arrive",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Held for manual review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read completed call detail": {
      "main": [
        [
          {
            "node": "Analysis available?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Allow analysis to arrive": {
      "main": [
        [
          {
            "node": "Read completed call detail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analysis available?": {
      "main": [
        [
          {
            "node": "Conversation record",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "One final analysis wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read completed call detail again": {
      "main": [
        [
          {
            "node": "Conversation record",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "One final analysis wait": {
      "main": [
        [
          {
            "node": "Read completed call detail again",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conversation record": {
      "main": [
        [
          {
            "node": "Conversation belongs to this use case?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Conversation belongs to this use case?": {
      "main": [
        [
          {
            "node": "Business result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Held for manual review",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save actual call result": {
      "main": [
        [
          {
            "node": "Has a CRM email?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Business result": {
      "main": [
        [
          {
            "node": "Save actual call result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has a CRM email?": {
      "main": [
        [
          {
            "node": "Update HubSpot call properties",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "CRM result handled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update HubSpot call properties": {
      "main": [
        [
          {
            "node": "CRM result handled",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CRM result handled": {
      "main": [
        [
          {
            "node": "Notify each conversation state once",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify the receiving team": {
      "main": [
        [
          {
            "node": "Remember accepted Slack notification",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify each conversation state once": {
      "main": [
        [
          {
            "node": "Notify the receiving team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "executionTimeout": 3600
  },
  "pinData": {},
  "tags": []
}
