{
  "name": "CallForge - 03 - Gong transcript processor and Salesforce enricher",
  "nodes": [
    {
      "id": "e893e48c-1b69-413a-90d7-ad6ce5987e7c",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -180,
        -60
      ]
    },
    {
      "id": "1c42e95b-705d-43ae-91ce-1029334b9e9a",
      "name": "Retrieve detailed call data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        40
      ]
    },
    {
      "id": "69c9ef1a-9ef4-4c3f-ab62-a5c9b2a10a4e",
      "name": "Get transcript",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        -140
      ]
    },
    {
      "id": "a9643d2c-6245-4c40-92ee-49eb667e3348",
      "name": "Join Transcript to String",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        -140
      ]
    },
    {
      "id": "ce7cce2a-95b2-4d74-865d-d1af028e16de",
      "name": "Isolate Notion Data",
      "type": "n8n-nodes-base.set",
      "position": [
        2720,
        -100
      ]
    },
    {
      "id": "38574bd1-82f3-4499-9369-9241e41b35d1",
      "name": "Join Affiliation",
      "type": "n8n-nodes-base.code",
      "position": [
        740,
        -120
      ]
    },
    {
      "id": "15809205-cb1d-4d83-8c67-35ab486071b2",
      "name": "Join conversation",
      "type": "n8n-nodes-base.code",
      "position": [
        940,
        -120
      ]
    },
    {
      "id": "1ac9e862-ddf2-4cd5-9339-c69061182231",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -600,
        -500
      ],
      "parameters": {
        "width": 340,
        "height": 820,
        "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": "7d8f99e2-13c7-4bf2-becc-c7b5c663028d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -340
      ],
      "parameters": {
        "width": 720,
        "height": 660,
        "content": "## Get Gong Transcript and Call Details\nThe transcript is to pass into the AI prompt, but needs to be transformed first. The Call details provide the Prompt with metadata."
      }
    },
    {
      "id": "1454276d-46e6-40b2-9494-c9c380f3eaa1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -340
      ],
      "parameters": {
        "width": 580,
        "height": 660,
        "content": "## Format Call Transcript \nHere we join the call transcript together and then set the speaker as either Internal (for our sales team) or External (for our customers). "
      }
    },
    {
      "id": "d7fa6f56-8234-4995-b559-4809095efcb4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        -340
      ],
      "parameters": {
        "width": 1320,
        "height": 780,
        "content": "## Enrich Call Data\nHere we get the Pipedrive ID using the email domain and use that to search pipedrive for the customer. We also pass the domain into the People Data Labs api to get location data. "
      }
    },
    {
      "id": "b5274357-4e45-4d8b-938d-b3c66f98c82f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2440,
        -340
      ],
      "parameters": {
        "width": 480,
        "height": 660,
        "content": "## Extract Final Data Blob\nHere we merge the final outputs and get rid of anything we don't need for the final AI prompt. "
      }
    },
    {
      "id": "a940a941-f9e2-4449-895f-3268e2203a1e",
      "name": "Extract SF Opp Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        80
      ]
    },
    {
      "id": "0b2b5078-96b5-423c-82d1-278f013ecdff",
      "name": "Extract SF Opp Data1",
      "type": "n8n-nodes-base.set",
      "position": [
        1880,
        260
      ]
    },
    {
      "id": "fec915a1-10ea-4be6-a15f-cea0ae837633",
      "name": "Get Opp Data",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        1460,
        80
      ]
    },
    {
      "id": "793127ea-d1c7-4f29-a536-c87ece9d6601",
      "name": "Get account data",
      "type": "n8n-nodes-base.salesforce",
      "position": [
        1700,
        260
      ]
    },
    {
      "id": "249ef11d-47b3-415c-aac0-13437c1fd5c8",
      "name": "Extract Call Data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        260,
        40
      ]
    },
    {
      "id": "a572d7e8-6613-4f46-8abf-9a254f22cfc1",
      "name": "Merge call and transcript Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        540,
        -120
      ]
    },
    {
      "id": "1bcbafc1-5ef5-43a4-af2a-9689888fc086",
      "name": "Aggregate Gong Call Transcript",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1720,
        -120
      ]
    },
    {
      "id": "df307a52-512d-4397-8d22-a8a51a06fe21",
      "name": "Get External Attendees Emails",
      "type": "n8n-nodes-base.set",
      "position": [
        1280,
        80
      ]
    },
    {
      "id": "a4c7450e-5ad6-4e2f-ab72-0f56ae1390c1",
      "name": "Combine Salesforce Opp Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        2060,
        100
      ]
    },
    {
      "id": "8c201ee7-16f7-4c05-8f6c-d3543c4445e0",
      "name": "Aggregate Salesforce data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2260,
        100
      ]
    },
    {
      "id": "735173b9-cec1-43b3-94c5-13dc368473dd",
      "name": "Merge Enriched Transcript Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        2520,
        -100
      ]
    }
  ],
  "connections": {
    "Get Opp Data": {
      "main": [
        [
          {
            "node": "Extract SF Opp Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get account data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get transcript": {
      "main": [
        [
          {
            "node": "Join Transcript to String",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get account data": {
      "main": [
        [
          {
            "node": "Extract SF Opp Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Join Affiliation": {
      "main": [
        [
          {
            "node": "Join conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Call Data": {
      "main": [
        [
          {
            "node": "Merge call and transcript Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Join conversation": {
      "main": [
        [
          {
            "node": "Get External Attendees Emails",
            "type": "main",
            "index": 0
          },
          {
            "node": "Aggregate Gong Call Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract SF Opp Data": {
      "main": [
        [
          {
            "node": "Combine Salesforce Opp Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract SF Opp Data1": {
      "main": [
        [
          {
            "node": "Combine Salesforce Opp Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Get transcript",
            "type": "main",
            "index": 0
          },
          {
            "node": "Retrieve detailed call data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Salesforce data": {
      "main": [
        [
          {
            "node": "Merge Enriched Transcript Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Join Transcript to String": {
      "main": [
        [
          {
            "node": "Merge call and transcript Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Salesforce Opp Data": {
      "main": [
        [
          {
            "node": "Aggregate Salesforce data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve detailed call data": {
      "main": [
        [
          {
            "node": "Extract Call Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get External Attendees Emails": {
      "main": [
        [
          {
            "node": "Get Opp Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Gong Call Transcript": {
      "main": [
        [
          {
            "node": "Merge Enriched Transcript Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Enriched Transcript Data": {
      "main": [
        [
          {
            "node": "Isolate Notion Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge call and transcript Data": {
      "main": [
        [
          {
            "node": "Join Affiliation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}