{
  "name": "Summarize Ringee phone calls and update HubSpot automatically",
  "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": "420bfd16-beae-41bf-8bee-647703812492",
      "name": "Failure requires reconciliation",
      "type": "n8n-nodes-base.stopAndError",
      "typeVersion": 1,
      "position": [
        2300,
        1700
      ]
    },
    {
      "parameters": {
        "content": "### How it works\nSigned completion or recording events initiate bounded call-detail reads. The workflow waits for AI analysis, labels missing transcripts, writes a record keyed by call ID and updates HubSpot only for an existing caller email. Callback outcomes create a task.\n\nThis template is for Sales operations, account managers and CRM automation agencies. Call context in the CRM and a visible queue for conversations that still need review. 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=07-call-summary-to-crm).",
        "width": 570,
        "height": 700,
        "color": 1
      },
      "id": "9e5262b1-2083-4579-8acc-d57ecd370864",
      "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": "429f873f-fbd7-46df-8365-d590110200d4",
      "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": "072f444d-1223-4643-8cf1-ad98f89234cd",
      "name": "3. Reconcile the result",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        740,
        80
      ]
    },
    {
      "parameters": {
        "content": "## Update the destination\nConfigure the private results sheet and team channel. Review CRM snapshot ordering and task ownership before activation. Do not include sensitive transcripts in Slack.",
        "width": 2050,
        "height": 470,
        "color": 7
      },
      "id": "22a7998d-bc09-4954-8437-1a7565d13d6e",
      "name": "4. Deliver the business outcome",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        2900,
        80
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b3274f73-e6fc-40f6-8003-80f80ab8e95a",
              "name": "sendTranscriptsToCrm",
              "value": false,
              "type": "boolean"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "cce88c57-26b3-4480-8232-ec7e97cec475",
      "name": "Configuration",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.5,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {},
      "id": "30414ff5-195d-4058-8f76-8959cf18dcf4",
      "name": "Held for manual review",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        1800,
        700
      ]
    },
    {
      "parameters": {
        "events": [
          "call.completed",
          "recording.ready"
        ],
        "options": {}
      },
      "id": "bb05c4ac-2855-4cf2-8284-5af9747fed63",
      "name": "Completed conversation",
      "type": "n8n-nodes-ringee.ringeeTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "webhookId": "9969b7dc-bc5d-4041-836c-44743ad4b1e9"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "b287b044-456c-447b-878a-6132eb89f1f6",
              "leftValue": "={{ Boolean($('Completed conversation').item.json.data?.callId) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "f8b881e3-659f-4f24-8478-b8cf454a28ea",
      "name": "Has a supported call reference?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        520,
        300
      ]
    },
    {
      "parameters": {
        "amount": 2,
        "unit": "minutes"
      },
      "id": "996f1c7a-f2f1-4e34-81c0-5dc9eeae6a32",
      "name": "Allow analysis to arrive",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        780,
        300
      ],
      "webhookId": "5f6632b3-af92-4a40-8f99-9308b531d78a"
    },
    {
      "parameters": {
        "resource": "call",
        "operation": "get",
        "callId": "={{ $('Completed conversation').item.json.data.callId }}",
        "simplify": false
      },
      "id": "5ff49d53-b80e-4e62-8cfd-c698c3371ace",
      "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": "2337c708-96ef-4367-85e0-0d5ba15e3a62",
              "leftValue": "={{ Boolean($json.voiceAgentCall?.outcome && $json.voiceAgentCall?.summary) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "400e9280-c3ea-4295-8240-9b98931ac534",
      "name": "Analysis available?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1260,
        300
      ]
    },
    {
      "parameters": {
        "amount": 5,
        "unit": "minutes"
      },
      "id": "16c8c40f-b977-4a0d-803f-67825371440b",
      "name": "One final analysis wait",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1260,
        680
      ],
      "webhookId": "b719f06c-8ca1-43db-8793-bb78fd774c4e"
    },
    {
      "parameters": {
        "resource": "call",
        "operation": "get",
        "callId": "={{ $('Completed conversation').item.json.data.callId }}",
        "simplify": false
      },
      "id": "b1bbc4de-3101-47b8-81c5-318924c9441d",
      "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,\"summary\"),pairedItem:{item:index}}));"
      },
      "id": "7a1c4596-2dcf-4ced-8aa6-25c779dded25",
      "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": "3bb0e197-f77a-4ead-8a98-d5dd04a46fe3",
              "leftValue": "={{ Boolean($json.callId) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "3c61c19b-b0e8-4d23-82dd-7e142b8ec103",
      "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": "31697aea-14d3-4bc6-8ea6-707816fde54a",
      "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": "32330f75-57ee-4622-8268-e12e044ae441",
      "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": "c63a4679-9df0-4d5e-804a-394c6871bea8",
      "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": "0b6acd84-154d-4e97-8d5a-d2360874089a",
              "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": "23ff1b01-d6fe-49e0-8df1-52fa5601eacb",
      "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": "c551ac70-7802-4055-8d96-8d9c727ed8e8",
      "name": "Update HubSpot call properties",
      "type": "n8n-nodes-base.hubspot",
      "typeVersion": 2.3,
      "position": [
        3240,
        180
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {},
      "id": "8a89ee3a-0f06-46f1-8d6e-838b9a447ef4",
      "name": "CRM result handled",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        3480,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "9266100e-5a29-4023-823b-02b291954c84",
              "leftValue": "={{ Boolean($('Business result').item.json.needsAttention || $('Business result').item.json.needsFollowUp) }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "9242bf7d-377a-4504-8481-79c91ca008cc",
      "name": "Needs a follow-up task?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        3720,
        300
      ]
    },
    {
      "parameters": {
        "resource": "sheet",
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "sheetName": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "options": {
          "cellFormat": "RAW"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "taskId": "={{ $('Business result').item.json.call_id }}",
            "recordId": "={{ $('Business result').item.json.recordId }}",
            "reason": "={{ $('Business result').item.json.route }}",
            "call_id": "={{ $('Business result').item.json.call_id }}"
          },
          "matchingColumns": [
            "taskId"
          ],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "id": "4b64b3d3-4535-4e00-8ca8-303929ff8d37",
      "name": "Upsert follow-up task",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3960,
        180
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {},
      "id": "6fb9ca41-93e8-480b-8ea6-fb0826813fa4",
      "name": "Follow-up routing handled",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        4200,
        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": "c4336982-0049-459c-88b5-ee5df516c37b",
      "name": "Notify the receiving team",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.7,
      "position": [
        4700,
        300
      ],
      "onError": "continueErrorOutput"
    },
    {
      "id": "aa8c5129-e16f-47cb-8411-07591706024e",
      "name": "Read existing follow-up task",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        520,
        2200
      ],
      "parameters": {
        "resource": "sheet",
        "operation": "read",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "sheetName": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "options": {},
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "taskId",
              "lookupValue": "={{ $('Business result').item.json.call_id }}"
            }
          ]
        }
      },
      "alwaysOutputData": true,
      "onError": "continueErrorOutput"
    },
    {
      "id": "58d93aae-e172-47ab-87a1-f9ea8a549738",
      "name": "Keep existing task or create",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        920,
        2200
      ],
      "parameters": {
        "mode": "runOnceForAllItems",
        "jsCode": "const rows=$input.all().filter(item=>item.json.taskId); if(rows.length>1) throw new Error('The follow-up task key is ambiguous. Reconcile the task sheet.'); return [{json:{existingTask:rows.length===1}}];"
      }
    },
    {
      "id": "a4f08ac3-7b75-4899-859b-b554d15986d1",
      "name": "Follow-up task already exists?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1320,
        2200
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "0b6acd84-154d-4e97-8d5a-d2360874089a",
              "leftValue": "={{ $json.existingTask === true }}",
              "rightValue": "",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      }
    },
    {
      "id": "aa7aff72-3c3a-4ea0-8c61-2646ffd66c83",
      "name": "Create new follow-up task",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1720,
        2200
      ],
      "parameters": {
        "resource": "sheet",
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "sheetName": {
          "__rl": true,
          "value": "",
          "mode": "list"
        },
        "options": {
          "cellFormat": "RAW",
          "useAppend": true
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "taskId": "={{ $('Business result').item.json.call_id }}",
            "recordId": "={{ $('Business result').item.json.recordId }}",
            "status": "open",
            "dueAt": "={{ $now.plus({days:1}).toISO() }}",
            "reason": "={{ $('Business result').item.json.route }}",
            "call_id": "={{ $('Business result').item.json.call_id }}"
          },
          "matchingColumns": [],
          "schema": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "onError": "continueErrorOutput"
    },
    {
      "id": "e9a1588a-0f82-450b-85ee-aa258361b219",
      "name": "Remember accepted Slack notification",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2120,
        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": "Needs a follow-up task?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upsert follow-up task": {
      "main": [
        [
          {
            "node": "Follow-up routing handled",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Needs a follow-up task?": {
      "main": [
        [
          {
            "node": "Read existing follow-up task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Follow-up routing handled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow-up routing 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
          }
        ]
      ]
    },
    "Read existing follow-up task": {
      "main": [
        [
          {
            "node": "Keep existing task or create",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keep existing task or create": {
      "main": [
        [
          {
            "node": "Follow-up task already exists?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Follow-up task already exists?": {
      "main": [
        [
          {
            "node": "Upsert follow-up task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create new follow-up task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create new follow-up task": {
      "main": [
        [
          {
            "node": "Follow-up routing handled",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Failure requires reconciliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "executionTimeout": 3600
  },
  "pinData": {},
  "tags": []
}
