{
  "name": "CallForge - 02 - prep Gong calls with sheets & notion for AI summarization",
  "nodes": [
    {
      "id": "25fb4302-853a-421d-8e4f-4a18d723c4a0",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -860,
        380
      ]
    },
    {
      "id": "acb8e29a-75b8-4ccb-aca8-20d5a7053334",
      "name": "Gong",
      "type": "n8n-nodes-base.gong",
      "position": [
        -440,
        120
      ]
    },
    {
      "id": "930a7fc9-64a1-4966-be0d-c58132b735e5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -60
      ],
      "parameters": {
        "width": 1080,
        "height": 920,
        "content": "## Get Gong Calls and Supporting Data\nBesides the phone calls, integration and competitor data is extracted to supplement the AI prompt with accurate data to compare against mispronunciations. "
      }
    },
    {
      "id": "f21ae8cc-eed1-4d31-8b1f-cc731e3dc642",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -60
      ],
      "parameters": {
        "width": 880,
        "height": 920,
        "content": "## Remove Duplicates from Queue\nChecks notion for already processed calls and removes them from the processing queue ensuring data is not duplicated. "
      }
    },
    {
      "id": "d796312a-2a7f-429f-8550-d4af6d81a26d",
      "name": "Transcript Processor",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        2200,
        640
      ]
    },
    {
      "id": "b381f944-d865-450e-a24d-31d394a01b36",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1820,
        420
      ],
      "parameters": {
        "width": 700,
        "height": 440,
        "content": "## Generate Clean Transcript \nAllows for reduced prompting in the OpenAI node. "
      }
    },
    {
      "id": "7a87e6a0-0009-4776-bf2e-bea68702c808",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1820,
        -40
      ],
      "parameters": {
        "width": 700,
        "height": 440,
        "content": "## Pass Call Transcripts to Call Processor\nThe OpenAI node handles this process and outputs in structured JSON."
      }
    },
    {
      "id": "4c3b5280-c5e1-49d1-9651-e3fdd45978f7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1300,
        -60
      ],
      "parameters": {
        "width": 500,
        "height": 920,
        "content": "## Loop through all calls to get enrichment\nAllows for easier processing due to complexity "
      }
    },
    {
      "id": "ce942178-c93e-490a-9b4e-0798f8c5c742",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1080,
        -340
      ],
      "parameters": {
        "width": 360,
        "height": 1200,
        "content": "![Callforge](https://uploads.n8n.io/templates/callforgeshadow.png)\n## CallForge - The AI Gong Sales Call Processor\nCallForge allows you to extract important information for different departments from "
      }
    },
    {
      "id": "41f3d049-e25b-453a-bf98-501af7f177d0",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -860,
        580
      ]
    },
    {
      "id": "02265963-ab06-4bf5-8b0b-5299cd3330c9",
      "name": "Call Aggregator",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -100,
        120
      ]
    },
    {
      "id": "044e1b65-059c-4084-b85a-e10e6149be34",
      "name": "Integration Aggregator",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -240,
        380
      ]
    },
    {
      "id": "31df099f-45ec-4dff-b968-a90e7eaa67b5",
      "name": "Get Integrations",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -460,
        380
      ]
    },
    {
      "id": "42a8299e-d2e4-48a9-bba9-1c5e419d8c0c",
      "name": "Comma Separate Integrations",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        380
      ]
    },
    {
      "id": "4226f79a-8b28-46d7-8b3b-972ef41d9535",
      "name": "Comma separate competitors",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        580
      ]
    },
    {
      "id": "cce3fab9-63fb-49de-8e3f-4fb7956d0b80",
      "name": "Get list of Competitors",
      "type": "n8n-nodes-base.notion",
      "position": [
        -460,
        580
      ]
    },
    {
      "id": "05e82483-ed91-4733-a8a7-621d8cf6f3f1",
      "name": "Merge 3 objects into one",
      "type": "n8n-nodes-base.merge",
      "position": [
        260,
        380
      ]
    },
    {
      "id": "f01f839a-b0b5-4368-8cd3-3466f3cd44a4",
      "name": "Aggregate Call Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        560,
        240
      ]
    },
    {
      "id": "c89b9deb-7f52-4d0d-8cdf-ce1b2a1771d2",
      "name": "Split Out Call Data and Competitors",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        760,
        240
      ]
    },
    {
      "id": "c5c90fd2-03f4-425c-9a49-b26887705c6c",
      "name": "Reduce down to 1 object",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        480,
        580
      ]
    },
    {
      "id": "3835aeb8-589c-49b5-995a-2bf0bc0698a8",
      "name": "Get Previous Phone Calls",
      "type": "n8n-nodes-base.notion",
      "position": [
        700,
        580
      ]
    },
    {
      "id": "9b7d60bd-d08a-4529-aefb-c89f277fcd8f",
      "name": "Isolate Only Call IDs",
      "type": "n8n-nodes-base.set",
      "position": [
        900,
        580
      ]
    },
    {
      "id": "3eb7613c-2eaa-430a-9f67-5fc486b84ff0",
      "name": "Only Process New Calls",
      "type": "n8n-nodes-base.compareDatasets",
      "position": [
        1120,
        420
      ]
    },
    {
      "id": "5e69b2a1-eb6a-4bb4-a126-0605f60ff95b",
      "name": "Loop Over Calls",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1500,
        400
      ]
    },
    {
      "id": "6b170ccb-d492-4e7e-9aeb-13c769d36040",
      "name": "Process All Call Transcripts",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        2200,
        140
      ]
    },
    {
      "id": "3107c6d8-0c8c-4dad-bcbc-c897b0be45b9",
      "name": "Receive all Transcripts",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1920,
        140
      ]
    }
  ],
  "connections": {
    "Gong": {
      "main": [
        [
          {
            "node": "Call Aggregator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call Aggregator": {
      "main": [
        [
          {
            "node": "Merge 3 objects into one",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Calls": {
      "main": [
        [
          {
            "node": "Receive all Transcripts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Transcript Processor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Integrations": {
      "main": [
        [
          {
            "node": "Integration Aggregator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Call Data": {
      "main": [
        [
          {
            "node": "Split Out Call Data and Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcript Processor": {
      "main": [
        [
          {
            "node": "Loop Over Calls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Isolate Only Call IDs": {
      "main": [
        [
          {
            "node": "Only Process New Calls",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Integration Aggregator": {
      "main": [
        [
          {
            "node": "Comma Separate Integrations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only Process New Calls": {
      "main": [
        [
          {
            "node": "Loop Over Calls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get list of Competitors": {
      "main": [
        [
          {
            "node": "Comma separate competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive all Transcripts": {
      "main": [
        [
          {
            "node": "Process All Call Transcripts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reduce down to 1 object": {
      "main": [
        [
          {
            "node": "Get Previous Phone Calls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Gong",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get list of Competitors",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Integrations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Previous Phone Calls": {
      "main": [
        [
          {
            "node": "Isolate Only Call IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge 3 objects into one": {
      "main": [
        [
          {
            "node": "Aggregate Call Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reduce down to 1 object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comma separate competitors": {
      "main": [
        [
          {
            "node": "Merge 3 objects into one",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Comma Separate Integrations": {
      "main": [
        [
          {
            "node": "Merge 3 objects into one",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Gong",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Integrations",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get list of Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Call Data and Competitors": {
      "main": [
        [
          {
            "node": "Only Process New Calls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}